I am kind of trying to use a tutorial here @ http://flashfunhouse.com/flash-actionscript-tutorials/hd-flash-drop-down-menu-tutorial-with-actionscript-3-0-97 to create the roll over effect action script i want for Air for Android.
Is this kind of thing doable in air for android?
I am running into a problem in CS5.5
When I code this below it gives me the error
“Scene 1, Layer ‘AS’, Frame 1, Line 13 1120: Access of undefined property benson_mc.”
Little Background, before hand. I checked and benson_mc is created within the navBar_mc just fine.
Also, I have a frame label of benson_mc which it was having a hard time finding which is why i recreated this benson_mc to begin with. Does air for android have issues finding frame labels embedded in MC’s?
Any help is appreciated.
Thanks
import flash.filters.GlowFilter;
import flash.events.MouseEvent;
import flash.display.MovieClip;
var navBtnGlow:GlowFilter = new GlowFilter(0x999999, 0.5, 0, 15, 1, 2, true, false);
navBar_mc.addEventListener(MouseEvent.MOUSE_OVER, navOverF);
navBar_mc.addEventListener(MouseEvent.MOUSE_OUT, navOutF);
function navOverF(event:MouseEvent):void{
event.target.filters = [navBtnGlow];
navBar_mc.setChildIndex(event.target as MovieClip, 1);
benson_mc.gotoAndStop(navBar_mc.getChildAt(1).name);
trace(“We are Rolled Over…” + navBar_mc.getChildAt(1).name);
}
function navOutF(event:MouseEvent):void{
event.target.filters = [];