PDA

View Full Version : newbie struggling with movie clips


juancarlospina
10-16-2002, 04:35 AM
I have a movie with 5 buttons that must display 5 movie clips from the library.

Is there a way to load/unload them dinamically or upon request(without having dragged them to the stage) in order to save some bandwidth for those not willing to view all of the 5 clips?

I´m basically trying to achieve the same effect as when opening a popup window from a browser, but entirely within flash.

Any help or links to tutorials would be greatly appreciated.

Juan Carlos

Rupert
10-16-2002, 04:45 AM
Yes there is a way to load and unload them dynamically from the library, however this will not save your viewers any bandwidth. You would need to load them in as external files movies/images (each clip in a separate .swf for instance) - this would mean they only view the data they request.

tg
10-16-2002, 03:33 PM
make each of your movieclips in your library a seperate swf file.
then in your main movie use loadMovie() action to load the movie in when the user clicks the button. this way the movie wont be downloaded until the user makes a selection.

juancarlospina
10-16-2002, 10:04 PM
Thanks guys it worked very well!

Now I´m facing a new problem: When loading the new movie, the buttons on level0 are kind of seen through the level1 movie, as if it was transparent.

This can become a big deal if the movie on level1 also includes buttons, you wouldn´t know exactly which button you´re clicking. I´m sure there has to be a property that can deactivate the buttons on level0 when the mouse is placed over level1, but I just can find it.

I´ve posted a sample of the problem on the following URL:
http://www.infomexwbt.com/sample/conceptosbasicos.html

Any help regarding this problem will be greatly appreciated.

Juan Carlos

tg
10-17-2002, 04:06 PM
if your using mx, your can set the 'enabled' property to false.