Object methods
I am having greif with a game I am writing in Flash that I have previously written in VB, and DIV.
I create an (alien) object as a flash movie clip. The alien is controlled by a switch statement contained within each alien.
e.g.
switch (mode)
{
case "leave mother ship":{some function};
case "return mother ship":{some function};
}
I have created a function in the root of the alien called 'set mode' (this.mode="leave mother ship")but it seems to be private and inaccessible.
I now need to tell the alien from the outside to switch mode.
Any help, tips or ideas much appreciated.
__________________
If that's not confusing, the nuclear dance
Of electrons and suchlike is governed by chance!
|