Jump to content
Sign in to follow this  
Dev

How to add custom music to your rooms without making it lag

Recommended Posts

This tutorial is only for AS2.

Things you need:

1. Flash cs6

2. Any decompiler will do

For this tutorial I am going to use SoThink decompiler.

Select any room and decompile it and open it in Flash CS6

http://prntscr.com/c23e5d

You'll see a layer named 'Script Layer' edit the white frame by right-clicking on it and then click Actions

http://prntscr.com/c23evs

You should see the actionscript after clicking Actions, after that scroll down until you dont find

triggers_mc._visible = false;

When found add this code before it:

var music = new Sound(this);
music.loadSound("3.mp3", true);
music.onSoundComplete = function ()
 {
	 music.start();
}

http://prntscr.com/c23gm5

When done export the file by executing  Ctrl + Alt + Shift + S on your keyboard.

Make sure the file is a mp3 file and  also make sure it is uploaded at your /play/ directory as it will only load songs from the play directory.

Enjoy!

Edited by Dev

Share this post


Link to post
Share on other sites
Sign in to follow this  

×