This content has been marked as final. Show 4 replies
create a new as file (file/New/ActionScript file) for your class. the code for a class does NOT go on a timeline.
I remember i had used the classes in an AS file before and got some errors. I tried the given code below in an AS file and I get the error
" ActionScript 2.0 class scripts may only define class or interface constructs.
var cliplessPedal:Product=new Product(1, "Clipless Pedal", 11);"
Can I have some solution to this? Can you provide me a sample link where I have good simple tutorials?
Great helping Kglad.
what are those last two lines??? that's the problem. they are not part of your class definition. those lines should be elsewhere, either inside another class or on a timeline.