-
1. Re: How do I debug Error #1009?
kglad Jan 30, 2013 11:31 AM (in response to nikolaig)the problematic line number should follow the colon. what is 14 28?
-
2. Re: How do I debug Error #1009?
nikolaig Jan 30, 2013 11:55 AM (in response to kglad)1428 corresponds to this:
for (var i in IntroIMGS_COLLAGE.AppsIntro) -
3. Re: How do I debug Error #1009?
moccamaximum Jan 30, 2013 12:04 PM (in response to nikolaig)In my experience a lot of simple navigation problems, result in failing to understand the difference between
and
event.target and event.currentTarget.
In most circumstances , especially when you have multiple nested Objects you will go for a combination of ROLL_OVER + event.currentTarget and also set objects mouseEnabled property to false, if you don`t want them to mess with your events.
-
4. Re: How do I debug Error #1009?
kglad Jan 30, 2013 12:38 PM (in response to nikolaig)IntroIMGS_COLLAGE doesn't exist when that code executes.
-
5. Re: How do I debug Error #1009?
nikolaig Jan 30, 2013 1:22 PM (in response to kglad)but it is physically there. how can I make it sure that it does exists when the code executes?
-
6. Re: How do I debug Error #1009?
nikolaig Jan 30, 2013 3:28 PM (in response to nikolaig)This was the code for the button which navigated out of the set of frames with "IntroIMGS_COLLAGE.AppsIntro"
IntroIMGS_COLLAGE.AppsIntro.coolingreflectionsIntro_btn.addEventListener(MouseEvent.CLICK, CoolingReflectionsIntro_PopUp);
function CoolingReflectionsIntro_PopUp(event:MouseEvent): void {
sourceVar_AppPopUpsLoader_fromPrdcts="images/app_images/original/coolingreflections_new_t l.swf";
gotoAndPlay("appPopUps_fromPrdcts");
}
I believe the MOUSE_OVER was still active because the mouse is still over an mc which was just clicked, therefore it is trying to impelment the function but the navigation already moved out of the set of frames with the specified function (because of the click).
I decided to disable this function on click and it seemed to work:
//disabling navOut_ORIGINAL_IntroIMGS_COLLAGE by removeEventListener
IntroIMGS_COLLAGE.AppsIntro.removeEventListener(MouseEvent.MOUSE_OUT, navOut_ORIGINAL_IntroIMGS_COLLAGE);
Please let me know if it is a right way to do things or other method/s would be more preferable?
-
7. Re: How do I debug Error #1009?
kglad Jan 30, 2013 3:38 PM (in response to nikolaig)this works in more situations:
function navOut_ORIGINAL_IntroIMGS_COLLAGE(e:MouseEvent):void
{if(IntrolIMGS_COLLAGE){
for (var i in IntroIMGS_COLLAGE.AppsIntro)
{
//tween out all icons to a normal state
TweenMax.to(IntroIMGS_COLLAGE.AppsIntro[i], .5, {alpha: 1, blurFilter:{blurX:0, blurY:0}, colorMatrixFilter:{colorize:0x000000, amount:0, brightness:1, saturation:1}, ease:Sine.easeOut});
}
}}



