Groups | Blog | Home
all groups > flash actionscript > august 2005 >

flash actionscript : i need of help, plz.....gotoAndStop issue


LAZZZZ
8/6/2005 8:16:43 PM
hello,

im trying to create a mini-project which consists of a 3D image of a kitchen.
I basically want the (eg.) kitchen countertop to change color by the click of a
button,

[wwcbe helped me out for the most part, but it seems i still have a small
issue.

I basically have each counter top on one layer, frame1 has one counter top,
and frame2 has another. I have the action:
stop();

on each "countertop" frame.
each one being affected by a button.

for button1, i inserted:

on (release) {
gotoAndStop(1);

which should show me the countertop in frame 1, correct?

for button2:

on (release) {
gotoAndStop(2);

countertop2 shown, correct?

Well, its not working....Whats basically happening is that countertop1 is
showing, and the buttons dont do anything.

i would greatly appreciate your help.

Thanx.
digital_monkey
8/6/2005 8:39:34 PM
Try adding "_root" identifier to the gotoAndStop() method.

ie.
_root.gotoAndStop(1);

AddThis Social Bookmark Button