Thursday, 21 July 2011

Setting up CS5 and CS5.5 to target Flash 11 player

I've seen a lot of people looking for a way to publishing Flash 11 content from the CS5 and CS5.5 IDE, so here's a quick guide...

(I don't have CS5.5 myself, or a Mac, but have set it up on a mates machine so I know it can be done, please bare with me!)

1. If Flash is running, close it. Go into your Flash directory (usually Programs > Adobe > Flash) and find Common > Configuration > ActionSctipt3.0
In that folder you should see several folders, including FP9 and FP10 etc.
Create a new folder and call it FP11.

2. Download the globalPlayer.swc from Adobe labs.
Save it in your new folder. (it will have a longer name, so rename it to playerglobal.swc)

3. You need to create a player profile, so you can choose Flash Player 11 from Flash.
Under Common > Configuration > Players you will see a bunch of xml documents. Open the one called FlashPlayer10_1.xml or any Flash 10 player file.
In that you will see a path to a playerglobal.swc
Change the path so it points to the one you just downloaded and change the name of the player, etc.
There's 2 lines I changed in my CS5 version:

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


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

(I don't know why it's version 13, but it is!)

Save the file in the same folder, as FlashPlayer11.xml
Here's a link to my file, if you're stuck, but it may vary slightly depending on where you have flash installed.

Now you should be good to go!

Remember to choose Flash Player 11 in you publishing settings and Hardware Settings: "Level 1 - Direct" to turn on hardware acceleration.
When publishing, you need to publish direct to the browser (F12) as Flash will still have a F10 stand alone player for previewing/debugging.

If you want to run examples that use the EMBED tag you will need to download the Flex SDK.

Any questions, or variations you come across, just make a comment and I'll help if I can.

Good luck!


meansteen said...

Hey there, thanks for posting this. I've been struggling with this for the last week. Unfortunately, I've been following these directions precisely, and I still get the same results. I can publish fine with FP11, but once I add the new away3d class, I get the following error:

VerifyError: Error #1014: Class flash.display3D.textures::Texture could not be found.
at away4demo_fla::MainTimeline/PrimitivesTest()
at away4demo_fla::MainTimeline/frame1()

I posted on the Away3d forums, and the said it was likely in my configuration for CS5.5... but these are steps I have taken, multiple times, to compile from 5.5 and I keep getting this error. Please, please help!

meansteen said...

Oops! Fail on my end. I wasn't previewing my files in the browser. All is good. Thanks anyways.

Skah said...

Good evening, I just installed the latest version of Flash released today. (RC 1 11.0.r1.129)

I've followed your tut step by step and I've setting this up on Flash CS5, with Flex SDK 4.5.1.

My worry is that I can not produce any results. When i try to compile an Away3D example (downloaded with the sources on the latest SVN trunk), My HTML/SWF page still blank, but standard as3 code keep working. And nothing append when i try the debugger player.

I'm sure I've don't forget anything... The FlashPlayer11.xml is ok, swc is in the right place... I compile in Flash 11 with my CS5... Away3D sources are rightly pointed too.

How can i do? Thanks.

Skah said...

That's all right! My problem was due to "Matrix3D" that has been changed in Flash 11 RC1. So, sorry for the post, a response came some hours later.
( )

Get the latest sources from git, and test with "" example.

But now i have some problems getting work "Flex SDK 4.5.1" for compile with the "EMBED" tag. There is other things to do than setting the Flex SDK path in my "ActionScript 3.0 Advanced Settings"? Thanks, again.

Anonymous said...

Doesnt work. Followed step by step and still only get up to 10.2 in publish settings

Anonymous said...

This does work. I followed the steps and have version 11 of the player working. Thanks.

Anonymous said...

Works, thanx!Change the "player name" tag in xml (CS5.5)to Flash Player 11 also, so it could get visible in publish settings.

Anonymous said...

Thanks for this Tutorial. This works fine for me.

Anonymous said...

Thank you for this great help!!

I noticed that the download-link for the globalPlayer.swc has changed slightly, it is (at the moment):

Clicking the (older) download link in your blog post now unfortunately redirects to the "official" flash player install page where there's no "globalPlayer.swc" available for download

Anonymous said...

New download-link for the globalPlayer.swc said...

Thanks Anonymous :)

Chris said...

I'm getting this error from the Output panel.

Warning: 5004: The file 'C:\Program Files (x86)\Adobe\Adobe Flash CS5\Common\Configuration\ActionScript 3.0\FP11\playerglobal.swc', which is required for typechecking ActionScript 3.0, could not be found. You may need to reinstall Flash. 1017: The definition of base class MovieClip was not found.

Went through the tut twice and it appears I didn't miss anything so I'm at a loss. Flash Player 11 shows up in the Player Publish settings though so I know Flash is recognizing the .swc file. This is strange. said...

Make sure your playerglobal.swc is at the location specified, and is a recent one.

tutorial flash cs5 said...

New download-link for the globalPlayer.swc

Post a Comment