I’ve created a new movieClip on the stage using the following, which works fine:
_root.object1_mc = _root.createEmptyMovieClip(“object1_mc” , _root.getNextHighestDepth());
_root.object1_mc.loadMovie(“object1.png”);
I’ve also added the following which doesnt work:
_root.object1_mc.onPress = function ()
{
trace(“pressed”);
};
Is it possible to add a onPress function to a dynamically loaded clip?
Thanks