Home
> FlashEff 2.0
> Topic
Cancel effect on mouseEvent?
Posted by user752106
Cancel effect on mouseEvent? June 22, 2011 04:20PM | Registered: 12 years ago Posts: 24 |
Re: Cancel effect on mouseEvent? June 22, 2011 04:20PM | Registered: 12 years ago Posts: 24 |
Re: Cancel effect on mouseEvent? June 23, 2011 10:45AM | Admin Registered: 15 years ago Posts: 547 |
Re: Cancel effect on mouseEvent? June 24, 2011 08:12PM | Registered: 12 years ago Posts: 24 |
This has NO effect whatsoever. Anything else I can try?
My problem is that the text I'm animating with the effect stays on screen if I roll out before the effect has finished animating. So I somehow have to cancel/delete/remove/interrupt the effect. But no matter whether I set the visible property of the effect or the original textfield nothing happens.
I start the effect on ROLL_OVER and want to cancel it on ROLL_OUT. Can this be done?
And funny enough I can't find anything on the removeEffect() in the documentation or online. So I suspect it's a wild guess, right?
My problem is that the text I'm animating with the effect stays on screen if I roll out before the effect has finished animating. So I somehow have to cancel/delete/remove/interrupt the effect. But no matter whether I set the visible property of the effect or the original textfield nothing happens.
I start the effect on ROLL_OVER and want to cancel it on ROLL_OUT. Can this be done?
And funny enough I can't find anything on the removeEffect() in the documentation or online. So I suspect it's a wild guess, right?
Re: Cancel effect on mouseEvent? June 24, 2011 10:10PM | Registered: 12 years ago Posts: 24 |
Re: Cancel effect on mouseEvent? June 24, 2011 10:13PM | Registered: 12 years ago Posts: 24 |
Can someone show me a simple example of how to start an effect on roll over and remove it on roll out?
I'm not using any hide effect/transition in my case. Can this be the bugger? And if, then how do I implement it?
I'm getting pretty desperate here. Anyone?
I've even been through ALL parameters and properties in a trial/error way. And none has the effect of removing the damn thing. Arrrgh.
I'm not using any hide effect/transition in my case. Can this be the bugger? And if, then how do I implement it?
I'm getting pretty desperate here. Anyone?
I've even been through ALL parameters and properties in a trial/error way. And none has the effect of removing the damn thing. Arrrgh.
Re: Cancel effect on mouseEvent? June 24, 2011 10:21PM | Registered: 12 years ago Posts: 24 |
Re: Cancel effect on mouseEvent? June 24, 2011 10:23PM | Registered: 12 years ago Posts: 24 |
Re: Cancel effect on mouseEvent? June 24, 2011 10:27PM | Registered: 12 years ago Posts: 24 |
Re: Cancel effect on mouseEvent? June 27, 2011 09:18AM | Admin Registered: 15 years ago Posts: 547 |
Did you try this:
import flash.events.MouseEvent;
fe.addEventListener(MouseEvent.ROLL_OVER, rollOverHandler)
function rollOverHandler(ev:MouseEvent):void{
fe.show()
}
fe.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler)
function rollOutHandler(ev:MouseEvent):void{
fe.removeEffect()
fe.target.visible=true
}
*fe- is the instance name of the flasheff component on the stage.
import flash.events.MouseEvent;
fe.addEventListener(MouseEvent.ROLL_OVER, rollOverHandler)
function rollOverHandler(ev:MouseEvent):void{
fe.show()
}
fe.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler)
function rollOutHandler(ev:MouseEvent):void{
fe.removeEffect()
fe.target.visible=true
}
*fe- is the instance name of the flasheff component on the stage.
Re: Cancel effect on mouseEvent? June 27, 2011 09:19AM | Admin Registered: 15 years ago Posts: 547 |
Re: Cancel effect on mouseEvent? June 28, 2011 08:34PM | Registered: 12 years ago Posts: 24 |
Re: Cancel effect on mouseEvent? June 28, 2011 10:00PM | Registered: 12 years ago Posts: 24 |
AAAAAARGH!!!!
I CAN NOT CREATE A TICKET!?????
AND I HAVEN'T BEEN ABLE TO EVER!!!
It keep giving me the error:
Unable to create a ticket. Please correct errors below and try again!
AND I HAVE FILLED OUT ALL FIELDS!?!??!? Freakin' frustrating!!!
Give me SOME way to send you a zip with code to look at.
I CAN NOT CREATE A TICKET!?????
AND I HAVEN'T BEEN ABLE TO EVER!!!
It keep giving me the error:
Unable to create a ticket. Please correct errors below and try again!
AND I HAVE FILLED OUT ALL FIELDS!?!??!? Freakin' frustrating!!!
Give me SOME way to send you a zip with code to look at.
Re: Cancel effect on mouseEvent? June 28, 2011 10:03PM | Registered: 12 years ago Posts: 24 |
And I'm sure you have issues with your database routines; this is what get pasted into the field when I continuously resend the form:
It seems I can\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'t remove the effect on roll_out. I\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'ve started a thread in the forum \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Cancel effect on mouseEvent?\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\". I\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'ve revamped the code to make a usable example that I\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'ve attached.
It\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s as if the effect randomly stays on on a roll_over (after a roll_out).
What can I do to make SURE that the effect is gone on a roll_out, so that I can apply it again on roll_over?
A LOT OF BACKSLASHES!!!
I'll try to send the form without the single quotes ...
It seems I can\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'t remove the effect on roll_out. I\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'ve started a thread in the forum \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Cancel effect on mouseEvent?\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\". I\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'ve revamped the code to make a usable example that I\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'ve attached.
It\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s as if the effect randomly stays on on a roll_over (after a roll_out).
What can I do to make SURE that the effect is gone on a roll_out, so that I can apply it again on roll_over?
A LOT OF BACKSLASHES!!!
I'll try to send the form without the single quotes ...
Re: Cancel effect on mouseEvent? June 28, 2011 10:06PM | Registered: 12 years ago Posts: 24 |
Re: Cancel effect on mouseEvent? June 29, 2011 09:38AM | Admin Registered: 15 years ago Posts: 547 |
Sorry, you do not have permission to post/reply in this forum.