I am checking this guy's code...
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();
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...
Without the code it will be difficult to say how the elements are set, may be they are relative to each other's position.
For setting the locations you can build setters function in the required class to set its positiion on runtime.
private var _buttonX:Number;
public function set buttonX( value:Number ):void
_buttonX = value;
element.x = buttonX;