
Welcome Guest
|
#1
|
|||
|
|||
|
JavaScript to Flash MP3 Player - Please Help!!!
built a very simple Flash MP3 player.
If I specify the sound file from within the SWF, everything works fine. For example, in frame 1: << MyMusic = new Sound(); MyMusic.loadSound("BTTV.mp3",true); >> But this is fairly useless to me, since I have hundreds of MP3 files, and I want to use the same flash player to play any/all of them. I want to be able to control the file that loads in the SWF via JavaScript. How Can I Do It!!! !!!??I have tried: 1. << window.document.MP3_Player.MyMusic = new Sound(); window.document.MP3_Player.myMusic.loadSound("BTTV .mp3",true); >> 2. (In an body.onLoad function in the HTML/JavaScript): << window.docuemnt.MP3_Player.SetVariable( "MY_FILE", "BTTV.mp3" ); window.docuemnt.MP3_Player.gotoAndStop(2); >> (In the 2nd frame of the SWF): << MyMusic = new Sound(); MyMusic.loadSound(MY_FILE, true); >> Nothing has worked! I am developing on a Mac. Netscape get's JavaScript errors saying that even SetVariable is not a function. I have checked and the plug in is not locked! PLEASE HELP!!! |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ctr Pop Up using Flash 8 Player & java | Insomniis | Flash 8 |
1 | 09-14-2006 03:27 AM |
| Sencesa Flash Player 1.4 | Loluga | New Softwares | 0 | 07-22-2005 01:55 PM |
| Exciting new FLV / MP3 player... | pushstream | New Softwares | 0 | 06-21-2005 09:52 PM |
| Does anyone know of a good flash mp3 player? | disbot4 | Flash MX 2004 |
5 | 10-11-2004 06:41 PM |
| Flash Mp3 Player | stricknine | Flash MX |
3 | 02-27-2003 06:04 PM |



!!!??
