plain text files load from an external file

I created a text file from an external load file. I am facing a problem is that the text does not load unless someone click on the button. I'd like the text is displayed as soon as someone enters the page.

Here is the link to the website http://hitenkajal.co.uk/our_story.html

Username: hitenkajal.co.uk

password: sairam11

and my screen below codes:

Plain text files load from an external file

var textLoader:URLLoader;
function loadStory(evt:MouseEvent):void
{

textLoader = new URLLoader();

textLoader.addEventListener (Event.COMPLETE, textLoaded);

textLoader.load (new URLRequest ("MobyDick.txt assets/Franck"));
trace ("hit_btn");
}

hit_btn.addEventListener (MouseEvent.CLICK, loadStory);


function loadHowwemet(evt:MouseEvent):void
{

textLoader = new URLLoader();

textLoader.addEventListener (Event.COMPLETE, textLoaded);

textLoader.load (new URLRequest ("assets/pencil kajal MobyDick.txt"));
trace ("kaj_btn");
}

kaj_btn.addEventListener (MouseEvent.CLICK, loadHowwemet);

function loadProposal(evt:MouseEvent):void
{

textLoader = new URLLoader();

textLoader.addEventListener (Event.COMPLETE, textLoaded);

textLoader.load (new URLRequest("assets/proposal.txt"));
trace ("pro_btn");
}
pro_btn.addEventListener (MouseEvent.CLICK, loadProposal);

function textLoaded(evt:Event):void
{

Container.info_txt.text = textLoader.data;

}

Creation of a ScrollBar to a text field
var dragRect:Rectangle = new Rectangle(drag.x,drag.y,0,bar.height-drag.height);
drag.addEventListener (MouseEvent.MOUSE_DOWN, dragMouseDown);


function dragMouseDown(evt:MouseEvent):void
{
drag.startDrag (false, dragRect);
stage.addEventListener (MouseEvent.MOUSE_UP, dragMouseUp);
addEventListener (Event.ENTER_FRAME, scrolling).
}

function dragMouseUp(evt:MouseEvent):void
{
drag.stopDrag ();
stage.removeEventListener (MouseEvent.MOUSE_UP, dragMouseUp);
removeEventListener (Event.ENTER_FRAME, scrolling).
}

function scrollText(evt:Event):void
{
var percentScrolled:Number = (drag.y - bar.y)/(bar.height-drag.height);
Container.y = percentScrolled * (bar.height - container.height) + bar.y;
}

I do not know what Maury is trying to say, but the code is very well.  1009 error means your code is trying to target something that does not exist for as far as the code sees it.  In your function textLoaded, add the line I show below and see what appears in the output...

function textLoaded(evt:Event):void
{
trace (container, container.info_txt);

Container.info_txt.text = textLoader.data;
}

If the output shows undefined, then you have a problem insofar as the container or the textfield inside it sucks... most likely a naming problem.

Tags: Adobe Animate

