A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: get an objects name

Hybrid View

  1. #1
    Member
    Join Date
    Nov 2002
    Posts
    44

    get an objects name

    howdy!

    tak a look at my code

    code:

    _global.myObject = function(){
    trace(this._name);
    }
    dummyObject = new myObject();



    in a perfect world flash would trace "dummyObject", but it dont.
    is there any way i can get the name of an constructed object?

    TOYTOTA
    Last edited by TOYTOTA; 12-19-2003 at 09:35 AM.
    +

  2. #2
    Member
    Join Date
    Dec 2003
    Posts
    58
    Sorry, only MovieClips have a "_name" property. Plain objects have no introspection other than the "for ... in" loop.

    I'd like to be corrected on that one myself, but the answer is "No!".

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