Hi All,
I’m new as a member, but I always seem to find my flash answers here when I have problems, except this time. I hope someone can help me out.
My flash project is a video player. There are library items and .as files that help compile everything that it needs. I’m experiencing something very strange.
I’m using a different domain to host the swf file. The different domain is a media server to take the load off our own server and ISP. Actually, we have 2 different media server URLs. One each for development and production.
I’m pretty sure the problem is a security issue in the flash. When I take the media server URL out of the file paths everything works. Although I have a crossdomain.xml with the media server urls included, I don’t think it’s permitting the request.
Here is what is happening.
-
When I test my movie in flash it works great. The preview image and watermark image appear, the movie loads quickly, and when I click play it starts immediately without hesitation.
-
When I compile the video, I can open the generated HTML file with either IE or FF and everything works the same as above - flawlessly.
Here is where the problems begin…
- When I upload the files to my server, in firefox it runs great. But in IE (all versions) the poster image does not appear, I just get a blank screen on the player. But when I click play the movie runs and the watermark is present. Like I said, when I remove the media server from the picture, it’s all okay. My file paths are not the issue since I see everything normal in firefox. BTW, the poster and watermark images have relative URLs and do not contain the media server URLs. Even though I have tried absolute paths for EVERYTHING before.
This video player file (which I did not write/develop) has youtube playing capabilities and inside one of the AS files is security settings which I suspect needs to point to my media server rather than youtube. Just a guess, but maybe a good guess.
I attached the AS file with the hope someone well versed in AS3 can help me find a solution or the answer why IE cannot work properly when hosted on a different domain.
I tried a variety of different embed/param codes/flashvar settings, but no luck. I’m using flash5 and all standard out of the box settings.
I appreciate any assistance.