0 Replies Latest reply on Oct 31, 2009 2:56 PM by dsaisho

    end to end with swf

    dsaisho Level 1

      Hello, I am very new to flex and am experianced in as3. I needed to use flex so I could use adobe's stratus server. I followed a tutorial that build a very basic text messager ( http://www.flashrealtime.com/basics-of-p2p-in-flash/ ) I would like to modify the code to be able to move an object and have the other user see the object move and they would have the same capibilites for their object. Though I have no idea how to get my swf, the little object I drew, on the stage. I have tried adding this function at the bottom of my script and a button to run it.


          private function addbug():void{
                      var url:URLRequest = new URLRequest("bug_mc.swf");
                      loader.addEventListener(Event.COMPLETE, done); ////////loader is Loader();   i have also tried SWFLoader() and it didnt work.


      private function done(event:Event):void{

      Nothing happens when I run the function.


      The swf is located in my src folder where the mxml is contained.


      Does anyone have any ideas on what I can do to fix this?

      Am I doing something out of place here? I have heard flex is for the interface portion and I should do logec elsewhere. if so, how would I set that up?