I'm having problems with my flash program and I was wondering if any of you guys could help me?
I'm moving an animated button using normal frame motion tweening and there's no problems there, but after the movement and as soon as I add event listeners, the button seems to be locked in place and no tweening afterwards is working.
Does anyone know of any solution?
I'm using AS 3 and the button is a movieClip.
Name:
Anonymous2008-02-01 6:07
I use LispFlash. I find it much easier
Name:
Anonymous2008-02-01 6:18
>>2
I would think so, given that it doesn't exists:
"Hey! Look at the program I didn't make!" :P
But seriously, aren't any Action Script 3 users here that can help?
this is the code in the frame where the button is on stage:
anime_button.addEventListener(MouseEvent.MOUSE_OVER, mouseOverButton);
anime_button.addEventListener(MouseEvent.MOUSE_OUT, mouseOutButton);
anime_button.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownButton);
anime_button.addEventListener(MouseEvent.MOUSE_UP, mouseUpButton);
anime_button.addEventListener(MouseEvent.CLICK, mouseClickButton);
function mouseOverButton(theEvent:MouseEvent)
{
anime_button.Toggle(2);
}
function mouseOutButton(theEvent:MouseEvent)
{
anime_button.Toggle(1);
}
function mouseDownButton(theEvent:MouseEvent)
{
anime_button.Toggle(3);
}
function mouseUpButton(theEvent:MouseEvent)
{
anime_button.Toggle(2);
}
function mouseClickButton(theEvent:MouseEvent)
{
anime_button.removeEventListener(MouseEvent.MOUSE_OVER, mouseOverButton);
anime_button.removeEventListener(MouseEvent.MOUSE_OUT, mouseOutButton);
anime_button.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownButton);
anime_button.removeEventListener(MouseEvent.MOUSE_UP, mouseUpButton);
anime_button.removeEventListener(MouseEvent.CLICK, mouseClickButton);
anime_button.Toggle(1);
nextMenu = "Main Menu In";
play();
}
Name:
Anonymous2008-02-01 8:10
The Toggle() just starts and stops the button animation and
resizes it as to look like a "click". When the button is clicked,
the main movie plays and the button should move off the stage,
but somehow the button will just stay in place. I have another
button that is tweened the same, but since it doesn't have the
event listeners, it moves off the stage just fine.
Name:
Anonymous2008-02-01 12:47
anime_button
WEABOO DETECTED
Name:
Anonymous2008-02-01 15:31
Anime is actually german for ``Functional"
Name:
Anonymous2008-02-01 17:11
Ubuntu is actually afican for ``I can't configure Debian.''
Name:
Anonymous2008-02-01 20:59
>>9
button? fuck, i even find output to the screen repulsive.