By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,070 Members | 1,237 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,070 IT Pros & Developers. It's quick & easy.

rollOver rollOut and movement animation

P: 1
hi this proberly quite an easy proberlm but cant find any help so ill try this forum.
i have a simple button wihch fades in and out of colour with rollOver and rollOut.
im trying to make button move with on(release) but when ever it moves it comes back due to rollOut taking control.

on(rollOver){
gotoAndPlay("go2")
}
on(rollOut){
gotoAndPlay("go3")
}
on (release) {
gotoAndPlay("go1");
}

so what i think is if "go1" playing it needs to stop "go3" from playing
any help would be awsome
Nov 23 '07 #1
Share this Question
Share on Google+
1 Reply


100+
P: 149
hi this proberly quite an easy proberlm but cant find any help so ill try this forum.
i have a simple button wihch fades in and out of colour with rollOver and rollOut.
im trying to make button move with on(release) but when ever it moves it comes back due to rollOut taking control.

on(rollOver){
gotoAndPlay("go2")
}
on(rollOut){
gotoAndPlay("go3")
}
on (release) {
gotoAndPlay("go1");
}

so what i think is if "go1" playing it needs to stop "go3" from playing
any help would be awsome
It was difficult to understand your question.

I think you're saying that when you release and then rollout you don't want to go3?!

So;

Expand|Select|Wrap|Line Numbers
  1. this.selected = false;
  2. on(rollOver){
  3. if(!this.selected)
  4. gotoAndPlay("go2")
  5. }
  6. on(rollOut){
  7. if(!this.selected)
  8. gotoAndPlay("go3")
  9. }
  10. on (release) {
  11. this.selected = true;
  12. gotoAndPlay("go1");
  13. }
  14.  
Nov 25 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.