This content has been marked as final. Show 7 replies
Is the AS referring to the Sprite class in an external .as file or in the .fla? If it is in an external file, you need to import it before using it:
There is no error checking available in the Public Alpha. Only at compile time.
It seems as if debugger is also missing to work, is it.
I am studying As3 by using Starter_1 Tut from
Flaschscript.biz . - It works well.
But when I try other examples from Adobe® Flex™ 2 Language Reference
they do not work..
But thanks, anyhow.
Yes, As3 is an external one - with properly imported Sprite class.
The fla of similar name in the same directory.
It seems neither script check nor Debug works in Flash 9 Prewiev.
>>But when I try other examples from Adobe® Flex™ 2 Language Reference
Well, Flex is something else so if you want to try an example from that Language Reference you need to rewrite it to use it in the Public Alpha.
Well, in fact that's all the help you need.
flash.geom.ColorTransform -> Examples.
So, how to use this in the Public Alpha. Well, create a new ActionScript file, copy and paste the code and save the file as ColorTransformExample.as
Now open a new Flash file. Go to the Publish Settings and click on 'settings' next to the dropdown that says 'ActionScript 3.0'. A new option! Document Class (you can 'connect' a base class to the -what was called - _root). Type in: ColorTransformExample (without .as) and click ok. Save the fla in the same directory as where you saved ColorTransformExample.as. Test the movie. Attached for your convenience the class.