Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 576675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:04:22+00:00 2026-05-13T14:04:22+00:00

I created a movieclip and extended it with my user defined class. Now if

  • 0

I created a movieclip and extended it with my user defined class. Now if I want to use that movie clip and use the properties from the class how do i go around doing that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T14:04:22+00:00Added an answer on May 13, 2026 at 2:04 pm
    //declare a variable of appropriate type and initialize it
    var myClip:YourClipName = new YourClipName();
    //now you can use myClip as if it were a movie clip variable
    addChild(myClip);
    myClip.x = 10;
    //you can also access your custom properties/method with myClip
    myClip.myAweSomeMethod(42, "Tadaa");
    myClip.prop1 = "Some Value";
    

    update for arrays:

    //initialize
    //n : Total_number_required
    public var clips:Array = [];
    for(var i:Number = 0; i < n; i++)
    {
      var clip:YourType = new YourType();
      clip.x = 10 * i;
      clip.y = 20 * i;
      clips.push(clip);
    }
    //somewhere else in the code
    //to get the clip at the kth index
    var clip:YourType = YourType(clips[k]);
    clip.x = 100;
    clip.rotation = 90;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created a class that contains all of the movie clips from the stage.
I've created a SittingDuck.as class that extends the MovieClip class. When I instantiate SittingDuck
I created a Shortcuts class that takes in a movieclip and adds a highlight
I am having some trouble getting an interactive, animated plane created from a MovieClip
Tearing my hair out. I created an as3 class - blah.Foo, which extends MovieClip.
I have created a movieclip which have 120 frames. Now i have used multiple
Flash's MovieClip timeline is created in such way that can skip frames to preserve
How can you add data to a dynamically created MovieClip/Sprite so that the data
So I duplicate a MovieClip that is on the Stage and created through the
I'm starting a simple pong game, and I created a Paddle class that doesn't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.