Jump to content

Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited

Wickian's Achievements


Newbie (1/14)



  1. Basically what the title says. How would I access a library movieclip from an externally loaded swf with swfloader? The following is from a tutorial: var loader:SWFLoader = new SWFLoader("path/to/file.swf", {name:"coupons", container:this, alpha:0, onComplete:completeHandler}); addChild(loader.content); loader.load(); function completeHandler(e:LoaderEvent):void{ TweenLite.to(e.target.content, 1, {alpha:1}); var librarySymbol:Class = loader.getClass("splashes"); var myInstance:MovieClip = new librarySymbol(); addChild(myInstance) } However that gives me the following error cannot convert splashes@5adcdc1 to flash.display.MovieClip. Thanks.
  2. Nevermind, I solved it. The problem was I was passing it as an object instead of a url string. Changing it to "File.applicationStorageDirectory.nativePath + "path/to/file.swf" worked.
  3. I've looked for a bit and haven't found an example of this yet. I've tried something like this; var file = new File(File.applicationStorageDirectory.nativePath); file = file.resolvePath("path/to/file.swf"); var loader:SWFLoader = new SWFLoader(file, {container:this, x:100, y:100, alpha:0.5, scaleX:0.5, scaleX:0.5, rotation:50}); but it doesn't work. Is this possible?