Quick Question (Noob)

Im trying to get my movie to go to frame 2 when this movie clip is rolled over.

the as i have so far is

on (rollOver) {
gotoAndPlay(2);
}

When i preview, i get the following error:Error Scene=Scene 1, layer=Layer 1, frame=1:Line 3: Statement must appear within on/onClipEvent handler
gotoAndPlay(1);

Total ActionScript Errors: 1 Reported Errors: 1

Any ideas?

it because your applying those actions to a frame and not the buton instance

actually he’s applying it to a movieclip i believe

instead of on put onClipEvent

ahh yes you are right

hmm thanks guys… but there does not seem to be a rollOver command that works… if i use it with onClipEvent i get errors

Shouldn’t the on(rollover) command be on a button, not a movie clip? :-\

i figured it out… thanks