Inside of function completato, you can refer to oilslLoader like as a MovieClip. So:
oilslLoader.visible=false;
oilslLoader.x
oilslLoader.rotation
oilslLoader.width
etc etc
How can I access this loaded swf - I want to either move it off stage until needed, or make it visible=false until it is needed? I tried accessing swf, and oilsLoader without success? Can I load it into an empty mc and access the mc? If so, how would I do that?
var swf:String='Oils.swf';
var richiesta:URLRequest=new URLRequest(swf);
var oilslLoader:Loader=new Loader();
oilslLoader.contentLoaderInfo.addEventListener(Eve nt.COMPLETE,completato);
oilslLoader.load(richiesta);
function completato(e:Event):void
{
//preloader_mc.stop();
//preloader_mc.visible=false;
addChild(oilslLoader);
}
Inside of function completato, you can refer to oilslLoader like as a MovieClip. So:
oilslLoader.visible=false;
oilslLoader.x
oilslLoader.rotation
oilslLoader.width
etc etc
No, I get 'access of undefined property oilsLoader
function completato(e:Event):void
{
addChild(oilslLoader);
oilsLoader.visible = false;
}
What's the output of:
trace(oilslLoader);
?
I put the trace inside completato, and before and after completato, and always got compliler error - access of undefined property oilsLoader :(
After this line:
addChild(oilslLoader);
if you write trace(oilslLoader); you get undefined ?![]()
try the trace before that line too
Bookmarks