A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: loading mc into empty mc

  1. #1
    Junior Member
    Join Date
    Apr 2009
    Posts
    19

    loading mc into empty mc

    I did this many years ago and I tried searching for this but did not find what I was looking for. I basically have a group of buttons and I want the buttons to load movie clips into an empty mc and then have the movie clip close again when the user clicks somewhere else. Do I actually have to save the movie clips as swf files first and then load them in to the empty mc?

    Thanks!

  2. #2
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    The way you phrased this seems very AS2-ish. You don't load things into a MovieClip. You load them into a loader. You don't need a MovieClip to contain things. If your container just needs to hold things and does not need framescript or frames or dynamic properties, then use Sprite.

    If you don't want to load an external resource, then you're not "loading" anything at all.

    I think what you want to do is simply define a symbol in your library, associate it with a class, then create a new instance of that class and add it to some container.

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