PDA

View Full Version : can i put code fro a button within a movieclip?


hrpremier
09-09-2003, 08:52 PM
ive got a button that has to effect a .this variable within a movieclip.

so i gathered i had to put the code within the mc like this?

_root.websitebut.onpress = function() {
this.targetScaley= 200;}

thats the code within the mc.

am i way off target?

farafiro
09-10-2003, 07:30 AM
if u r gonna attach the code withing the MC, use thisthis.myButton.onRelease = function(){
//*********
}but if withing the root, usethis.myMc.muButton.onRelease = function(){
//*************
}