PDA

View Full Version : Loading FlashPaper


adrian281990
10-06-2007, 08:12 AM
How do you load a FlashPaper swf in your project? Is it possible to load it using ActionScript 2.0 or 3.0?. Flash can load pdf? What alternative I have if don wont to use FlashPaper?
Thank you,
Adrian

rafighi
12-02-2012, 05:08 AM
import flash.net.URLLoader;
import flash.display.Loader;
import flash.display.MovieClip;
import flash.net.URLRequest;
import flash.events.Event;

var url:URLRequest=new URLRequest("1-5.swf");
var loader:Loader=new Loader();
var mc:MovieClip=new MovieClip();

loader.load(url);
loader.contentLoaderInfo.addEventListener(Event.CO MPLETE,onComplete);

mc.addChild(loader);
addChild(mc);


function onComplete(e:Event):void{
loader.width=800;
loader.height=600;

}