[Tweener] AS2 hierarchy and dynamic texts

pierre_colin at yahoo.com pierre_colin at yahoo.com
Tue Apr 6 04:38:54 PDT 2010


Hello everyone,
I am getting a bit confused over a what should be small problem:

I have Flash CS3, and I am working on a project in AS2. I know my way around AS2 fairly well, but I don't understand the following prolem:

- I have a variable declared at the root of my flash document
- I want to use that variable in various movieclips that I load onto the flash document (whether by directly placing them on a layer, or using attachiMovie())
- as of now, here is my hierarchy structure:
> root
 >>raceModule (on a layer)
  >>>raceControl (on a layer)
    >>>> raceController (on a layer)
     >>>>> dataTable (attached to the movieclip)

If I create a dynamic text on the root document and put "_root.myvariable" in the variable textbox, i can see that variable well. Same thing if I put the textfield in racemodule or racecontrol. 
But it stops working when I place it in racecontroller or dataTable... The odd thing is that I put a 'trace(_root.myvariable);' in raceController, and it shows the varaible just fine.

Can anyone explain to me why it wouldnot work in the dynamic textfield but in the trace code? Should I be using something different? I did try _level0 instead of _root, but it did not work either.

Thanks for your help!
Jeremy



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20100406/957df32c/attachment.htm>


More information about the Tweener mailing list