English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

basically i want to roll over a button and make another object lightup on the screen. my thought right now is when i rollover this button goto and stop on this frame in this other movie clip. when it rolls out i want it to go back to normal. does anyone know the best way to go about this so i dont make more work for myself?

2006-10-09 06:49:50 · 2 answers · asked by patrick U 1 in Computers & Internet Programming & Design

2 answers

You're dead on correct for the best way to do this :)

Create your button, and create a seperate animation for your highlight. Give your highlight an instance name (such as..."highlight"). Let's assume that the "static" portion of your animation is located on frame 1, and the active portion begins on frame 2 in the highlight mov.

give your button the instance name of "b1"

Buttons []
Animations []
Actions []

click on your actions frame

Type in:

b1.onRollOver = function() {
highlight.gotoAndPlay(2);
};

b1.onRollOut = function () {
highlight.gotoAndStop(1);
};

2006-10-09 12:14:38 · answer #1 · answered by addtheninth 2 · 0 0

look into the link I coated under. it somewhat is an academic the area the author has layed out step by making use of making use of step of remodeling into an somewhat expert cyber information superhighway information superhighway internet site making use of CSS/HTML. between the themes coated are "buttons" (definitely photos) that variety as quickly as you hover the mouse over them. it somewhat is achieved by making use of making use of turning out to be an extra desirable image with diverse transformations of what you desire on the button, then protecting off in person-friendly words the factor you pick displayed. to alter the image, the CSS definitely strikes it and leaves an identical mask in place, subsequently turning out to be a changing image.

2016-10-19 02:18:27 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers