ActionScript contained in externally loaded SWF files will be ignored on iOS devices -
ActionScript contained in externally loaded SWF files will be ignored on iOS devices -
i developing ios app in flash cs6. i'm trying load external swf. preloader loads external swf. loading seems work. after loading external swf, add together movieclips stage. strangely, on ios devices, movieclips not added stage.
here's code preloader:
package { import flash.display.movieclip; import flash.display.bitmapdata; import flash.display.loader; import flash.display.bitmap; import flash.utils.getdefinitionbyname; import flash.events.event; import flash.events.progressevent; import flash.net.urlrequest; import flash.system.loadercontext; import flash.system.applicationdomain; public class test extends movieclip { private var lobbybgassetsloader:loader = new loader() ; private var ldrcontext:loadercontext; public function test() { var urlstr:string = "cards.swf"; lobbybgassetsloader.contentloaderinfo.addeventlistener(event.complete, lobbybgassetsswfloaded); lobbybgassetsloader.load(new urlrequest(urlstr)); ldrcontext = new loadercontext(false,applicationdomain.currentdomain,null); } private function lobbybgassetsswfloaded(e:event):void { txt.text = "loaded finish test "; var logosmall:bitmap = new bitmap(); var classdefinition:class = lobbybgassetsloader.contentloaderinfo.applicationdomain.getdefinition("cardbg") class; txt.text = "after load "; var img:movieclip = new classdefinition() movieclip; this.addchild(img); } } }
all actionscript gets converted native obj-c code when compile app ios. if app able load swf file internet, actionscript within not converted obj-c.
apple not allow actual flash player within ios app, app cannot play swf content.
ios actionscript-3 flash-cs6
Comments
Post a Comment