Noob question here, it’s gonna be a simple one, I’m sure!
I have 50 movie clips that are on the stage. Each has a unique instance name - puzzleAZ, puzzleAR, etc.
I have a class called GeoPuzzle that inherits from flash.display.MovieClip.
In library - properties I have linked each movie clip to the GeoPuzzle class.
The class definition is “com.freerangeeggheads.puzzleography.GeoPuzzle.NameOfEachStateHere” which reflects the folder heirarchy on my harddrive (project folder (where the FLAs are) -> com -> freerangeeggheads -> puzzleography -> GeoPuzzle.as)
However, GeoPuzzle contains methods and properties I am unable to access from the instantiated objects on my stage.
So inside GeoPuzzle is the function setInitial(some parameters here). Trying puzzleAZ.setInitial(sending parameters) returns the output error “setInitial is not a function”. Even though the code compiles fine it gives me a runtime error.
What am I doing wrong? Flash obviously doesn’t recognize these objects as instances of my GeoPuzzle class - how do I properly link them?