Similar Questions

  • How to clear the contents in plain text file?

    Can someone tell me how to remove all of the content in the plain text file!

    Send samples if you have for reference

    Use the FileConnection.delete method and the FileConnection.create method to remove and create a file.

  • 'Documents' folder (plain text) Foxpro. PRG files and cannot search for find in files

    I have 64 bit Win7 Pro.

    I have a C:\Users\Owner\Documents\PRG folder with a number of Foxpro. PRG (plain text) files.  I can't get Windows Search to search for files.  For example, several files have the command "TO PAINT" in them.  If I bring up an Explorer window and use PAINT, I just get 3 file names that have PAINT in them without a content search.  I've read other suggestions to use ' content: 'paint' ' but that no results me at all.  I tried another suggestion: a window withCMD searchFile-name: "*." ' * ' - content: "painting" and got an error that says'searchFile' is not recognized as internal or external, command an executable program or batch file.

    I have to install a UNIX client to get a search utility that can find things I need?  At this point, I'll take something that actually works.

    If you type a Search in the research area, scroll down to change the way Windows search. The first page allows you to change the folders that are included in the search.  Under the buttonAdvanced -> File Types , you can select which extensions are included in the search.  You can also add a new extension if it is not listed.

    See you soon,.

    Barbara

  • Is there a way to open the text files with arbitrary extensions?

    As part of the mobile platform iOS, is possible to open arbitrary text files that have an arbitrary extension?  For example, in the course of my work day, I meet regularly with plain text files that have an .out extension.  I'd love to be able to open these simply with iOS notes without renaming them in .txt.  I meet many of them and only need to do this for a few minutes, so take the time to rename them significantly adds both.

    On the desktop a BONE can generally "open with", then choose the application.   I'm looking for the equivalent in iOS.  Please note that to access the files on iOS is not a problem with icloud drive, dropbox, etc..  they just can not be opened easily.   Simple text editor, word processor not full blown.

    You will need a software that can handle the file.

    Usually the file management applications can manage any type of file.  I like the 5 Documents to Readdle, it can open almost anything.

    https://iTunes.Apple.com/us/app/documents-5-file-system-PDF/id364901807?Mt=8

    The equivalent of 'Open with' in the iOS is "open in", 'Share xxx' or even 'Copy To '.

    How to get to it, depends on where the file is located.

    ICloud drive for example, you can do open the file in a specific application by holding your finger on the icon of the file and by selecting more «...» "in the menu that appears, and then selecting"Share point... ". "and finally select an application from the list.

  • Access denied, need permission to record a simple text file

    I recently installed Windows 7 Ultimate Build 7600.  This pc is a pc private home with no one else having access or all other user accounts.

    Even something as simple as change, then by recording a Notepad text file is not suitable.

    Things, I tried to solve this problem:

    1 taking possession; It shows that I am the owner
    2 set the permissions for the 'total control '; shows all the boxes ticked in permissions
    3 set my profile only on this pc to be called w/admin Admin privileges
    4 - Set the slider all the way up to minimum level UAC
    5 used "control of userpassword2" to disable login by username
    6 tried to set sharing to other users; was not allowed to do this.

    I was able to save/edit this text file, while in Mode without failure.  However, when I login to my account the singular admin, I am not allowed to save a plain text file.

    I read extensively on this issue as well as snobs "admin" who think that I should not have full control of the files/folders that I have control over.  It's my pc, and if I accidentally ruin, then so be it.

    UAC is an understandable feature for Rookie pc users.  However, the option should be there for pc users experienced changes on their personal computers without harassment by Redwood.

    Rant aside, does anyone have a real solution to a simple text file can be edited and saved without going into Safe Mode and connecting to the main account?

    Thank you.

    Hello

    If you log in using the hidden Windows administrator account, you should have no trouble.
    1, log in using your normal account
    2, open the command line by right-clicking on the icon and run as admin.
    3, type "net user administrator / Active: Yes" and press enter
    4, log off your user account and when the login screen appears you should now see a new admin logon.
    5, once connected to this account, you should be OK to change your files.
    6, before closing this admin account back to the cmd prompt and
    Type "net user administrator / active: No.»
    7, sign out, then work I hope.
    Good luck
    Mike
  • Convert a batch of PDF files to text files

    I have thousands of PDF files that I need to convert it to plain text for processing files.

    I can convert them individually to help save it under... dialogue. However, I would like to set up an Action to automate the process, but I see no action in the Action window that would allow me to specify the output format required.

    Am I missing something, or it is not possible to convert a batch of PDF files to plain text files in Adobe Acrobat X?

    Thank you

    Thanks for the tip of Bernd.

    I don't really know javascript, but I managed to make it work by referring to the following page and using my rudimentary knowledge of PHP:

    http://acrobatusers.com/tutorials/how-save-PDF-Acrobat-JavaScript

    I created a new Action with the Action Wizard.

    I put "start with:" in my files folders (for example, C:\MyFiles)

    I added in step "Run the Java Script" and used the following code:

    / * PDF text * /.

    this.saveAs ("/ exit/MyFiles/c" + this.documentFileName + ".txt", "com.adobe.acrobat.plain text");

    Note: The value "/ exit/MyFiles/c ' where you need the files to be issued (' / output/MyFiles/c ' corresponds to C:\MyFiles\Output).

    I put "save in:" "do not save the changes" (as the fact required javascript code save).

    I then ran to the Action, and files such as C:\MyFiles\101.pdf have been issued in the form of text files to C:\MyFiles\Output\101.pdf.txt, which is good enough for me.

    I do not seem to run into lots of 350ish however, or even Acrobat stumbles on and dies.

    Hope that helps someone else in the future (i.e. the future self).

    Gruff

  • Is it possible to have a block of text from an external source (ex. TextWrangler file) load in multiple pages (file TW exodus as an "insert" in 4 different pages on a site)?

    Is it possible to have a block of text from an external source (ex. TextWrangler file) load in several pages on a site in the 'performance' (e.g. TW file as an "insert" in various pages)

    Use SSI. If you're on a PHP server just use the PHP include, if not take a look on SSI: the command Include

  • Load Word at random from AS3 external text file

    Hello!

    I made a button that loads a random word in a textfield in a list of words. Instead of having the list of words with the rest of the code, I want to load them from a text file with sort of a URLloader.

    IT'S THE CODE EXISTING THAT I USE

    var listofwords = new Array ('word1', 'word2', 'mot3', "mot4")

    var finalword = listofwords [Math.floor (Math.random() * listofwords. (Length)];

    textfield_txt. text = finalword. toString () ;

    //

    Thanks for help

    / Knetos

    You can split the string on the new line characters

    aArray = aContent.split ("\n");  had to use \r\n

  • Problem with loading Variables from a text file

    Hello

    I'm quite a novice when it comes to scripts and I am struggling to achieve something quite simple. I want to have an external text file that will allow me to control the number of timeout that I reference in my code below. I need to be able to change this variable by editing a simple text file.

    var myTimer:Timer = new Timer(60000,1);
    

    I want to change the 60000 and 1.

    I followed what looks like a nice clean approach to this tutorial: http://www.designscripting.com/2012/01/as3-flash-loading-variables-from-a-text-file/

    However, when I'm stuck is how to reference my variable imported into the code. I tried 'name1' but it does not work. I get ' 1067: Implicit coercion of a value of a numeric type to a type unrelated string.' error '

    I'm an output:

    HTTP status = 0

    Data loaded

    Name1: undefined

    {name2: 1}

    http://screencast.com/t/gwD09jovIrb4

    I use CS5 and AS3.

    Thank you

    Dan

    I see nothing wrong with what you show, and when I try I get the following output...

    HTTP status = 0

    Data loaded

    Name1: 6000

    name2: 1

    The only thing I suspect for the moment is the data file itself.  I can reproduce the problem if I insert white space before this string, then make sure that the text string is not preceded by anything whatsoever.

  • Digital loading data from text file for Test of numerical limit

    I am a new user of TestStand 2014.  Just downloaded the demo ran successfully the computer.dll tutorial & example "loading limits a File.seq text"; & is now trying to build my own sequence from scratch.  I want to load a number from a text file using the property Loader.  The file contains the following:

    GGbeg
    484
    GGend

    My hand sequence contains 2 markets (see attachment):

    Charger property (which reads the text file & must store the number 484 in the Step.Result.Numeric variable, right?)

    GG-digital-test (which should test the number 484 in Step.Result.Numeric as a Data Source, right?)

    But when I run it, the measure indicates "0" for the value instead of "484".  What I am doing wrong?  Thank you in advance for your help!

    George

    Hi George,.

    The text file must be in the format, includes no property magazine. Use the following in the text file to make it work:

    GGbeg
    Result.Numeric
    GG-digital-test 484

    Value of the variable

    Value of the variable

    Value of the variable
    GGend

    In the Tools menu of the sequence editor, there are some 'Properties Export/Import' tool, which helps to create text files to be used with charger property stage. I highly recommend to create the new file using the tool and then edit the file to change the values.

    -Shashidhar

  • Cannot find the file error when loading data from text file to Oracle

    Hello

    I have an interface where I am loading a data from the text file to Oracle.
    But when I try to do that I am getting following error.

    ODI-1227: SrcSet0 (load) task fails on the source FILES SAPMM connections.
    Caused by: java.sql.SQLException: file not found: d:/mdb/#General.get_filename
    to com.sunopsis.jdbc.driver.file.FileResultSet. < init > (FileResultSet.java:160)
    at com.sunopsis.jdbc.driver.file.impl.commands.CommandSelect.execute(CommandSelect.java:57)
    at com.sunopsis.jdbc.driver.file.CommandExecutor.executeCommand(CommandExecutor.java:33)

    SAPMM is the name of the connection.
    I use get_filename to get the name of the file and it is fetching a correct value as long as this variable is updated in the previous stage of this interface.
    KM, used for loading is SQL file

    What would be the cause of this error?

    Thank you
    Mahesh

    Also a single query would be ok if I'm moving only generated package (according to your scenario3) scenario and not UI? It running properly?

    Yes... It runs successfully

  • Load the data from a text file into a table using pl/sql

    Hi Experts,

    I want to load the data from a text file (sample1.txt) to a table using pl/sql

    I used the pl/sql code below

    ***********************************
    declare
    f utl_file.file_type;
    s varchar2 (200);
    c number: = 0;
    Start
    f: = utl_file.fopen('TRY','sample1.txt','R');
    loop
    UTL_FILE.get_line (f, s);
    insert into sampletable (a, b, c) values (s, s, s);
    c: = c + 1;
    end loop;
    exception
    When NO_DATA_FOUND then
    UTL_FILE.fclose (f);
    dbms_output.put_line('No. deles de lignes insérées: ' || c);
    end;

    ***************************************

    and my sample1.txt file looks like

    ***************************************
    1
    2
    3
    ***************************************

    Gets the data inserted, with way below

    Select * from sampletable;

    A, B AND C

    1-1-1
    2-2-2
    3 3 3

    I want that data to get inserted as

    A, B AND C

    1 2 3

    The text file I have is to have three lines, and the first value of each line should go to each column

    Help, please...

    Thank you
    declare
    f utl_file.file_type;
    s1 varchar2(200);
    s2 varchar2(200);
    s3 varchar2(200);
    c number := 0;
    begin
    f := utl_file.fopen('TRY','sample1.txt','R');
    utl_file.get_line(f,s1);
    utl_file.get_line(f,s2);
    utl_file.get_line(f,s3);
    insert into sampletable (a,b,c) values (s1,s2,s3);
    c := c + 1;
    utl_file.fclose(f);
    exception
    when NO_DATA_FOUND then
    if utl_file.is_open(f) then utl_file.fclose(f); ens if;
    dbms_output.put_line('No. of rows inserted : ' || c);
    end;
    

    SY.

  • How to load the date and time from text file to oracle using sqlloader table

    Hi friends

    I need you to show me what I miss loading date and time text file in a table oracle using sqlloader

    It's my data in this way (c:\external\my_data.txt)
    7369,SMITH,17-NOV-81,09:14:04,CLERK,20
    7499,ALLEN,01-MAY-81,17:06:08,SALESMAN,30
    7521,WARD,09-JUN-81,17:06:30,SALESMAN,30
    7566,JONES,02-APR-81,09:24:10,MANAGER,20
    7654,MARTIN,28-SEP-81,17:24:10,SALESMAN,30
    my table in the database emp2
    create table emp2 (empno number,
                      ename varchar2(20),
                      hiredate date,
                      etime date,
                      ejob varchar2(20),
                      deptno number);
    the code for the control in this path (c:\external\ctrl.ctl) file
    load data
     infile 'C:\external\my_data.txt'
     into table emp2
     fields terminated by ','
     (empno, ename, hiredate, etime, ejob, deptno)
    This is the error:
    C:\>sqlldr scott/tiger control=C:\external\ctrl.ctl
    
    SQL*Loader: Release 10.2.0.1.0 - Production on Mon May 31 09:45:10 2010
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Commit point reached - logical record count 5
    
    C:\>
    any help that I enjoyed

    Thank you

    Published by: user10947262 on May 31, 2010 09:47

    load data
    INFILE 'C:\external\my_data.txt '.
    in the table emp2
    fields completed by «,»
    (empno, ename, hiredate, etime, Elysa, deptno)

    Try

    load data
     infile 'C:\external\my_data.txt'
     into table emp2
     fields terminated by ','
     (empno, ename, hiredate, etime "to_date(:etime,'hh24:mi:ss')", ejob, deptno)
    

    This is the error:

    C:\>sqlldr scott/tiger control=C:\external\ctrl.ctl
    
    SQL*Loader: Release 10.2.0.1.0 - Production on Mon May 31 09:45:10 2010
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Commit point reached - logical record count 5
    
    C:\>
    

    This isn't a mistake, you can see errors in the log file and bad.

  • AS 3.0 external loading a text file text

    OK, so things have changed a lot. In AS 2.0, I could create a text or HTML file with variables and dynamic text fields to display the text of the loadVariablesNum argument. AS 3.0 uses a totally different model. How can I just grab the text from an external document and display in a dynamic text field?

    Never mind. I got it!!! The ampersand at the beginning is a BIG no-no! Don't do it! It returns an error of e/s on the text file.

    Thank you all.

  • formatting of text file external to HTML during the loading of a textField

    I'm new to actionscript, and I can't find examples of code for what I'm trying to do.
    I am loading a textField with addChild into a movieClip and want the external text file that I load into this textField to render in the textField in HTML. I enclose the code that I use. If anyone can help or has sample code I would be very happy. Thanx

    Thank you very much, that it has sorted them.

Maybe you are looking for

  • Urgent need: rubber feet for Satellite P10

    Can someone please tell me where to find (a single oval shape lying and a round) rubber feet for Satellite P10 873, part number: PSP16E-0W349-FRThanks Chris

  • M225dw MFP HP LaserJet Pro: Save Scan not responding

    Once a document is scanned, I click on save, start and go through the correct folder and it (no longer save). I need help!  Any ideas?

  • Wiring of the PXI-4132

    Hi all I would like to know how to wire the PXI-4132. You can check the links below specification. http://sine.NI.com/NIPs/CDs/view/p/lang/fr/NID/207349 http://www.NI.com/PDF/manuals/375128a.PDF -My problem here is that I do not understand is that a

  • Appellants are cut off when leaving a voicemail message

    I'm having a problem when I call DID number of the person to the PSTN destination and record a message that is longer than 40 seconds, the audio is cut roughly the second 40 mark. If I call internally for an ip phone registration is not cut. I have s

  • BlackBerry Smartphones was updated for the first time phone

    Hi im currently with the dodo Australia, I wonder can I get updates because when I went to the dodo Australia blackberry wasn't there. I used the phone for a while but now want to configure e-mail and everything I can on the subject. I have the Black