PDA

View Full Version : combox linking


awetch
04-04-2003, 09:51 PM
Thank you for reading this post, and thanks in advance for any assistance provided.


I was in the process of creating a combobox that would load things from my library on stage in various levels. In addition i wanted to be able to load an external swf file into layer 2 from within the combo box. However, i am unable to due that with this type of code

link.addItem("Load", new Array("http://www.Load.com/load.swf"));

It simply loads over the movie.

I dont want it to replace the movie currently running, merely to add a movie to another layer.


If anyone can assist me i would appreciate it!

thanks again for reading this post!

awetch

oldnewbie
04-06-2003, 04:11 PM
Some confusion!

You can't load an external movie on a layer. You can load it on another level, with loadMovieNum, or you can load it in an empty movie clip holder with loadMovie.

As for the combo box, you would use a Change Handler function, to load your external movie with either of the above, or simply make movie clips in your Library, visible or not when a selection is made.

awetch
04-07-2003, 10:50 PM
is there a chance you could show me some sample code. All it has to do is:

when someone chooses something from the combobox, an swf file will play right next to it. Be it in the library or another swf file.