33 Replies Latest reply: Nov 27, 2013 7:36 AM by sinious RSS

    Build an App for Android not working.What is wrong?

    TavaresEd Community Member

      Hi!

       

      I am trying to create an android app with this code that is suposed to show a video player from justin.tv but it is not showing nothing.If I use the code in a regular AS3 fla file it works but If I choose New - Air for Android it doesnt work.

       

      flash.system.Security.allowDomain("*");

       

       

      stage.scaleMode = flash.display.StageScaleMode.NO_SCALE;

      stage.align = flash.display.StageAlign.TOP_LEFT;

       

       

       

       

      var loader = new flash.display.Loader();

       

       

      function loaded(e){

       

                addChild(loader);

       

                loader.content.api.play_live("HERE I ENTER MY CHANNEL NAME");

      }

       

       

      loader.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, loaded);

       

       

      loader.load(new flash.net.URLRequest("http://www.justin.tv/widgets/live_api_player.swf?video_height=650&video_width=380&consumer _key=HERE I ENTER MY CONSUMER ID"));