Use the Flex 4.6 SDK in Flash Pro CS5.5? - actionscript-3

I have a codebase for a Flash Builder project that loads in assets from a Flash Professonal project swf, and as such, they share the same codebase to compile from (so the code in the FB project can link to MC's in the Flash Pro)
Issue is, the code I am using has Flex 4.6 code in it (namely built in JSON support). That builds fine in FB, but when I update the Flash Pro swf, I get an error, probably because I have Flex 4.6 code and Flash pro CS5.5 isn't using Flex 4.6 to compile. Is there a way in Flash pro to target Flex 4.6 as the builder?
Thanks!
-Steve

actually found a solution for you Adding player 11 support to cs5

just for your records... before 11.x you'd have to include as3corelib.swc for its JSON functionality: https://github.com/mikechambers/as3corelib

Flex SDK 4.6 comes with complete source code under /sdk/frameworks/projects directory, as the source codes are broken into "projects", you would need to merge the projects together to get the entire framework source under one logical source tree.
Once you have this source tree created, you may add that to your Flash's compile path to gain the benefit of Flex SDK. But if you need Flex just for mere JSON support, then the target of Flash Player 11 would be a much better solution.

Related

Flex or Flash Builder, etc. What are the differences?

I just downloaded Flex. Do I also need an IDE to compile my .as files? I don't see any executable files in the Flex SDK that I can load an .as into. Can someone sort me out?
I will explain the differences:
Flex or Flex SDK: Is a set of components and UI controls for creating desktop, web and mobile applications, inside the Flex SDK there's a bin folder which contains executable files for compiling your .as code to .swf files.
Flash Builder and Flex Builder: Is an IDE based on the Eclipse platform, it comes bundled with the Flex SDK. Flex Builder was the name until version 4.x when it was renamed to Flash Builder. It is the IDE developed by Adobe and it's a good product to get started with ActionScript development.
Adobe Animate is fine for making Flash apps and games, the problem is that it lacks a powerful code editor.
If you are on Windows you can use Flash Develop which is free. If you are on OSX you can try Powerflasher FDT, its free tier allows you to make web and desktop apps.
Regardless of your choice, always keep in mind that you need to download the latest AIR SDK and Flex SDK (both free) to ensure maximum compatibility with the latest versions of Android, iOS, Windows and OSX.

Flash Professional can't find Flex SDK

I've tried using an [Embed] tag in my flash ActionScript file for the first time.
[Embed (source="../art/room.dae", mimeType="application/octet-stream")]
When I tried to run, Flash posted a warning:
I downloaded the latest Flex SDK from adobe and pointed the path there, but it still has no effect. I then did some searching which said I should just press the Update Library Path button and everything would work, but this is having no effect for me. (Although I'm not entirely sure that the path I'm using is the correct one - I didn't write it down before trying the downloaded SDK).
Any idea how to get this to work?
You can try installing a Flex SDK by using the very comfortable Apache Flex SDK Installer.
However usually Flash Builder or Flash Develop are used to develop Flex applications (in ActionScript and MXML) - and not Flash Professional IDE.
If you try to use Flex components from Flash Professional IDE - most likely they won't work.

Is there a compiler for Actionscript 3 on Windows?

I'm working on an app that will run on desktops and mobile devices. I have Flash Professional CS5. However, I am working on a project that really just needs AS3, and dealing with the complications of integrating AS3 with Flash has already taken a fair amount of time.
There's a link that says "Free, open-source framework | Adobe Flex". When I click on it it takes me to a page with Flash Builder 4.7 Premium for $700. I'd rather have something free...
Adobe's Flex SDK, Apache's Flex SDK, and Adobe's AIR SDK include mxmlc compilers. They can all be downloaded free of charge. These compile .as code into .swf binaries. The AIR SDK has the latest compiler from Adobe.
flashdevelop.org is a free IDE (that downloads one of the above to compile, and sets up your environment automatically). Similarly, Flash Builder is a paid IDE from Adobe.
Take your pick. I like to use Adobe AIR SDK under wine on Linux, personally. =)

box2d for flash how to compile its examples?

http://box2dflash.sourceforge.net/
i downloaded the code and in its folder there is a examples folder. How can i compile them ? what are the other software i need and how can i do it? Please help me because iam completely new to the actionscript programming side.
It is explained in the Examples/Readme.txt
As quoted from the Readme
//
To compile the demo:
//
Flash: extract Box2DFlashAS3 and open
PhysTest.fla in Flash CS3 (9) and hit
Ctrl+Enter.
Flex: Create a new
ActionScript project and add all the files from the archive to the project.
Set Main.as to the default application and hit Ctrl+F11.
MXMLC: From the
"Examples" directory, run: mxmlc
-source-path=../Source/ Main.as;
Thus you have three different ways to compile.
Use Flash CS3 (or higher)
Use Flex Builder (or higher )
Use the Flex SDK that contains mxmlc
Only posting this as an answer because I can't post a comment... this is an alternative box2D implementation that uses alchemy (so much faster) but the real up-side to it is that it has plugins for the flash UI to visually design/create physical objects, including building worlds etc. Video tutorial explains where to download:
http://gotoandlearn.com/play.php?id=135

Are there any libraries that bring CS4 Actionscript to Flash CS3?

Are there any custom libraries available that allow me to code/publish in CS3 using some of the features of CS4?
EDIT:
I say "some", because I understand that it is obviously nearly impossible to reimplememnt CS4 in CS3.
There is no difference between CS3 and CS4 in terms of code. You just need to target the current Flash Player 10 platform in your publish settings. They are both using the same Actionscript 3 libraries.
You can't load a CS4 project in CS3, but you can save your project to be CS3 compatible inside of flash CS4.
Oh, my bad. It's true CS3 can not compile for the Flash 10 platform. Therefore, no. There is no library, because the changes all require the new benefits of the Flash Player 10.
You can however use flex to compile your code. This will however require you to convert your code to flex.
You shouldnt be able to run anything in CS3 that is CS4 compliant only, mainly because it should require flash player 10 to run the code correctly, which you cant compile for in CS3.