A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Loading movies within a main scene

Hybrid View

  1. #1
    Junior Member
    Join Date
    Feb 2004
    Location
    USA
    Posts
    5

    Loading movies within a main scene

    Here is my problem:

    I am creating a website in Flash MX and ideally, I have a main Scene (Main Page, Homepage, etc.) For every subsequent instance (i.e. About Page, Portfolio Page, etc.), I want to call it to the main Scene as a separate movie clip with each clip cancelling out each other as they are called. What is the best way of achieving this task?

    Any thoughts are deeply appreciated!

  2. #2
    Left-Handed Flash User mickbrit55's Avatar
    Join Date
    Nov 2003
    Location
    NJ USA
    Posts
    1,375
    Hiya

    The way I do it is to make each section a seperate swf file and then call it in using loadMovie()

    Let's say you attach the code to the buttons on your navigation system. It would look something like this :


    on (release) {
    loadMovie("porfolio.swf", "_level20");
    }


    If you make sure that ALL the sections load into the SAME level (_level20 in the example), then the new section replace the old section.

    Mick

  3. #3
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    If you use the above the correct syntax would be...
    code:

    on (release) {
    loadMovieNum("porfolio.swf", 20);
    }



    If you'd prefer to load your external movies in a container clip, along with a generic preloader in the main movie, check this...

    http://www.flashkit.com/board/showth...hreadid=456020

    If you want to add a transition between loaded movies, this...

    http://www.kirupa.com/developer/mx/p...transition.htm

  4. #4
    Junior Member
    Join Date
    Feb 2004
    Location
    USA
    Posts
    5
    Thanks mickbrit55 and oldnewbie. I implemented the code you supplied with a few manipulations and it worked smoothly. Thanks again .

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