I am having difficulty organizing my code. I know a few various methods, but my main problem is separation of classes.
Here's a simple example to illustrate my point.
Currently I have a static class for each frame, such as below:
public class Frame01 {
// methods/properties ...
public var isMovieClipOnStage:Boolean;
public static function loadFrame():void {}
}
Now let's say I have another class (non-static), such as a music player, that I activate on that frame (and perhaps others)
public class MusicPlayer {
// methods/properties ...
public var isMovieClipOnStage:Boolean;
public function create():void { }
}
My problem arises when MusicPlayer needs to access properties in Frame01, such as "isThisFrameActive" or "isMovieClipOnStage." Do I just use the static-ness to my advantage (such as Frame01.isMovieClipOnStage)? Or do I try to separate these classes and allow a "callback" function/property, passed by Frame01 (such MusicPlayer.variablePassedByFrame01)?
Does this make sense? If so, am I on the right track, or are static frame classes a terrible idea in the first place?