Button Script

on (release) {
_root.contents.loadMovie(“mission.swf”);
}

Im using this script on a button to load a movie clip into my web page.

Im using same script for other web pages loading. and they work.
But on this one I gotta like double click the button to load it up or click on other buttons then back to the missions button. Testing it in test mode of course.

Iam such a noobie been working on this site for like a year just never have time to get it done or get help trying to fix it and stuff.

THanks for any help!

HALO

I’ve been dealing with this too, although there shouldn’t be any reason for it. The solution for me was cleaning out my code, get rid of any unneccesary bits, replace code by dot syntax (if not so), … That worked out for me.

Is that all the code you have?

Ya thats it iam pretty sure. I had this problem like 7 mo. or so ago and someone told me to do something and it worked. But i can’t remember cause I took so much time off from messin with Flash. I got that code from this sites full flash tutorial?

THanks
HALO

Are you sure _root.contents is there when you load the movie?? Did you try to trace it?

What do you mean by tracein it? I use exactly same code for other buttons?

thanks HALO

Any help Please? Im reallly lost at what to do.

Thanks

HALO

on (release) {
trace (_root.contents);
_root.contents.loadMovie("mission.swf");
}

If this returns undefined, there’s a problem with your paths.

pom :slight_smile:

Ok thanks Alot

Ill give this a try when i get back from work

HALO