dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: removeTextField() problem...

  1. #1
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,876

    removeTextField() problem...

    Hi guys ive got a dynamically created textfield but for some reason i cant remove it when i want to , although i CAN make it invisible (thus confirming, paths, instance names etc are correct..basically its like this:

    Code:
    //lots of irrelevant code
    
    
    trace("should remove now");
    loadingList_txt.removeTextField(); // THIS DOES NOT WORK
    loadingList_txt._visible = false;     // THIS WORKS
    ANyone got any idea why this is happening? Thanks a lot in advance...
    (btw in it just me or cant we see which users are browsing the forum now?)

    Cheers
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  2. #2
    Senior Member
    Join Date
    Sep 2000
    Location
    Pittsburgh
    Posts
    252
    Hi,

    that looks good to me, i just made a quick test and got it to work, how are you creating the textfield?

    Code:
    this.createTextField("stuff", this.getNextHighestDepth(), 100, 100, 50, 50);
    stuff.border = true;
    stuff.text = "STUFF";
    
    this.createEmptyMovieClip("btn", this.getNextHighestDepth());
    btn.beginFill(0xFF0000);
    btn.moveTo(0, 0);
    btn.lineTo(50, 0);
    btn.lineTo(50, 50);
    btn.lineTo(0, 50);
    btn.lineTo(0, 0);
    btn.endFill();
    
    btn.onRelease = function(){
    	stuff.removeTextField();
    }
    Dunc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center