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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stop MovieClip on Button Press?

Status
Not open for further replies.

DGTLguy

Technical User
Jul 23, 2003
125
US
i have an intro to my flash site... the problem is that the user can press the menu buttons (home, about, etc.) while the intro is playing but i can't get the intro to dissappear... they are being directed to the page they requested but the intro continues to play over top of it and at the end of the intro i have script directing it to the home page which overrides whichever button (e.g. about, contact) they chose and redirects them back to the home page...

i tried stopping the movieclip on the button press using script like...

about.onPress = function() {
_root.intro_ani.gotoAndStop(1);
}

...i placed this on the main timeline & also tried it on the button...

i thought about making the alpha of the movieclip = 0, but i think the page will still get redirected back to home no matter what button the user has pressed...

i know this may sound a little confusing but if i could get a little help i would greatly appreciate it...

the .swf can be viewed at
...if you let the intro play everything seems fine... but if you try to press a button while the intro is playing as if to skip it, things get a little haywire...
 
i knew it was something simple!... i guess i've been working on this toooo long... i forgot to give the movieclip an instance name... wow... thanks anyways
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top