flash - how to make button click event to call a function which set another label text? -


I am not an action script developer and flash designer, I just want a small action script sample which I call it my javascript code Very little to talk with

By the way, I have to put a button and a label on the flash button, when the user clicks on this button, the onclick event will set another function 'settext example 'Setteext () function for the label text Do Riwartit.
So I think the code would look something like this:

  button_click () {setText (); } Zero set text () {label1.text = 'hi'; }  

I have been successful by putting buttons and labels, I just want this code that I will write to do this work.

  var btn: movie clip; // your button reference btn.addEventListener (MouseEvent.MOUSE_DOWN, onBtnMouseDown); BTnmusDown (E: MouseEvent) on function: zero {setText (); } Function setText (): zero {label1.text = 'hi'; }  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -