Author Topic: web hosting / hotlinking?  (Read 1271 times)

0 Members and 4 Guests are viewing this topic.

88runner

  • Offline 4WD Legend
  • *****
  • Turtle Points: 756
  • Posts: 832
  • Member since May '03
  • Click me!
    • View Profile
Re: web hosting / hotlinking?
« on: Nov 17, 2005, 11:24:44 AM »
Code: [Select]
// Action script

BTNstop.visible=false;
var song = new Sound();
song.loadSound("sound/song.mp3");

BTNplay.onRelease = function(){
   this.visible=false;
   song.start();
   BTNstop.visible=true;
}

BTNstop.onRelease = function(){
   this.visible=false;
   song.stop();
   BTNplay.visible=true;
}

you'll need a button called BTNplay and one called BTNstop
your sound should ben in the sound directory

/
|--myPlayer.swf
|--sound
   |--song.mp3
« Last Edit: Nov 17, 2005, 04:00:12 PM by 88runner »
88 4runner v6,
5.29 with 35" tires,
Isuzu Rodeo rear disk brake,
t-case hand brake in near futur
solid axle'd

 
 
 
 
 

Related Topics

1 Replies
1265 Views
Last post May 13, 2002, 06:28:59 PM
by BigMike