Simple buttons question!

hey

Im a newbie to flash.So here it comes

I want my button to do several things.

So far it does

on (release) {
_root.contents.loadMovie(“p1.swf”);

}

How will the script look if i want to add lets say :

on (rollover) {
_root.contents.loadMovie(“square.swf”);

}

Great forum! :sure:

:m:

So you’re trying to add the actions to the same button?
[AS]on (rollOver) {
_root.contents.loadMovie(“square.swf”);
}
on (release) {
_root.contents.loadMovie(“p1.swf”);
}[/AS] :huh:

That worked!

but

on (release) {
_root.contents.loadMovie(“blink.swf”);
}
on (release) {
_root.contents.loadMovie(“s1.swf”);
}

did not work? why is that so?

Regards,
Simon

Try:[AS]on (release) {
_root.contents.loadMovie(“blink.swf”);
_root.contents.loadMovie(“s1.swf”);
}[/AS]I think you’re gonna have to load em’ on seperate levels so that the first one isn’t replaced by the second one… assuming that this is what you want. :h: