Here is my problem. I am trying to convert the [Loader Object] into the MovieClip but could't do it. Please see the comment in to code to see my problem. The reason i want to do this is because i have other movieclips on my code, I like to be able to use those code instead of converting the code to works with the loader object.
Thank you.
var myLoader:Loader = new Loader();
myLoader.load(new URLRequest("http://www.google.com/images/logos/ps_logo2.png"));/*load the image*/
//addChild(myLoader); //Don't use this methoad.
/*REMOVE the comment above to see the google logo, and ADD comment the myMovieClip.addChild(myLoader) on line 13
trace("myLoader = " + myLoader);
/*CONVERTING THE LOADER INTO MOVIECLIP*/
//Converting [object Loader] into MovieClip
var myMovieClip:MovieClip = new MovieClip();
//Add the MovieClip to replace the Loader.
/*the code below doesn't work because you can't add a child to a
loader but this i'm not adding to the loader. I am adding to the
movieClip*/
myMovieClip.addChild(myLoader); //this code doesn't work.******* THIS IS LINE 13**********
trace("LoadLogos = " + myMovieClip);
stage.addEventListener(MouseEvent.MOUSE_DOWN, onMousePress);
function onMousePress(evt:MouseEvent):void{ trace(evt.target); }