Trouble using full URLs in FlashVars

A discussion group for Aleo Flash Pan Zoom Viewer

Trouble using full URLs in FlashVars

Postby toddzilla on Wed Sep 30, 2009 8:07 pm

I am trying to load images using the flash vars process. I can get it to work for files located within or under the folder where the SWF resides, but I cannot get it to use images stored elsewhere on the server. I have tried using all sorts of image path formats, but none have worked. Using Firebug to view the HTTP calls, I can see that image paths that start with slashes are requested (but come up 404 since the path is wrong), but image paths that are full URLs starting with "http://" are not even requested. I am using version 1.2

Here are some example FlashVars strings I have tried (the SWF is in /aleo and the images are in /somefolder):

image0=http://www.myserver.com/somefolder/images/a.jpg&title0=Test
image0=/somefolder/images/a.jpg&title0=Test
image0=../somefolder/images/a.jpg&title0=Test
image0=/../somefolder/images/a.jpg&title0=Test
toddzilla
 
Posts: 3
Joined: Wed Sep 30, 2009 7:51 pm

Re: Trouble using full URLs in FlashVars

Postby toddzilla on Thu Oct 01, 2009 2:41 pm

To try and work around this, I moved files around so the images were in a folder under the folder where the SWF is stored. Now I can get the SWF to find and request the image configured through FlashVars. However, it never actually appears! You can see in Firebug that the image is requested and returned. The pre-loader image spins while its loading and stop when its finished, but the image never appears. What is going on?

Aleo, please look at this simple test page and tell me what's going on:

http://www.labautopedia.com/mw/test.html

Here is the <object> tag:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="800" height="600">
<param name="movie" value="viewer.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="allowFullScreen" value="false" />
<param name="allowScriptAccess" value="always" />
<param name="FlashVars" value="image0=images/DSC_2974.jpg&amp;title0=Test" / >
<embed src="viewer.swf"
quality="high"
type="application/x-shockwave-flash"
WMODE="transparent"
width="800"
height="600"
allowFullScreen="false"
allowScriptAccess="always"
flashvars="image0=images/DSC_2974.jpg&amp;title0=Test"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
toddzilla
 
Posts: 3
Joined: Wed Sep 30, 2009 7:51 pm

Re: Trouble using full URLs in FlashVars

Postby Patrick on Mon Oct 05, 2009 8:55 am

HI

There are errors in the HTML code. I have marked the error code in red color, you need to change it to:

image0=images/DSC_2974.jpg&title0=Test


toddzilla wrote:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="800" height="600">
<param name="movie" value="viewer.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="allowFullScreen" value="false" />
<param name="allowScriptAccess" value="always" />
<param name="FlashVars" value="image0=images/DSC_2974.jpg&amp;title0=Test" / >
<embed src="viewer.swf"
quality="high"
type="application/x-shockwave-flash"
WMODE="transparent"
width="800"
height="600"
allowFullScreen="false"
allowScriptAccess="always"
flashvars="image0=images/DSC_2974.jpg&amp;title0=Test"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>



Patrick
support@aleosoft.com
Patrick
 
Posts: 656
Joined: Thu Sep 25, 2008 2:22 pm

Re: Trouble using full URLs in FlashVars

Postby toddzilla on Mon Oct 05, 2009 2:02 pm

Thanks for the reply. I don't know how that URL encoding got in there, but removing changed nothing. The image is still requested and downloaded (as seen in Firebug), but the image never displays. Please see the test page below to demonstrate this. Any other ideas?

http://www.labautopedia.com/mw/test.html

Thanks,
Todd
toddzilla
 
Posts: 3
Joined: Wed Sep 30, 2009 7:51 pm

Re: Trouble using full URLs in FlashVars

Postby Patrick on Wed Oct 07, 2009 12:21 am

Hi Todd,

After testing, I found the problem is because something is wrong with the preloader style "spin".

In the software, right properties, "Preloader" -> "Style", you can change it to "pie" or "circle", and re-generate the files.

Or you can open your generated viewer_config.xml, change the line:

<Style_preloaderStyle>spin</Style_preloaderStyle>

to

<Style_preloaderStyle>circle</Style_preloaderStyle>

So sorry for the caused inconvenience.

Patrick
support@aleosoft.com
Patrick
 
Posts: 656
Joined: Thu Sep 25, 2008 2:22 pm


Return to Aleo Flash Pan Zoom Viewer

Who is online

Users browsing this forum: No registered users and 1 guest