« Sprite Sheet Animation Tagger | Main | Native Extensions in Adobe AIR 3 »

How to use Flash Player 11 and Stage 3D in Flash Builder

Stage 3D is only available in the Flash Player 11 beta at the moment and there a few steps to get it working correctly. A few of the last ones tripped me up so I thought I'd list them here for anyone else who is having trouble.

  1. Download and install Flash Player 11 beta
  2. Download at least Flex 4.5 and unpack anwhere
  3. Install Flash Player 11 playerglobal.swc:
    • Download playerglobal.swc (bottom of page)
    • Rename downloaded swc to 'playerglobal.swc'
    • Place playerglobal.swc into Flex SDK folder under /frameworks/libs/player/11.0
  4. Install Flex SDK in Preferences -> Flash Builder -> Installed Flex SDKS -> navigate to adobe Flex SDK
  5. Create a web based Actionscript or Flex Project in Flash Builder with the above Flex SDK 
  6. Go into the project properties -> compiler settings
    • Set User specific version to 11.0.0
    • Add compiler argument -swf-version=13
    • Make sure generate HTML wrapper file is checked
  7. Open html-template/index.template.html and add params.wmode = "direct"; at line 49
  8. Make sure your video card drivers are up to date and are newer than 2009
  9. Lastly right click on any flash content and go to settings and make sure 'Enable hardware acceleration' is ticked.

All those steps except the last 3 are required to compile with Flash Player 11. Setting the wmode to direct, having up to date video card drivers and making sure hardware acceleration is enabled are required for Stage 3D to work. 

Hope this helps.

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments (7)

I added a last step of making sure your video card drivers are up to date

September 23, 2011 | Registered CommenterYonas

Added another step of making sure that hardware acceleration is enabled in your flash settings

September 24, 2011 | Registered CommenterYonas

Thanks for doing this, I've been bumbling around with this stuff for hours. Very helpful.

October 8, 2011 | Unregistered CommenterBrian

Hi Yonas,
That's really helpful, Thanks a lot!
I'm trying to learn Starling framework. I've downloaded the samples built a actionScript library project out of the framework files and when I tried to run it, a message is displayed on the screen
'This application is not correctly embedded (wrong wmode value) '
Can you help me in this?
Thanks in advance :)

October 20, 2011 | Unregistered CommenterVardhan

Vardhan, make sure that you have set the flash parameter wmode to 'direct', as in step 7 above if you're using the index template

October 21, 2011 | Registered CommenterYonas

it's didn't play BMW parking 3d game?why?

October 5, 2012 | Unregistered CommenterArif

Thanks a lot. That helps.

June 25, 2013 | Unregistered CommenterCMS

PostPost a New Comment

Enter your information below to add a new comment.
Author Email (optional):
Author URL (optional):
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>