I'm creating a stack to save math operations that have occurred so that I can use an undo button to remove those operations. I followed this implementation:
I created two actionscript class files Node.as and Stack.as like what was done in the link but I do not know how to create a variable of that class in the Script area of my .mxml file. My code looks like this:
I was trying to create a variable called storage of type Stack but I get an error saying "1046: Type was not found or was not a compile-time constant: Stack."
Any information on how to correctly create a variable of a stack class in the Script of my main MXML file would be very helpful.
According to your code, "Stack" is in your "src" (root) project folder, not the "dataStore" folder (the package name is incorrect). So you'd use "var storage:Stack;".