Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Thread Tools Rate Thread Display Modes
Old 08-20-2005, 02:46 PM   #1
Registered User
Join Date: Aug 2005
Posts: 3
Default Can't get my Combo box or list box to load swf files into existing ones (mt)h

i am quite new to flash mx and have been trying to get the combo box and list box components to load other swf files into the resident or host file.
say i have "jane" and "john" as values in my combo box, i want that on click of john it loads the swf file "john.swf" into the same level as the host file. please can any one help me with the actionscripts aspect of this... thank you
mtrackerbeyond is offline   Reply With Quote
Old 09-08-2005, 01:49 AM   #2
Total Rock Star!
Lienne's Avatar
Join Date: Aug 2005
Location: California
Posts: 197
Send a message via AIM to Lienne

Below is the code to do what you are asking.

//add a listener to listen for changes in the combo Box
	var box_listener:Object = new Object();
	combo_box.addEventListener("change", box_listener);

	//tell it what to happen depending on which item is selected
	box_listener.change = function() {
		var selected_item = combo_box.selectedItem;
		if (selected_item.label == "jane") {
			loadMovie ("jane.swf", 1);
		if (selected_item.label == "john") {
			loadMovie ("john.swf", 1);
Feel free to ask if you are still having trouble.
Lienne is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 12:30 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.