Skip to main content
Participant
August 20, 2009
Question

Simple Flash Dropdown Menu - Action Script

  • August 20, 2009
  • 1 reply
  • 901 views

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.

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
August 20, 2009

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?

genoMU69Author
Participant
August 20, 2009

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.