Combo Box

  • ryanbutler
  • Student
  • Student
  • No Avatar
  • Joined: Jun 21, 2005
  • Posts: 86
  • Loc: Springfield, MO
  • Status: Offline

Post July 6th, 2006, 9:07 am

Not sure if anyone can help or not...but figured I would try. I'm using software to produce CD's for my application and I'm trying to use absolute paths based off the software language to ensure my SWF is always found. So far, I can't figure out how to set a string value on the drop down list. Here's my function which loads any number of SWF's based off the value of the drop down list:

Code: [ Select ]
function droplist_function(){
    if(droplist=="test"){
    aFile=evt.target.selectedItem.data.toString();
    basePath = mdm.Application.path;
    if (basePath != undefined) {
    aFile = basePath+aFile.split("/").join("\\");
}
}
    _parent.container.loadMovie(aFile);

}
  1. function droplist_function(){
  2.     if(droplist=="test"){
  3.     aFile=evt.target.selectedItem.data.toString();
  4.     basePath = mdm.Application.path;
  5.     if (basePath != undefined) {
  6.     aFile = basePath+aFile.split("/").join("\\");
  7. }
  8. }
  9.     _parent.container.loadMovie(aFile);
  10. }


Here's the combo box code:

Code: [ Select ]
function droplist_function(){
    if(droplist=="test"){
    aFile=evt.target.selectedItem.data.toString();
    basePath = mdm.Application.path;
    if (basePath != undefined) {
    aFile = basePath+aFile.split("/").join("\\");
}
}
    _parent.container.loadMovie(aFile);

}
  1. function droplist_function(){
  2.     if(droplist=="test"){
  3.     aFile=evt.target.selectedItem.data.toString();
  4.     basePath = mdm.Application.path;
  5.     if (basePath != undefined) {
  6.     aFile = basePath+aFile.split("/").join("\\");
  7. }
  8. }
  9.     _parent.container.loadMovie(aFile);
  10. }


It's playing everything except loading in the appropriate file and I'm almost positive its because it can't get a string value off of the drop down list. If anyone has a suggestion, it would be appreciated.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 6th, 2006, 9:07 am

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 119 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.