all groups > flash actionscript > may 2005 >
You're in the

flash actionscript

group:

Relative or hardcoded?: Loading MC's using loadMovie or loadMovieNum


Relative or hardcoded?: Loading MC's using loadMovie or loadMovieNum UnclePuppy
5/24/2005 12:00:00 AM
flash actionscript:
Just a quickie,
(A dumb question but please tell me the answer anyway. I promise to answer a
dumb question myself if asked.)

I'm loading a movie from a button instance. Example:

onClipEvent (load) {
loadMovieNum("library/myMC.swf", 5);
}

It works locally just fine but when I upload to my server and go to access the
file from my browser none of the external MC's will load. Why?
Must I hard code the argument? For example
loadMovieNum("http://www.MyWebSite.com/Flash/Libary/myMc.swf", 5);
Thanks for your help.
DC.
Re: Relative or hardcoded?: Loading MC's using loadMovie or loadMovieNum kglad
5/24/2005 12:00:00 AM
Re: Relative or hardcoded?: Loading MC's using loadMovie or loadMovieNum Peo
5/24/2005 12:00:00 AM

[quoted text, click to view]

I was under the impression that you had to specify the relative path to
myMC.swf from the HTML page that the loading movie is embedded in - not the
loading movie itself?

Peo

Re: Relative or hardcoded?: Loading MC's using loadMovie or loadMovieNum UnclePuppy
5/24/2005 12:00:00 AM
Thanks for your help. But it's for some reason not working. Locally it works
fine with or without the full http code. But from the server I can only see
the html elements of the page. Is there something I need to set?
Thanks,
DC
Re: Relative or hardcoded?: Loading MC's using loadMovie or loadMovieNum UnclePuppy
5/24/2005 12:00:00 AM
I'm still unclear on this issue, if anyone can help. After I included the full
http path in my code some of the MC's loaded in but others didn't. I
re-checked the URL but it was correct.
So my question is this: Is it possible to use relative coding? Or am I
missing something?
Thanks,
DC
Re: Relative or hardcoded?: Loading MC's using loadMovie or loadMovieNum kglad
5/24/2005 12:00:00 AM
Re: Relative or hardcoded?: Loading MC's using loadMovie or loadMovieNum UnclePuppy
5/24/2005 12:00:00 AM
Thank you! That really helped me out! I still have to use the full http path but at least its working now.
Re: Relative or hardcoded?: Loading MC's using loadMovie or loadMovieNum kglad
5/24/2005 12:00:00 AM
AddThis Social Bookmark Button