When I use this code, the swf file just disappear inside the _mc, but I roll over with the mouse, the cursor disappears as well and I cant figure out why.
I have used Print2flash 64 Bit 2.7.3 unregistered, and have remembered to remove the checkmark that disables API support.
Code: Select all
var p2f=LoadPrint2FlashDoc("Swift3DImporterReadme.swf", 0,0,200,200, "pdf_mc");
function LoadPrint2FlashDoc(
url, // Path of Print2Flash document to load
x, // x coordinate of the Print2Flash document movie
y, // y coordinate of the Print2Flash document movie
width, // Width of Print2Flash document movie
height, // Height of Print2Flash document movie
name, // Instance name to assign the Print2Flash document movie
parent, // Optional: parent object of Print2Flash document movie (default is _root)
eventSink) // Optional: event handler object
{
var intervalID = 0;
if (!parent) parent=_root
var container:MovieClip = parent.createEmptyMovieClip(name, getNextHighestDepth());
container._x=x;container._y=y
var loadFunc = function()
{
if (!container.init) return;
container.init(width, height);
clearInterval(intervalID);
eventSink.onLoaded(container);
container.addListener(eventSink);
}
intervalID = setInterval(loadFunc, 100);
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.loadClip(url, container);
return container;
}
http://eolithic.dk/temp/pdf_mc_test.zip