Simple Flash Dropdown Menu - Action Script
Copy link to clipboard
Copied
Good Afternoon All,
I am working on a tutorial for a simple dropdown menu in flash.
I've got the buttons all taken care of but I'm getting errors in the Actionscript
Here is the first script:
on(rollOver) {
gotoAndStop("open");
}
"open" being a label
The second script is:
on(rollOver) {
gotoAndStop("closed");
}
The error I'm getting is: 1087: Syntax error: extra characters found after end of program.
Copy link to clipboard
Copied
First, where are you placing that code?... it should be on the object, not on the timeline.
Second, which version of actionscript are your Publish Settings using? It should be AS2, not AS3
Third, should that second "closed" section be using rollout instead of rollover?
Copy link to clipboard
Copied
The closed portion was placed on an invisible button so that when the user scrolled on any area outside of the buttons, only the original button showed.
The open script was placed in a layer entitled button on a button symbol (the top one)
I may have been using AS 3.
Thanks for your reply.

