[flexcoders] Re: Loader + swf doesn't scaleContent

2005-07-03 Thread Andrew Spaulding
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.

Re: [flexcoders] Re: Loader + swf doesn't scaleContent

2005-07-03 Thread Clint Modien
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

Re: [flexcoders] Re: Loader + swf doesn't scaleContent

2005-07-03 Thread Clint Modien
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

[flexcoders] Re: Loader + swf doesn't scaleContent

2005-07-03 Thread Andrew Spaulding
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