This content has been marked as final. Show 4 replies
I don't see any problem with the use of "this". duplicateMovieClip syntax is off a bit and obj+1 returns NaN. I'm also not convinced you aren't going to have a depth conflict somewhere along the way.
yeah rlc5611 - i agree, ibrubru you'd need to change the second param to a string as in: "obj"+1 - but I'm fairly sure rlc5611 is correct that you will run into depth issues using this type of method.
also it seems like an 'odd' way to create a drop shadow? how about:
thanks guys, i removed the swapdepth line and it worked.
Clbeech, is there a way to remove the dropshadow filter after another btn is clicked? I have two btns serves like a sub menu, when btn1 is clicked, then the dropshadow effect is applied, and when btn2 is clicked, while dropshadow is on btn2, btn1's shadow effect should be gone. How do you do this?
np - create an array of all of the button instance names, then within the method use a FOR loop to iterate through all of the buttons that are not the instance being clicked and set the 'filters' prop to null - in fact you could also use the array to add the method to all button instances - like this: