Problem when printing
Posted: Thu May 14, 2009 6:55 pm
Hello friends first perdon by my English because i am Spanish and me what this translating a program, well my problem is to print the swf that I embedded in my page flash, me prints the page black (which is the color of my flash page) and me at the top left a cuadrito which is part of the document embedded print2flash, is if I put something more in the code or if there is something wrong
the code is
and the button
the code is
Code: Select all
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, 10);
container._x=x;container._y=y
var loadFunc = function()
{
if (!container.setSize) return;
container.init(width, height);
clearInterval(intervalID);
eventSink.onLoaded(container);
container.addListener(eventSink);
}
intervalID = setInterval(loadFunc, 100);
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this)
mcLoader.loadClip(url, container);
return container;
}
Code: Select all
on (release) {
LoadPrint2FlashDoc("Legionella/D.swf",530,320,500,350, "D");
}