« 360|Flex San Jose Schedule is Up | Main | Free AIR Signed Certificate »
Using Flash Player 10 within Flex Builder
| By Rich Tretola | May 20, 2008 | Print This Post
|
| 15,991 views |
Here is a step by step tutorial for setting up Flex Buillder 3 to compile for the new Flash Player 10 beta. This setup will also get you code insight for the new Flash Player 10 APIs.
Step 1: Visit http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3 and download any build greater than 3.0.1.1728 dated Thu May 15, 2008. This example uses 3.0.1.1739.

Step 2: Unzip the download and add it to the sdks folder of your Flex Builder install. In my case this is within Adobe Flex Builder 3 Plug-in/sdks. It could be within Adobe Flex Builder 3/sdks if you are using the standalone version of Flex Builder.

Step 3: Now open the Flex Builder preferences and expand the menu to flex -> Installed Flex SDKs. Click the add button.

Step 4: Navigate to the new SDK that you just installed in step 2, give it a unique name and click OK.

Step 5: You can now set this new SDK as your default SDK and click OK

Step 6: Create a new Flex Project

Step 7: Create the project as type Web Application

Step 8: Right click on the new project and select Properties. Navigate to Flex Compiler. Make sure either you have the new 3.0.1.1739 as the default SDK or if you didn’t set it as the default in Step 5, make sure that you choose Use a specific SDK and set it to 3.0.1.1739. Also, change the flash player version required to 10.0.0.

Step 9: Switch to Flex Build Path, expand the 3.0.1.1739 library and remove the playerglobal.sdk

Step 10: Click on Add SWC

Step 11: Navigate to the new SDK installed in Step 2 to frameworks/libs/player/10/playerglobal.swc and click OK

Step 12: Expand the new playerglobal.swc and double click on Link Type. Change it to External.


Step 13: To avoid being forced to download a new player on each run, open the index.template.html of your project and change the current variables to an older player as shown in the next 2 images.


Finally, open your new project root file and try creating a new object with one of the new Flash Player 10 classes and see that you have code insight.

Share this Post
Topics: Flash Player, Flex, Flex 3 (Moxie), Flex Tools |









