MouseOver hide MouseOut show with FESAlphaBars effect

Posted by user565731 
MouseOver hide MouseOut show with FESAlphaBars effect
June 22, 2011 02:35PM
Howdy,

I'm running into a few errors trying to setup a MouseOver hide / MouseOut show with FESAlphaBars effect. I looked in the tutorials and searched the forums with little luck. Here's my actionscript:

// here you will see how to do the hide on mouse over
topimage.addEventListener(MouseEvent.MOUSE_OVER,doTheHide);
function doTheHide(event:MouseEvent):void {
FESAlphaBars.hide();
}

// And here we will see how to show the MC on roll out
botimage.addEventListener(MouseEvent.ROLL_OUT,doTheShow)
function doTheShow(event:MouseEvent):void {
FESAlphaBars.show()
}


Thanks for any help,
Matt
Re: MouseOver hide MouseOut show with FESAlphaBars effect
June 23, 2011 05:47AM
You opened a ticket and sent your file. We did find several problems in it. You were trying to apply two instance of flasheff on the same target which is not correct. Also the action script that you have is not correct. You can only call the show and hide methods on a flasheff instance and not on the name of the pattern.
Re: MouseOver hide MouseOut show with FESAlphaBars effect
June 23, 2011 08:49AM
Hi Kneo,

Could you show me an example of what needs to be done in order to have an image hide with the alphabars effect on mouseover and show with the same effect on mouseout?
Re: MouseOver hide MouseOut show with FESAlphaBars effect
June 24, 2011 03:18AM
Apply a flasheff instance on your image on the stage, set a show and hide effect in the panel, set the delay for the hide effect to zero in the panel, set the autoPlay for both show and hide to false in the panel and set the instance name of the flasheff to flasheffInstance on the stage.

Then add this code in the action panel:
// here you will see how to do the hide on mouse over
topimage.addEventListener(MouseEvent.MOUSE_OVER,doTheHide);
function doTheHide(event:MouseEvent):void {
flasheffInstance.hide();
}

// And here we will see how to show the MC on roll out
botimage.addEventListener(MouseEvent.ROLL_OUT,doTheShow)
function doTheShow(event:MouseEvent):void {
flasheffInstance.show()
}
//flasheffInstance is the instance name of the flasheff which is applied on your image.
Sorry, only registered users may post in this forum.

Click here to login