A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: One function - Multiple MovieClips?

  1. #1
    Member
    Join Date
    Apr 2010
    Posts
    34

    One function - Multiple MovieClips?

    This is a question that has been haunting me for years-

    Is there a way to apply one function to several MC's?
    And how complicated is it?

  2. #2
    Senior Member
    Join Date
    Jun 2008
    Posts
    549
    It depends. Can you clarify what you are trying to achieve?

  3. #3
    Member
    Join Date
    Apr 2010
    Posts
    34
    I have multiple MC's- all the same but duplicated.
    I want to tell each one to preform an action once I click on it.
    But I don't want to make an individual EventListener and a function for each one.

  4. #4
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    You can create a class, to which you associate the mc and add the functionality.
    - The right of the People to create Flash movies shall not be infringed. -

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