Function OnLoad

Hello guys,.

I just want to know if the waterfalls have all the features like Javascript windows.onload. I does not mean that onCreationCompleted.

Because the onCreationCompleted function trigger just once!

OK, let me show you an example.

I have create a NavPane. I need a function each time return pop() and the function will be trigged. For me the onCreationCompleted does not work like that.

Any suggestion? need help!

Take a look at

onPopTransitionEnded()

Tags: BlackBerry Developers

Similar Questions

  • Fault of JavaScript in ASP after installing 8.0.1

    I'm working on a site ASP simple as using javascript to manage field validations. Any call to a javascript function seems to be failing still launch regardless if she uses the function "onload()" or "onclick(). I tried to alerts in the scripts to confirm the functioning of their but it fails to kick off without showing any errors.

    It is a false problem. Apparently, a combination of the upgrade and one piece of code caused this problem. I apologize for wasting someone's time on it.

  • question of sizing qnx.ui.display.Image

    I found something weird on qnx.ui.display.Image setSize. I have an Image object do not show the expanded size that I put in the constructor, but appear in its place in the resolution of the image. But he did show well with expansion of size during the function of mouse event. I really have no idea what's going on... Thanks in advance for the help

    package
    {
        import flash.display.Sprite;
        import flash.events.Event;
        import flash.events.MouseEvent;
        import qnx.ui.display.Image;
    
        [SWF(width="1024", height="600", backgroundColor="#cccccc", frameRate="30")]
        public class AIRHelloWorld extends Sprite
        {
            private var image1:Image;
    
            public function AIRHelloWorld()
            {
                image1 = new Image;
                image1.setImage('assets/abc.png'); // image resolution 57 x 57
                image1.setPosition(200, 10);
                image1.setSize(77, 77); // it does NOT display 77 x 77 size, but 57 x 57 instead
                image1.addEventListener(MouseEvent.MOUSE_DOWN, downWindow);
                image1.addEventListener(MouseEvent.MOUSE_UP, upWindow);
                addChild(image1);
    

    Hey,.

    so I have found that when you first declare the image and add it to the parent object fair instructions telling what to do. However, you give instructions to an empty object. That's how rule where a sprite has no dimension of width or height unless you add children. If this applies to this case as well. until the image is loaded to define its width and height does nothing because he has no "children" in the object. Once the image is loaded from the application he finally has dimension and can be changed. So what I recommend is to attach an event listener to listen to when the image is loaded as below:

    var myImage:Image;
    
    (...)
    
    myImage = new Image();
    myImage.addEventListener(Event.COMPLETE, onLoad);
    myImage.setImage("images/ball.png");
    myImage.setPosition(600,300); //dont mind this just random
    addChild(myImage);
    
    (...)
    
    public function onLoad(e:Event):void
    {
        var myImageObject:Image = (e.target as Image);
        myImageObject.setSize(myImageObject.width*2,myImageObject.height*2);
    
    }
    

    We load instantly, but in execution, it's not even load so nothing do for her before loading. so, once its loading you should be able to handle it if you wish. hope that helps! Good luck!

  • Accelerometer works only with Phonegap Build

    The following example works fine on the Infocus m210 smart phone and does not work on Asus Zenfone 2 (zen kl-500).

    Any ideas why?

    ------------------------------------------------------------------------

    <! DOCTYPE html >

    < html >

    < head >

    < title > example < /title > acceleration

    < script type = "text/javascript" charset = "utf-8" >

    var watchID = null;

    function onLoad() {}

    document.addEventListener ("deviceready", onDeviceReady, false);

    }

    function onDeviceReady() {}

    startWatch();

    }

    function startWatch() {}

    var options = {frequency: 1000};

    watchID = navigator.accelerometer.watchAcceleration (onSuccess, onError, options);

    }

    function stopWatch() {}

    If {(watchID)

    navigator.accelerometer.clearWatch (watchID);

    watchID = null;

    }

    }

    function onSuccess (acceleration) {}

    element var = document.getElementById ('accelerometer');

    element.innerHTML = "Accélération X:" + acceleration.x + ' < br / > ' +

    "Accélération Y:" + acceleration.y + ' < br / > ' +

    "Accélération Z:" + acceleration.z + ' < br / > ' +

    "Timestamp:" + acceleration.timestamp + ' < br / > '; "."

    }

    onError() {} function

    Alert ('onError!');

    }

    < /script >

    < / head >

    < body onload = "onLoad ()" >

    < div id = "accelerometer" > waiting for accelerometer... < / div >

    < button onclick = "startWatch (); ' > start watching < / button >

    < button onclick = "stopWatch (); "> stop watching < / button >

    < script type = "text/javascript" src = "cordova.js" > < / script >

    < / body >

    < / html >

    -------------------------------------------------------

    It works after I changed to:

    Thanks a lot for your help.

  • 1120: access of undefined property imgTag but imgTag is a variable not property

    I'm trying just to RSS feeds with the loading image. but the error came from this line: tb.htmlText = imgTag;

    error: 1120: access of undefined property imgTag.

    import flash.text.TextField;

    var loader: URLLoader = new URLLoader();

    loader.addEventListener (Event.COMPLETE, onLoaded);

    lb.addEventListener (Event.CHANGE, itemChange);

    tb.htmlText = imgTag;


    function itemChange(e:Event):void

    {

    "ta.htmlText =" < a href =------"" ' + lb.selectedItem.link + '-' > ' + lb.selectedItem.label + '< /a >. "

    }

    var xml;

    function onLoaded(e:Event):void

    {

    XML = new XML (e.target.data);

    var it: XMLList = xml.channel.item;

    for (var i: uint = 0; i < il.length (); i ++)

    {

    var desc:String = il.description.text ([i]);

    var startImg:Number = desc.indexOf("<");

    var endImg:Number = desc.indexOf(">");

    var imgTag:String = desc.substr (start, endImg - start + 1);

    trace (imgTag);

    lb.addItem ({data:il.description.text() [i],:il.link.text() [i] link,

    Label:il.title.Text()[i]});

    }

    }

    loader.load (new URLRequest ("http://www.medicinenet.com/rss/general/cancer.xml"));

    imgTag is just a piece of text (a string) not an image, so you get the constraint error when you use addChild() on a string.

    You need load the image that has the same name as the value of imgTag using an instance of the Loader class. I assume that you know the location of the URL of the image to load.

  • retrieve SQL data

    I need to display data based on the column name.  The name is captured from the URL parameter and transmitted to Flash with Javascript.

    Recover it with Flash:

    varMedia var = ExternalInterface.call("saveglobalscore",score) ("getParameter1");

    Then, I use the following function to retrieve and display the data:

    function displayRatingOnSQL (): void

    {

    var myTextLoader:URLLoader = new URLLoader();

    myTextLoader.dataFormat = pouvez;

    myTextLoader.addEventListener (Event.COMPLETE, onLoaded);

    function onLoaded(e:Event):void

    {

    var tAverage = (e.target.data.Average);

    var tTotalVotes = (e.target.data.TotalVotes);

    var tTotalRate1 = (e.target.data.star1);

    var tTotalRate2 = (e.target.data.star2);

    var tTotalRate3 = (e.target.data.star3);

    var tTotalRate4 = (e.target.data.star4);

    var tTotalRate5 = (e.target.data.star5);

    var temp = tTotalRate5 + "\n" + tTotalRate4 + "\n" + tTotalRate3 + "\n" + tTotalRate2 + "\n" + tTotalRate1;

    totalForEachStar.text = temp;

    tAve.text = tAverage;

    totalVotes.text = "(" + tTotalVotes + "par»;)"

    }

    var extraString = Math.Random ();

    myTextLoader.load (new URLRequest ("http://dntin1web01/tpas/SQL/GniePageRatePageRead.asp?qs=" + extraString));

    }

    I the following to collect the name of the column in the ASP page, extract data:

    Dim tPageMedia

    tPageMedia = Request.Form ("varMedia")


    Then I try to use the following to retrieve:

    SQL = SQL & "WHERE ([PageName] =" & "'" & tPageMedia & "" "" ")". "


    I have nothing. It works if I put a code name hard replacing the dynamics.


    How can I switch the varMedia to the ASP page? The Javascript variable is var1.

    I was probably too tired, but I solved the problem by adding the value of the variable to the parameter of the URL to call ASP. It's working now. Thank you!

  • display the text data retrieved

    I try to display note (stars) by reading the text on the server.

    The text is like this: RateAverage = 3.5 & TotalVote = 15 & rate5 = 5 & mensuel4 = 8 & revenu3 = 1 & naturel2 = 1 & rate1 = 0

    I used the code on the net and I can see the file being opened and can store data of different variables. When I tried to view the data of stars, he was not with anything. It seems that what outdoor function onLoaded can never gets the data. What I've done wrong?

    Thanks for the tips.

    var myTextLoader:URLLoader = new URLLoader();

    myTextLoader.dataFormat = pouvez;

    myTextLoader.addEventListener (Event.COMPLETE, onLoaded);

    function onLoaded(e:Event):void

    {

    trace (e.Target.Data.RateAverage);

    trace (e.Target.Data.TotalVote);

    trace (e.Target.Data.rate5);

    Average = (e.target.data.RateAverage);

    TotalVotes = (e.target.data.TotalVote);

    var Vote5Total = (e.target.data.rate5);

    var Vote4Total = (e.target.data.rate4);

    var Vote3Total = (e.target.data.rate3);

    var Vote2Total = (e.target.data.rate2);

    var Vote1Total = (e.target.data.rate1);

    trace (average + "" + TotalVotes + "" + Vote5Total);

    }

    myTextLoader.load (new URLRequest ("Vote_SIPod1.txt"));

    trace (average + "" + TotalVotes + "" + Vote5Total);

    First thing, we need to create the variables outside the function if you want to use them outside...

    Then you must use the text on the full charge data (to set the values of variables in the text file) otherwise you'll have NaN or undefined values...

    example:

    var Vote5Total;

    function onLoaded(e:Event):void

    {

    Vote5Total = (e.target.data.rate5);

    or: Vote5Total = String (e.target.data.rate5); Vote5Total is the string.

    Vote5Total = Number (e.target.data.rate5); Vote5Total is the number.

    You can use the values like this:

    myTextField.text = Vote5Total; must be a string

    my_mc.x = Vote5Total; must be a number

    or: myTextField.text = String (Vote5Total); convert the number to a string.

    trace (Vote5Total);

    }

  • view the data in SQL

    I was able to use ASP to retrieve data from SQL database by using something like the one below:

    SQL = "SELECT PageName",

    SQL = SQL & "CONVERT (NUMERIC (6,2), AVG(Rating * 1.00))" AVERAGE ".

    SQL = SQL & 'COUNT (Rating) AS Total',

    SQL = SQL & "SUM(CASE WHEN Rating = 1 THEN 1 ELSE 0 END) AS [Star1Total]"

    SQL = SQL & "SUM(CASE WHEN Rating = 2 THEN 1 ELSE 0 END) AS [Star2Total]"

    SQL = SQL & "SUM(CASE WHEN Rating = 3 THEN 1 ELSE 0 END) AS [Star3Total]"

    SQL = SQL & "SUM(CASE WHEN Rating = 4 THEN 1 ELSE 0 END) AS [Star4Total]"

    SQL = SQL & "SUM(CASE WHEN Rating = 5 THEN 1 ELSE 0 END) AS [Star5Total].

    SQL = SQL & "FROM [SDBI]. [dbo]. [GnieRatePage] "

    SQL = SQL & "GROUP BY PageName".

    SQL = SQL & "ORDER BY PageName".

    I then post on the help page:

    Response.Write ("PageName") Recordset

    What I need, it of to transmit these data to Flash and let Flash to view the coast. How to do by way of ASP?

    Thank you

    I don't use the proper syntax for writing couples variable/value with asp, but, if this is the case, use:

    var myTextLoader:URLLoader = new URLLoader();

    myTextLoader.dataFormat = pouvez;

    myTextLoader.addEventListener (Event.COMPLETE, onLoaded);

    function onLoaded(e:Event):void

    {

    for {(var s:String in e.target.data)

    trace (s, e.Target.Data [s]);

    }

    myTextLoader.load (new URLRequest ("read_page_rating.asp"));

  • Pass a URLRequest defined string variable

    Hi people,

    So I tried to write a script that loads a file, what variables are then extracted from. I've seen a lot of questions related, and some are probably the same. I'm new on this so I do not really understand the solutions that have been given. I worked on this problem for some time now and there is very little progress. Help would be greatly appreciated. Thank you in advance.

    With all that being said, here is my annotated code, the name of executives and a commentary corresponding to the main line of the code that is troubled are bold and underlined.

    #########################################################################################

    WelcomeBack; It is the first image.

    Whose purpose is simply to display "Welcome Back" with a start button.

    Once you press the button start, "Please enter your item number" is displayed.

    The user then types in the number that will be used to load their data (already registered).

    This image seems to work very well.

    import flash.events.TimerEvent;

    import flash.utils.Timer;

    Stop();

    questions of the var: Array = ["Please enter your item number."];

    var q: int = 0;

    var gameTimer:Timer = new Timer (240000,1);

    var endTimer:Timer = new Timer (2000,1);

    var subjectStr:String = new String;

    var fileStr:String = new String;

    var file:Array = new Array;

    txtAnswer.restrict = "0-9";

    txtAnswer.visible = false;

    txtQuestion.autoSize = TextFieldAutoSize.CENTER;

    btnStartDistractor.addEventListener (MouseEvent.CLICK, nextProblem);

    gameTimer.addEventListener (TimerEvent.TIMER_COMPLETE, endGame);

    var ext:Array = ["_Overall.txt"];

    var object: Array = new Array;

    var yokedSchedule:Array = new Array;

    function processInput (evt:KeyboardEvent): void

    {If (evt.keyCode == Keyboard.ENTER & & txtAnswer.text! = "")}

    { q++

    subjectStr txtAnswer.text = var

    var nested_array:Array = new Array ([subjectStr], [ext]);

    var fileStr:String = nested_array.join("");  If the user puts the number 746, this should set "746_Overall.txt" to the variable "fileStr.

    var file:Array = fileStr.split () / / this probably isn't necessary

    {gotoAndStop ("cache")}

    }

    }

    function nextProblem(evt:Event):void

    {If (q, questions.length)}

    {

    txtAnswer.text ="";

    txtQuestion.text = issues [q];

    stage.addEventListener (KeyboardEvent.KEY_DOWN, processInput);

    If (q == 0)

    {

    txtAnswer.visible = true;

    btnStartDistractor.removeEventListener (MouseEvent.CLICK, nextProblem);

    btnStartDistractor.visible = false;

    gameTimer.start ();

    }

    }

    ElseIf (q == questions.length)

    {txtQuestion.text ="";}

    txtAnswer.text ="";

    gameTimer.removeEventListener (TimerEvent.TIMER_COMPLETE, endGame);

    stage.removeEventListener (KeyboardEvent.KEY_DOWN, processInput);

    {gotoAndStop ("cache")}

    }

    }

    trace (txtAnswer.Text)

    function endGame(evt:TimerEvent):void {}

    endTimer.addEventListener (TimerEvent.TIMER_COMPLETE, endGame)

    endTimer.start)

    txtQuestion.text = 'of TIME UP!";

    txtAnswer.text ="";

    }

    #########################################################################################

    ReadData; It is the second picture.

    The purpose of this framework is to load the file (for example 746_Overall.txt), using the variable called fileStr

    From now on, he can charge a variable defined string (e.g. url), however, it doesn't seem to work when the url is replaced by fileStr

    import flash.net.URLRequest;

    import flash.net.URLLoader;

    to import flash.net.URLVariables;

    import flash.net.URLRequestMethod;

    import flash.events.Event;

    Stop();

    the path to the file backend

    var url: String = "746_Overall.txt"; This variable works;

    trace (fileStr)

    var urlVariables: URLVariables = new URLVariables ();

    trace (urlVariables)

    var request: URLRequest = new URLRequest (url); It works, however, when replaced by fileStr it does not work.

    Request.Method = URLRequestMethod.GET;

    var loader: URLLoader = new URLLoader ();

    loader.addEventListener (Event.COMPLETE, handleLoaderComplete)

    Loader.Load (request);

    loader.addEventListener (Event.COMPLETE, onLoaded);

    function onLoaded(e:Event):void

    {

    yokedSchedule = e.target.data.split(","); split patterns using the comma as separator, otherwise the entire calendar would be an element

    scheduleTextBox.text = String (yokedSchedule);

    trace (yokedSchedule)

    }

    The next line...

    var fileStr:String = nested_array.join("");  If the user puts the number 746, this should set "746_Overall.txt" to the variable "fileStr.

    declares a new variable that brought in the service that you put it in.  If the intention is to assign to the variable you have assigned outside the service, then you shouldn't be reporting again.

    fileStr = nested_array.join("");

    When creating new instances of class objects, you must include the parentheses.

    var fileStr:String = new String();

    var file:Array = new Array();

    If you want to take shortcuts just ignore to create instances and only declare variables until you are ready to assign them.

    var fileStr:String;

    var file:Array;

  • How to set up an inputText with date picker?

    Jdev: 11.1.2.4.0

    My requirement is to leave the text input from the user and the date at the same time

    It's something like < af:inputDate >, but the user can enter arbitrary string (like "2000-%-").  and the developer can call dateComponent.setValue("2000-%%-"), dateComponent.getValue (). "

    When the value is submitted, a custom converter will convert the string to a Date object or string.

    It's date. MinValue does not support setValue (aString). How to get around this problem?

    Thank you.

    Thank you all. I tried out. Not sure if she is graceful, but it serves my requirement.

    It is something like:

    / * the value of string in the Edit to a date box. MinValue * /.

    function setDateText (evt) {}

    evt. Cancel();

    CMB var = evt.getSource ();  a button

    var date = cmb.findComponent ("id1"); the component date. MinValue

    var entry = document.getElementById ("id1::content");  the inputbox

    Input.Value = "abcde";     Chain set

    }

    To hide the edit box

    function onLoad() {}

    var entry = document.getElementById ("id1::content");  the inputbox

    Input.Type = "Hidden";

    }

  • Edge + Phonegap Google Analytics plus my nightmare

    Has anyone successfully google analytic implanted into a cordova/phonegap app?

    My analytics account IS showing me the information in the section 'real time '. But I don't get any data collection in my section found. I've heard various accounts of how long it takes for data to come. Some say the hour, some say weeks. So I don't know if I should just wait and see or if I should try to be proactive in this regard.

    In any case, I'll post some of my approach.

    I use the plugin analytical documented here: danwilson/google-analytics-plugin · GitHub

    (1) I added the following to my index.html file:

    < script type = "text/javascript" charset = "utf - 8" src = "cordova.js" > < / script > "."

    < script type = "text/javascript" charset = "utf-8" >

    Wait to load device API libraries

    //

    function onLoad() {}

    document.addEventListener ("deviceready", onDeviceReady, false);

    }

    feature of the API are available

    //

    function onDeviceReady() {}

    Now safe to use the device API

    window.analytics.startTrackerWithId('UA-XXXXX-XX') omitted real tracking id

    }

    < /script >

    (2) I also added the following to my compositonReady Stadium event. (not really sure if this is necessary)

    window.analytics.startTrackerWithId('UA-XXXXX-XX');

    (3) then on each button event I want to follow I put

    window.analytics.trackEvent ("product competitor", "Product name");

    Like I said before, it is recognizing the real time application, but not data collection.

    Looks like that patience is a virtue.

    Reports came through this weekend.

  • Load a picture 2D from a txt file

    Hi, I have a little problem on the table: /.

    I'm a little game of tiles according to the coding, and I load the map from a .txt file.

    The txt file is like this:

    0 1 0 1 0 1 0 0 0 0 0 1 1 1 1

    1 0 1 0 1 0 0 1 1 0 1 0 1 0 1

    ...

    and I want to just use it in this loop:

    for (var i: int = 0; i < mapHeight; i ++)

    {

    for (var j: int = 0; j < mapWidth; j ++)

    {

    var cell: MovieClip = new tile();

    cell.gotoAndStop (map [i] [j] + 1);

    If (i % 2 == 1) {}

    Cell.x = 70 * j - 35;

    Cell.y = 35 * i;

    }

    else {}

    Cell.x = 70 * j;

    Cell.y = 35 * i;

    }

    addChild (cell);

    }

    }

    This loop works if I create the table on the map in the AS3 file, but with 10 cards, the code will be very very very long.

    I tried to load the table from a txt file, but there is not a lof on internet information and I'm stuck.

    To load the txt file:

    var mapLoader:URLLoader = new URLLoader();

    mapLoader.addEventListener (Event.COMPLETE, onLoaded);

    function onLoaded(e:Event):void {}

    var maptext:String = e.target.data;

    var map: Array = maptext.split("");

    trace (Map);

    }

    mapLoader.load (new URLRequest ("map1.txt"));

    But I do not understand how to use 'map' after that, I can't use it in the loop to add cell, I have an error.

    I find that all it really complicated to load just a simple table 2D from a txt file.

    Can't I just put all the maps in AS3 in a different txt file and load this part of code when I need it? Like this:

    "var map: Array = [];

    [1,0,0,1],

    [1,1,1,1]

    [0,0,0,0]

    [0,1,0,1],

    ]; "

    Thanks for the help and sorry for the bad English.

    If I recreate the first version, I get the same result as what you show for the second version - I do not get the result snapped up as show you.  My guess is that you have the data file prepared incorrectly when you organize the data into it.

  • Communicate between extension html and c ++ plugin

    Hi all

    I'm developing an extension html for InDesign CC2014. There is a scenario where I need to communicate between the extension and the C++ InDesign plugin.

    I followed the instructions at http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/cs-extension-builder/pdfs/CC_Extens ion_SDK.pdf and wrote on the extension of the code part. The part c ++ code has not changed since the Flex versions, so no problems there.

    I tried to call the extension of the plugin and it worked. I recorded an event in the plugin to listen to and sent another event of the plugin. But the Committee does not seem to listen to or distribute any type of event. On the part c ++ plugin, the error of registration codes and send returned were codes of success, so the problem is not with the plugin.

    Here's the code for the html Panel,

    I save the event to listen to at the time of the loading of the page.

    function onLoaded() {
        var csInterface = new CSInterface();
    
     // Register the named event handler
      csInterface.addEventListener("com.mypluginevent.test", myEventHandler); 
    
    }
    //Create a named event handler callback function
    function myEventHandler(event)
    {
      alert("Event captured!");
    }
    
    // This function is called on a button click
    function onClick()
    {
      // Create your local CSInterface instance
      var csInterface = new CSInterface();
      var event = new CSEvent("com.myhtmlevent.test", "APPLICATION"); 
    
      event.data = "This is a test!";
      csInterface.dispatchEvent(event);
    }
    

    Here's the part C++ code where I send the event "com.mypluginevent.test".

    csxs::event::Event event = {"com.mypluginevent.test",
                                  csxs::event::kEventScopeApplication,
                                  "myEventHandler",
                                  NULL,
                                  NULL};
    
    csxs::event::EventErrorCode err = sdkPlugPlugInstance.DispatchEvent(&event);
    

    I always get a hit on the dispatch of the event, but the extension intercepts her.

    Can someone tell what I am doing wrong?

    Hello

    I don't know if it will help but take a look at the documentation for CC 2014 (rather than the CC 2013 docs you use): official Adobe Extension SDK Documentation for 2014 CChttp://adobe.ly/1rin38t>

    Best regards

    Hallgrimur

    --

    René Hallgrímur | Product Manager Adobe EAC | @HallgrimurTh

  • External swf on Air Android and IOS

    Hello

    Can AIR and IOS android application download and play an external SWF with code inside?

    I created android app AIR (SDK version 4.0) that load an external swf with simple clip on the stage.

    var loader: Loader = new Loader();

    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, onLoaded);

    Loader.Load (new URLRequest ("2.swf"));

    function onLoaded(e:Event):void

    {

    addChild (loader);

    }

    I installed this on device android AIR app but I see no external swf on the stage.

    Thanks in advance

    You must add the external swf file for included files.  and for ios, you must assign the loadercontext property.

  • read data dynamically in a txt document

    I try to dynamically read data a txt document

    in swf

    Stop ();

    var pafh = this;

    import flash.events. *;

    var Araray_id:Array = new Array();

    var v_length:Number;

    var myTextLoader:URLLoader = new URLLoader();

    myTextLoader.dataFormat = URLLoaderDataFormat.VARIABLES;

    myTextLoader.addEventListener (Event.COMPLETE, onLoaded);

    function onLoaded(e:Event):void {}

    Araray_id = e.target.data.araray_id.split(",");

    trace ("Araray_id:" + Araray_id);

    V_LENGTH = Araray_id. Length;

    trace ("v_length:" + v_length);

    for (var i: Number = 0; i < v_length; i ++) {}

    pafh ["Id_" + i] = new Array();

    trace ("pafh [Id_ + i]:" + pafh ["Id_" + i]);

    var v_help:Object = "id_" + i;

    trace ("v_help:" + v_help);

    pafh ["Id_" + i] = e.target.data.v_help.split(",");? Stops the script here

    pafh ["Id_" + i] = e.target.data. (v_help).split(",");? Stops the script here

    pafh ["Id_" + i] = e.target.data. [v_help].split(",");? Stops the script here

    }

    Play();

    }

    myTextLoader.load (new URLRequest ("myText1.txt"));

    -------------------------------------------------------

    in the text

    araray_id = aa, bb, cc, dd, ee, ff

    & id_0 = aa1, aa2, aa3 and aa4

    & id_1 = bb1, bb2, bb3, bb4, bb5

    & id_2 = cc1, cc2, cc3

    & id_3 = dd1 dd2 dd3, dd4, dd5, dd6

    & id_4 = ee1, ee2

    & id_5 = ff1, ff2

    -------------------------------------------------------

    output

    Araray_id: aa, bb, cc, dd, ee, ff

    V_LENGTH: 6

    pafh [Id_ + i]:

    v_help: id_0

    TypeError: Error #1010: a term is undefined and has no properties.

    at skuskaceatarraybiforas3fromtext_fla::MainTimeline/onLoaded()

    at flash.events::EventDispatcher/dispatchEventFunction()

    at flash.events::EventDispatcher/dispatchEvent()

    at flash.net::URLLoader/onComplete()

    You can help me with this problem

    You had those Ines great comment so I did not like being in that you ran to get this error.

    Try...

    pafh ["Id_" + i] = e.target.data [v_help].split(",");

    (Note the point deleted after data)

    and create v_help as a string, not an object

Maybe you are looking for