dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: text field DEPTH issue..

  1. #1
    Member
    Join Date
    Mar 2002
    Posts
    90

    createTextField DEPTH issue... please read

    I have a function set up to generate a lot of text fields, but in different X & Y locations, but on the createTextField object, on the second parameter, I am forced to set a depth!

    So it keeps overwriting the depths and not showing the previously created text fields.

    Anyone know a way to override the depth and show every text field no matter what?

    Thanks
    Last edited by Crash Resistant; 02-27-2003 at 12:35 PM.

  2. #2
    Senior Member
    Join Date
    Aug 2001
    Location
    Egypt
    Posts
    332
    just create a variable, and each time you create a new textfield, increment this variable, and use it for the depth:

    Code:
    var depth = 0;
    
    function createField(tfname) {
    	depth++;
    	_root.createTextField(tfname,depth,0,0,400,20);
    }
    cheers.
    Hamza.

  3. #3
    Member
    Join Date
    Mar 2002
    Posts
    90
    Brilliant! Thank you so so so much. =)

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