class archeryModel
{
...
hidden var _shotProcess = null;
....
function initialize() {
...........
_shotProcess = new ShotProcess(self);
}
}
class ShotProcess {
....
var _model;
...
function initialize(model) {
_model = model; // seems to cause circular ref !
...
}but i don't understand, how can i wrote it differently !
note : i've try to use
_model = Application.getApp().model; instead, but in that case, when I call some functiojn in the model (like _model.myFunc() ) it exit wit ha non existent function !