Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Flash help

Name: Anonymous 2008-02-01 5:37

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: Anonymous 2008-02-01 6:07

I use LispFlash. I find it much easier

Name: Anonymous 2008-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?

Name: Anonymous 2008-02-01 6:19

No, because Flash is shit.

Name: Anonymous 2008-02-01 6:33

>>1
Post your code

Name: Anonymous 2008-02-01 7:38

Read SIFP

Name: Anonymous 2008-02-01 8:06

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: Anonymous 2008-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: Anonymous 2008-02-01 12:47

anime_button

WEABOO DETECTED

Name: Anonymous 2008-02-01 15:31

Anime is actually german for ``Functional"

Name: Anonymous 2008-02-01 17:11

Ubuntu is actually afican for ``I can't configure Debian.''

Name: Anonymous 2008-02-01 20:59

>>9
button? fuck, i even find output to the screen repulsive.

Name: Anonymous 2008-02-01 21:41

Anime is actually German for ,,λ``.

Name: Anonymous 2008-02-02 0:36

>>11

s/can't/too lazy to/

Name: Anonymous 2008-02-02 1:10

>>14
I too lazy to configure Debian.

Name: Anonymous 2008-02-02 1:24

>>15
Most Ubuntu users actually talk like that. Yeah, I don't get it either.

Name: Anonymous 2008-02-02 3:51

>>16
In ebonics it is not uncommon to drop the conjugated form of "to be" from the sentence. eg yo' momma so fat ...

Name: Anonymous 2008-02-04 4:10

LATEX

Name: Anonymous 2008-02-04 4:15

BBCode

Name: Anonymous 2008-02-04 4:15

[b][i][u][s][o][spoiler]B[sup]B[/sup]C[sub]o[sub]d[/sub][/sub]e[/spoiler][/o][/s][/u][/i][/b]

Name: Anonymous 2008-02-04 4:16

BBCode

Name: Anonymous 2009-08-16 23:08

Lain.

Don't change these.
Name: Email:
Entire Thread Thread List