Skip to main content
March 20, 2008
Question

Also gettin that 1009 error

  • March 20, 2008
  • 12 replies
  • 1023 views
ok this doesnt make any since and im about to distroy my comp trying to figure this out, here my roll over and out functions

quote:


stop();

function overpdp(event:MouseEvent):void {
gotoAndStop(2);
}

function overCSUDSU(event:MouseEvent):void {
gotoAndStop(3);
}

function overredcom(event:MouseEvent):void {
gotoAndStop(4);
}

function overPSupply(event:MouseEvent):void {
gotoAndStop(5);
}


function overGateway(event:MouseEvent):void {
gotoAndStop(6);
}

function overUPS(event:MouseEvent):void {
gotoAndStop(7);
}

function out(event:MouseEvent):void {
gotoAndStop(1);
}


pdp.addEventListener(MouseEvent.MOUSE_OVER, overpdp);

CSUDSU.addEventListener(MouseEvent.MOUSE_OVER, overCSUDSU);

redcom.addEventListener(MouseEvent.MOUSE_OVER, overredcom);

PSupply.addEventListener(MouseEvent.MOUSE_OVER, overPSupply);

Gateway.addEventListener(MouseEvent.MOUSE_OVER, overGateway);

UPS.addEventListener(MouseEvent.MOUSE_OVER, overUPS);


there are my functions so on each page after words i have this

quote:

redcom.addEventListener(MouseEvent.MOUSE_OUT, out);


it works for the first two frames but after that, it shoots me those errors on the mouse out event listener, any ideas why thats not working?
This topic has been closed for replies.

12 replies

Participating Frequently
March 20, 2008
I remember helping someone a few weeks ago and this was the problem. I only saw it when he sent the fla. It's always so much easier with the file in front of you!
March 20, 2008
i figured it out, the buttons didnt convert correctly and have to be reconverted. flash wasnt reading the instance names.

thx for your help thou.
Participating Frequently
March 20, 2008
That is strange - and I have had problems with gotoAndStop before, but this doesn't seem to be your problem. It may be the way your buttons are set up on the timeline. Try making sure that each button is on its own layer and it extends out to the last frame so that they all exist throughout the movie. It's hard to say more without the fla.
March 20, 2008
frame 2
stop();
pdp.addEventListener(MouseEvent.MOUSE_OUT, out);

frame 3
stop();
CSUDSU.addEventListener(MouseEvent.MOUSE_OUT, out);
Participating Frequently
March 20, 2008
what code do you have on frames 2 and 3?
Damon Edwards
Inspiring
March 20, 2008
This isn't a 'glitch with actionscript 3', this is purely user error due to bad programming. Why don't you zip up and post your FLA so we can see what's really going on.
March 20, 2008
cant, not allowed to post these images sry, but my question is if its not a glitch, then why is the same code working on frame 2 and 3, but not 4 - 7?
Damon Edwards
Inspiring
March 20, 2008
make sure the layer the actions are on extends the length of your timeline.
Participating Frequently
March 20, 2008
On frame 1 you are calling:

redcom.addEventListener(MouseEvent.MOUSE_OVER, overredcom);

Does this mean that your redcom button is on Frame 1 aswell? If you have created 2 redcom movieclips, rename the second one to something else.

This error is due to referencing an object that does not exist. There must be an instance name conflict.
March 20, 2008
redcom has the same name on 1 and 4, the both have the same button, rename 4 and renamed it in code, and now its not reading a name at all, i think this is a glitch with actionscript 3 i might have to just use actionscript 2
Participating Frequently
March 20, 2008
Must be the gotoAndStop function then, try:

this.gotoAndStop(1);
March 20, 2008
nope didnt work.still getting that error
Participating Frequently
March 20, 2008
Try moving the out function to frame 4
March 20, 2008
below oops double post