View Full Version : loadMovie problem (I know...sorry)
dominick100
06-13-2002, 12:09 AM
Ok. This is driving me nuts. I've read about 30 posts, and still can't fix it.
I have an swf embedded in an html page (I'm using DreamWeaver).
The swf has some buttons on it with the loadMovieNum command.
All of the movies that will load are the same exact size as the original. All load on level 1, as you have to close a new movie before you can go back to the original and open a different one.
on the buttons, I have (for example):
on (release) {
loadMovieNum("Lou-bio.swf", 1);
}
When I run it in Flash or off my HD, it all works perfectly.
However, when I preview it in DreamWeaver or post it to the web, the buttons do absolutely nothing.
I currently have every one of my Flash files in the same directory in Dreamweaver, so that can't be the problem. Is there anything that would make this work in Flash, but not Dreamweaver? Or is it my code? It's driving me nuts.
Also, what's the difference with LoadmovieNum and loadMovie? Neither work.
loadMovieNum ("nameoffile.ext", level)
loadMovie ("nameOfFile.ext", path.MC), with this one you load a file directly in a MC.
Try to make a MC "main" and load your swf in it.
It may work...
dominick100
06-13-2002, 11:22 AM
I tried that, with the same exact results. Works fine in Flash, nothing when I try in DreamWeaver.
I just want to reiterate, ALL of my swf's are in the same folder in Dreamweaver.
Is there a problem with me just putting 1 as the layer? Would it mater that I'm exporting as flash 5, but using Flash MX? Just trying to cover everything here.
Can you put the FLA in your next POST?
dominick100
06-13-2002, 12:31 PM
Here's an update.
The address is http://mywebpages.comcast.net/louscanlon and click "bios".
What's even WIERDER, is that if you go to
http://mywebpages.comcast.net/louscanlon/Flash
and click on "bios button preload" it works when you click on "Julie" or "monte" (the two that don't work are due to my stupidity and use of capital letters).
WHY would this work when you access it directly, and not when you go through bios.html?
i'm going crazy over here.
pinkaboo
06-13-2002, 01:05 PM
is your html page in the same folder as your swfs?
if you are loading stuff into a swf file and your main swf isn't in the same file as your html page you need to add some code to your html page to confirm where the main swf is located, it will then know which folder it is in and any relative paths will be just fine. ta da! (phew) (I hope)
I'm talking about the base attribute as evidenced in this snippet:
code:--------------------------------------------------------------------------------
<PARAM NAME="BASE" VALUE="url to the folder containing your main swf goes here">
--------------------------------------------------------------------------------
it just goes in the OBJECT tags with the other params
any help?
you could also just address the loaded swfs absolutely (same problem, different solution)
ie:
on (release) {
loadMovieNum("http://mywebpages.comcast.net/louscanlon/Flash/julie-bio.swf
", 1);
}
in fact, test that first because if it works you'll know straight away if that is the problem before you run off and research BASE :)
dominick100
06-13-2002, 01:30 PM
My .html page is not in the same folder as my .swfs, so that makes some sense!
So to reiterate: If I have my .html files in my root folder, and all the flash files in "flash" folder, that's not enough huh? I need this extra code? Even if the main .swf loads fine, and the problem is with the loadmovie swf's?
Unfortunately, I'm at work right now, and I don't have dreamweaver, so I can't test this till I get home. I hate it when things don't work and I have to wait to fix them.
I'll test the absolute addressing first.
Thanks, pinkaboo. you may have saved me.
pinkaboo
06-13-2002, 01:37 PM
yep I think that could well be your problem.
Unless you tell the html page where the main swf is located Flash will try to locate the external files relative to the html page, instead of relative to the main swf.
dominick100
06-13-2002, 01:42 PM
OK. I understand. I did not know that. I feel better now.
I can't wait to try this when I get home.
If it works, I will be sure to leave a post lauding your genius.
dominick100
06-14-2002, 07:22 PM
Thanks, pinkaboo.
The absolute reference did the trick. I haven't tried the addition to the html code but I will at some point, just for the hell of it.
If you want to see what you helped create:
http://mywebpages.comcast.net/louscanlon/
click bios.
It still needs some tweaking but you get the idea.
The site is still completely In Progress. Most links aren't active yet.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.