kimchiking
Joined: 8 Feb 2012
Posts: 2
Hi there,

I am struggling with a SWF file that I use. The format resizes when I he loads into the page and if you click the screen, the view of the SWF resizes every time. How can I make the SWF without being stretched (its using XML to retrieve data)? Hope you can help me out here.

http://www.vanavendonck.net/flash/#/con ... square.swf


Re: SWF doesnt load properly
User avatar
Imagevue Wizard
Joined: 30 Sep 2006
Posts: 7759
The problem with SWF files, are that they don't really have any width/height ... Basically a SWF files width height is defined by the outer boundaries of all the content of the clip, which might be animated and/or change over time! Because of this, Imagevue tries to resize and position the clip based on the width at the time of positioning. Since your clip may be dynamic in size, this may have adverse effects ...

Best solution? In your SWF/animation, create a transparent square background that emulates the out boundaries of your clip. Imagevue will now use the size of the transparent clip to position and resize the SWF. As long as your animations occur within the boundaries of the transparent rectangle, then the size will stay consistent and so will the aspect.

_________________
Karl / mjau-mjau

Image
Image
Image
Image

www.imagevuex.com
www.mjau-mjau.com
www.photogallerylinks.com


Re: SWF doesnt load properly
kimchiking
Joined: 8 Feb 2012
Posts: 2
Thanks for your reply! I tried several things now... and eventually I succeeded in finding a solutions. If you load an external SWF (through a button) into a different level the problem of resizing doesn't occur. Great!


 
Imagevue Forums HomeForum  View topic - SWF doesnt load properly3 posts