PDA

View Full Version : 'Movie not loaded' when embedding the SWF


Thread7
08-14-2009, 06:00 PM
If have the following line that executes in the first few lines of my swf.
if(partnerid) == undefined) { var partnerid = 1; }

The code executes fine and I can run the SWF on my local PC. (I am using Flash CS3, FlashPlayer 9, AS 2.0). But when I upload it on my web site, the swf always fails to load. If I right click where the movie should be I see ("Movie not loaded" AND "About Flash Player 10").
I've played with every modification I can think of to get this line of code to work. Such as:
if(typeof(_root.partnerid) == "undefined") { var partnerid = 2; }

Nothing works. Whenever I comment out that line, upload it to my site, it loads fine again.

CyanBlue
08-14-2009, 06:11 PM
Howdy and Welcome... ;)

The 'Movie not loaded' message tells me that Flash Player is not able to load the SWF file probably due to the path issue... That is a HTML/JavaScript issue not an ActionScript issue... Make sure that you are providing the correct path to the SWF when embedding the SWF file...

Thread7
08-14-2009, 06:40 PM
I wish it were that simple. But here is what I do:
1. Load the file directly into my browser (FF3.0 and IE7 both act the same) via url:
http://mysite.com/myfile.swf
2. It comes up fine.
3. Go into Flash CS3, add in the offending line of code.
4. FTP myfile.swf back up to my server.
5. Hit refresh in my browser.
6. The file won't come up. I always get "Movie not loaded".
(The swf does make calls to get XML data. Which may have somemething to do with it not loading. However, the partnerid variable is not used AT ALL in the rest of the code. So execution should be exactly the same.)

CyanBlue
08-14-2009, 06:45 PM
Got a URL where I can check it out???