how would i get a mouseover effect that calls up an external swf file to a specific position in a movie. Plz dont think im lazy here, it s just that i’ve been trying for god knows how long withoug any success.
thnx
I reread what i posted and it seems a bit confusing (even to me). Let me try and make myself clearer, what i meant was how do u load a movie to a specific x, y location. Hope this makes it clearer
you can use a script like this:
on (rollOver) {
_root.createEmptyMovieClip("emptyMC", 2);
_root.emptyMC.loadMovie("external.swf");
_root.emptyMC._x = 145;
_root.emptyMC._y = 120;
}
It will create a empty movie clip at those x and y cordinates and load your external swf into that empty movieclip.
thanx man, but I want to use this with a mouseover effect. i.e.
nefurthr help?
Look at the script again, I edited it for mouseover.
thanx man but is this advisable especially since most users have 56k modems
If you’re concerned about loading time then optimize your external movie and add a preloader to it.
The script above just handles how it’s going to be loaded, it has nothing to do with how fast it’s going to load.
i already have a preloader :>
but since u mentioned it, my movie is a tad bit fat around the waist. could u point me to a tutorial on optimization.
thnx again. :trout:
There are many factors when trying to optimize a movie so there’s a lot you’ll need to know. Here is a thread that covers a lot of it. Some of it might not apply to your setup, but hopefully some of it will.
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=17594&highlight=optimize
new problem, when i navigate to a completely different area of the movie, the clips still show up on top of everything else. how do i prevent this from happening?
I tried using the regular unload function but nothing!
To unload the movie, you would use a script like this
on (release) {
_root.emptyMC.removeMovieClip();
}
heres the site. navigate to the samples section and click the “view portfolio” button.
edit: after u run ur mouse over the text in the scroll pane (they r actually buttons) then navigate away from that section of the site, the loaded movie remains.
ok, so what’s the problem?
EDIT: just read your edit.
Make sure you apply the unload script I posted above to the buttons so that when it’s clicked, it will unload that movie.
oh thanx, i solved my problem, i used the
on (rollout)
function to empty the clip.
thnx again man.
Oh I didn’t know you wanted to be set on rollOut. Well I’m glad you solved it. =)
now im thinking that it might not be such a good idea to use mouseout for movies that are loaded from external sources cuz chances r; no one will probably see it.
so heres the deal. I think i read some where about loadingand ‘hiding’ content into one area of ur movie and calling for them when needed (in this case by using the “on mouseover” command)
edit: do u happen to know how to do this. sure u do. right? :crazy:
you can hide the movieclip by setting it’s _visible property to false, soemthing like this.
on(rollover){
_root.emptyMC._visible = false;
}
let me make myself clearer. when for example, ur on a wevsite that uses flash and ur mouse goes over an object and it causes a mini movie (if u will) to play inside the main movie instantly, this suggests that the mini movie is apart of the movie but just wasnt called for yet. How is this achieved.
note: forgive the exescive layman terminology, i couldnt think of the correct flash terms to use. (4give me im new to flash)
There are a few ways to do this, what I would do is in that “mini movie” have a empty frame at the beginning with a stop() action placed so that it doesn’t automatically play.
Now since it has a empty first frame, there is nothing showing yet. When you want it to show up, just have an action to tell that mini movie to play().
So when it goes to the next frame of that mini movie, it will now show up.