How do I debug Error #1009?
I have var for all the mc's in one larger mc. This var allows me to apply MOUSE_OVER/OUT effect at once to all the mc's inside larger mc.
Everything works. Only on a click which brings a user to another set of pages I have this error (which I find strange since this set up has nothing to do with a click):
IntroIMGS_COLLAGE.AppsIntro.addEventListener(MouseEvent.MOUSE_OVER, navOver_ORIGINAL_IntroIMGS_COLLAGE);
IntroIMGS_COLLAGE.AppsIntro.addEventListener(MouseEvent.MOUSE_OUT, navOut_ORIGINAL_IntroIMGS_COLLAGE);
function navOver_ORIGINAL_IntroIMGS_COLLAGE(e:MouseEvent):void
{
//loop through all icons
for (var i in IntroIMGS_COLLAGE.AppsIntro)
{
//tween out all icons
TweenMax.to(IntroIMGS_COLLAGE.AppsIntro, .2, {alpha:.85, blurFilter:{blurX:1, blurY:1}, colorMatrixFilter:{colorize:0x000000, amount:0.25, brightness:0.65, saturation:0.7}, ease:Sine.easeOut});
}
//target = tween the icon you are over to its normal state
TweenMax.to(e.target, .5, {alpha: 1, blurFilter:{blurX:0, blurY:0}, colorMatrixFilter:{colorize:0x000000, amount:0, brightness:1.25, saturation:1}, ease:Sine.easeOut});
}
function navOut_ORIGINAL_IntroIMGS_COLLAGE(e:MouseEvent):void
{
for (var i in IntroIMGS_COLLAGE.AppsIntro)
{
//tween out all icons to a normal state
TweenMax.to(IntroIMGS_COLLAGE.AppsIntro, .5, {alpha: 1, blurFilter:{blurX:0, blurY:0}, colorMatrixFilter:{colorize:0x000000, amount:0, brightness:1, saturation:1}, ease:Sine.easeOut});
}
}
Here is the error message in the Output panel:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at acolyte68New_OpeningCollage_fla::mainsite_mc_2/navOut_ORIGINAL_IntroIMGS_COLLAGE()[acolyte68New_OpeningCollage_fla.mainsite_mc_2::frame1:1428]
I tested in a way that I replaced "IntroIMGS_COLLAGE.AppsIntro" with "IntroIMGS_COLLAGE" - then it all worked.
All array of mc's is inside the "AppsIntro" which is inside of "IntroIMGS_COLLAGE"
