I am trying to create a button using dynamic text boxes that can be updated through actionscript. Here is what I did:
First I created a movie clip with a dynamic text box in the first frame... I named the text box "buttontext". In a separate actions layer I used a setVariable Action to make buttontext equal to "DYNAMIC TEXT"
I then created a new button and dragged the text box MC into each frame, changed the alpha to 50% in the over frame and defined the hit area.
I then dragged the button onto the stage.
My problem is simple...it is not working at all. I can see the text defined by the setVariable action but it has no button properties at all. My mouse pointer is not even changing to a hand except on the very edge of the text box.
My mode of thinking was that I could have a generic button that would have button properties such as color change in the over state or whatever and the text could be quickly changed in the setVariable action.
Is there a better way of doing this? I normally just save my text as a graphic symbol and then insert that into the different button states using effects panel to make color and alpha changes. If I want to change the text of the button I just simply edit the graphic symbol and wham bam it is changed in the entire button.
That works fine but I would like to be able to do this dynamically as well. Ya' Gotta Love It!
First I created a movie clip with a dynamic text box in the first frame... I named the text box "buttontext". In a separate actions layer I used a setVariable Action to make buttontext equal to "DYNAMIC TEXT"
I then created a new button and dragged the text box MC into each frame, changed the alpha to 50% in the over frame and defined the hit area.
I then dragged the button onto the stage.
My problem is simple...it is not working at all. I can see the text defined by the setVariable action but it has no button properties at all. My mouse pointer is not even changing to a hand except on the very edge of the text box.
My mode of thinking was that I could have a generic button that would have button properties such as color change in the over state or whatever and the text could be quickly changed in the setVariable action.
Is there a better way of doing this? I normally just save my text as a graphic symbol and then insert that into the different button states using effects panel to make color and alpha changes. If I want to change the text of the button I just simply edit the graphic symbol and wham bam it is changed in the entire button.
That works fine but I would like to be able to do this dynamically as well. Ya' Gotta Love It!