dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Getting name of instances??

  1. #1
    Senior Member
    Join Date
    Mar 2000
    Posts
    182

    Getting name of instances??

    Yo, can movieclips or instances get their name?
    And can they get name of SWF they are in?

    Example: i have 01.swf that has MC named 05a

    Can i get name 01 or 05a?

  2. #2
    Senior Member
    Join Date
    Mar 2000
    Location
    London
    Posts
    961
    Instances can get their name using the property '_name'

  3. #3
    Senior Member
    Join Date
    Mar 2000
    Posts
    182
    so move clip named ABC has this thing:

    var x = _this._name

    x = ABC

    true?

    how about SWF name where is it all?

  4. #4
    Senior Member
    Join Date
    Mar 2000
    Posts
    182
    works without _this thing

    so

    a = _name

    cool

    i still need to know SWF name ... grrrr

  5. #5
    Senior Member
    Join Date
    Mar 2001
    Posts
    384
    if you're loading a .swf in to a clip, you can address the loaded .swf by calling the MC that its loaded in to

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