Answered
Best way to target a loader swf?
In AS2 I created tons of projects where I used _level0 as my
main menu and loaded other swfs (e.g. tutorial chapters) into and
out of _level1. My swfs in _level1 would access variables such as
dates, user name, and such residing in _level0. I am recreating all
of this in AS3 using the loader class which works great until I try
to access variables in my main swf. For example, menu.swf has a
button that loads chapter_1.swf. This chapter_1.swf needs to access
a string variable called userName in menu.swf and display it in a
text field. In AS2 I would simply write user_txt.text =
_level0.userName. How do I do that in AS3? I know it is probably
very easy but I have not been able to target menu.swf. I have
searched high and low for this answer but I must not be searching
correctly.
Thank you in advance for any help you may be able to provide.
Thank you in advance for any help you may be able to provide.