Getting started with stage3d in Flash CS5, and which framework to choose?

為{幸葍}努か 提交于 2019-12-04 20:32:51

2D / 3D frameworks

Starling Framework leverages FP11 for 2D GPU accelerated content:

http://www.starling-framework.org/

For 3D, Away3D 4 "Broomstick" is a good option:

http://away3d.com/

To install Flash Player 11 in Flash Professional CS5.5

For PC, navigate the file system to Flash Pro's common configuration.

C:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\ActionScript 3.0

In that (ActionScript 3.0) directory, create a folder named "FP11" and download playerglobal.swc from Adobe - http://www.adobe.com/support/flashplayer/downloads.html

Assure the downloaded SWC is renamed to "playerglobal.swc"

Create a player profile so you may target Flash Player 11 in Flash Pro by navigating the file system to Flash Pro's common players at:

C:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\Players

Duplicate a pre-existing XML, such as FlashPlayer10_2.xml as a template and name it FlashPlayer11.xml

Alter:

<player asversion="3" id="FlashPlayer11" version="13"></player>

and

<playerdefinitionpath as2="$(UserConfig)/Classes/FP10;$(UserConfig)/Classes/FP9;$(UserConfig)/Classes/FP8;$(UserConfig)/Classes/FP7" as3="$(AppConfig)/ActionScript 3.0/FP11/playerglobal.swc"></playerdefinitionpath>

In Flash Pro, chose Flash Player 11 for your publish settings, and set hardware settings to "Level 1 - Direct" to turn on hardware acceleration.

HTML wrapper params need the parameter:

params.wmode = "direct";
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!