Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2006
    Location
    Costa Rica
    Posts
    2

    Default importing a quiz

    I am really new to flash. I would like to create a flash quiz outside of a flash presentation and then import it into a different flash presentation on a slide.

    However, when I do this, the flash quiz runs through all the slides like a movie despite the stop() functions. Can I use a quiz made outside of the presentation in the presentation. If so, how? thank you very much for the help.

    Jeremy

  2. # ADS
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many
     
  3. #2
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    The loadMovie method allows you to load one .swf file into another at runtime. One problem that is often encountered with this method is the scope of timelines. If you use "_root" to define code in one movie and load it into another, the "_root" term always refers to the main timeline of the main movie and code defined with it in the loaded movie won't function. The workaround for Flash8 and later versions is the lockroot method. If you understand the scope of loaded movies, you can address it by adjusting the code for the loaded movie to account for the target path of where the movie is loaded,... either to a movieclip or a level.

    Example... code for a button in a movie...
    Code:
    myButton.onRelease=function(){
    trace("I was pressed");
    }
    If that movie is loaded into a movieclip in another movie, the code needs to account for the holder movieclip path...
    Code:
    movieClipName.loadMovie("buttons.swf");
    movieClipName.myButton.onRelease(){
    trace("I was pressed");
    }
    hope it helps
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

  4. #3
    Join Date
    Nov 2006
    Location
    Costa Rica
    Posts
    2

    Default I apply the action to the button, or the general timeline

    So, I feel a little bit like the geicko caveman here, but I apply that code to the button in the timeline I assume. Also, with the loadmovie function pull from an imported movie into my project or from the source files outside of the project. Thanks for the patience.

    Jeremy

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. HELP IMPORTING SWF
    By MURRAY CRAVEN in forum Newbies
    Replies: 0
    Last Post: 12-18-2006, 06:11 AM
  2. Problems importing .swf file
    By dredesigns in forum General Flash
    Replies: 2
    Last Post: 11-30-2005, 01:38 AM
  3. Exporting/Importing Scenes
    By Shining_Hand in forum Flash Scripting
    Replies: 1
    Last Post: 06-24-2005, 11:08 AM
  4. How do I link a button to a quiz?
    By adamsears01 in forum General Flash
    Replies: 1
    Last Post: 03-30-2005, 03:56 PM
  5. randomizing the quiz questions...
    By flashvalli_snp in forum Flash Scripting
    Replies: 3
    Last Post: 12-13-2004, 06:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial