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

Please Help!! There is an error in my drop down list

New Here ,
Nov 24, 2015 Nov 24, 2015

The error message shows 1120: Access of undefined property event

This is the code:

import flash.filters.GlowFilter;

var navBtnGlow: GlowFilter = new GlowFilter(0x999999, 0.8, 0, 15, 1, 2, false, false);

mcNavBar.addEventListner(MouseEvent.MOUSE_OVER, navOverF);

mcNavBar.addEventListner(MouseEvent.MOUSE_OUT, navOutF);

function navOverF (event:MouseEvent): void {

  event.target.filters = [navBtnGlow];

}   mcNavBar.setChildIndex (event.target as MovieClip, 1);

    Dropdown.gotoAndStop(mcNavBar.getChildAt (1).name);

function navOutF (event:MouseEvent): void {

  event.target.filters = [];

}

TOPICS
ActionScript
278
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
Community Expert ,
Nov 24, 2015 Nov 24, 2015

these two lines of code are misplaced:

mcNavBar.setChildIndex (event.target as MovieClip, 1);

    Dropdown.gotoAndStop(mcNavBar.getChildAt (1).name);

ie, they are not inside a listener function.  fix that.

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 ,
Nov 24, 2015 Nov 24, 2015

Thank You for helping me it means so much! Now I can finish my school project YAY ^-^

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
Community Expert ,
Nov 25, 2015 Nov 25, 2015
LATEST

you're welcome.

(p.s when using the adobe forums, please mark helpful/correct responses, if there are any.)

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