rollover buttons. I miss the old way...

  • jayhunt
  • Born
  • Born
  • jayhunt
  • Posts: 1

Post 3+ Months Ago

I am useing thikbox code to open iframes out of flash.

Code: [ Select ]
import flash.external.ExternalInterface;

button_mc.onRelease = function() {
ExternalInterface.call("tb_show",null,"http://www.google.com/?KeepThis=true&TB_iframe=true&height=365&width=640",false);
};
button_mc2.onRelease = function() {
ExternalInterface.call("tb_show",null,"http://www.google.com/?KeepThis=true&TB_iframe=true&height=365&width=640",false);
};
button_mc3.onRelease = function() {
ExternalInterface.call("tb_show",null,"http://www.google.com/?KeepThis=true&TB_iframe=true&height=365&width=640",false);
};
  1. import flash.external.ExternalInterface;
  2. button_mc.onRelease = function() {
  3. ExternalInterface.call("tb_show",null,"http://www.google.com/?KeepThis=true&TB_iframe=true&height=365&width=640",false);
  4. };
  5. button_mc2.onRelease = function() {
  6. ExternalInterface.call("tb_show",null,"http://www.google.com/?KeepThis=true&TB_iframe=true&height=365&width=640",false);
  7. };
  8. button_mc3.onRelease = function() {
  9. ExternalInterface.call("tb_show",null,"http://www.google.com/?KeepThis=true&TB_iframe=true&height=365&width=640",false);
  10. };




Now i need to make some button rollovers for my button.


I know i need to set up my timeline in the button movie clips, but how do i tell flash when i rollover button_mc3 move on the

time line.



thanks
Moderator Remark: Added [code] tags
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

so what exactly is the problem?
if you have buttons, then just edit them and add keyframes in the over , down frames and put there whatever you want.
If you're using movieclips instead of buttons, then:
Code: [ Select ]
button_mc.onRollOver = function () { this.gotoAndStop(2); }
button_mc.onRollOut = function () { this.gotoAndStop(1); }
  1. button_mc.onRollOver = function () { this.gotoAndStop(2); }
  2. button_mc.onRollOut = function () { this.gotoAndStop(1); }

And same as for a button, place a keyframe in frame 2. Or even create an animation with tweening and the you just gotoAndPlay('animationFrame');

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 4 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
 
cron
 

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