0
votes

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

3
what's the error you're getting? it's probably just a matter of including the necessary .SWCs in the .FLA - dtudury
JSON isn't a Flex thing... it's a Flash Player 11.x thing. Open your publish settings in flash and make sure the "target" is set to Flash Player 11 or higher. - Jason Reeves
As far as I know there is no way to get Flash Pro to use the Flex Compiler. The Flex Compiler does a bunch of "magic" related to framework setup. To use Flex classes in Flash Pro you'll have to perform the full Flex Framework setup yourself which I do not recommend trying. @dtudury It's more than just adding SWCs. - JeffryHouser
@dtudury JSON is not defined - Esaevian
@JasonReeves I don't have the option to target 11.x...height I have in CS5.5 is 10.2 - Esaevian

3 Answers

0
votes
0
votes

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

-1
votes

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.