Jump to content
Sign in to follow this  
Darkness

AS3 - Object Container... or something like that.

Recommended Posts

I have a bitmap loaded from an external source (a website). This bitmap is loaded in a class, and, when I use it in a frame, I can add it to the stage by using addChild(). This works if I just use this.addChild().However, for certain bitmaps, I've wanted to "group" them together so that I can delete that group all at once. I'd assume I'd need some sort of "container" to do this, though I'm not quite sure how to go about this.I've tried creating a blank movieclip, then using movieClip.addChild(bitmap), though this doesn't seem to work. I'm somewhat new to AS3, so ya. : PAnyway, to sum it up, I want to create some sort of container and use addChild() to add bitmaps to that container, so that later on in the code, I may delete all of the bitmaps that are inside of that container.Help would be much appreciated.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...