0 Replies Latest reply on Jan 29, 2011 3:59 PM by mitko1994

    plz help me edit this..

    mitko1994

      Hi  all, I'm not sure if this is  the right spot for this question but i  want to edit an xml flash player  so that it creates the playlist with  the name i want and not the  default. Can some please tell me how to edit this so that when the player locates songs in the folder "my_mp3s" it creates an xml playlist named

        "mymusic.xml" instead of the default "audioplaylist.xml". I tried  to edit the actions script of the player and  overwrite the changes but  it still doesnt work, here's the code plz  help. I found this script  online.

      Thanks

       

      stop();

       

      /*ALL THE BUTTONS BELOW ARE MARKED FOR EDITABLE AND DO NOT EDIT ,ALTHOUGH IF YOU KNOW WHAT YOUR DOING
      THEN YOU CAN ACTUALY EDIT ANYTHING YOU WANT TO BUT FOR THIS APP TO WORK PROPERLY ONLY EDIT THE APPROPRIATE
      ENTRIES..ONCE YOU HAVE MADE YOUR CHANGES COPY AND PASTE THIS WHOLE PAGE OF SCRIPT INTO
      THE FIRST FRAME OF THE TIMELINE LET IT OVER RIGHT THE SCRIPT THATS ALREADY THERE.
      Button text labels for XML PLAYER*/
      ///SIDE MENUE BUTTONS\\\
      btn1.buttText.buttonText.text ="DOWNLOAD FILES";///DO NOT EDIT
      btn2.buttText.buttonText.text ="SYSTEM VOLUME";///DO NOT EDIT
      btn3.buttText.buttonText.text ="EDIT XML PLAYLIST";///DO NOT EDIT
      btn4.buttText.buttonText.text ="BURN CD";///DO NOT EDIT
      btn5.buttText.buttonText.text ="CREATE FOLDER";///DO NOT EDIT
      btn6.buttText.buttonText.text ="DELETE FOLDER";///DO NOT EDIT
      btn7.buttText.buttonText.text ="OPEN CDROM";///DO NOT EDIT
      btn8.buttText.buttonText.text ="OPEN DVDROM";///DO NOT EDIT
      btn9.buttText.buttonText.text ="FTP CLIENT";///DO NOT EDIT
      btn14.buttText.buttonText.text ="VIEW PLAYLIST";///DO NOT EDIT
      btn23.buttText.buttonText.text ="INFO";///DO NOT EDIT
      btn25.buttText.buttonText.text ="HELP";///DO NOT EDIT
      btn26.buttText.buttonText.text ="MDM HELP";///DO NOT EDIT
      ///BOTTOM BTNS
      btn19.buttText.buttonText.text ="OPEN CD TRAY";///DO NOT EDIT
      btn20.buttText.buttonText.text ="CLOSE CD TRAY";///DO NOT EDIT
      btn21.buttText.buttonText.text ="OPEN DVD TRAY";///DO NOT EDIT
      btn22.buttText.buttonText.text ="CLOSE DVD TRAY";///DO NOT EDIT

       

      ///THESE ARE FUNCTIONS THAT CAN BE EDITED BUT ONLY THE ONES MARKED "YOU CAN EDIT THIS PATH" are safe to change
      ///MY DOWNLOAD FILES
      btn1.onRelease  = function() {
      mdm.Dialogs.BrowseFile.filterList = "MP3 Files|*.mp3";   
      mdm.System.exec("E:\\My Music\\");    ///Path to download file //YOU CAN EDIT THIS PATH
      }
      ////SYSTEM VOLUME///DO NOT EDIT
      btn2.onRelease  = function() {
      mdm.System.exec("sndvol32.exe");    ///System volume .exe
      }
      ////EDIT XML PLAYLIST///DO NOT EDIT
      btn3.onRelease  = function() {
      mdm.System.exec(mdm.System.Paths.programFiles+"Mgamerz\\audiolist2.xml ");    ///xml list
      }
      ////BURN CD//YOU CAN EDIT THIS PATH
      btn4.onRelease  = function() {  ///Add your path here to your burning software nero for example
      mdm.System.exec(mdm.System.Paths.programFiles+"Nero\\nero.exe");   
      }
      ////CREATE FOLDER///DO NOT EDIT
      btn5.onRelease  = function() {  
      mdm.FileSystem.makeFolderUnicode("C:\\Program Files\\Mgamerz\\Burn");    //Creates a work folder for burning mp3s
      }
      ////DELETE FOLDER///DO NOT EDIT
      btn6.onRelease  = function() { ///Deletes work folder if you want to delete it
      mdm.FileSystem.deleteFolder("C:\\Program Files\\Mgamerz\\Burn","ask", "Are you sure");       
      }
      //// OPEN CDROM//YOU CAN EDIT THIS PATH
      btn7.onRelease  = function() { ///Opens up cdrom drive change the letter to match your pc
      mdm.System.exec("I:\\");   
      }
      ////OPEN DVDROM//YOU CAN EDIT THIS PATH
      btn8.onRelease  = function() {////Opens up dvdrom drive change the letter to match your pc
      mdm.System.exec("I:\\");   
      }
      ////FTP CLIENT//YOU CAN EDIT THIS PATH
      btn9.onRelease  = function() {///File path to your ftp software (here I use front page )
      mdm.System.exec(mdm.System.Paths.programFiles+"Microsoft Office\\Office10\\Shortcut Bar\\Office\\Microsoft FrontPage");   
      }
      ///Top header buttons

       

      ////C:DRIVE///DO NOT EDIT
      btn10.onRelease  = function() {////Opens up  c:drive for browsing
      mdm.System.exec(mdm.System.Paths.programFiles+"\\");   
      }
      /*btn11.onRelease  = function() { ////Opens up D:drive for browsing
      mdm.System.exec("D:\\");    //YOU CAN EDIT THIS PATH
      }*/
      ////MY DOCUMENTS///DO NOT EDIT
      btn12.onRelease  = function() { ///Opens up my documents for browsing
      mdm.Dialogs.BrowseFile.filterList = "MP3 Files|*.mp3";
      mdm.Dialogs.BrowseFile.show("My Documents\\"); 
      }
      ////MP3 FOLDER///DO NOT EDIT
      btn13.onRelease  = function() {//main directory for mp3 files
      mdm.System.exec(mdm.System.Paths.programFiles+"Mgamerz\\my_mp3s\\");     
      }
      ////VIEW PLAYLIST///DO NOT EDIT
      btn14.onRelease  = function() {///View playlist as a text file
      mdm.System.exec(mdm.System.Paths.programFiles+"Mgamerz\\my_mp3s\\mp3.t xt");   
      }
      ////UPDATE XML FILE///DO NOT EDIT
      btn15.onRelease  = function() {///Creates xml playlist once new mp3s have been added
      mdm.System.exec(mdm.System.Paths.programFiles+"Mgamerz\\audiolist2.xml ");   
      }
      ////MINIMIZE BUTTON
      /*btn16.onRelease  = function() { //Minimizes  the application
          mdm.Application.minimize()  ///DO NOT EDIT
      }*/
      ////CLOSE BUTTON
      /*btn17.onRelease  = function() { ///Closes application
          mdm.Application.exit("ask","Are you sure you want to Exit?") ///DO NOT EDIT
      }*/
      ///SCREEN CAPTURE DEVICE///DO NOT EDIT
      btn18.onRelease  = function() {///Screen captue sofdtware
          mdm.System.exec(mdm.System.Paths.programFiles+"Mgamerz\\apps\\Capture Screen Studio\\css.exe");   
      }
      ////OPEN CDROM TRAY//YOU CAN EDIT THIS PATH
      btn19.onRelease  = function(){ 
      mdm.System.openCDTray("I");
      }
      ////CLOSE CDROM TRAY//YOU CAN EDIT THIS PATH
      btn20.onRelease  = function(){//Closes cdrom tray
      mdm.System.closeCDTray("I");       
      }
      ////OPEN DVDROM TRAY//YOU CAN EDIT THIS PATH
      btn21.onRelease  = function() {//Opens dvdrom
      mdm.System.openCDTray("H");                       
      }   
      ////CLOSE DVDROM TRAY//YOU CAN EDIT THIS PATH
      btn22.onRelease  = function() {//Closes dvdrom tray
      mdm.System.closeCDTray("H");                   
      }

       

      /*btn23.onRelease  = function() {//DO NOT EDIT
      nextFrame();                           
      }*/
      ////HELP//DO NOT EDIT   
      btn25.onRelease  = function() {//Closes dvdrom tray
      mdm.System.exec(mdm.System.Paths.programFiles+"Mgamerz\\help.exe");                              
      }
      ////MDM HELP//DO NOT EDIT   
      btn26.onRelease  = function() {//Closes dvdrom tray 
      mdm.System.exec(mdm.System.Paths.programFiles+"MDM 2.5 help file\\MDM 2.5 UserManual.chm");   
      }