Flash Professional CC 2014 allows you to create and publish rich, GPU-accelerated graphics for the web, leveraging your browser's implementation of Web Graphics Library (WebGL). You can use the new WebGL (preview) document type to create GPU-accelerated content.
The Flash WebGL runtime API allows you to modify elements in a scene and control the playback to add interactivity to your animation.
This document contains reference documentation for WebGL runtime API version 0.2. Watch this page for updates to the WebGL runtime API.
The WebGL document type can leverage powerful tools within Flash Professional CC 2014 to create rich content and publish directly to WebGL output that runs on any WebGL-compatible browser. The WebGL document type in Flash Professional is under development and hence available in preview mode.
In the WebGL document type, the options under Publish Settings let you specify the filename and the publishing location along with other WebGL settings.
The WebGL Runtime Library provides the following classes:
| Class | Module |
| Color | flwebgl.geom |
| ColorTransform | flwebgl.geom |
| Event | flwebgl.events |
| EventDispatcher | flwebgl.events |
| Matrix | flwebgl.geom |
| MovieClip | flwebgl.sg |
| Player | flwebgl |
| Point | flwebgl.geom |
| Rect | flwebgl.geom |
| SceneGraphFactory | flwebgl.sg |
| Shape | flwebgl.sg |
Follow the steps described in the Getting Started with WebGL Animation page to learn how to create an interactive animation using Flash Professional CC 2014 and control it using the WebGL runtime API.
Flash Professional CC 2014.1 supports frame scripts from within the Flash IDE. You can open the Actions panel and add Javascript code to any key frame. This code will be executed after player enters the frame. The 'this' variable in the context of frame scripts refers to the instance of the MovieClip it belongs to.
Sign in to your account