Can you use a Full URL path in the XML

Discussions about the Thumbnail Grid component.

Can you use a Full URL path in the XML

Postby Bscarbrough on Wed Feb 10, 2010 8:34 pm

Is there any way to use a Full URL path for the "source" in the xml file. I've have tried it and it does not work. The relative path works fine, but my images are stored on another website.

See xml code below. The first relative path address will work, but the second one with the full url address "http://www.acuitybrandslighting.com/Library/ll/images/Application/1266_Large.jpg" will not. Any suggestions?

Thanks


<?xml version="1.0" encoding="utf-8"?>

<images>
<image source="images/image1.jpg" title="First" description="1 Description" link="http://www.flashotaku.com/" tooltip="Series 1"/>

<image source="http://www.acuitybrandslighting.com/Library/ll/images/Application/1266_Large.jpg" title="Second" description="2 Description" link="http://www.flashotaku.com/" tooltip="Series 2"/>

</images>
Bscarbrough
 
Posts: 16
Joined: Mon Nov 02, 2009 2:16 pm

Re: Can you use a Full URL path in the XML

Postby David on Wed Feb 10, 2010 11:51 pm

Hi there,

Full path URLs should work fine. The problem here is the Flash's cross-domain policy.

You need to create an XML file on the domain from which you load the images. The XML should look like this:

Code: Select all
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
  <allow-access-from domain="*" />
</cross-domain-policy>


Let's say you create this XML file in the root folder, so the path to it would be: http://www.acuitybrandslighting.com/crossdomain.xml. The next step is to add this code in your FLA:
Code: Select all
Security.loadPolicyFile("http://www.acuitybrandslighting.com/crossdomain.xml");


You can read more about this the cross-domain policy here.
David
Site Admin
 
Posts: 345
Joined: Tue Nov 04, 2008 4:38 pm

Re: Can you use a Full URL path in the XML

Postby Bscarbrough on Thu Feb 11, 2010 12:35 pm

Thanks David. That makes sense. I will give it a shot. I really appreciate your help.
Bscarbrough
 
Posts: 16
Joined: Mon Nov 02, 2009 2:16 pm

Re: Can you use a Full URL path in the XML

Postby David on Thu Feb 11, 2010 2:26 pm

You're welcome. Let me know if you got it working.
David
Site Admin
 
Posts: 345
Joined: Tue Nov 04, 2008 4:38 pm

Re: Can you use a Full URL path in the XML

Postby Bscarbrough on Thu Feb 11, 2010 6:31 pm

Yes it is working. Thanks for your help. Once other question, if you don't mind.

It's now loading 60+ images. When the page loads the scroller starts scrolling immediately, even with the mouse outside the flash frame - Auto Scroll is set to false. I have mouse scrolling turned on and would like to keep it that way, but is there a setting to keep it from scrolling? At least until the mouse is actually inside the flash frame and even better if it could wait until the mouse is moved to either the right or left side of the frame. I appreciate any help with this. Thanks.
Bscarbrough
 
Posts: 16
Joined: Mon Nov 02, 2009 2:16 pm

Re: Can you use a Full URL path in the XML

Postby Bscarbrough on Thu Feb 11, 2010 8:54 pm

Here is some additional information on my scrolling problem.

Also, my scroller scrolls extremely fast. So fast in fact that all you see is a streak of color at times. I'm guessing, because I have so many images that it is loading and it's trying to scroll to the end as fast as it can when I move my mouse over to one side. If my mouse is outside of the flash frame and I aim to rollover a photo, it scrolls over about 20 images before it stops and the photo I was aiming for is no longer in the frame.

Is there anyway to slow this way, way, way down?
My Mouse Scroll is set to True
Mouse Scroll Easing set to False
Mouse scroll speed set to "1"
Scroll easing set to "linear".

Any ideas on what setting to use to fix this. Thanks again for all your help.
Bscarbrough
 
Posts: 16
Joined: Mon Nov 02, 2009 2:16 pm

Re: Can you use a Full URL path in the XML

Postby David on Fri Feb 12, 2010 1:16 am

The grid shouldn't scroll until you move the mouse over it, so I don't know why it's happening for you. Could you post a link or send me your file so I can take a look. For the speed problem, I don't k ow if there's another solution that setting the speed to lower value than 1 but for that I'll have to modify the internal code a little.
David
Site Admin
 
Posts: 345
Joined: Tue Nov 04, 2008 4:38 pm

Re: Can you use a Full URL path in the XML

Postby Bscarbrough on Mon Feb 15, 2010 3:19 pm

Hi David,

I just e-mailed you a copy of the file. Thanks again for all your help.
Bscarbrough
 
Posts: 16
Joined: Mon Nov 02, 2009 2:16 pm


Return to Thumbnail Grid

Who is online

Users browsing this forum: No registered users and 1 guest

cron