dimanche 24 mai 2015

why cant I access a public method?

When I'm using from Main.as:

appleObject.setX(50);

to call the function which is in Floater.as:

public function setX(positionX):void {
    trace("hello");
}

from Floater.as, but I get the error 1120: Access of undefined property appleObject.

Main.as: http://ift.tt/1GwBZXK

Floater.as: http://ift.tt/1ArQ07W

Aucun commentaire:

Enregistrer un commentaire