|
-
Ok, I think I am being extremely blond, but have looked everywhere and just not finding the solution. I've put the following code:
stop();
mybutton1.addEventListener(MouseEvent.CLICK, myButtonClick);
mybutton1.addEventListener(MouseEvent.ROLL_OVER, myButtonRollover);
mybutton1.addEventListener(MouseEvent.ROLL_OUT, myButtonRollout);
function myButtonClick(ev:MouseEvent):void
{
gotoAndStop(2);
}
function myButtonRollover(ev:MouseEvent):void
{
gotoAndPlay(2)
}
function myButtonRollout(ev:MouseEvent):void
{
gotoAndPlay(1)
}
Now what happens is the rollover works perfectly, and rollout works perfectly, but once I click it it doesn't stay orange anymore :-(
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|