1 Reply Latest reply on Aug 7, 2010 8:38 PM by Deepanjan Das

    Simple addChild Question....

    jerry98225

      Hi guys..

         I am checking this guy's code...

      http://www.codingcolor.com/as3/as3-youtube-chromless-api/

       

      I have download the source code...but I couldn't figure out how he add the play, pause, stop button in the stage. I know in his VideoPlayerControl.as, he has

       

          playbackControl = new PlayPauseButton();

          playbackControl.addEventListener(Event.CHANGE,setPlaybackState);

          addChild(playbackControl);

       

      in his PlayPauseButton.as. there is not code for the location of the button..

      I am not sure how he place the control buttons....

       

      Also...Are there anyways to give the button location with object oriented way instead of specify it with static number???

       

      I appreciate any help...