How to make new tamplates for mp3rec

1. Create 2 or 3 buttons in flash with Macromedia Flash
(you can make your design or you can choose them from library)
2. Name one of them play_btn and the other stop_btn
If you make 3 buttons , name the third button pause_btn.

Add the next action script code in the actions scene 
a)for two buttons
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
song = new Sound();
var mymp3file = mp3file;

song.loadSound(mymp3file, false);

play_btn.onRelease = function() {
  song.start();
};
stop_btn.onRelease = function () {
  song.stop();
}

b)for three buttons
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
song = new Sound();
var mymp3file = mp3file;
var timePlay = 0;
song.loadSound(mymp3file, false);
play_btn.onRelease = function() {
	song.start(timePlay/1000);
	timePlay = 0;
};
stop_btn.onRelease = function() {
	timePlay = 0;
	song.stop();
};
pause_btn.onRelease = function() {
	timePlay = song.position;
	song.stop();
};
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

3. Publish document with name "template_yourname".
The template name must have the prefix "template_"
The app will insert in "template list" all html file names
from Templates directory which have this prefix.

4. Take the "object tag" html code generated from macromedia flash
This should look like:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="250" height="200" id="template_yourname" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="template_yourname.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ff0000" />
<embed src="template_yourname.swf" quality="high" bgcolor="#ff0000" width="250" height="200" name="template_gel2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

Replace "template_yourname.swf" with "template_yourname.swf?mp3file=test.mp3"

This is what you have after replacing:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="250" height="200" id="template_yourname" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="template_yourname.swf?mp3file=test.mp3" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ff0000" />
<embed src="template_yourname.swf?mp3file=test.mp3" quality="high" bgcolor="#ff0000" width="250" height="200" name="template_gel2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

Save this code in template_yourname.html.
Put template_yourname.html and template_yourname.swf in Templates
dyrectory
In "button style list" will apear an item template_yourname.html

You can replace test.mp3 file from templates directory with whatever you want.

