Answered
Using .AS files
Hello Everyone. Until recently I've only used code in the
timeline, but I want to get away from that bad habit and start
doing/storing my work in .as files. I'm having some issues with one
as file not being able to view another. Below are two files and the
contents of the fla file.
Running these files results in the following output:
Pawn Created at X: 1 Y: 1
TypeError: Error #1010: A term is undefined and has no properties.
at com.darknessdescending.chess::Pawn/ValidateMove()
at com.darknessdescending.chess::Chess()
at chess_fla::MainTimeline/frame1()
So here is what confuses me, as far as I can tell the function ValidateMove is syntatically correct, and it is my understanding that classes in the same package can call other internal classes, and their functions, yet this error persists. Hopefully someone can shed some light on my dillemma, feel free to ask for any additional information that you might need.
Thank You for your help.
Running these files results in the following output:
Pawn Created at X: 1 Y: 1
TypeError: Error #1010: A term is undefined and has no properties.
at com.darknessdescending.chess::Pawn/ValidateMove()
at com.darknessdescending.chess::Chess()
at chess_fla::MainTimeline/frame1()
So here is what confuses me, as far as I can tell the function ValidateMove is syntatically correct, and it is my understanding that classes in the same package can call other internal classes, and their functions, yet this error persists. Hopefully someone can shed some light on my dillemma, feel free to ask for any additional information that you might need.
Thank You for your help.