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