Button Roll over Problem

  • akiraz
  • Born
  • Born
  • akiraz
  • Posts: 2
  • Loc: NY

Post 3+ Months Ago

Hi.

I have button and a fire effect as a roll over. The fire effect is a movie itself. When I
move the cursor over the button the rollover effect works fine. But when I rollOut
it disappears. Is there any way to make the fire still visible so that it will still go on blowing
up even if I move my cursor out? Right now the fire blowing is cut in the middle of the
animation if the cursor is moved out.

Thank you in Advance.
  • suzie
  • Guru
  • Guru
  • User avatar
  • Posts: 1134
  • Loc: England

Post 3+ Months Ago

Hello,

You may have a 'stop' playing at the end of the movie. This could be in the timeline or via a script so check please.

Or,
On 'rollout'. lets say it stops at frame 20 then at 20 tell it onrollout go to frame 1, or scene1 whichever.

It could be go to frame number, play. or even label. This does of course depend on what your working with as I work with Swishmax.

Button:
Code: [ Select ]
on (press) {
  gotoAndPlay(1);
}

onFrame (1) {
  gotoAndStop("");
}

on (rollOut) {
  stop();
}
  1. on (press) {
  2.   gotoAndPlay(1);
  3. }
  4. onFrame (1) {
  5.   gotoAndStop("");
  6. }
  7. on (rollOut) {
  8.   stop();
  9. }


S
  • stev_ro
  • Beginner
  • Beginner
  • User avatar
  • Posts: 61
  • Loc: ro

Post 3+ Months Ago

Your fire effect is inside rollOver keyframe from your btn?
If so it will only play while you are with the cursor over the btn....
You have to put your fire effect on the same timeline like the button and say this to your btn : on(rollOver){fire_effect_instancename.play();}


http://www.box.net/shared/4emyao8h81 here you will find a .fla ;)
  • akiraz
  • Born
  • Born
  • akiraz
  • Posts: 2
  • Loc: NY

Post 3+ Months Ago

Thank you guys for the help.

Stev the one suggested worked out well. But with one problem:)

As soon as the playhead enters the frame containing the rollover fire_mov
it starts playing. I tried to place a stop action on frame 1 of the fire_mov. It doesn't play when the playhead enters that frame when move the cursor on the button it plays. This is what I want.

But when I roll over the second time on the button the effect doesn't play.But on the third it starts playing again.

I guess the stop action on frame1 of the rollover fire_mov makes that delay.
but I couldn't figure out any other way.

Do you have a method to achieve that result?

Thanks.
  • suzie
  • Guru
  • Guru
  • User avatar
  • Posts: 1134
  • Loc: England

Post 3+ Months Ago

Ah!

It was a flash more than a Swish question.... :roll: I had a feeling it may be and I don't 'do' Flash!

Soz!
S
  • stev_ro
  • Beginner
  • Beginner
  • User avatar
  • Posts: 61
  • Loc: ro

Post 3+ Months Ago

Have you downloaded the .fla that i posted?
Download that and see that the animation starts each time you rollOver the btn.

Maybe your animation is not finished yet when you rollOver the second time... make sure that you have a stop(); command only on the first frame of your fire_effect.

I think that in your fire_effect animation you also have a stop(); command on the last frame....delete it.
  • stev_ro
  • Beginner
  • Beginner
  • User avatar
  • Posts: 61
  • Loc: ro

Post 3+ Months Ago

Have you managed to do your animation right? Let us know....and maybe we can see it on the web :D

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 3 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.