Page 1 of 1

How to open swf files without re-sizing?

Posted: 29 Dec 2008, 19:11
by Workhorse
I'm fairly new to Imagevuex, having played with V1 Final for a little while. Ive upgraded to V2 Final and it's working extremely well! Congrats for a great product! I have a gallery of website templates. In the description area for an image, I have created an html link to the related swf file in a hidden swf folder. In IE7, when I click on the html link, it opens a new window (correctly) :) and displays the swf file the FULL SIZE OF MY MONITOR (incorrectly) :? , not the actual size of the original file as if opened with Windows Explorer. I have also tried leaving the swf file in the image folder, but once I open the folder, the swf file executes by itself while in thmbnail view, and if clicked on, goes WAY off screen then disapears while still running. Simply put - I'd like to be able to display the swf file inside imagevue itself, but it doesnt display properly. So, any suggestions for displaying swf files at their original size within imagevue, or in a new window without re-sizing?

Posted: 29 Dec 2008, 23:51
by mjau-mjau
ok, allow me to assist:

Displaying SWF in a browser window
If a SWF file is not embedded into a HTML file, it will always display at 100% width and height(maintaining aspect ratio). There are two ways around this:

1. Create a html for each SWF so they are embedded at the correct width and height parameters.

2. Add the following code to each flash:
Code
Stage.scaleMode = "noScale";
Displaying SWF files in Imagevue
Unfortunately, there are many restrictions when displaying SWF files in Imagevue. Since SWF content doesn't have any set width or height, it is hard to align the SWF to center of stage. There is a tip here:
viewtopic.php?t=3666
mjau-mjau wrote:SWF files must also have a transparent background in the first frame representing the dimensions of the animation so Imagevue can position it correctly on stage