Topic: flashvars.baseURL

Hello,

I have a strange setup:

http://www.mydomain.com/simpleviewer/  <-- is where the index.html, gallery.xml, and simpleviewer.swf files exists

http://www.mydomain.com/gallery1/images <-- images
http://www.mydomain.com/gallery1/thumbs <-- thumbs

Please help me define: flashvars.baseURL and the flashvar.galleryURL correctly.

Just purchased SimpleViewer PRO 2.01 and loving it!

Thank you!
-David

Last edited by xDeLiRiOuSx (2010-01-07 16:45:10)

Re: flashvars.baseURL

Ok - what's the problem you are seeing?

Felix Turner
SimpleViewer Support Team.

Re: flashvars.baseURL

Hi Felix.

Sorry, I did a typo on the post.  The question is:

How would I define baseURL and galleryURL?

Thanks,
David

Re: flashvars.baseURL

http://www.mydomain.com/simpleviewer/  <-- is where the index.html, gallery.xml, and simpleviewer.swf files exists

So to view your gallery the users will be going to http://www.mydomain.com/simpleviewer/? If so all you should really have to do is update your XML. <image imageURL="http://www.mydomain.com/gallery1/images/theImage.jpg" thumbURL="http://www.mydomain.com/gallery1/thumbs/theImage.jpg" linkURL="" linkTarget="" >

Mike Richards
SimpleViewer Support Team.

Re: flashvars.baseURL

Hi Miker,
   I originally did what you said and it did fix the problem but after adding several photos, I get a crossdomain error.  It was strange, so for the time being I've moved the simple viewer to a different directory and just use relative paths.

Speaking of relative paths, is there a way to tell it to go one directory up instead of just moving down the directory structure from where it is?

Thanks,
David

Re: flashvars.baseURL

When using relative paths two dots before a forward slash (../) moves you up a directory so if your in http://www.mydomain.com/simpleviewer/ this should get you to your images  ../gallery1/images/

You shouldn't get a crossdomain error unless the images are coming from a different domain or subdomain. You can add a crossdomain exception as follows.

Create a file called crossdomain.xml and add the following

<?xml version="1.0"?><!DOCTYPE cross-domain-policySYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="mydomain.com" />
</cross-domain-policy>
Mike Richards
SimpleViewer Support Team.