Hey
I’m not super familiar with doing things purely OOP style, so this might seem like an obvious answer to an obvious question for many of you.
I’m basically making a video-player with some extra shenanigans.
So I have my BasePlayer.as class, which holds all the stuff for my accual stream. Volume, progress, buffertime, the list goes on and on.
I then have my FlvPlayer.as class which extends my BasePlayer class, and initializes the stream. From here I can manage the video I’m playing thorough play pause volume commands.
What I would like now is to be able to extend my FlvPlayer.as class so I, for instance, could make a muteSound.as class and call for volume = 0;
But how do I extend my FlvPlayer without having to construct a new FlvPlayer thorough muteSound.as every time.
Basically my question is, how do I extend my FlvPlayer.as class in a lot of different of command-like classes (mostly buttons with graphic) that passes on commands to BasePlayer.as when my FlvPlayer is the one who constructs everything, like so:
public class FlvPlayer extends BasePlayer
public function FlvPlayer(a_width : Number, a_height : Number) {
super(a_width, a_height);
initialize();
}