In the swf you are loading try placing the following in a script block
and see if it makes a difference.
function getPreferredHeight() : Number
{
return 22;
}
Refer to this post for more information on sizing swf's in the loader
control.
ok... i tried setting up the newly loaded swf (after it loads) with the function and it didn't work
loader.content.getPreferredHeight = function()
{
trace(getting called); // this never gets called
return 22;
}
i also tried...
loader.content.preferredHeight = 22;
when i trace out the
I should add that i don't have access to the swf that i load.
So i can't go into the .fla and change things.
On 7/3/05, Clint Modien [EMAIL PROTECTED] wrote:
ok... i tried setting up the newly loaded swf (after it loads) with the function and it didn't work
loader.content.getPreferredHeight
Tough call. Would be nice if it was another flex app you were loading
so that you could jump in and add the appropriate AS code :p
umm well, im really not too sure ... but you'll definately have to
tell the loader to resize the app somehow.
Try taking a look at this FlashPaperLoader (found this
4 matches
Mail list logo