Skip to main content
Participant
September 13, 2007
Question

Loading mov ie

  • September 13, 2007
  • 2 replies
  • 219 views
I want to load a swf file from a sub folder in a standalone machine. What can I do?

I write the following code:
submenuno=i+1; // i have been already initialized
button.zz = " http://link"+submenuno+"\\"+mName;

button.onRelease = function() {

_global.y_co=this.yy;

loadMovieNum(this.zz,12);
};
This topic has been closed for replies.

2 replies

ganaruAuthor
Participant
September 14, 2007
The variables 'submenuno' and 'mName' is defined before the 'button.zz' is assigned. I know there is no problem. I also experiment this using trace command.

So please tell me, what is the code for loading movie from different folder/ or a subfolder.
kglad
Community Expert
Community Expert
September 14, 2007
well, i don't know the correct path to the swf you're trying to load, but your code should look something like:

kglad
Community Expert
Community Expert
September 13, 2007
you don't want to use http protocol in a loadMovieNum() target: remove the http:// part of that string.

also, if submenuno and/or mName are defined or updated after button.zz is assigned and before your button is released, that's not going to work.