A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: preloading movieclips

  1. #1
    Junior Member
    Join Date
    Feb 2003
    Location
    Surrey UK
    Posts
    22

    preloading movieclips

    People

    I have a flash movie and at the end of the movie i am inserting three movieclips in specific places. This is done manually in the timeline each on its own keyframe. Each mc has a preloader inside it, but the preloader does not work. how do i go about preloading these movie clips individually????

    Or do i just say on the keyframe loadmovie and call in the .swf file??
    with a preloader in that .swf file.

    If you can understand my problem then some help would be fantastic.


    Shott

  2. #2
    Senior Member
    Join Date
    Feb 2002
    Location
    Lebanon
    Posts
    573
    well..
    its better that you make each one of those mcs into a seperate swf file, then you load the files each into a host mc (empty mc in the place that you want those to be)...
    each file have a preloader at the begining.

    use the loadMovie() method to load the files.
    that's better than having three mcs in the same timeline.

  3. #3
    Junior Member
    Join Date
    Feb 2003
    Location
    Surrey UK
    Posts
    22

    how do i use a host mc

    Ive never heard of a host mc and dont really know how to go about it. I know how to load .swf file in movies. Any chance of sending me to a tutorial or showing me an example .fla file??

    Regards

    Shott

  4. #4
    Senior Member
    Join Date
    Feb 2002
    Location
    Lebanon
    Posts
    573
    a host mc is nothing but a normal empty mc.
    you do a mc (with nothing inside), then place it on the stage and give it a name (ex: "host_mc"), then:
    code:
    host_mc.loadMovie("file.swf");
    // OR
    loadMovie("file.swf", "host_mc");



    the timeline of the host_mc will be REPLACED by the timeline of the loaded swf file.

  5. #5
    Junior Member
    Join Date
    Feb 2003
    Location
    Surrey UK
    Posts
    22

    Fantastic

    Works perfectly!!! Thanks mate.

    Shott

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