uzairrahim
10-31-2006, 11:04 PM
ok this is the sitation...
i have an empty movie clip inside a component i am using following script to attach a Button from library to the movie clip...
mc_pbHolder.attachMovie(popupVar, popupVar+1, 2);
so far so good,
now when i am try to add a simple script to the button nothin happens...this is what i m trying...
mc_pbHolder.popupVar.onRelease = function(){
trace("whatever")
}
when i try mc_pbHolder.onRelease = function(){
trace("whatever")
}
it obviously adds the script to the movieclip and the button rollover effect does not work....this is not what i wont
HELP!!!!!!!!!!!!!!
i have an empty movie clip inside a component i am using following script to attach a Button from library to the movie clip...
mc_pbHolder.attachMovie(popupVar, popupVar+1, 2);
so far so good,
now when i am try to add a simple script to the button nothin happens...this is what i m trying...
mc_pbHolder.popupVar.onRelease = function(){
trace("whatever")
}
when i try mc_pbHolder.onRelease = function(){
trace("whatever")
}
it obviously adds the script to the movieclip and the button rollover effect does not work....this is not what i wont
HELP!!!!!!!!!!!!!!