Press action in graphic instances!

I got an imported round graphic and would like to add so actionscript so that when i click the graphic it will go to xxx frame.
I tried the on (press) command it said this only use in button instances.How can I make this in graphic instances??

Hello there,

What you have to do is make a invisible button ( only use keyframe on “HIT”),
and choose the size you want for the button.
Then put that button on a top of your pic…

www.filete.net

convert your graphic to a movie clip.

Yes,
you can do that 2 :wink:

www.filete.net

like Iammontoya said, convert your graphic to a movie clip, then u should be able to use

on(press){
gotoAndStop(frame);
}

convert it to a button !

I had made a round button with the frame in ‘hit’ then put over my current button but it still display “Mouse events are permitted only for button instances”.I already make a button ,why still can’t access???

Do you have the script in the wrong place? The script should be in the invisible button, not the graphic.

yes , try that…

Thanks for all your advices!! Now I can click the button already!!