A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Basic Question on LoadMovie

  1. #1
    Member
    Join Date
    Nov 2001
    Posts
    57

    resolved

    Hi, all.

    I've got a main movie that I want to load a small animation into. I want to be able to position the animation in various places in the main movie, to visually appear on top of the existing visuals. The position will change at each instance.

    I used this script in the main movie, in a keyframe on a separate layer:

    loadMovieNum ("animation.swf", 0);


    The animation loads and plays, but it covers up all the visuals in the main movie. I want the animation to behave more like a symbol and play WITH the main movie, not instead of it.

    I hope I'm being clear.

    Is there a way to make the animation appear as a layer in the main movie, so the rest of the movie can be seen underneath?

    Thanks for your help.


    Devon


  2. #2
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    Load Movie into empty MC:



    Load your external .swf into an empty movieclip that is sitting somewhere on the main stage:

    on (release) {
    loadMovie ("http://www.yourdomain.com/your.swf", "empty");
    }



    your.swf is your external movie
    empty is the name of your empty mc on the stage

    Make sure you name your empty mc in the instance panel.

  3. #3
    Member
    Join Date
    Nov 2001
    Posts
    57
    Originally posted by estudioworks
    Load Movie into empty MC:



    Load your external .swf into an empty movieclip that is sitting somewhere on the main stage:

    on (release) {
    loadMovie ("http://www.yourdomain.com/your.swf", "empty");
    }



    your.swf is your external movie
    empty is the name of your empty mc on the stage

    Make sure you name your empty mc in the instance panel.

    OK, I'm with you so far, but I think I've got a problem with the path. If the .swf is in the same directory, couldn't I use this code?

    loadMovie ( "animation.swf", "empty" );


    That's what I've got, but the clip isn't playing.

    Devon
    [Edited by DThomasTreadwell on 03-13-2002 at 09:43 PM]

  4. #4
    Senior Member
    Join Date
    Dec 2001
    Posts
    156
    I don't know I think there is something wrong with that code, but I don't know enough about action script to know.
    I'm trying to do the same thing and I pasted:
    on (release) {
    loadMovie ("http://www.yourdomain.com/your.swf", "empty");
    }
    into my object actions in the expert mode because you can paste it in normal mode, but if I try to switch it back to normal mode, flash says it has errors and won't let me. The movie clip won't play for me either. My code looks like this:

    on (release) {
    loadMovie ("ball.swf", "test")
    }

    ball is the name of the external .swf movie, and test is the name of my empty movie clip. When I go to test mode, my debugger says:

    Generator is not enabled for this movie. C:\DOCUME~1\owner\LOCALS~1\Temp\Movie2.swf

    Maybe this will help estudioworks
    help us figure this out.

    [Edited by karidee on 03-14-2002 at 01:22 PM]

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