Forums → Programming Forum → Quick AS2 Question
2 | 3432 |
2 | 3432 |
Hello there peeps. I've started designing an interface on flash and as normal, I've encountered some problems...
This might be a noob mistake but whatever xD
So take a look at the interface as of now:
http://megaswf.com/view/00b843d015d570622506e8d38a496166.html
When you go over the blue part with your mouse, a shadow appears under it. This part works fine.
However, when you go over of the buttons, the shadow disappears. It comes back when you roll out of the button. What I want is for the shadow to be there even if you are on the buttons.
Any help/ideas?
Oh and here is the code:
function back_over(){
this.gotoAndPlay("back_over"
}
function back_out(){
this.gotoAndPlay("back_out"
}
function back_normal(){
this.gotoAndPlay("back_normal"
}
function button_1_over(){
this.gotoAndPlay("button_1_over"
}
function button_1_out(){
this.gotoAndPlay("button_1_out"
}
function button_2_over(){
this.gotoAndPlay("button_2_over"
}
function button_2_out(){
this.gotoAndPlay("button_2_out"
}
toolbar_back.onRollOver = back_over
toolbar_back.onRollOut = back_out
button_1.onRollOver = button_1_over
button_1.onRollOut = button_1_out
button_2.onRollOver = button_2_over
button_2.onRollOut = button_2_out
How exactly is the shadow controlled? Perhaps hide the mouse, and use a custom mouse pointer?
The shadow is just a movieclip animation beneath the blue header. It extends each time you roll over the blue bar and goes back whenever you come of it.
And I don't understand how using a custom mouse would help...
You must be logged in to post a reply!