Skip to main content
Participant
August 12, 2007
Question

Has loadMovie changed?

  • August 12, 2007
  • 7 replies
  • 565 views
Hi Everyone!

I'm building an flv player, but am having a small problem loadMovie. The movie dynamically loads a preview jpeg (and the flv) from a subdirectory to keep file sizes low, the flv loads great, but the preview image never loads when I put it live or run the movie in a browser.

I'm wondering if something has changed between MX and 8, because I even tried re-exporting some old flash files, and had the same problem: loadMovie() just doesn't seem to work anymore.

I looked at the topic " loadMovie differs from local to live" and tried adding the code:

System.security.allowDomain( "http://www.myWebsite.com" );

But it didn't seem to work. Anyone got any ideas? Here's the loadMovie() line I'm using:

previewLoader.loadMovie(category+"/"+item+"/preview.jpg");

I can upload the fla if anyone wants to check out the full extent of my code. Thanks!
This topic has been closed for replies.

7 replies

kglad
Community Expert
Community Expert
August 31, 2007
i see no problem loading into a browser locally.

but i also see you're publishing for flash 7. if this is a progressive jpg it won't load with anything less than flash player 8.
kglad
Community Expert
Community Expert
August 31, 2007
post a link to your fla and jpg.
Participant
August 31, 2007
Here you are:

FLA
Image

Thanks for looking at this.
Participant
August 31, 2007
I checked those things, I even tried deleting the .jpg off the end (because I'm on a mac, and macs can sometimes do weird and wonderful things to filenames) but it didn't change anything.

I was exporting it as 7, I changed it to 8, but still no dice there.
kglad
Community Expert
Community Expert
August 31, 2007
is your jpg file name preview.jpg or is it Preview.jpg or PREVIEW.JPG some other variant of preview.jpg?

and you're sure you're publishing for flash 8, not earlier?
Participant
August 31, 2007
You are getting undefined because the flash is designed to be embedded with input variables. These variables are loaded and functioning, because they load the flv just fine, just not the jpeg.

Just so you know, I've attempted loading external files in test files as well, there has to be something wrong with my method, but it's the method I've been using for years and it's always worked just fine before Flash 8
Inspiring
August 28, 2007
trace out the path for your preview.jpg. I kept getting undefined. This would definitely cause the preview.jpg file to not appear.
funkysoul
Inspiring
August 12, 2007
Could it be that the files are being loaded into the same level?
Participant
August 26, 2007
Hi, sorry about the delay, I was moving, so had no internet access. I tried what you suggested but to no avail. I'm getting quite close to the deadline now so I'll just upload the fla for you to look at (if you don't mind.)

Link

The code is on the 3rd key-frame (actions layer, root time line). Everything else with the movie works perfectly, variables are loading in with the embed just fine (otherwise the flv wouldn't be loading.) I'm really confounded on this one. Here's the code I'm using to embed the movie:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="460" height="345">
<param name="movie" value="media/video.swf?category=interviews&item=ray" />
<param name="quality" value="high" />
<param name="bgcolor" VALUE="#000000">
<embed src="media/video.swf?category=interviews&item=ray" quality="high" pluginspage=" http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="460" height="345"></embed>
</object>

The image loads fine in flash player (assuming you change the code so the movie can receive the embed variables) but once you embed it in an html document, the preview image never shows up.

If you need any more info to help solve this, let me know..

Thanks,
JP