rollover buttons. I miss the old way...

  • jayhunt
  • Born
  • Born
  • No Avatar
  • Joined: Jul 20, 2009
  • Posts: 1
  • Status: Offline

Post July 20th, 2009, 2:08 pm

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
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 20th, 2009, 2:08 pm

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post July 23rd, 2009, 5:50 am

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');
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”

Post Information

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

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.