views:

182

answers:

1

I have a loader.swf that loads an external swf via the flash.display.Loader() class. The external swf contains a TextField that is defined on the stage in a keyframe (frame 10).

How can I, from the loader.swf reference the TextField and set the .text dynamically?

I've set the instance name, but get "null" when I reference it through the Loader onComplete function via event.target.content.textFieldInstanceName. I suppose the TextField instance does not yet exist or is not yet created since its in frame 10? Is there any Event or similar that I can listen for that fires when the TextField exists?

The TextField is not always on frame 10 so I cant use this information. I think I've seen this done using only instance name information. But I cant figure out how to do it.

A: 

Found a answered question that solves my problem; http://stackoverflow.com/questions/382963/as3-timeline-variable-issues

dagge