FORUMS: list search recent posts

Action script to make button mouse over (Once)

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Tiaka
Action script to make button mouse over (Once)
on Nov 24, 2007 at 5:29:17 am

Hi there
Could somebody please help me in coding a button that will only play once. At the moment I have the code like this:

on (rollOver) {
getURL("pages/Me_B.html","_blank");
}

Needs something here to stop the button reactivating again when the user moves his mouse away and then back again.

I cant put a stop(); in the timeline because of the postion ot the button is at the end of the timeline.

Thanks for your help
Tiaka


Return to posts index

Doccie
Re: Action script to make button mouse over (Once)
on Dec 3, 2007 at 12:44:13 pm

Heya, is the button on the tmain timeline and does it have an instance name?

If so, put this piece of code on the main timeline.

my_btn.onRollOver = function(){
getURL("pages/Me_B.html","_blank");

delete this.onRollOver;
}

Kind regards,
Pieter


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]