onRollOver I have an external swf. file loading on to Level 1 of my main movie. onRollout I want the external swf. file to disappear.
I accomplished this by unloading(1) the swf. onRollout. Now there are 10 other buttons aligned together with the same actions loading different external swf. My question is. Is this the best solution. thanks ron
on rollever?? i doubt it very much because the movie will have to load, lets say you have a swf thats 100kb the user will have to leave the mouse over the button while it loads, so what happens if i rollover and rollout without the swf being loaded the user wont be able to see the swf so i think its better on click than on rollover
What are you trying to do??
It’s possible, you can do it like this, but it would require that the viewer keep their mouse on the button for the movie to finish loading.
There are a few ways to do this, but I’ll show you one. You can use a script like this:[AS]on (rollOver) {
_root.createEmptyMovieClip(“emptyMC”, 1);
_root.emptyMC._x = 300;
_root.emptyMC._y = 300;
_root.emptyMC.loadMovie(“external.swf”);
}[/AS]
That will create a empty movieclip with the instance name of “emptyMC” on the maintimeline and place it on the x and y cordinates specified. It will also load the external swf into that movieclip as well.
Now to unload the movie on rollOut, you would add this as well:[AS]on (rollOut) {
_root.emptyMC.removeMovieClip();
}[/AS]
That will give you an idea so you can edit the code to be on (release) instead if you wanted.
It seems to load fast on cable.
http://rsondesign.com/test1/gus.html
this is very rough. If you go to the illustration section and rollover the first bttn to left you’ll see what im trying to. the thrid bttn is with out the unLoad and the image does not go away. There’s probly a very easy way of doing this and im just missing it. Note the illustration that pops does contain an offensive image.
yeah it loads fast on cable or dsl but what about the 56kers theres still many out there, i suggest you just make all the imaes in 1 single swf and put a action on the buttons to show each image according which button is rolled over, and make sure you preload it all shouldnt be too big, there are other options like making each button have a over state which is basically what this is
56kwho…joking. Hey thanks, grim and eg thanks for the help and script.
coalson, i am at work and the internet connection is not too good here, you have to add preloaders. i went to your site and really didnt get to see anything… just trying to help
Yeah, this a really rough version of nothing. Hence, there is no preloader. I didn’t even really plan on posting a link. But I did, so i apologize for the inconvenence. Plus I would not recommed viewing at work.
oh ok, cool, just wanted to make sure you knew