OZONE Asylum
Forums
Multimedia/Animation
button hit
This page's ID:
11435
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Hey derketa, that's a commom mistake for beginner actionscripters. It takes a bit to work out where you should be putting your scripts. Steve has written a super tutorial over at the [url=http://www.gurusnetwork.com/]Guru's Network[/url] on this very issue and I highly recommend you read through it. But to save you from the immediate fustration, the scripts for button actions should be placed on the instance of the button itself, not inside the button on one of the frames. This is why flash was telling you that scripts can't be placed where you were trying to place them -- because their not meant to go there. I know it seems logical that's where you would put them, but once you gain a deeper understanding of actionscript you'll understand why scripts shouldn't be put there. Anyways, simply select the button from it's containing timeline (also known as the parent movie clip) then bring up the actionscript panel and enter the script there. Just remember, you'll need to specify an event for your script like: on([i]event[/i]) { [i]do this[/i] } where [i]event[/i] is the mouse event you want to the button to watch for and [i]do this[/i] is the code you want to execute when that event is triggered. Dead easy once you get the hang of it all. Edit: Botched the guru's link... all fixed now. =) [url=http://dracusis.deviantart.com/] [img]http://www.whatever.net.au/~cameron/files/images/ozone/ArtDecoSiggy.gif[/img] [/url] [This message has been edited by Dracusis (edited 08-09-2003).]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »