corinne@flash
06-29-2005, 02:31 PM
Hi!
I have a movieclip that is assigned a function for the onPress event, as follows:
mc.onPress = function ()
{
//do this when mc is pressed
};
Now, the movieclip is a textfield (actually a text object created with a textObject Class) and therefore it can contain links that are supposed to be clickable. The problem is that I want to use the same textfield instance/textobject in two so called "modes".
First the movieclip needs to respond to the above onPress function, and then just as a normal textfield would. But, it seems that once I have assigned this function to the mc's onPress event I can't get rid of it, or rather get back the "default" onPress response (which in my case would be to respond to a link and open a new browser window).
How do I "default" the onPress event or override it?
Lots of thanks
I have a movieclip that is assigned a function for the onPress event, as follows:
mc.onPress = function ()
{
//do this when mc is pressed
};
Now, the movieclip is a textfield (actually a text object created with a textObject Class) and therefore it can contain links that are supposed to be clickable. The problem is that I want to use the same textfield instance/textobject in two so called "modes".
First the movieclip needs to respond to the above onPress function, and then just as a normal textfield would. But, it seems that once I have assigned this function to the mc's onPress event I can't get rid of it, or rather get back the "default" onPress response (which in my case would be to respond to a link and open a new browser window).
How do I "default" the onPress event or override it?
Lots of thanks