flash cs5 - my external swf file push the stage to the left -
when test movie in adobe flash cc, external swf file push stage left side of screen.
import flash.display.movieclip; import fl.motion.motionevent; import flash.display.stagealign; panelnewbtn.addeventlistener(mouseevent.click, gotoagenda9); function gotoagenda9(event:mouseevent):void { gotoandstop("agenda"); loader.unloadandstop(); removechild(loader); loader = null; } var xpos:number=0; var ypos:number=0; var swf:movieclip; var loader:loader = new loader(); var defaultswf:urlrequest = new urlrequest("data/talk2/presentation - mumbai-2.swf"); loader.load(defaultswf); loader.x = xpos; loader.y = ypos; function loaded(event:event):void { var content:sprite = event.target.content; content.scalex = 0.5 ; } addchild(loader);
Comments
Post a Comment