Home
> FlashEff 2.0
> Topic
MouseOver hide MouseOut show with FESAlphaBars effect
Posted by user565731
MouseOver hide MouseOut show with FESAlphaBars effect June 22, 2011 07:35PM | Registered: 13 years ago Posts: 2 |
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
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 10:47AM | Admin Registered: 15 years ago Posts: 547 |
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 01:49PM | Registered: 13 years ago Posts: 2 |
Re: MouseOver hide MouseOut show with FESAlphaBars effect June 24, 2011 08:18AM | Admin Registered: 15 years ago Posts: 547 |
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.
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, you do not have permission to post/reply in this forum.