The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.39 / 5.00 38,635 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 15,161 ViewsI'm creating a website with flex and here is what I want to have happen:
When I roll over a certain image the source should change to a new image I have on file. This works but I also want it changing back to the original image when I roll out, the code for all of this is:
//actionscript
protected function NavHome_rollOverHandler(event:MouseEvent ):void
{
NavHome.source = "NavHomeTextRollover.png";
}
protected function NavHome_rollOutHandler(event:MouseEvent)
:void
{
NavHome.source = "NavHomeText.png";
}
//mxml
<mx:Image x="222" y="240" source="NavHomeText.png" id="NavHome" rollOver="NavHome_rollOverHandler(event)
" rollOut="NavHome_rollOutHandler(event)"/
>
this causes the image to blink very rapidly until I take the mouse away.
The problem, I think, is that when it changes the source image into the Rollover version the image disappears for a moment and the program thinks I have rolled out and puts the original image back which is told to change when rolled over and it repeats that ad infinitum.
If that is in fact the problem I don't know how to fix it. I'm somewhat new at mxml coding but am very experienced with actionscript