1 2 Previous Next 69 Replies Latest reply on Mar 16, 2009 1:01 AM by Richard_Abbott

    error : Severity and Description Path Resource Location Creation Time     Id

    lionceau02 Level 1

      i have this error :
      Severity and Description Path Resource Location Creation Time Id
      invalid character or markup found in script block. Try surrounding your code with a CDATA block. essai/src essai.mxml Unknown 1236103965593 182


      my source is attach code


      Many thanks for your help , 


      Lionceau,

        • 1. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
          lionceau02 Level 1
          Hello ,

          I find what i have this error
          do not <<mx:canvas id="rs" width="100%" height="100%"

          must do <mx:canvas id="rs" width="100%" height="100%"


          but i have always a error , what i have this ?


          Severity and Description Path Resource Location Creation Time Id
          Element type "mx:canvas" must be followed by either attribute specifications, ">" or "/>". essai/src essai.mxml line 370 1236166570437 216







          i think the error must be here , where is she ?

          <mx:Repeater id="rp" dataProvider="{selectedUsers}">

          <mx:canvas id="rs" width="100%" height="100%"
          minHeight="200" minWidth="200"
          backgroundAlpha=".5"
          backgroundColor="gray"
          cornerRadius="12"
          borderStyle="solid"
          horizontalScrollPolicy="off" verticalScrollPolicy="off"


          ici la ligne 270 <collaboration:WebcamSubscriber webcamPublisher="{webCamPub}"
          </collaboration:WebcamSubscriber>

          width="100%" height="100%"
          publisherIDs="{[rp.currentItem.userID]}" click="onClick(event)"
          userBooted="onBooted(event)" streamChange="onCameraPause(event)"/>


          </mx:canvas>

          </mx:Repeater>










          Lionceau,
          • 2. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
            injpix Level 3
            You need some sleep! By just glancing at your code, I noticed that there are angle brackets missing and mx:Canvas needs to be declared as mx:Canvas, not mx:canvas.
            • 3. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
              lionceau02 Level 1
              yes thanks , but i have always this error :
              What ? Why?

              Severity and Description Path Resource Location Creation Time Id
              Element type "collaboration:WebcamSubscriber" must be followed by either attribute specifications, ">" or "/>". essai/src essai.mxml line 371 1236167966812 225




              remember you, my surce is :
              <mx:Repeater id="rp" dataProvider="{selectedUsers}">

              <mx:Canvas id="rs" width="100%" height="100%"
              minHeight="200" minWidth="200"
              backgroundAlpha=".5"
              backgroundColor="gray"
              cornerRadius="12"
              borderStyle="solid"
              horizontalScrollPolicy="off" verticalScrollPolicy="off">


              <collaboration:WebcamSubscriber webcamPublisher="{webCamPub}"
              </collaboration:WebcamSubscriber>

              width="100%" height="100%"
              publisherIDs="{[rp.currentItem.userID]}" click="onClick(event)"
              userBooted="onBooted(event)" streamChange="onCameraPause(event)"/>


              </mx:Canvas>

              </mx:Repeater>





              Lionceau,
              • 4. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                lionceau02 Level 1
                yes there are angle brackets missing but i don't find where put this !!!



                lionceau,
                • 5. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                  injpix Level 3
                  The code that is in bold type, is not nested in a tag.

                  </collaboration:WebcamSubscriber>

                  width="100%" height="100%"
                  publisherIDs="{[rp.currentItem.userID]}" click="onClick(event)"
                  userBooted="onBooted(event)" streamChange="onCameraPause(event)"/>

                  </mx:Canvas>
                  • 6. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                    Richard_Abbott Level 3
                    Lionceau,
                    you have
                    <collaboration:WebcamSubscriber webcamPublisher="{webCamPub}"
                    </collaboration:WebcamSubscriber>

                    width="100%" height="100%"
                    publisherIDs="{[rp.currentItem.userID]}" click="onClick(event)"
                    userBooted="onBooted(event)" streamChange="onCameraPause(event)"/>

                    Now if you look carefully you will see you have tried to close the tag _twice_, once with the </collaboration:WebcamSubscriber> tag (but in this case you have never actually closed the tag after "{webCamPub}"). And then again with the /> at the end of the snip (but this is foiled by your inclusion of the explicit close).

                    You need to check your tag nesting and closure more carefully...
                    Richard
                    • 7. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                      lionceau02 Level 1
                      yes but yes i understand you say ,i must do it :
                      <mx:Repeater id="rp" dataProvider="{selectedUsers}"




                      <mx:Canvas id="rs" width="100%" height="100%"
                      minHeight="200" minWidth="200"
                      backgroundAlpha=".5"
                      backgroundColor="gray"
                      cornerRadius="12"
                      borderStyle="solid"
                      horizontalScrollPolicy="off" verticalScrollPolicy="off">


                      <collaboration:WebcamSubscriber webcamPublisher="{webCamPub}"
                      width="100%" height="100%"
                      publisherIDs="{[rp.currentItem.userID]}" click="onClick(event)"
                      userBooted="onBooted(event)" streamChange="onCameraPause(event)" >
                      </collaboration:WebcamSubscriber>




                      </mx:Canvas>

                      </mx:Repeater>



                      but this don't change , i have ever this error , look this :


                      Severity and Description Path Resource Location Creation Time Id
                      Element type "mx:Repeater" must be followed by either attribute specifications, ">" or "/>". essai/src essai.mxml line 364 1236171755359 246




                      Lionceau,
                      • 8. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                        Richard_Abbott Level 3
                        Lionceau,
                        every time your error message is telling you exactly what is wrong! Your tag <mx:Repeater id="rp" dataProvider="{selectedUsers}" is never closed!
                        Richard
                        • 9. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                          lionceau02 Level 1
                          thanks i see ,

                          look this code :
                          <collaboration:AudioSubscriber id="audioSub" publisherIDs="{audioIds}"/>


                          <mx:Tile id="camTiles"
                          direction="horizontal"
                          height="100%"
                          width="100%"
                          alpha="0"
                          horizontalScrollPolicy="off"
                          verticalScrollPolicy="off"
                          creationComplete="onCreationComplete()"
                          horizontalGap="10" verticalGap="10">

                          <mx:Repeater id="rp" dataProvider="{selectedUsers}">




                          <mx:Canvas id="rs" width="100%" height="100%"
                          minHeight="200" minWidth="200"
                          backgroundAlpha=".5"
                          backgroundColor="gray"
                          cornerRadius="12"
                          borderStyle="solid"
                          horizontalScrollPolicy="off" verticalScrollPolicy="off">


                          <collaboration:WebcamSubscriber webcamPublisher="{webCamPub}"
                          width="100%" height="100%"
                          publisherIDs="{[rp.currentItem.userID]}" click="onClick(event)"
                          userBooted="onBooted(event)" streamChange="onCameraPause(event)">
                          </collaboration:WebcamSubscriber>





                          </mx:Canvas>

                          </mx:Repeater>
                          <!-- -->
                          </mx:Tile>


                          why i have this error ?What i must do import ?
                          I believe i miss the code !


                          Severity and Description Path Resource Location Creation Time Id
                          1067: Contrainte implicite d'une valeur du type com.adobe.rtc.collaboration:AudioPublisher vers un type sans rapport Array. essai/src essai.mxml line 346 1236172700171 262
                          1120: Accès à la propriété non définie selectedUsers. essai/src essai.mxml line 359 1236172700171 263
                          1120: Accès à la propriété non définie webCamPub. essai/src essai.mxml line 373 1236172700171 264
                          1180: Appel à une méthode qui ne semble pas définie, onBooted. essai/src essai.mxml line 376 1236172700156 260
                          1180: Appel à une méthode qui ne semble pas définie, onCameraPause. essai/src essai.mxml line 376 1236172700156 261
                          1180: Appel à une méthode qui ne semble pas définie, onClick. essai/src essai.mxml line 375 1236172700156 259
                          1180: Appel à une méthode qui ne semble pas définie, onCreationComplete. essai/src essai.mxml line 356 1236172700156 258




                          Lionceau,
                          • 10. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                            Richard_Abbott Level 3
                            Lionceau,
                            the last 4 errors (1180) are all saying the same thing - you have set an event property pointing to an event definition which you have not supplied. So for example the userBooted event is trying to find a method in your code called onBooted, but you have not written it at all. Are you at all familiar with the process of writing event handlers? If not, then check out the help documentation as this is absolutely basic to developing an application.
                            The two errors 1120 are saying something quite similar: in this case you are trying to point to a data provider of some kind, which again you have not written.
                            I suggest you take a step back from just trying to guess at code and look at some worked examples,
                            Richard
                            • 11. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                              lionceau02 Level 1
                              yes i do it , then i have just one error ,

                              Severity and Description Path Resource Location Creation Time Id
                              1067: Contrainte implicite d'une valeur du type Array vers un type sans rapport com.adobe.rtc.collaboration:WebcamPublisher. essai/src essai.mxml line 392 1236175295406 413



                              What is it ?



                              Lionceau,
                              • 12. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                Richard_Abbott Level 3
                                Lionceau,
                                the error message is saying that you have a variable of one type but the compiler is expecting a different type according to the object definition. At a guess (I know nothing about the collaboration:AudioSubscriber class) the audioIds source that you are using to fill the publisherIDs property is the wrong type. What data type does publisherIDs expect, and what data type is audioIds?
                                Once you have sorted out the data type correctly you should be a step closer. Flex can be quite particular about data type matching, which is a Good Thing on the whole,
                                Richard
                                • 13. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                  lionceau02 Level 1
                                  sorry in my topics i don't say the code

                                  it is here the error :

                                  currentSubscriber.webcamPublisher = webCamPub ;


                                  what do you think ?

                                  Lionceau,
                                  • 14. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                    Richard_Abbott Level 3
                                    Lionceau,
                                    again, what are the data types of the webcamPublisher property and of your webCamPub object? Once you see what data types they have, you will probably see why the mismatch is occurring,
                                    Richard
                                    • 15. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                      lionceau02 Level 1
                                      look my source :

                                      <![CDATA[
                                      import mx.controls.Alert;

                                      import com.adobe.rtc.events.SessionEvent; //utilisé pour les trois blocs
                                      import com.adobe.rtc.messaging.UserRoles; //utilisé pour les trois blocs
                                      import com.adobe.rtc.collaboration.AudioPublisher; // AudioPublisher me sert pour la gestion du microphone
                                      import com.adobe.rtc.collaboration.AudioSubscriber; // me sert pour choisr l' aboné écouté
                                      //import com.adobe.rtc.collaboration; // me sert pour la gestion du microphone
                                      //import com.adobe.rtc.clientManagers;// me sert pour la gestion du microphone


                                      import com.adobe.rtc.events.StreamEvent;// pour le son (audio xml)



                                      import mx.events.ItemClickEvent; //pour le son ( audio xml)
                                      import mx.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 com.adobe.rtc.components:ResizableCanvas; amettre?


                                      //debut bloc share
                                      import com.adobe.rtc.sharedManagers.descriptors.FileDescriptor;
                                      import mx.utils.UIDUtil;
                                      import mx.collections.ArrayCollection;
                                      import com.adobe.rtc.collaboration.FileSubscriber;
                                      import com.adobe.rtc.sharedManagers.UserManager;
                                      import com.adobe.rtc.messaging.NodeConfiguration;
                                      import com.adobe.rtc.events.CollectionNodeEvent;
                                      import com.adobe.rtc.collaboration.FilePublisher;
                                      import com.adobe.rtc.sharedManagers.FileManager;

                                      [Bindable]
                                      private var applicationTitle:String = "File Publisher Example";

                                      // list of managers
                                      private var _fileManager:FileManager;
                                      private var _filePublisher:FilePublisher;
                                      private var _fileSubscriber:FileSubscriber;
                                      private var _userManager:UserManager;

                                      // our datagrid dataprovider will use this collection
                                      [Bindable]
                                      private var _fileDescriptors:ArrayCollection = new ArrayCollection();

                                      // file sharing group id, it is similiar to that of folder concept
                                      private var _groupid:String = "_filePublisherExample";
                                      //fin bloc share

                                      //debut bloc camera

                                      import com.adobe.rtc.events.UserEvent;
                                      import com.adobe.rtc.events.SharedPropertyEvent;
                                      import com.adobe.rtc.events.ConnectSessionEvent;
                                      import mx.controls.Button;
                                      import com.adobe.coreUI.controls.CameraUserBar;
                                      import mx.core.UITextField;


                                      import com.adobe.rtc.events.SharedPropertyEvent;
                                      import com.adobe.rtc.sharedModel.SharedProperty;
                                      import com.adobe.rtc.collaboration.WebcamSubscriber;
                                      import mx.containers.VBox;
                                      import com.adobe.rtc.events.UserEvent;
                                      import com.adobe.rtc.sharedManagers.StreamManager ;
                                      import com.adobe.rtc.sharedManagers.descriptors.StreamDescriptor ;

                                      private var currentSubscriber:WebcamSubscriber ;
                                      private var sharedProperty:SharedProperty ;





                                      /**********************************************************
                                      * This example shows how the camera component can be used with a publisher and a
                                      * number of subscribers. The publisher has a big view while subscribers have a small view.
                                      * A shared property is used to pass the stream to the publisher's user interface.
                                      * Every user is provided with play and pause handlers.
                                      * *********************************/
                                      private function onCreationComplete():void
                                      {
                                      sessionManager.roomManager.autoPromote = true ;
                                      sessionManager.roomManager.guestsHaveToKnock = false ;

                                      sharedProperty = new SharedProperty();
                                      sharedProperty.isSessionDependent = true ;
                                      sharedProperty.sharedID = "webcamShare2" ;
                                      sharedProperty.connectSession = sessionManager ;
                                      sharedProperty.subscribe();
                                      sharedProperty.addEventListener(SharedPropertyEvent.CHANGE,onChange);
                                      sessionManager.userManager.addEventListener(UserEvent.USER_REMOVE,onUserRemove)
                                      }

                                      /**
                                      * @private
                                      */
                                      protected function onUserRemove(p_event:UserEvent):void
                                      {
                                      if ( sharedProperty.value && p_event.userDescriptor.userID == sharedProperty.value[0]) {
                                      sharedProperty.value = [] ;
                                      }
                                      }


                                      /**************
                                      * When the main big stream changes, all users can view it via the sharedProperty.
                                      *
                                      *********************/
                                      private function onChange(p_evt:SharedPropertyEvent):void
                                      {
                                      if ( currentSubscriber != null ) {
                                      clickedContainer.removeChild(currentSubscriber);
                                      currentSubscriber.close();
                                      currentSubscriber = null ;
                                      }

                                      if ( sharedProperty.value == null || sharedProperty.value.length == 0 ) {
                                      return ;
                                      }


                                      currentSubscriber = new WebcamSubscriber();
                                      currentSubscriber.connectSession = sessionManager ;
                                      currentSubscriber.subscribe();
                                      currentSubscriber.webcamPublisher = webCamPub ;
                                      currentSubscriber.publisherIDs = sharedProperty.value ;
                                      currentSubscriber.addEventListener(UserEvent.USER_BOOTED,onCleared);
                                      currentSubscriber.addEventListener(UserEvent.STREAM_CHANGE,onCameraPause);
                                      clickedContainer.addChild(currentSubscriber);
                                      invalidateDisplayList();

                                      }

                                      /************************
                                      * If the big image is stopped, clear it.
                                      *
                                      ********/
                                      private function onCleared(p_evt:UserEvent):void
                                      {
                                      if ( sessionManager.userManager.myUserRole == UserRoles.OWNER ) {
                                      sharedProperty.value = [] ;
                                      }
                                      }

                                      /***********
                                      * Clicking on the small image below makes it large.
                                      *****/
                                      private function onClick(p_evt:MouseEvent):void
                                      {

                                      if ( (p_evt.currentTarget is WebcamSubscriber) && !(p_evt.target.parent is CameraUserBar)) {
                                      sharedProperty.value = (p_evt.currentTarget as WebcamSubscriber).publisherIDs;
                                      }
                                      }

                                      /**
                                      * Handler for a user pausing the camera.
                                      */
                                      protected function onCameraPause(p_evt:UserEvent):void
                                      {
                                      var userStreams:Array = sessionManager.streamManager.getStreamsForPublisher(p_evt.userDescriptor.userID,StreamMan ager.CAMERA_STREAM);

                                      if (userStreams.length == 0) {
                                      trace("onCameraPause: no userStreams");
                                      return;
                                      }

                                      for (var i:int = 0; i< userStreams.length ; i++ ) {
                                      if (userStreams .type == StreamManager.CAMERA_STREAM ) {
                                      break;
                                      }
                                      }

                                      var streamDescriptor:StreamDescriptor = userStreams
                                      ;
                                      if ( streamDescriptor.streamPublisherID == sessionManager.userManager.myUserID ) {
                                      sessionManager.streamManager.pauseStream(StreamManager.CAMERA_STREAM,!streamDescriptor.pa use,streamDescriptor.streamPublisherID);
                                      }
                                      }


                                      /****
                                      * Handler for a user stopping the camera.
                                      */
                                      private function onBooted(p_evt:UserEvent):void
                                      {
                                      if ( (p_evt.currentTarget is WebcamSubscriber) && (p_evt.userDescriptor.userID == sessionManager.userManager.myUserID || sessionManager.userManager.myUserRole == UserRoles.OWNER)) {
                                      webCamPub.stop();

                                      if ( (p_evt.currentTarget.parent as VBox).getChildAt(1) is Button ){
                                      ((p_evt.currentTarget.parent as VBox).getChildAt(1) as Button).label = "Start" ;
                                      }

                                      if ( sharedProperty.value && (sharedProperty.value as Array)[0] == p_evt.userDescriptor.userID ) {
                                      sharedProperty.value = [] ;
                                      }
                                      }
                                      }






                                      ]]>
                                      </mx:Script>
                                      • 16. error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                        lionceau02 Level 1
                                        <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 -->



                                        <!-- pour geer le son et la video -->
                                        <mx:VBox width="60%" height="100%" horizontalAlign="center">
                                        <rtc:WebCamera id="webcampub" width="100%" height="100%"
                                        />

                                        </mx:VBox>















                                        <!-- only listen to the subscribers we have selected -->

                                        <!-- en lever ca pour plus erreur -->
                                        <!-- -->

                                        <collaboration:AudioSubscriber id="audioSub" publisherIDs="{audioIds}"/>


                                        <mx:Tile id="camTiles"
                                        direction="horizontal"
                                        height="100%"
                                        width="100%"
                                        alpha="0"
                                        horizontalScrollPolicy="off"
                                        verticalScrollPolicy="off"
                                        creationComplete="onCreationComplete()"
                                        horizontalGap="10" verticalGap="10">

                                        <mx:VBox width="100%" height="100%" id="clickedContainer"/>


                                        <mx:Repeater id="rp" dataProvider="{selectedUsers}">

                                        <rtc:WebcamPublisher id="webCamPub" width="10" height="5"/>


                                        <mx:Canvas id="rs" width="100%" height="100%"
                                        minHeight="200" minWidth="200"
                                        backgroundAlpha=".5"
                                        backgroundColor="gray"
                                        cornerRadius="12"
                                        borderStyle="solid"
                                        horizontalScrollPolicy="off" verticalScrollPolicy="off">


                                        <collaboration:WebcamSubscriber webcamPublisher="{webCamPub}"
                                        width="100%" height="100%"
                                        publisherIDs="{[rp.currentItem.userID]}" click="onClick(event)"
                                        userBooted="onBooted(event)" streamChange="onCameraPause(event)">
                                        </collaboration:WebcamSubscriber>





                                        </mx:Canvas>




                                        <mx:VBox width="100%" height="15%" horizontalAlign="center" horizontalGap="5">
                                        <rtc:WebcamSubscriber webcamPublisher="{webCamPub}" publisherIDs="{[rp.currentItem.userID]}" click="onClick(event)" userBooted="onBooted(event)" streamChange="onCameraPause(event)"/>
                                        <mx:Button label="Start" click="onBtnClick(event)" visible="{rp.currentItem.userID==cSession.userManager.myUserID}" />
                                        </mx:VBox>
                                        </mx:Repeater>
                                        <!-- -->
                                        </mx:Tile>

                                        <!-- -->
                                        <!-- end only listen (thanks adobe ) -->

                                        <!-- fin de ca -->









                                        <mx:VBox width="40%" height="90%" right="0">
                                        <mx:Button label="Déconnexion" click="logout()" />

                                        <!-- scroll bar pourle volume -->
                                        <mx:VBox paddingLeft="15" width="10%">


                                        <mx:Label text="Gain" fontWeight="bold" />
                                        <mx:HSlider id="gainSlider" minimum="0" maximum="100" width="90%" value="{audio.gain}" labels="[0,50,100]" change="onGainChange(event)" />
                                        </mx:VBox>


                                        <mx:VBox paddingLeft="15" fontWeight="bold" width="70%">
                                        <mx:Label text="UseEchoSuppression"/>
                                        <mx:RadioButtonGroup id="echoGroup" itemClick="onItemClick(event)" />
                                        <mx:RadioButton label="Yes" selected="{audio.useEchoSuppression}" groupName="echoGroup" />
                                        <mx:RadioButton label="No" selected="{!audio.useEchoSuppression}" groupName="echoGroup"/>
                                        </mx:VBox>

                                        <rtc:AudioPublisher id="audio" height="0" />
                                        <rtc:AudioSubscriber/>


                                        <mx:HBox width="100%" horizontalAlign="center">
                                        <mx:Button id="btn" label="Start My Audio" click="onAudioClick(event)" toggle="true" />
                                        </mx:HBox>



                                        <mx:Button label="AudioButt"
                                        toggle="true" id="audioButt" color="#000000"
                                        click="(audioButt.selected) ? audio.publish() : audio.stop()"
                                        />



                                        <!--
                                        <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 -->



                                        <!-- _________________________________________________________________________________________ ___________________________________ -->
                                        <!-- fin pour geer le son et la video -->
                                        <rtc:Note id="notes" width="100%" height="40%" />

                                        <!-- ligne à finir <rtc:SharedWhiteBoard id="essai" width="50%" height="50%" /> -->
                                        <rtc:SimpleChat id="chat" width="100%" height="40%" />
                                        </mx:VBox>




                                        <!-- debut share _________________________________________________________________________________________ _______________________ -->

                                        <!-- <rtc:FileShare id="fileManager" width="100%" height="20%" /> -->




                                        <mx:Text id="notificationMessage" text=""/>

                                        <mx:VBox width="40%" height="10%" right="0">
                                        <mx:DataGrid id="_fileGrid" dataProvider="{_fileDescriptors}" width="100%" height="90%">
                                        <mx:columns>
                                        <mx:DataGridColumn dataField="name"/>
                                        <mx:DataGridColumn dataField="size"/>
                                        </mx:columns>
                                        </mx:DataGrid>
                                        <mx:HBox>
                                        <mx:Button id="upload_btn" label="Upload File" click="onUploadClick()"/>
                                        <mx:Button id="download_btn" label="Download File" click="onDownloadClick()"/>
                                        <mx:Button id="delete_btn" label="Delete File" click="onDeleteClick()"/>
                                        </mx:HBox>
                                        </mx:VBox>




                                        yes i don't see what do you say !! Where i will do this ?




                                        Many thanks ,


                                        Lionceau,
                                        • 17. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                          Richard_Abbott Level 3
                                          Lionceau,
                                          to repeat, what are the data types of the webcamPublisher property and of your webCamPub object? Once you see what data types they have, you will probably see why the mismatch is occurring.

                                          For the first of these you must look at the documentation for the WebcamSubscriber object. I don't know where you have found this, but you should know where the documentation is (if you don't, your chances of using it successfully are slim).

                                          I can't see anywhere that you have declared the webCamPub variable. You must declare the variable before you can use it.
                                          Richard
                                          • 18. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                            lionceau02 Level 1
                                            here i declare this <rtc:WebcamPublisher id="webCamPub" width="10" height="5"/>

                                            Lionceau
                                            • 19. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                              Richard_Abbott Level 3
                                              Lionceau,
                                              OK, I see it now. So webCamPub is a WebcamPublisher object, but I suspect (you should check this) that WebcamSubscriber may be expecting an array - your original error was "Contrainte implicite d'une valeur du type Array vers un type sans rapport com.adobe.rtc.collaboration:WebcamPublisher"
                                              Check the documentation, but you might try declaring an array
                                              var pubArray: Array
                                              then populate it with
                                              pubArray.push(webCamPub)
                                              and finally fill the WebcamSubscriber property with the array pubArray instead of the single object.
                                              I repeat, this is something of a guess without the documentation which you should have, but the error message seems to point this way.
                                              Richard
                                              • 20. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                                lionceau02 Level 1
                                                yes Richard i understand , then i haven't more time for Check the documentation .

                                                Because i have other bug more important : with the file share !!

                                                I put in comment my error and i would like you see my share error
                                                I don't download a file,why?

                                                look tthis :
                                                Where is a error ? or not? ? because i can't download a file but don't have error for compile


                                                Thanks

                                                lionceau,
                                                /**
                                                * This application shows how to upload, download, delete, and display files
                                                * via AFCS's FileManager API, FilePublisher, and FileSubscriber components.
                                                */


                                                /**
                                                * Completes initialization and adds session listeners to catch session connected events.
                                                */

                                                private function init():void
                                                {
                                                // we are interested in both SYNCHRONIZATION_CHANGE (connection success) and Error events
                                                sessionManager.addEventListener(SessionEvent.SYNCHRONIZATION_CHANGE, onSessionEventNotification);
                                                sessionManager.addEventListener(SessionEvent.ERROR, onSessionEventNotification);

                                                // small status indicator
                                                notificationMessage.text = "Login to the AFC Service...";
                                                }

                                                /**
                                                * Handles sessionEvents such as synchronization, errors, and so on.
                                                * @see SessionEvent
                                                */
                                                private function onSessionEventNotification(p_evt:SessionEvent):void
                                                {
                                                //The type of event emitted when the session gains or loses synchronization with its source.
                                                if (p_evt.type == SessionEvent.SYNCHRONIZATION_CHANGE) {

                                                //if we are successfully connected
                                                if (sessionManager.isSynchronized) {

                                                notificationMessage.text = "Connected";

                                                // Get the file manager from our connectSession.
                                                if (!_fileManager) {
                                                _fileManager = sessionManager.fileManager;
                                                }

                                                // Get the user manager from connectSession for later use.
                                                if (!_userManager) {
                                                _userManager = sessionManager.userManager;
                                                }

                                                // create new file publisher to upload/delete files
                                                if(!_filePublisher){
                                                _filePublisher = new FilePublisher();
                                                _filePublisher.initialize();

                                                //Only a room owner can create the new file group (a group is like folder).
                                                if(!_fileManager.isGroupDefined(_groupid) && _fileManager.getUserRole(_userManager.myUserID,_groupid) == UserRoles.OWNER) {
                                                //Create a new node with a new groupid.
                                                var nodeConfig:NodeConfiguration = new NodeConfiguration;
                                                nodeConfig.sessionDependentItems = false; //Specifies whether files in the pod should be deleted as the session ends.
                                                _filePublisher.createAndUseGroup(_groupid, nodeConfig);
                                                }else {
                                                //otherwise, use assigned groupid
                                                _filePublisher.groupName = _groupid;
                                                }
                                                }

                                                // Create a file subscriber to download file.
                                                if(!_fileSubscriber){
                                                _fileSubscriber = new FileSubscriber();
                                                _fileSubscriber.initialize();
                                                }

                                                // Bind to the file manager's file descriptors array collection to display the datagrid user interface.
                                                _fileDescriptors = _fileManager.getFileDescriptors(_groupid);
                                                }
                                                }
                                                else if (p_evt.type == SessionEvent.ERROR) {
                                                // we get an error from connect session
                                                notificationMessage.text = "Error: " + p_evt.error;
                                                }
                                                }

                                                /**
                                                * Handle the upload button click.
                                                */
                                                private function onUploadClick():void
                                                {
                                                var filterArray:Array = [new FileFilter("*.*", "*.*")];
                                                _filePublisher.browse(UIDUtil.createUID(), filterArray);
                                                }

                                                /**
                                                * Handle the download button click.
                                                */
                                                private function onDownloadClick():void
                                                {
                                                if(_fileGrid.selectedItem) {
                                                try{
                                                _fileSubscriber.download(_fileGrid.selectedItem as FileDescriptor);
                                                }catch(e:Error) {
                                                trace("Error download: " + e.message);
                                                }
                                                }

                                                }

                                                /**
                                                * Handle the delete button click.
                                                */
                                                private function onDeleteClick():void
                                                {
                                                if(_fileGrid.selectedItem) {
                                                _filePublisher.remove(_fileGrid.selectedItem as FileDescriptor);
                                                }
                                                }




                                                • 21. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                                  lionceau02 Level 1
                                                  ok we can solve this error after , ?


                                                  I put in comment this code then there is in my source no error
                                                  (for me comment = /* */ and <!-- et --> )

                                                  i understand then actually i have no error but file share don't run i can't know why !!


                                                  Look my source :
                                                  <mx:VBox width="40%" height="10%" right="0">
                                                  <mx:DataGrid id="_fileGrid" dataProvider="{_fileDescriptors}" width="100%" height="90%">
                                                  <mx:columns>
                                                  <mx:DataGridColumn dataField="name"/>
                                                  <mx:DataGridColumn dataField="size"/>
                                                  </mx:columns>
                                                  </mx:DataGrid>
                                                  <mx:HBox>
                                                  <mx:Button id="upload_btn" label="Upload File" click="onUploadClick()"/>
                                                  <mx:Button id="download_btn" label="Download File" click="onDownloadClick()"/>
                                                  <mx:Button id="delete_btn" label="Delete File" click="onDeleteClick()"/>
                                                  </mx:HBox>
                                                  </mx:VBox>





























                                                  /**
                                                  * Handle the upload button click.
                                                  */
                                                  private function onUploadClick():void
                                                  {
                                                  var filterArray:Array = [new FileFilter("*.*", "*.*")];
                                                  _filePublisher.browse(UIDUtil.createUID(), filterArray);
                                                  }

                                                  /**
                                                  * Handle the download button click.
                                                  */
                                                  private function onDownloadClick():void
                                                  {
                                                  if(_fileGrid.selectedItem) {
                                                  try{
                                                  _fileSubscriber.download(_fileGrid.selectedItem as FileDescriptor);
                                                  }catch(e:Error) {
                                                  trace("Error download: " + e.message);
                                                  }
                                                  }

                                                  }

                                                  /**
                                                  * Handle the delete button click.
                                                  */
                                                  private function onDeleteClick():void
                                                  {
                                                  if(_fileGrid.selectedItem) {
                                                  _filePublisher.remove(_fileGrid.selectedItem as FileDescriptor);
                                                  }
                                                  }




                                                  • 22. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                                    lionceau02 Level 1
                                                    sorry Richar i create two topics because i believe than my topics is not here .


                                                    Then what is the error for my topics ?


                                                    Many thanks for your help,


                                                    Lionceau,
                                                    • 23. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                                      Richard_Abbott Level 3
                                                      Lionceau,
                                                      I am confused now as to what error you have. Are you still getting the type mismatch error or have you solved that?
                                                      It sounds like you are now getting run-time errors. There are several ways to trap what is going on with these:
                                                      a) use of try/catch blocks to identify the nature of the error
                                                      b) use of the Flex debugger to step through code
                                                      c) generation of trace statements into a convenient location (eg a textarea in your app, or into a console)
                                                      d) Alert.show("explanation") statements at strategic places.
                                                      If you are not familiar with these then check the documentation...
                                                      A few posts ago you said "i haven't more time for Check the documentation" - checking documentation is not an optional time-consuming activity but an essential investment if you are going to code things accurately and well.
                                                      Richard
                                                      • 24. error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                                        lionceau02 Level 1
                                                        thanks , i dn' know how do Alert.show("onUploadClick()") ;


                                                        then i look , my bug is here because i look this : test onUploadClick()

                                                        but i haven't _filePublisher.browse( , why?


                                                        look this source:

                                                        private function onUploadClick():void
                                                        {
                                                        Alert.show("test onUploadClick()") ;
                                                        var filterArray:Array = [new FileFilter("*.*", "*.*")];
                                                        _filePublisher.browse(UIDUtil.createUID(), filterArray);
                                                        }




                                                        lionceau,
                                                        • 25. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                                          Richard_Abbott Level 3
                                                          lionceau,
                                                          for Alert.show documentation, check out
                                                          http://www.adobe.com/livedocs/flex/3/langref/mx/controls/Alert.html#show()
                                                          It is a convenient (but non-blocking) way to pop up some textual information, so that you can see what value some variable has, or see where code execution has reached. It is quick and easy, but becuase non-blocking can be confusing.
                                                          You say "i haven't _filePublisher.browse( , why? "
                                                          Well...
                                                          a) what data type is _filePublisher? You should be able to find this out from your code.
                                                          b) What data types are the expected arguments of the browse() method of this object? You should be able to find this out from your documentation!
                                                          Are you getting a compile-time or run-time error?
                                                          What does the documentation say about the cause of this error?
                                                          Have you tried the other things I talked about (try/catch etc etc)?
                                                          Richard
                                                          • 26. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                                            lionceau02 Level 1
                                                            Richar try this

                                                            private function onUploadClick():void
                                                            {
                                                            Alert.show("onUploadClick()") ;

                                                            var filterArray:Array = [new FileFilter("*.*", "*.*")];
                                                            _filePublisher.browse(UIDUtil.createUID(), filterArray);
                                                            Alert.show("2onUploadClick()") ;
                                                            }



                                                            Then i look onUploadClick() but not 2onUploadClick()


                                                            then i conclude the error is here :
                                                            var filterArray:Array = [new FileFilter("*.*", "*.*")];
                                                            _filePublisher.browse(UIDUtil.createUID(), filterArray);

                                                            i see here
                                                            http://d.hatena.ne.jp/haru-komugi/searchdiary?word=share&.submit=%B8%A1%BA%F7&type=detail

                                                            i find this
                                                            private function onUploadClick():void
                                                            {
                                                            var filterArray:Array = [new FileFilter("*.jpg", "*.jpg")];
                                                            filePublisher.browse(UIDUtil.createUID(), filterArray);
                                                            }



                                                            i may add this *.jpg", "*.jpg , you understand ?
                                                            i am in a good way?


                                                            Lionceau,
                                                            • 27. error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                                              lionceau02 Level 1
                                                              sorry it is useless add this *.jpg", "*.jpg, i have ever this errror
                                                              :(

                                                              don't run , why?
                                                              this code : _filePublisher.browse



                                                              Lionceau,
                                                              • 28. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                                                Richard_Abbott Level 3
                                                                Lionceau,
                                                                OK, so you are now using Alert.show in a good way, and it is a runtime error not compile error. To get some more insight, code like this:
                                                                private function onUploadClick():void
                                                                {
                                                                Alert.show("onUploadClick()") ;
                                                                try
                                                                {
                                                                var filterArray:Array = [new FileFilter("*.*", "*.*")];
                                                                _filePublisher.browse(UIDUtil.createUID(), filterArray);
                                                                }
                                                                catch (err: Error)
                                                                {
                                                                Alert.show("Error message: " + err.name + ", " + err.message, "Error");
                                                                } // catch

                                                                Alert.show("2onUploadClick()") ;
                                                                }

                                                                This will catch the runtime exception and all being well should show you some details in the Error alert that pops up giving you the error name and details. You should in fact see 3 alert boxes which will layer on top of each other in what seems back to front (ie 2onUploadClick() on top), since Alert.show() is non-blocking.
                                                                Richard
                                                                • 29. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                                                  lionceau02 Level 1
                                                                  yesyes , i see a error , "Error message: TypeError, Error #1009"


                                                                  Then i understand , it is with this you find this error .

                                                                  Well , then i have a bad type for my object ?
                                                                  But what is "type for my object " ?

                                                                  It is a movie or sound or gif or file ? that right?


                                                                  Lionceau,
                                                                  • 30. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                                                    Richard_Abbott Level 3
                                                                    Lionceau,
                                                                    good! The type referred to in the error message is not the type of file you are accessing, but the programmatic type of the objects in the browse() call... so... what does your documentation say about the data types that the browse() call expects?
                                                                    Richard
                                                                    • 31. error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                                                      lionceau02 Level 1
                                                                      yes , look this :

                                                                      The method FileReference.browse () allows you to allow the user to browse the files to select one to upload. You can also use FileReference.browse () to allow the user to select multiple files at once.

                                                                      it is right. ?i am in a good way ?


                                                                      Lionceau,
                                                                      • 32. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                                                        Richard_Abbott Level 3
                                                                        Lionceau,
                                                                        so far so good, but that is a general description of the intent of the call. Somewhere in the documentation there will be a description of the signature of the arguments, ie a list of how many arguments are required/optional, their data types etc. That is what you need to track down at this stage.
                                                                        Richard
                                                                        • 35. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                                                          Richard_Abbott Level 3
                                                                          Lionceau,
                                                                          Great! Now we can see that the signature of browse is
                                                                          browse(typeFilter:Array = null):Boolean
                                                                          But your call was
                                                                          _filePublisher.browse(UIDUtil.createUID(), filterArray);
                                                                          So you were giving two arguments, and the type mismatch was arising because the first was not an array.
                                                                          Take "UIDUtil.createUID(), " out of your call and see what happens...
                                                                          Richard
                                                                          • 36. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                                                            lionceau02 Level 1
                                                                            yes browse () is a method

                                                                            Returns Boolean — Returns true if the parameters are valid and the file-browsing dialog box opens. The browse method returns false if the dialog box does not open, if another browse session is already in progress, or if you use the typelist parameter but fail to provide a description or extension string in any element in the array.

                                                                            but don't understand "Take "UIDUtil.createUID(), " out of your call and see what happens.."What?

                                                                            you want me to do this :
                                                                            private function onUploadClick():void
                                                                            {
                                                                            Alert.show("onUploadClick()") ;
                                                                            try
                                                                            {
                                                                            var filterArray:Array = [new FileFilter("*.*", "*.*")];
                                                                            _filePublisher.browse(UIDUtil.createUID());
                                                                            }
                                                                            catch (err: Error)
                                                                            {
                                                                            Alert.show("Error message: " + err.name + ", " + err.message, "Error");
                                                                            } // catch

                                                                            Alert.show("2onUploadClick()") ;
                                                                            }
                                                                            • 37. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                                                              Richard_Abbott Level 3
                                                                              Lionceau,
                                                                              your original call had two arguments. The documentation says you need just one, and that that must be an array of desired filters. So your call needs to have one argument, being an array. You have just created such an array in the line var filterArray:Array = [new FileFilter("*.*", "*.*")];
                                                                              Think about what you are doing instead of just guessing! If you have just made an array, and your next method call requires an array... what do you think should be the argument? Hint: it's probably not a UID number...
                                                                              Richard
                                                                              • 38. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                                                                lionceau02 Level 1
                                                                                yes then i do this , ye s ? good way?

                                                                                private function onUploadClick():void
                                                                                {
                                                                                Alert.show("onUploadClick()") ;

                                                                                var filterArray:Array = [new FileFilter("*.*", "*.*")];
                                                                                _filePublisher.browse(UIDUtil.createUID());
                                                                                _filePublisher.browse( filterArray);
                                                                                Alert.show("2onUploadClick()") ;
                                                                                }


                                                                                that right ?


                                                                                Lionceau,
                                                                                • 39. Re: error : Severity and Description     Path     Resource     Location     Creation Time     Id
                                                                                  lionceau02 Level 1
                                                                                  it is so bad because i have this error , look :


                                                                                  Severity and Description Path Resource Location Creation Time Id
                                                                                  1067: Contrainte implicite d'une valeur du type Array vers un type sans rapport String. essai/src essai.mxml line 258 1236249799562 429



                                                                                  Lionceau,
                                                                                  1 2 Previous Next