AS for a movieclip

i have a small movie clip, and now i wish to add the following actionscript to the clip:

on(release){
trace(“fine”);
}

when i do that the movieclip doesnt show it’s animation anymore, how to bypass this ?

i cannot write the trace command inside the movie clip !

Try:[AS]on (release) {
this.trace(“fine”);
}[/AS]

this way event the trace function doesnt work… i need both the animation to work and the trace function or any other function also !!!

?
Better post your fla;)

scotty(-:

Or, place this on a frame:[AS]MC_InstanceName.onRelease = function() {
trace(“fine”);
};
[/AS]Okay now I’m just guessing. :wink:

try to make this button clickable, but do not modify movie clip 1 !!!

one way to get it functioning is to remove the button instance from within the movie clip, but i’m just curious… i’ve always done my buttons this way

on (rollOver) {
	gotoAndPlay(2);
}
on (release) {
	trace("fine");
}

works;)
But if you want the onrelease action on your mc, it will override the button actions on your button inside that mc…

scotty(-: