How can I tell Flash Builder 4 where to look for FlashPlayer.exe - apache-flex

I uninstalled Flash Builder Beta 2 and installed the Flash Builder 4. I tried to import my new projects, but I keep getting a popup that says:
"
[path/to/Adobe Flash Builder Beta 2/FlashPlayer.exe]
Flash Builder cannot locate the required version of Adobe Flash Player.
Do you want to try to run your application with the current version?
Adobe Flash Player downloads"
I have a run config on a localhost server instead of generating the html wrapper. This only happens with imported projects, but I can't seem to find where in any of the config files the player location is specified.

I don't have a specific answer, but...
Instead of importing projects into a new workspace; have you tried using the same workspace? You can specify the workspace using the data argument when you launch Flash Builder:
flashbuilder.exe data="C:\something\something\something\workspace"
If that doesn't work, you can try to launch Flash builder with the '-clean' command line argument. I've found that fixes a lot of the issues I have.
Also check your SDK on the imported projects. Make sure it is not pointed at an old SDK from the beta 2 directory. After you change the SDK, be sure to clean the project.
Or if none of that works, re-create the project from scratch.

Related

Issue with Flex mobile project - bug?

I have a problem with Flash, so that Flash Builder shows an error icon on my project (and I can't run my project) but there's no error I'm sure -> I's working on this project and there's not any error in it AND flash builder doesn't show any error on any file. Any helps? How can I resolve this problem?
Note: I'm using Flex SDK 4.6 and BlazeDS...
Sometimes when odd things like this happen, you can fix them by cleaning the project or the workspace.
You can clean the project by selecting "Clean" from the project menu in Flash Builder.
To clean the work space, you want to first shut down Flash Builder. Then relaunch Flash Builder using the '-clean' command line argument.
Per the comments on the original question, your solution was the latter.

Is it possible to start an Adobe Flex app on OS X with just the AIR runtime and the .swf

I know it is possible to run an Adobe Flex compiled .swf from the command-line using the adl command-line tool.
Is there an equivalent way to run a Flex .swf from the command-line using the system installed AIR runtime?
My question applies to OS X, but I'd interested to know about other platforms also.
UPDATE: This question is now somewhat obsolete. As of AIR 3, there is now an 'officially supported' way to bundle the AIR runtime with an application, using the 'captive runtime' deployment option.
I just tested to run an AIR app without the need to install the application.
Copy the following folders from your Flex SDK
bin
runtimes\air
as well as all files from your "release" (bin-debug) folder of your project.(Don't build a release build!).
now you can run the application with "adl app.xml".
Though there was AIR runtime installed on the PC I think it should be possible without it too.
The original question was a bit different though, maybe it's helpful anyway.
I say No! A SWF is not the same as an AIR application. If you take that SWF's code and compile it into an AIR application; then you should be able to install and run it independent of the browser or any development tools.
I suppose in theory you could create an AIR application where you give it the location of a SWF and use SWFLoader to load the actual SWF. I don't think that is quite what you're after.
There is a stand alone Flash Player which is different from AIR and different from the browser plugin. You can get it here. You can use that to run the SWF as if it were a local app. I wouldn't count on your users having that, though.
You can also load a local SWF in the browser and let the flash player plugin handle it.

Flex - Air "nativeprocess not supported"

I want to fix the error when am using "nativeProcess" class it giving error, How to resolve the error.Any air installation failed?
According to documentation, NativeProcess is only supported with extendedDesktop profile via Native Installer
In clear text, you must have this in your appName-app.xml
<supportedProfiles>extendedDesktop</supportedProfiles>
And export your application as an .exe file (or whatever your system is), not an .air file.
I ran into such issue when i was using wrong adobe air sdk. As you know, native process support was introduced in 2.0 adobe air sdk. But i used Adobe Flash Builder plug-in for Eclipse, and Eclipse was pointing to 1.5. Manual replacement of air files in the sdk folder with ones in the Air 2 SDK and pointing Eclipse to the right sdk fixed the problem. See detailed description here:
http://www.selikoff.net/2010/06/28/installing-the-adobe-air-2-sdk-in-eclipse/
If you are using the appropriate air sdk, ensure that you've included "extendedDesktop" profile to the "supportedProfiles" section in your application descriptor file.
Are you running with needed privileges?
Did you do exactly as in this?
What kind of process you are trying to call?

Flash compile error 1017

I'm getting this error when compiling a newly created application with SDK 4.1:
1017: The definition of base class Application was not found.
I can click on the SDK library path in the Flash Builder Explorer and navigate to the spark->components->Application object.
At least one other application linked to the same SDK compiles just fine.
For current time, the best solution will be:
Try to make a flex3 project, and let us know if it works.
Try to download any sample 4.1 project and try to compile, and let us know.
If you are using flex builder pack, use a plugin pack instead. Or conversely.
Try uninstall it completely and reinstall again.
Check if sdk 4.1 exist in your C:\Users\%USER%\AppData*Adobe*\ folder.
Let us know.
Thank you.

Can Flash Builder 4 Premium compile Flex Builder 3 Pro project?

That's about it. Oh, and I don't want to convert the Flex Builder Project making it incompatible with Flex Builder 3 Pro.
Yes! Here is an article and video that shows how to use the Flex 3 SDK in Flash Builder 4.
Yes, you can compile the project with Flash Builder 4. ISTR it either silently updated my project settings or I might have converted the project.
In any case, if you are trying to simultaneously use Flex Builder 3 and Flash Builder 4 you should note that at least one of the internal eclipse & FB project settings files (.actionScriptProperties, .flexProperties & .project) changed format between FB3 and FB4 - I can't remember exactly which ones changed off the top of my head.
This will affect your development workflow.
I have previously used Flash Builder 4 on a project whilst the rest of the team was using Flex Builder 3. Whenever they updated their project I had a lot of problems with conflicts in at least one of the above files. Whenever this happened, I just accepted the FB3 versions of the files, and let FB4 internally deal with upgrading the format. If I somehow needed to make changes to those files (such as adding a new class), I'd either get another team member to do it, use FB3 to add the files, or just manually edit the file myself. Irritating, but not the end of the world.
YMMV.
Yes. Adobe products are extremely backwards compatible. However, some Adobe products will by default save your "older" files into the newer format - ie if you saved your FB 3 project with the FB 4 application, you may have to choose "Save As" to force it to save it as version 3 (this is true at least for Flash, not certain if Flex is different in that regard). This is only relevant if you need to retain the older file format for compatibility with other coworkers who only have an older version of the program.

Resources