dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: loadMovie into a Movie Clip

  1. #1
    Junior Member
    Join Date
    Aug 2001
    Posts
    16

    loadMovie into a Movie Clip

    I am new to Flash and I have a simple question. I would like to load a.swf file into a movie clip in my library that will then be placed on the main timeline. Please provide a code example to do this. Thank you

  2. #2
    Member
    Join Date
    Aug 2001
    Posts
    98
    Put the mc on the main timeline, call it holder or something. Then put an action like
    Code:
    holder.loadMovie("swf name");
    on the main timeline. Of course there are other ways.
    Fly pelican, fly! ~ Tony Montana

  3. #3
    Junior Member
    Join Date
    Aug 2001
    Posts
    16
    Tony,

    Thank you for the quick reply. I am still having some problems. so let me try again if you don't mind.

    I have a movie clip called "Main", which is then placed on the main time-line. I have a movie clip called "Quote". I want to add a .swf file to the the "Quote" movie clip. This will be the only thing in the "quote" movie clip. My ultimate goal is to be able to move the "quote" movie clip around within the "Main" movie clip.

    Can you be more specific to which move clip I apply your code?

    Again thank you

  4. #4
    Member
    Join Date
    Aug 2001
    Posts
    98
    Make sure that you defined the instance movie of the mc as Quote. Lets say that we want to load the movie "load" into this mc. Then in the frame of the main timeline, that you want the movie loaded, add this:
    Code:
    Quote.loadMovie("load.swf");
    I'm assuming though, that the Quote mc is all ready on the main timeline.

    By the way, my name isn't Tony, lol. I was quoting Pacino from Scarface.
    Fly pelican, fly! ~ Tony Montana

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