Skip to content


createTextField and removeTextField

ActionScript:
  1. createTextFieldOnce = function(){
  2.    trace("---> Text Field Created");
  3.    _root.createTextField("cMagnitude",this.getNextHighestDepth(),0,0,100,30);
  4.    cMagnitude.text = "Hello World";
  5. };
  6.  
  7. deleteTextField = function(){
  8.    trace("----> Text Field Deleted");
  9.    _root.cMagnitude.removeTextField();
  10. };
  11. createTextFieldOnce();
  12. setInterval(deleteTextField,1000);

Posted in ActionScript, Programming.

One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Homero said

    Love it.

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.