0
@@ -19,7 +19,8 @@ class Rec extends Base {
0
static var playButton : SimpleButton;
0
static var countdown : TextField;
0
static var countfont : TextFormat;
0
- static var stat : TextField;
0
+ static var countclip : MovieClip;
0
+ static var soundsgood : MovieClip;
0
static var seconds : Float = 8;
0
@@ -46,7 +47,6 @@ class Rec extends Base {
0
static function startRecording(e) {
0
- stat.text = "Connecting...";
0
stopButton.visible = true;
0
recButton.visible = false;
0
Base.record(uuid + ".flv", function(ns) {
0
@@ -57,16 +57,26 @@ class Rec extends Base {
0
static function playRecording(e) {
0
- stat.text = "Playing.";
0
Base.play(uuid + ".flv");
0
+ static function reRecord(e) {
0
+ recButton.visible = true;
0
+ stopButton.visible = false;
0
+ playButton.visible = false;
0
+ countdown.setTextFormat(countfont);
0
+ countclip.visible = true;
0
+ soundsgood.visible = false;
0
static function stopRecording(e) {
0
- stat.text = "Stopped";
0
stopButton.visible = false;
0
playButton.visible = true;
0
+ countclip.visible = false;
0
+ soundsgood.visible = true;
0
static function main() {
0
@@ -141,40 +151,61 @@ class Rec extends Base {
0
-
var mcc = new MovieClip();
0
+
countclip = new MovieClip();
0
var mct = new TextField();
0
mct.setTextFormat(mcmed);
0
+
countclip.addChild(mct);
0
countdown = new TextField();
0
countdown.setTextFormat(countfont);
0
-
mcc.addChild(countdown);
0
+
countclip.addChild(countdown);
0
- flash.Lib.current.addChild(
mcc);
0
+ flash.Lib.current.addChild(
countclip);
0
var mct2 = new TextField();
0
mct2.setTextFormat(mcmed);
0
+
countclip.addChild(mct2);
0
- stat = new TextField();
0
- stat.text = "Stopped.";
0
- stat.selectable = false;
0
- flash.Lib.current.addChild(stat);
0
+ var med = new TextFormat();
0
+ var soundstxt = new TextField();
0
+ soundstxt.text = "Sounds good?";
0
+ soundstxt.width = 250;
0
+ soundstxt.height = 50;
0
+ soundstxt.setTextFormat(med);
0
+ var okLink = Base.addLink("OK, make it tweet!", function(e) {});
0
+ var noLink = Base.addLink("Nah, record it again.", reRecord);
0
+ soundsgood = new MovieClip();
0
+ soundsgood.addChild(soundstxt);
0
+ soundsgood.addChild(okLink);
0
+ soundsgood.addChild(noLink);
0
+ flash.Lib.current.addChild(soundsgood);
0
+ soundsgood.visible = false;
Comments
No one has commented yet.