Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Simple Flash Dropdown Menu - Action Script

New Here ,
Aug 20, 2009 Aug 20, 2009

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.

TOPICS
ActionScript
849
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 20, 2009 Aug 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 20, 2009 Aug 20, 2009
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines