-
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
-
Moderator
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.
-
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]
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|