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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -