mercredi 8 février 2017

Flex 4.6 and AS3 Calling method from another mxml file

I have two files,

FloorplansMaster and Floorplans.

In my FloorplansMaster I have this method inside my script tags:

public function changeView(): void
     var floorplans:Floorplans = new Floorplans();



and I am trying to call the method changeView in the Floorplans file, which looks like this:

public function changeView():void

But I keep getting this error:

Cannot access a property or method of a null object reference.

What am I doing wrong?

Aucun commentaire:

Enregistrer un commentaire