Thanks Paul,

I rewrote the code, so its easier to read:

var request:URLRequest = new URLRequest("hotword.swf");
var loader:Loader = new Loader()

function displayHotword(evt:Event):void {
        loader.load(request);
        addChild(loader);
        loader.x = 100;
        loader.y = 150
}


btClassified.addEventListener(MouseEvent.CLICK, displayHotword);

My question is, how do I control the instance that is now on the stage?
Say I wanted to create a function that would change the opacity of that
movie or something like that. How do I reference that item. In the old
flash, I would create a movie clip that would hold the swf and reference
that instance name. With this new method, I have no instance name to
reference.   


Also, I can't seem to "talk" to the file.  If they click a button within
the file (the close button), I want the popup removed from the stage.
Right now, I am hiding (visibility = false) the clip and putting the
code to hide it within the loaded swf.  I am not communicating with the
clip from the parent file.

Any direction you could provide is very much appreciated! 

Thank you!
Susan 

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to