Since there is no public documentation for the new Flash Player 10 API I have created a small Flex application which makes easier to discover the properties and methods of the new classes. I also extracted the list of classes defined in the Flash 10’s playerglobal.swc (it is accessible in the latest build of Flex SDK) and placed into the class browser. So, now you can pick a class name from this list or enter a class name of your choice, click on the Describe button and see the result.
The class browser is on-line here.
Maybe I will post the results of my (and other’s) discoveries later with examples
Some keywords till then (beyond the features mentioned on Adobe’s site):
- run-time sound generation
- accessing local files through FileReference without uploading to a server
- new Vector class with generics
- etc.
[Update]
Some people reported that the class browser doesn’t worksand the version detection script prevents it from running (claiming a new player installation). I don’t know what does cause the problem, yet, but I provide here a direct link to the SWF itself until I solve the issue:
http://tengerstudio.com/public/flash10/class_browser/ClassBrowser.swf
[Update 2]
I made a minor addition, and the class browser now displays also the class’ constructor among the methods.
May 16th, 2008 at 10:13
Sounds good - keeps telling me I need to install flash player 9 though?
(Tried with 9 & 10.)
May 16th, 2008 at 10:24
I think the version detection script and express install cannot download the beta player (since it is not available from the normal source) so you have to install it manually. I tested it under IE 7 and FP10 beta and works here.
May 16th, 2008 at 10:38
I have changed embedding to SwfObject 2, I hope it helps.
May 16th, 2008 at 13:33
Nice job!
May 16th, 2008 at 15:35
FYI, there’s a bug in the beta player throwing an error for describeType with the Graphics class. Be sure to try..catch your call to describeType to handle that (and possibly any other) errors.
I’ve outlined the new methods of the Graphics class here:
http://www.senocular.com/flash/tutorials/flash10drawingapi/
May 16th, 2008 at 18:49
You’re right, I didn’t care about exceptions thrown by describeType() (since there is no public debug player it fails silently and visitors will not see anything special), so I eliminated this deficiency. Thanks for reminding me
May 18th, 2008 at 13:53
[…] http://blog.tengerstudio.com/2008/05/16/flash-player-10-class-browser/ […]