Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
The recorder's title can now be set via a flashvar
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickael GOETZ committed Nov 18, 2011
1 parent 957b9c0 commit a4fa905
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Main.as
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,16 @@
title_format.color = 0xAC1300;

rec_title.defaultTextFormat = title_format;
rec_title.text = 'e-Client Recorder';

if(loaderInfo.parameters.title)
{
rec_title.text = loaderInfo.parameters.title;
}
else
{
rec_title.text = 'Simple AS3 Recorder';
}

rec_title.width = stage.width;
rec_title.height = 25;
rec_title.y = 35;
Expand Down
Empty file removed README
Empty file.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#Simple AS3 Recorder#

A voice recorder in Flash AS3 language.
Allows you to record a sound, listen to it and download it (as a WAV file).

Very simple yet efficient interface with 3 buttons :

+ Record button
+ Play/Stop button
+ Download button

Every button activates when necessary (you obviously don't need a download button when you haven't recorded anything yet).

You can insert it in your web pages using the great [swfobject](http://code.google.com/p/swfobject/) javascript library like so :
```javascript
var flashVars = {
title : "My Badass Recorder"
}

swfobject.embedSWF("Simple-recorder.swf", "recorder", "320", "170", "10.0.0", null, flashVars);
```


Or you can play it old-school and use the ```<object>``` tag :
```actionscript
<object type="application/x-shockwave-flash" data="Simple-recorder.swf" width="320" height="170">
<param name="movie" value="Simple-recorder.swf" />
<param name="width" value="320" />
<param name="heigth" value="170" />
<param name="flashVars" value="title=My%20Badass%20Recorder" />
</object>
```

Binary file modified SimpleRecorder.swf
Binary file not shown.

0 comments on commit a4fa905

Please sign in to comment.