May 20th, 2008 at 1:03 pm
Weird I don’t get code hinting on graphics or bitmapData.
May 20th, 2008 at 6:58 pm
HI,
so what’s the procedure if i still have working projects under fp9??
do i need to install/uninstall the debug version each time i want to play with fp10??
is there a way to install the fp10 browser plugin on for safari and debug with fp9 or standalone fp9 on firefox, btw, i’m using mac 10.4.
thanks!
May 21st, 2008 at 12:48 pm
So, I get code hinting on one machine that I did this on but not another. I am not sure what the issue is.
May 21st, 2008 at 3:11 pm
hello
Good tutorial!!! Can I translate that tutorial for Portuguese and to post in my blog?
May 21st, 2008 at 7:23 pm
Go for it.
May 21st, 2008 at 7:24 pm
Is anyone else having a problem with this tutorial? Is it working for you?
May 23rd, 2008 at 9:15 pm
hmm doesn’t work here on vista. No code hints and FP10 properties give compile errors.
June 12th, 2008 at 5:38 am
Working on Vista minus the code hinting. anyone know the culprit?
June 12th, 2008 at 2:12 pm
Dont change the version in the html. Just the use the path to the swf. because of the lower version fp10 features will result in errors.
June 18th, 2008 at 3:13 am
Dear Rich
hi
I’m Mohammad Pourhossein (my nickname is borna) from IRAN! thanks for your great articles…
our language texts is RTL like Arabic and Hebrew… I downloaded Flash Player 10 and then last Flex SDK:
(3.0.1.2079)
and did all things that you said here
but I can’t use it for RTL layout in my new projects!
can you help me in this way? how can I make it possible to use a bi-directional text in my projects in Adobe Flex Builder 3.0?
you know? there is no other person here, in my country to use this technology or help me… and there is no sufficient source or sample accessible to use them… so, I can only ask you to help me far from here… thanks again and again and agian…
I’m waiting for your reply
cheers
dela Reply:
June 16th, 2009 at 8:30 pm
hey Mohammad,
have you tried using system fonts? _sans, _serif, and _typrewriter are the ones I’m referring to. They’re built into everyone’s computer and don’t require embedding fonts. The trick is you can’t use .alpha or similar effects on the text unless you render it to bitmap first. I did a site in Japanese a while back and that’s how I got around embedding 4MB worth of fonts. Hope that helps.
dela
June 18th, 2008 at 4:49 am
Hi Mohammad,
Honestly, I am not sure if this is possible yet with Flex Builder 3. Perhaps someone from Adobe can answer this question.
July 10th, 2008 at 1:22 am
Thanks for the great tut! FYI, code completion did not work until I restarted Flex Builder.
August 28th, 2008 at 3:02 pm
Finally someone got a good tutorial on the matter. Very cool! Congratulations. You rock.
October 15th, 2008 at 7:40 pm
Thanks for the detailed instructions. The were very helpful. Now, onto some development!
November 11th, 2008 at 10:33 pm
y does the dynamic sound API only call my Event.SAMPLE_DATA only once?
i was so let down because this doesn’t work. The new dynamic sound API seems to have a lot of fun
Francois-Xavier Beckers Reply:
November 13th, 2008 at 5:15 pm
same here this is driving me crazy
November 15th, 2008 at 1:00 pm
thanks.
November 20th, 2008 at 9:38 am
Thank’s a lot!!
November 20th, 2008 at 8:07 pm
Hey, I have flexbuilder 3.0 Professional and now my project doesn’t see :
Any thoughts on how to get it back?
December 18th, 2008 at 9:54 pm
Anyone encounter the following complie error?
exception ‘org.xml.sax.SAXParseException: The element type “compiler” must be terminated by the matching end-tag “”.’ while setting variable ”
Running on Vista64, in case that matters.
I’m a noob, and by saying that I don’t expect any lengthy detailed help, I’d just probably benefit more from a helpful link or something since I doubt I’d grok much from a one line reply written in “expert mode”.
Thanks in advance.
April 15th, 2009 at 12:25 am
[...] setup my Flex Builder for Flex 3.3 SDK and Flash Player 10 as described in this article. I noticed that BitmapData class doesn’t show anymore. Is this a [...]
April 19th, 2009 at 1:29 am
Wow, thanks! it worked perfectly! (with Windows Vista)
April 20th, 2009 at 9:15 am
It’s important to change the required Flash Player version for the HTML Wrapper to 10.0.0 (at least). This option also changes the behavior of the compiler.
May 3rd, 2009 at 9:09 pm
I followed the steps, it work when I run application.mxml with ‘run as …’ command. But it doesn’t work fine with ‘debug as…’ command.
when I run ‘debug as…’, with no any hints, my FB3 does not show me the debug function with debug perspective at my break point. it works as ‘run as …’ command to debug any of my applications smoothly.
I tried to use IE7 debugging with flashplayer_10_ax_debug.exe installed, or flashplayer_9_ax_debug.exe installed.
And also, I tried to use firefox2/firefox3 debugging with flashplayer_10_plugin_debug.exe installed.
any of my debug trying did not work its function, only show me a smooth operation, just like ‘run as…’ command did.
More worrying, I can’t go back to my former debugging function, which works fine without trying flash play10 turn over.
The problems annoyed me days, please anyone help me.
working environment: windowsXP, FlexBuilder3, IE, firefox
May 3rd, 2009 at 9:10 pm
I followed the steps, it worked when I run application.mxml with ‘run as …’ command. But it didn’t work fine with ‘debug as…’ command.
when I run ‘debug as…’, with no any hints, my FB3 does not show me the debug function with debug perspective at my break point. it works as ‘run as …’ command to debug any of my applications smoothly.
I tried to use IE7 debugging with flashplayer_10_ax_debug.exe installed, or flashplayer_9_ax_debug.exe installed.
And also, I tried to use firefox2/firefox3 debugging with flashplayer_10_plugin_debug.exe installed.
any of my debug trying did not work its function, only show me a smooth operation, just like ‘run as…’ command did.
More worrying, I can’t go back to my former debugging function, which works fine without trying flash play10 turn over.
The problems annoyed me days, please anyone help me.
working environment: windowsXP, FlexBuilder3, IE, firefox
May 4th, 2009 at 6:28 pm
[...] 2. “Source attachement” option for the playerglobal.swc should be “None” (yeah it caught me a couple of times before I figured it out) and the “Link type” should be “External“. Here. [...]
June 3rd, 2009 at 2:17 pm
it works without problems.
June 3rd, 2009 at 2:18 pm
Thanks a lot.