I hate Yahoo search! Thank goodness I
archive all my emails J Here’s something I wrote a while back to help load
FlashPaper content. Thanks to Vinny for reproducing since that’s how I
found it J
FlashPaperLoader.as
class FlashPaperLoader extends mx.controls.Loader {
function init() : Void
{
addEventListener("complete", this.setFlashPaperSize);
addEventListener("resize",
this.setFlashPaperSize);
scaleContent = false;
}
function setFlashPaperSize()
{
var fp = content.getIFlashPaper();
// If FlashPaper isn't finished
initializing, then try again later
if (fp == undefined ||
fp.setSize(width, height) == false)
{
doLater(this, "setFlashPaperSize");
}
}
}
Usecase:
<mx:Panel id="panel1" label="flashpaper
document" width="100%" height="100%">
<FlashPaperLoader
contentPath="..." width="100%"
height="100%" />
</mx:Panel>
From: Adambombs
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 22, 2005
11:34 AM
To: [EMAIL PROTECTED]
Subject: [flexcoders] FlashPaper
in Flex?
Has anyone tried to load a flashpaper SWF into a
Flex application at
runtime? When I try it it locks up the flash
player and won't load
the FlashPaper.
Any thoughts?
Adam