Skip intro button trouble

Ok here’s the deal…

I have a skip intro button on my flash movie but when I press it, it keeps on playing the intro and meanwhile the site loads up behind the intro… I can’t figure out how to get the intro to stop playing and go to frame 320 (where the site beings to load). Here’s the AS I’m using so far

on (release) {
gotoAndPlay(320);
}

Any help would be HIGHLY apperciated:azn:

Thanks!

hoi
your target pahts are not right

try


on(release){
_parent.gotoAndPlay(320);
}

:wink:

now nothing happens with the button. :hangover:

is the intro in a mc or is it loaded in the the main movie?

and where is the button on the intro or on the main movie?

the intro is loaded in a mc and the button is on the main movie.

well that changes things

then you should try this


on(release){
        _parent.*yourMcNameThatHoldsTheIntro*.gotoAndPlay(320);
}

:wink:

Still don’t work ;(

I put the code you gave me in the AS on the button layer and it still wont work :nerd:

ok

you have a main movie… and you have a intro movie that gets loaded in to a target movieClip…
you should give the target movieClip an name like "introHolder"
you can give an mc a name… by selecting the empty movieClip and then in the prob window there is a textfield the whole way left… you can put the name there
Then right click the the skip intro button and select Actions in the popup menu… in the the window that opens put this code


on(release){
        _root.holder.gotoAndPlay(320);
}

if you didn’t call you mc “holder” the you have to change it in the code ^^

now it should work :wink: