Join David Gassner for an in-depth discussion in this video Using the debug version of Flash Player, part of Flash Builder 4 and Flex 4 Essential Training.
Flash Builder 4 includes many valuable tools for debugging and fixing your applications during the development process. In order to use these tools, you must have the Debug version of Flash Player. This version is installed automatically when you install Flash Builder 4, but there are many circumstances where you might find that it's overwritten by other installations, or you need to update your copy of Flash Player. Here are some of the ways you can get the Debug version of Flash Player. First of all, when you install Flash Builder 4, the installation folder includes a subfolder called player.
This will be the case both on Windows and on Mac. On Windows, the default location is under C:Program Files/Adobe/Adobe Flash Builder 4, while on Mac OS X, it's under its Applications/Adobe Flash Builder 4. From there, you can go down to the player folder, and within that folder, you'll find a folder for your Operating System. I'm working on Windows 7, so I have a folder called win. Under that folder, I find three executable installers, one for the ActiveX version of Flash Player - that's the one that works under Internet Explorer, and one called Plugin - that's the version that works under Netscape, Firefox and other plug-in compatible browsers.
There is also an application called FlashPlayer.exe. This is called the standalone version of Flash Player, and you can double-click it to open it. And from there, you can select File > Open and open any SWF file to play it. So, that's how you can reinstall Flash Player on your system if you need to. It's also very important that before you use any of these installers that you uninstall the existing versions of Flash Player. On Windows, you can do that from the Control panel.
On both Windows 7 and Windows Vista, just go to Uninstall a program, and on Windows XP, choose Add or Remove Programs, and you'll find the various versions of Flash Player there. If you want to uninstall Flash Player on Mac, you can download the appropriate application from the Adobe website. Go to www.adobe.com/go/14157. That will take you to a knowledge-base article that includes links that you can use to download uninstallers for Mac and other operating systems.
Now if you need a more recent version of Flash Player, you can get it from the Adobe website. The most common way to download Flash Player from Adobe is to go to this URL, get.adobe.com/flashplayer, but this is not the version that you need. This version is the Non-Debug, or the standard version of Flash Player. In order to get the Debug version of Flash Player, go to the Adobe website and click into the Search dialog and type in 'debug flash player.' The first item that shows up in my Search is labeled Adobe Flash Player - Downloads.
I'll click that link, and I am taken to this page www.adobe.com/support/ flashplayer/downloads.html. On this page, there are many hyperlinks to download various versions of the Flash Player, not just the most recent version. As of the date of this recording, you'll find installers going back to Flash Player 8. And whenever Flash Player 10.1, the newest version of Flash Player, is released, which will be after Flash Builder itself is released, a link for that version of Flash Player will appear here as well.
At the top of the page, you'll find links to the most recent version of Flash Player, the Non-Debug version, but if you scroll further down you'll find the Debugger version. Now again, if you want to ensure 100% compatibility with your applications, just install the Debugger version of Flash Player that's included with your Flash Builder installation. Use these links if you need to go back to previous versions or you need to update to a newer version. Finally, I'll show you how to find out whether you have the Debug version of Flash Player installed.
The easiest way is to go to any Flash-enabled website. I'll go to the Adobe website's homepage, which always has a bit of Flash content. To find out whether I have the Debug version of Flash Player, I'll move the cursor over any area of the Flash content, and then I'll right-click, or Ctrl+Click on Mac. If you're running the Debug version of Flash Player, you'll see a menu choice labeled Debugger. It doesn't matter whether it's enabled or not. If the menu choice appears, then you are running the Debug version of Flash Player.
If you want to find out exactly which version of Flash Player you have installed, choose the About menu choice. That will take you to a webpage on the Adobe website, and it will show you which version of Flash Player you have installed. I have version 10.0.42.34. The first number is called the Major version, the second, the Minor version, the third is the Update, and the last is the Maintenance Number. So that's how you can find out which version of Flash Player you have installed, and also whether it's the Debug version.
Again, you must have the Debugger version of the player installed in order to use the Debug tools that are included with Flash Builder 4.
- Understanding the history of Adobe Flex
- Installing the Flash Builder components
- Using Eclipse views and editors
- Programming with MXML and integrating MXML and ActionScript
- Debugging Flex applications
- Adding visual controls to a Flex application interface
- Displaying images and dynamic data
- Formatting with CSS
- Skinning Spark components with MXML graphics
- Creating data entry form components
- Integrating with Apache, PHP and MySQL
Skill Level Beginner
Q: After importing the Debugging.fxp file following the steps outlined in the “Importing and exporting projects as FXP files” video, several of the applications will not run.
When I attempt to debug or run the Variables.mxml or Watchpoints.mxml applications, I am unsuccessful. Pressing F11 to debug causes Flex to look for an application it CAN run, and runs that one. If I Right-Click one of the aforementioned applications and then click Run Application, an error appears that says “This file cannot be launched.”
What is causing this problem?
A: This is a common issue with Flash Builder. Before pressing F11 (or right-clicking and choosing Run Application), set the current MXML application file as the "default" by right-clicking it and choosing "Set as default application".
This should ensure that the application you want to preview opens in the browser when you press F11.
Q: When trying to specify the fontStyle as italic in both ways described in the first and second videos of the “Using Cascading Style Sheets (CSS)” chapter, only the literal string "italic" seems to work. If I use the constant for the same value like this:
I get a warning that reads:
"Design mode: Error during component layout. Choose Design > Refresh to refresh design mode."
Even if I try to refresh, design mode will not work until I change it back to the literal string. I made sure the import for this namespace was there by pressing Ctrl+spacebar, refreshed design mode several times, and even restarted Flash Builder. However, the only solution seems to be to use the literal. Is there a fix for this?
A: The use of constants and bindings in MXML style attributes results in unpredictable results in Design View, as evidenced by this error. Unfortunately, the best you can expect is that design view will render the presentation, but won't show the results of the style setting, because Design View isn't capable of evaluating MXML bindings without the benefit of Flash Player's runtime capabilities.
Q: Is Flash Builder compatible with Mac OS X 10.7 (Lion)?