1 Replies - 11226 Views - Last Post: 19 June 2009 - 08:55 AM

#1 hack_the_planet  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 28
  • Joined: 17-April 09

Import SWF file to stage via actionscript

Posted 17 June 2009 - 08:23 AM

Does anyone know if you can perform the "import swf to stage" action in actionscript 2 or 3???

Prefereably AS3.

I have no idea is this is possible and cant find anything on the net relating to it.

Basically i want to import a swf file in to a time line, so for example, i have a OCR reader that zips uploading into a .tif file. The tif file is then converted to swf and then i want to import it to flash so people can read it like a book, zoom in on scans etc.

Let me know

THanks a bunch

Is This A Good Question/Topic? 0
  • +

Replies To: Import SWF file to stage via actionscript

#2 hack_the_planet  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 28
  • Joined: 17-April 09

Re: Import SWF file to stage via actionscript

Posted 19 June 2009 - 08:55 AM

For anyone who need to embed a swf in a movieClip here is the code


var swfLoader:Loader = new Loader();

holderMC.addChild(swfLoader);
var bgURL:URLRequest = new URLRequest("sample.swf");
swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadProdComplete);
swfLoader.load(bgURL);


function loadProdComplete(e:Event):void {
	trace("file loaded");

}

holderMC.stop();





Does any one know how i can manipulate the timeline on this embeded swf.


So for example,

holderMC.nextframe();

or

holderMC.swfLoader.nextframe();



thanks
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1