The Error Codes:
positionSelectedAirspeedBug.as: Line 20: ActionScript 2.0 class scripts may only define class or interface constructs.
initializeAirspeed.as: Line 45: ActionScript 2.0 class scripts may only define class or interface constructs.
Both lines refer to the last line of code which is a };
I have an .fla that has only one line of code:
This function is NOT in the .fla. This function does exists in an actionscript file 'initializeAirspeed.as' file which is in the same directory as the originial .fla.
I had previously called this actionscript file with an #include statement. During debugging I removed the #include statement and all other code except the initializeAirspeed(currentAirspeed, buggedAirspeed); but the initializeAirspeed.as file is still called. I know because the initializeAirspeed.as file calls another asfile. My error statements include both the initializeAirspeed.as file and the other asfile.
I can comment out the 'initializeAirspeed(currentAirspeed, buggedAirspeed);' and all errors go away.
I can create a new .fla with only the 'initializeAirspeed(currentAirspeed, buggedAirspeed); included and there are no errors. It appears the .fla has a memory for #include statements because if I use the #include statement then remove it I have problems..
Does F8as2 have a memory for #include statements?
even though you know initializeAirspeed is not a class file, you're using it like one when you removed your include statement.
include statements are functionally the same as have the code from the as file in the same spot in your fla as the include code.
I think I need more sleep!!!!!!