Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | FLASH: Actionscript on Button not working |
From: | Laura Haynes |
Date: | Sat, 13 Jan 2001 17:23:47 GMT |
Hi there
I'm fairly new to ActionScripting - so please excuse me if this question is
silly.
I'm trying to create an online learning presentation. On my first screen, I
have a number of buttons which I want to jump to different frames - that was
simple. I just created an instance of the button and attached the following
script:
on (release) {
gotoAndStop ("Scene 1", "less1");
}
So then I got fancier. In order to address the properties of the other
'buttons' on the front scene, I supposed that I would have to wrap them in
Movie Clips. This I did and attached the following code to the button above
which was now wrapped inside an MC; and all the other buttons were wrapped
in MCs as well - with instance names done.
on (release) {
gotoAndStop ("Scene 1", "less1");
}
on (rollOver) {
setProperty ("_root.701", _alpha, 40);
}
on (rollOut) {
setProperty ("_root.701", _alpha, "100");
}
The roll actions worked, but now the release one did not.
So then I created another instance of the button, placed it on the main
timeline and attached the same code to it - to check if the fact that I had
wrapped it in an MC and was not targeting correct timeline. But still the
release action does not work - what am I doing wrong...
Cheers
Laura Haynes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre
Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]