Search…

X3 Photo Gallery Support Forums

Search…
 
domnick0
Experienced
Topic Author
Posts: 27
Joined: 06 Feb 2011, 15:11

SWF File Type Help

13 Jun 2011, 18:38

Hi,

I'm trying out the new imagevue version 2.7 and trying to work with the swf file types but i am unable to load my swf files, I've read about passing parameters to the swf file and that not all swf files can be loaded depending on the complexity.

I'm trying to load a accordion menu i bought on flabell.com as seen here http://www.flabell.com/flash/Accordion- ... otator-276

The html file details are as follows
Code
<html>
	<head>
		<title>Accordion Banner Rotator</title>
		
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <script type="text/javascript" src="js/swfobject.js"></script>
        <!-- <script type="text/javascript" src="js/swfmacmousewheel.js"></script> -->
		<style type="text/css">*,body{outline:none;}</style>
		<script type="text/javascript">
		
			var stageW = 560;
			var stageH = 330;
			var cacheBuster = Date.parse(new Date());
			
			// ATTRIBUTES
		    var attributes = {};
		    attributes.id = 'FlabellComponent';
		    attributes.name = attributes.id;
		    
			var flashvars = {};	
			var params = {};
			
			params.bgcolor = "#ffffff";
			
			flashvars.componentWidth = 560;
			flashvars.componentHeight = 330;
			
			flashvars.firstSlide = 0;
			
			flashvars.pathToFiles = "accordion/";
			flashvars.settingsPath = "xml/accordion.xml";
			
			swfobject.embedSWF("preview.swf?t="+cacheBuster, "FlabellComponent", stageW, stageH, "9.0.124", "js/expressInstall.swf", flashvars, params);
			//swfmacmousewheel.registerObject(attributes.id);
			
		</script>
			
	</head>


	<body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" scroll="yes">
	
		<table width="100%"  height="100%">
		  <tr>
			<td align="center">
			
				<div id="FlabellComponent">
					<p>
						<a href="http://www.adobe.com/go/getflashplayer">
							<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/>
						</a>
					</p>	
				</div>
			
			</td>
		  </tr>
		</table>
	
	</body>
</html>
I have uploaded the assets of the accordion to my site root folder where imagevue is also located and have tried uploading the swf via the folder flash uploader and also by ftp to the filemods folder and try sending the flash vars to the file from the parameters box but it still doesn't load just gives me a bluebox i even added absolute paths to the xml file in the flashvar.

Can i get an exact detail as to how to load swf files in imagevue an text/image example would suffice.

Thank you.
 
domnick0
Experienced
Topic Author
Posts: 27
Joined: 06 Feb 2011, 15:11

Re: SWF File Type Help

14 Jun 2011, 00:51

I'm still battling this problem but I can't find an ample resource of the available parameters that one can use for file types is there a documentation on this?

Also i loaded a few swf's using the custom file mod entry, the swf files load up fine but they are not centered or they overlap the center padded box which appears to be the back ground layer for any loaded file, how can i fix this positioning issue of file types?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14010
Joined: 30 Sep 2006, 03:37

Re: SWF File Type Help

14 Jun 2011, 10:29

Do you have a link to this? I guess it is at least loading the SWF then, since you see a blue box? ... but apparently it is not able to initiate correctly ...

I would like to see if this is something with scope and loading external XML from the custom SWF, or if its simply some other incompatibility. Is this AS2.0 or AS3.0? AS3.0 will not work ...
domnick0 wrote:I'm still battling this problem but I can't find an ample resource of the available parameters that one can use for file types is there a documentation on this?
Well, parameters can be added through the parameters field, although I don't see why this necessarily has anything to do with the component not working. Your parameters can for example be added like this:
Code
componentWidth=560&componentHeight=330&firstSlide=0&pathToFiles=accordion/&settingsPath=xml/accordion.xml
domnick0 wrote:Also i loaded a few swf's using the custom file mod entry, the swf files load up fine but they are not centered or they overlap the center padded box which appears to be the back ground layer for any loaded file, how can i fix this positioning issue of file types
Imagevue uses the width and height of your SWF to center it on stage (there is no other way to center a clip), and to create the frame (if you have frame enabled for filemod). SWF files may often have dynamic sizes while something is animating, and perhaps the first frame is empty ... This gives incorrect width and height values to Imagevue, so it positions it based on the width and height of the item once it is loaded ... Therefore, we recommend creating a transparent square background on your SWF filemods, as to define the "canvas" of the clip so that Imagevue knows its width and height and can position it correctly.