Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

swap scroller with swf's

Status
Not open for further replies.

theogary

Programmer
Mar 3, 2003
99
US
I want ot dynamically load swf into a fixed dimension scrollpane
when my combo changes I want to load a different swf

do I use contentpath or attachmovie

I need sample code

thank you in advance
 
solution depends on the version you are using

mx, mx 2004 or 8

which one is it?
 
to get you started

assuming the labels in the combo box are the names of the swfs you want to load eg today.swf then

myListener = new Object();
myListener.change = function(eventObj) {
var eventSource = eventObj.target;
var theSelectedItem = eventSource.selectedItem;
selectedFile = theSelectedItem.label;
my_pane.contentPath = selectedFile
};
my_combo.addEventListener("change", mLyistener);
 
thanks a million. you saved me hours of frustration.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top