After import the MC is invisible

Publishing Print2Flash Documents embedding them in Flash movies
Post Reply
Glitch
Posts:1
Joined:Thu Feb 26, 2009 2:34 pm
After import the MC is invisible

Post by Glitch » Thu Feb 26, 2009 2:42 pm

Hi

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;
}
I have uploaded it here, really hope somebody can help:
http://eolithic.dk/temp/pdf_mc_test.zip

nLearn.se
Posts:2
Joined:Thu Mar 26, 2009 2:51 am

Re: After import the MC is invisible

Post by nLearn.se » Thu Mar 26, 2009 2:57 am

While I haven't compared the code to the snippets supplied in the help files, it looks right. One thing you might try is to move the function call to after the function is defined.

Not much but hope it helps :)

Post Reply