PDA

View Full Version : what is wrong with this?


hrpremier
09-01-2003, 01:28 AM
on (rollOver) {
gotoAndPlay("_root.exphome", 2);
}

i have a mc on the main timeline called exphome. I have a button nested a coulple of mcs deep, that has this actionscript.

the mc exphome has a stop action in the first frame, but wont play when the buttonm is rolled over???

Christine
09-01-2003, 01:33 AM
does it work when you take the stop action out of the first frame of the mc?

hrpremier
09-01-2003, 01:53 AM
yeah the movie plays ok ( which i dont want it to until the button is clicked.)

Adrenaline
09-01-2003, 01:59 AM
try:
on (Release) {
_root.exphome.gotoAndPlay (2);
}

hrpremier
09-01-2003, 02:11 AM
thanks,
that worked!

Adrenaline
09-01-2003, 02:20 AM
No problem, you where using the code to goto a scene.
gotoAndPlay("Scene", frame#);