Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with loadMovie(String, int)

Status
Not open for further replies.

goaganesha

Programmer
Dec 4, 2001
178
0
0
BE
Hi there,
Why won't this movie load?
according to the outputwindow _root.top =11

on (release) {

_root.top++;
trace(_root.top);

loadMovie ("movie.swf",_root.top);
}

When I use this code it works fine:

on (release)
{
loadMovie ("movie.swf",11);
}

So my question is: why is var _root.top not recognized in the loadMovie method?

regards, goaganesha
 
I have managed to get a similiar situation to work using:

loadMovie ("movie.swf",interger(_root.top));

It seems Flash would like assurances that you are sending in a number and not a string.

 
Thank you for your reply, gagslondon
But it still won't work
here's what I tried:
loadMovie ("movie.swf",integer(_root.top));
loadMovie ("movie.swf",Integer(_root.top));
loadMovie ("movie.swf",int(_root.top));
loadMovie ("movie.swf",Integer.parseInt(_root.top));

Maybe you can check the code again in your example where it did work?

Thanks again, Goaganesha
 
problem solved!

loadMovieNum ("movie.swf",_root.top);

regards, goaganesha

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top