Hi,
I have multiple buttons that execute a single function that contains the Print2FlashDoc3 object.
Eg.
function loadModule(module) {
var P2FDocLoader:Print2FlashDoc3=new Print2FlashDoc3(module,0,0,swfWidth-36,swfHeight-222,mc_content.p2fMC);
}
My problem is that I cannot reference the Print2FlashDoc3 object outside of this function.
How do I declare an instance of the Print2FlashDoc3 object outside the function?
An example that does not work:
var P2FDocLoader:Print2FlashDoc3=new Print2FlashDoc3;
The following doesn't work unless I insert into the function loadModule:
P2FDocLoader.addEventListener(Print2FlashDoc3.ONLOADEVENT, OnLoaded);
var P2FDoc:MovieClip;
function OnLoaded(e:Event) {
P2FDoc=P2FDocLoader.getDoc();
trace("Your doc is ready");
}
Thank you!
