Help with flash actionscript

Discussion in 'Programming' started by Noddegamra, Sep 14, 2007.

  1. #1
    Hi,

    I have a movieclip that has a text field and a button layer. The button then has a movie clip that plays an animation on the hover state (roll over).

    When i run the SWF it's fine, the animation plays when I hover over the movieclip.

    BUT

    When I add the following code, the code works (trace data displays), but the movieclip no longer plays the animation when the mouse rolls over it.

    
    catagories.nav_fashion.onPress = function() {
    	var category_id = "fashion";
    	trace(this + " has been pressed");
    	trace(category_id + " is now the selected category");
    };
    
    Code (markup):
    Does anyone know why the animation no longer plays?
     
    Noddegamra, Sep 14, 2007 IP