Mar 3, 2006 #1 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
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
Mar 3, 2006 #2 billwatson Instructor Dec 18, 2002 2,312 CA solution depends on the version you are using mx, mx 2004 or 8 which one is it? Upvote 0 Downvote
Mar 3, 2006 #4 billwatson Instructor Dec 18, 2002 2,312 CA 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); Upvote 0 Downvote
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);
Mar 3, 2006 Thread starter #5 theogary Programmer Mar 3, 2003 99 US thanks a million. you saved me hours of frustration. Upvote 0 Downvote