Current location: Hot Scripts Forums » General Web Coding » Flash & ActionScript » Flash: Unable to load Images from other subdomain


Flash: Unable to load Images from other subdomain

Reply
  #1 (permalink)  
Old 08-05-08, 01:02 PM
Robd75 Robd75 is offline
New Member
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Flash: Unable to load Images from other subdomain

Hello,
Recently, I developed a javascript component to dynamically grab data from a database and rotate through the items. It displays a picture and 2 lines of text.
That works perfectly fine.
When creating a Flash version of this component, however, I run into some trouble. XML is dynamically generated by a webservice that makes the same calls to the database. The XML is generated perfectly fine and the component reads the XML fine.
I have several variables passed into the Flash declaration, including a service URL that points to the XML. The component rotates through the items, but does not display the images. I know that it's grabbing the XML because it outputs the appropriate text.
I have checked the image paths and they're all valid. I've had the flash component output the url that it should be loading and that's also correct. The URLs are all fully qualified. Now the weirdest thing is that I can chance the background color (no that's not the weird part ) and thus see a white placeholder for the images. The image should resize when it becomes the center image, and the placeholder does resize to the size of the image that should be loading. Therefor, it has to be seeing the images so that it can grab their dimensions, as they're all different, but no images come up.
On a local machine in Adobe Flash CS3 Professional, the movie runs fine when I statically put in the XML path. (I've also pushed it online with a static XML path and it doesn't work when you go to the site).
I seem to get conflicting results in my research on the subject of flash loading images from other subdomains. The images that are to be loaded are on a different subdomain than the Flash component and the XML. It is all in the same domain, however. I looked into crossdomain policies, but that shouldn't affect it since it's on the same domain.
I can't post the code here or a site to view this on as we're not ready to release yet, so I was wondering if anyone had heard of a similar issue before or could offer some suggestions.

Here's a screenshot of the program in action though:
http://people.clarkson.edu/~dorara/screenshotFlash.GIF
As you can see, the images on the side are all a uniform size, but the one in the center resized to the appropriate height.
Ignore the blue text in the back - that was for testing to confirm that the Flash has an appropriate URL and matches the output for the local version.

Thanks,
-- Rob
Reply With Quote
  #2 (permalink)  
Old 08-05-08, 01:49 PM
Robd75 Robd75 is offline
New Member
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Update

Upon further inquiry it appears that it can load images in the same subdomain from the XML using the fully qualified URL. Unfortunately, it still will not load images from an alternate subdomain, which we'll need to do.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
flash load problem mahmoud82 PHP 8 01-15-08 04:51 AM
Re-sizing images in Flash kkillgasmm Flash & ActionScript 1 08-20-07 04:42 PM
Load images with curl ? klaniak PHP 2 10-13-06 09:38 PM
flash script for images perleo Script Requests 2 09-23-06 09:20 PM


All times are GMT -5. The time now is 06:41 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.