A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: odd one this, I think

  1. #1
    Junior Member
    Join Date
    Apr 2004
    Posts
    19

    odd one this, I think

    I am trying to develope a flash player 6 compatible app. Its a dynamic courseware program that generates instances of componets and populates them depending on the contents of an XML document.

    I have sorted the problem of getNextHighestDepth() not being available. (took some time )

    The latest wierd problem is this:-

    The code below writes to the original component no problem.
    Code:
    eval("caiText").text = "Get in the text";
    The next bit of code is supposed to write to the instances of the original component.
    Code:
    eval("caiText"+dp).text = "Get in the please";
    It doesnt work thought. It used to works in Flash player 7. The dp is the next highest level. Surely this should work?

    P.S. I hope this makes sense I really a bit of a newbie to actionscript
    - - - - - - - - - - - - -
    Any idea? Lost again!!!!!!
    - - - - - - - - - - - - -

  2. #2
    Junior Member
    Join Date
    Apr 2004
    Posts
    19
    anyone?
    - - - - - - - - - - - - -
    Any idea? Lost again!!!!!!
    - - - - - - - - - - - - -

  3. #3
    primate with a keyboard
    Join Date
    Mar 2001
    Location
    The Netherlands Mood: happy monkey :-D Likes: you know... |:-) Dislikes: stupid stuff
    Posts
    72
    I believe i read something about that..
    the thing is that eval can't be used directly, try making a var of it first:

    var thingy = eval("caiText"+dp);
    thingy.text = "Get in the text please";
    sig? I don't have a sig. euhm.. no wait! this is IT!

  4. #4
    Junior Member
    Join Date
    Apr 2004
    Posts
    19
    Thought that you where on to something there. Alas no luck, it didnt work.

    if you do a trace like follows

    Code:
    trace(thingy.text);
    it outputs the text fine. Do Flash 6 depth levels not work properly or something?
    - - - - - - - - - - - - -
    Any idea? Lost again!!!!!!
    - - - - - - - - - - - - -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center