Copy link to clipboard
Copied
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 = [];
}
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Thank You for helping me it means so much! Now I can finish my school project YAY ^-^
Copy link to clipboard
Copied
you're welcome.
(p.s when using the adobe forums, please mark helpful/correct responses, if there are any.)
Find more inspiration, events, and resources on the new Adobe Community
Explore Now