Changeset 9b93481ba94e38e5a94c8f74e474a3790aa4a7ce

Show
Ignore:
Timestamp:
03/07/11 14:20:32 (15 months ago)
Author:
Robin Gareus <robin@…>
Parents:
f50d604d32ac938942e5c715c1f9dc095c44e464
Children:
5677ea307610865f4d7c68e0733c1fc4dde54eee
git-committer:
Robin Gareus <robin@gareus.org> / 2011-03-07T15:20:32Z+0100
Message:

sansarmes: checkbox and size style.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • flex/sansarmes/main.mxml

    rf50d604 r9b93481  
    22<mx:Application 
    33  xmlns:mx="http://www.adobe.com/2006/mxml" 
    4     width="800" height="600" 
     4    width="800" height="620" 
    55    layout="vertical" 
    66    verticalAlign="middle" 
     
    6666                bp.enabled=false; 
    6767                bu.enabled=false; 
     68                cbNotify.enabled=false; 
    6869 
    6970                // cam & mic 
     
    118119                bp.enabled=false; 
    119120                bu.enabled=false; 
    120                 Alert.show('You do need a camera for live streaming.\nPlease connect one and then reload this Page.', 
    121                            'No camera detected', mx.controls.Alert.OK); // XXX translate 
     121                cbNotify.enabled=false; 
     122                Alert.show('Pour vous enregistrer il faut qu\'une camera et un microphonne soient connectés à votre ordinateur.Connectez une camera et rechargez cette page.  Il se peut aussi qu\'un autre programme utilise la camera. Il faut l\'interrompre avant d\'enregistrer.', 
     123                           'caméra n\'est pas détectée', mx.controls.Alert.OK); // XXX translate 
    122124            } 
    123125 
     
    216218                bp.enabled=true; 
    217219                bu.enabled=true; 
     220                cbNotify.enabled=true; 
    218221            } 
    219222 
     
    222225                    bp.enabled=false; 
    223226                    bu.enabled=false; 
     227                    cbNotify.enabled=false; 
    224228 
    225229                    tt.enabled=false; 
     
    246250                    bp.enabled=false; 
    247251                    bu.enabled=false; 
     252                    cbNotify.enabled=false; 
    248253                    startConnection(); 
    249254                } else { 
     
    264269                        Alert.show('error:\n'+event.info.code, 'Alert.', mx.controls.Alert.OK); 
    265270                        bu.enabled=false; 
     271                        cbNotify.enabled=false; 
    266272                        bp.enabled=false; 
    267273                    case "NetStream.Play.Stop": 
     
    309315 
    310316            private function onPubOK(event:ResultEvent):void { 
    311                 Alert.show('Your video entered the moderation queue and will be published after review, soon.', 
    312                            'Published.', mx.controls.Alert.OK); // XXX translate 
     317                Alert.show('Votre vidéo sera publiée aprÚs modération.', 
     318                           'Publication réussie', mx.controls.Alert.OK); // XXX translate 
    313319                bu.enabled = false; 
     320                cbNotify.enabled=false; 
    314321            } 
    315322 
    316323            private function onPubFault(event:FaultEvent):void { 
    317                 Alert.show('Publication failed. please contact robin.gareus@citu.info', 
    318                            'Publication Failed.', mx.controls.Alert.OK); // XXX translate 
     324                Alert.show('la demande de publication a échoué. Merci de contacter robin.gareus@citu.info', 
     325                           'Publication a échoué', mx.controls.Alert.OK); // XXX translate 
    319326                bu.enabled = false; 
     327                cbNotify.enabled=false; 
    320328            } 
    321329 
     
    381389        </mx:htmlText> 
    382390    </mx:Text> 
    383     <mx:Spacer height="1" /> 
    384391 
    385392    <mx:Text styleName="center"> 
     
    388395        </mx:htmlText> 
    389396    </mx:Text> 
    390     <mx:Spacer height="4" /> 
    391397 
    392398    <mx:Box direction="horizontal" width="100%"> 
    393         <mx:VBox width="388" height="440"> 
     399        <mx:VBox width="388" height="460"> 
    394400            <mx:Text width="370"> 
    395401                <mx:htmlText> 
     
    407413            <mx:Text width="370"> 
    408414                <mx:htmlText> 
    409                     <![CDATA[<b>données non publiées sur le site</b>]]> 
     415                    <![CDATA[<b>données non publiées sur le site:</b>]]> 
    410416                </mx:htmlText> 
    411417            </mx:Text> 
    412418            <mx:Box direction="horizontal" > 
    413419                <mx:Label width="130" text="Adresse email:" /> 
    414                 <mx:TextInput id="te" width="240" text="@" restrict="a-zA-Z@0-9" maxChars="128"/> 
     420                <mx:TextInput id="te" width="240" text="@" restrict="a-zA-Z@0-9._%+-" maxChars="128"/> 
    415421            </mx:Box> 
    416422            <mx:Spacer height="100%"/> 
     
    437443        </mx:VBox> 
    438444 
    439         <mx:VBox height="440"> 
     445        <mx:VBox height="460"> 
    440446            <mx:VideoDisplay id="video" width="340" height="240" /> 
    441447            <mx:ProgressBar width="340" mode="manual" label="%3%%" labelPlacement="center" visible="false" id="soundProgress"/>