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