- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
hello,
in my software all run , all except share file
i have this for connect user
<mx:Panel
id="logPanel">
<mx:Form>
<mx:FormItem label="La petite agence vous souhaite la bienvenue dans la salle de visio conference">
</mx:FormItem>
<mx:FormItem label="Login">
<mx:TextInput id="chp_login"/>
</mx:FormItem>
<mx:FormItem label="Se connecter en tant que :" direction="horizontal">
<mx:RadioButtonGroup id="userRole"/>
<mx:RadioButton id="isGuest" groupName="userRole"
label="
client" value="{UserRoles.VIEWER}" selected="true"
enabled="
true" color="#FC0505"/>
<mx:RadioButton id="isOwner" groupName="userRole"
label="
Hôte" value="{UserRoles.OWNER}"
fontFamily="
Verdana" color="#7C1414"/>
</mx:FormItem>
<mx:FormItem label="Mot de passe" enabled="{ userRole.selectedValue == UserRoles.OWNER }">
<mx:TextInput id="chp_password" displayAsPassword="true"/>
</mx:FormItem>
<mx:FormItem>
<mx:Button label="Entrer"
click="login(chp_login.text , userRole.selectedValue == UserRoles.OWNER ? chp_password.text :
null)"
color="
#34DAFE"/>
</mx:FormItem>
</mx:Form>
</mx:Panel>
this for use pods :
<!-- Container Gestionnaire de session (le bon enfin trouvé) -->
<rtc:ConnectSessionContainer
id="sessionManager"
width="
500" height="400" backgroundColor="#FFFFFF"
authenticator="
{identificator}" autoLogin="false"
roomURL="
http://connectnow.acrobat.com/lionceau01/essai"
synchronizationChange="
onSynchro( event )"
/>
<!-- PODS -->
<mx:VBox width="60%" height="100%" backgroundColor="#000000" horizontalAlign="center">
<rtc:WebCamera id="webcam" width="100%" height="100%"
/>
</mx:VBox>
<mx:VBox
width="634" height="100%" backgroundColor="#000000" right="0">
<rtc:SimpleChat id="chat" width="100%" height="40%"/>
<rtc:Note id="notes" width="100%" height="40%"/>
<rtc:FileShare id="fileManager" width="100%" height="20%"/>
<!-- ligne à finir <rtc:SharedWhiteBoard id="essai" width="50%" height="50%" /> -->
<!--<mx:VBox paddingLeft="15" fontWeight="bold" width="70%">
<mx:Label text="Microphone Volume"/>
<mx:ProgressBar id="activityProgress" minimum="0" maximum="100" mode="manual" label="" />
</mx:VBox> -->
<rtc:AudioPublisher id="audio" height="0"/>
<rtc:AudioSubscriber/>
<mx:HBox width="633" horizontalAlign="left">
<!-- scroll bar pourle volume -->
<mx:VBox paddingLeft="15" width="179">
<mx:Label text="Gain" fontWeight="bold" color="#FFFFFF"/>
<mx:HSlider id="gainSlider" minimum="0" maximum="100" width="90%" value="{audio.gain}" labels="[0,50,100]" change="onGainChange(event)" height="30"/>
<mx:Label text="EchoSuppression" color="#FFFFFF"/>
<mx:RadioButton label="Oui" selected="{audio.useEchoSuppression}" groupName="echoGroup" color="#FFFFFF"/>
<mx:RadioButton label="Non" selected="{!audio.useEchoSuppression}" groupName="echoGroup" color="#FFFFFF"/>
<mx:Button id="btn" label="Lancer le son" click="onAudioClick(event)" toggle="true"/>
</mx:VBox>
<mx:VBox paddingLeft="15" fontWeight="bold" width="443" height="168" verticalGap="12">
<mx:RadioButtonGroup id="echoGroup" itemClick="onItemClick(event)"/>
<mx:VBox paddingLeft="15" fontWeight="bold" width="361" height="49">
<mx:RadioButtonGroup id="echoGroup1" itemClick="onItemClick(event)"/>
<mx:HBox width="254" horizontalAlign="center">
<mx:Button label=" Votre dossier " click="get_URL()"/>
<mx:Button label="Déconnexion" click="logout()"/>
</mx:HBox>
<mx:LinkButton label="La petite agence" enabled="false" id="jipeg_true" click="jipeg_()" width="250" textAlign="center" height="18" color="#FFFFFF"/>
</mx:VBox>
<mx:SWFLoader width="425" height="103" source="../flash/small_pub_petite_agence.swf"/>
</mx:VBox>
</mx:HBox>
<!--
<mx:Button id="btnTalk"
label="{btnTalk.selected ? 'Stop Talking':'Start Talking'}"
toggle="true"
click="{btnTalk.selected ? audio.publish():audio.close()}"
/>
-->
<!-- only listen to the subscribers we have selected -->
<!-- what do ? how do ? i have many bug -->
<!--adel <mx:Button label="activer le son" click="_creating(true)" />
<mx:Button label="+ volume" click="gain(2)" />
<mx:Button label="- volume" click="gain(-2)" />
-->
</mx:VBox>
and this for my script
<mx:Script>
<![CDATA[
importmx.controls.Alert;
importcom.adobe.rtc.events.SessionEvent;
importcom.adobe.rtc.messaging.UserRoles;
import com.adobe.rtc.collaboration.AudioPublisher;// AudioPublisher me sert pour la gestion du microphone
//import com.adobe.rtc.collaboration; // me sert pour la gestion du microphone
//import com.adobe.rtc.clientManagers;// me sert pour la gestion du microphone
importcom.adobe.rtc.collaboration.AudioSubscriber ;
import com.adobe.rtc.events.StreamEvent;// pour le son (audio xml)
import mx.events.ItemClickEvent;//pour le son ( audio xml)
importmx.controls.Label;
import mx.core.UIComponent;// me sert pour la gestion du microphone
import flash.events.EventDispatcher// me sert pour la gestion du microphone
import flash.net.*;// ca me sert pour la redirection vers vers une page web , voir là private function get_URL():void
// debut mise a jour 130609
importcom.adobe.rtc.pods.WebCamera;
importcom.adobe.rtc.sharedManagers.UserManager;
importcom.adobe.rtc.pods.SharedWhiteBoard;
//fin mise a jour
// état de la session
private var isConnected:Boolean = false;
private var activityTimer:Timer = new Timer(30,1);// adel ???
// pour envoyé info a php ct un test
// import mx.collections.ArrayCollection;
//import mx.rpc.events.ResultEvent;
//import com.adobe.serialization.json.JSON;
//---------------------DEBUT SONNN ----------------------------------------->
/**
* When a click starts the audio, it publishes the audio through AudioPublisher.
* Another click stops the audio.
*/
private
function onAudioClick(p_evt:MouseEvent):void
{
if
( p_evt.currentTarget.label == "Start My Audio") {
audio.publish();
p_evt.currentTarget.label =
"Stop My Audio";
}
else if (p_evt.currentTarget.label == "Stop My Audio"){
audio.stop();
p_evt.currentTarget.label =
"Start My Audio";
}
}
/**
* Changes the gain by changing the gain slider value.
*/
private
function onGainChange(event:Event):void
{
audio.gain = gainSlider.value ;
}
/**
* * Controls echo suppression through the use of radio buttons.
*/
private
function onItemClick(p_evt:ItemClickEvent):void
{
if
( p_evt.currentTarget.selectedValue == "Yes") {
audio.useEchoSuppression =
true;
}
else if ( p_evt.currentTarget.selectedValue == "No") {
audio.useEchoSuppression =
false;
}
}
//--------------------FN SONNNNNN ------------------------------------------------>
// à chaque évenement de synchronisation de la session
// connexion, deconnexion, changement d'état de salon, ...
private function onSynchro( e:SessionEventvoid
{
// une fois que l'application parvient à se connecter / synchroniser
if( sessionManager.isSynchronized && !isConnected )
{
Alert.show(
"BIENVENUE A LA PETITE AGENCE");
Alert.show(
"Application connectée");
isConnected =
true;
removeChild( logPanel );
}
else if( ! sessionManager.isSynchronized && isConnected ){
// si la connexion est perdue
isConnected =
false;
/* supprime le container de session
* » il semble que dans cette version certains pods une fois déconnectés n'arrivent pas à se reconnecter.
*
* » Pour se reconnecter, il faudra donc :
* - soit forcer le rechargement de la page
* - recréer dynamiquement le gestionnaire de sessionet ses pods
*/
removeChild( sessionManager );
// affichage d'un message de sortie de salon
Alert.show(
'vous avez quitté la réunion, recharger la page pour entrer à nouveau');
}
}
private function login ( login:String, password:Stringvoid
{
identificator.userName = login;
// si le mot de passe est renseigné : connexion en tant que hôte ,
// sinon connexion en tant qu'invité
identificator.password = password ;
// lance la connexion du gestionnaire de session
sessionManager.login();
}
private function get_URL():void
{
navigateToURL(
new URLRequest('http://petite-agence.fr/client.php'), "_blank");
}
//old http://florianbrunet.comoj.com/jipeg/client.php
// deconnexion
// il semble qu'avec cette version (0.9), la plupart des pods, une fois déconnectés, ne peuvent être reconnectés.
private function logout():void
{
sessionManager.logout();
// close() est censé provoquer une déconnexion et la suppression de tous les noeuds enfants, mais ne semble pas encore marcher...
//sessionManager.close();
}
private function jipeg_():void
{
Alert.show(
'La petite agence');
jipeg_true.label=
"fffffffff";
}
/*private function sendPHPData():void
{
var objSend:Object = new Object();
var dataString:String = JSON.encode(list.dataProvider.toArray());
dataString = escape(dataString);
objSend.setTutorials = “true”;
objSend.jsonSendData = dataString;
sendData.send(objSend);
}
*/
//---------------------------------test fileshare ------------------------------------
//public function uploadFileReference(p_fileReference:FileReference):void
// fuck j'y arive pas
//----------------------------------------------------------------------------------------
/*adel public function _creating(activer_son:Boolean ):void
{
clientManagers._creating(activer_son);
}
*/
]]>
</mx:Script>
many thanks for your help ,
see you soon
Lionceau,
Views
Replies
Total Likes