A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: How to name instances

  1. #1
    Member
    Join Date
    Apr 2004
    Posts
    52

    How to name instances

    Hi,

    I've got 6 instances of a symbol in my anim and I'm trying to name each one individually. However I can't find out how, there is nothing in the properties inspector to type the name into... Am I missing something obvious or is it not possible. I need to be able to address each instance seperately as I intend to turn them on and off using AS independent of each other. If it's not possible to name them what is the best way to reference them in my script?

    Also is there any way of finding out the full name (ie _root.submovie.button) of an object? I can get a list of everything using ctrl-l but is there any way to click an object to find out about just that object.

    Thanks
    Alex

  2. #2
    Senior Member
    Join Date
    Apr 2004
    Location
    Devon UK
    Posts
    240
    Am I correct to assume that the symbols are graphic types? They dont have instance names.

    Change them to a movie clip or button type in the properties inspector and a text box showing <instance name> should appear just below it in the properties inspector.

    Now you can name them.

  3. #3
    Member
    Join Date
    Apr 2004
    Posts
    52
    thanks - again!!

    Alex

  4. #4
    Senior Member
    Join Date
    Apr 2004
    Location
    Devon UK
    Posts
    240
    Glad to help.

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