Jose Maria Barros schrieb:
Hi...i know that is a newbie question, but..here it goes:

I have a swf A. When i press a button in it, i load an external swf B into
swf A.

When i click a button in swf A , i wanted to swf B reach a variable that is
in an movieclip that is in swf A.


I tried this in the end of the main timeline of swf B:

_level0.movieclip_in_A.myvar;

So, _level0 is supposed to be the main swf A and movieclip_in_A is the movie
clip inside the main swf, that have nested a variable called "myvar".

Im wrong?
Anyway this is bad style: If _root/_level0 changes, then your code will cease working as expected. You can evade this situation by simply referencing the other way round:

In the timeline of clipB write:

   this._parent.myvar


Regards,
Roman.

--

-------------------------------------------------------------------
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
-------------------------------------------------------------------

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to