Flash Professional can't find Flex SDK - actionscript-3

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.

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.

Where do I put admobs .Jar file in Flash Pro CS5.5?

I have created an app in Flash CS5.5 and would like to put admobs advertisements in it.
I am having problems figuring out where to put the .jar file that comes with admobs.
All the tutorials say put it in "build path", but there is no build path option in Flash Pro CS5.5
Flash Develop and I are not on good terms right now, and I am currently using Sublime Text 2 for coding all of the as3 and xml.
Can someone give some advice on how to get this working with the programs I am using?
JAR files are for Java applications and will not work with Actionscript.
Depending on the platform that you are targeting you will have to choose an alternative way to deploy AdMobs. For instance, if you are trying to use AdMobs on an AIR app targeting Android or iOS you can use an ANE (AIR Native Extension) such as this one.

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

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.

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

Flash ActionScript 3.0 - Any free compiler, tools and tutorials?

I have got an assignment in which I have to implement a AS3 wrapper for any FLV player and I have to expose actionscript functions (External Interfaces?) so that other can be used in other different applications via CallFunction API. I have few questions regarding this -
Are the tools for this are freely available? I know Flex SDK is but I want standalone swf (I means Flash Player 10) that can be used anywhere without any dependency and should contain FLV player embedded or should be able to load it from a particular location by supplying the URL.
Is it possible only with an ActionScript compiler (or any free tools?). My problem is that I don't have flash or flex builder and I don't want to spend money on these because I don't work on it.
As I have almost zero knowledge about it. Can you guys please explain me (if possible with details) that what I need to do. Any resoures on how to create and compile?
If any of you have ever done this it would be really great if you guys can share samples. I've heard that many people have done the same thing for video players.
I can share a bit of my setup
I use Flash (CS5) for creating assets
I use FlexSDK as the compiler
And do all the code in FlashDevelop
Flashdevelop is for PC only for now, it's free and comes since the last few versions now with a debugger
I use FlexSDK to compile and Eclipse with AS IDE or something along those lines, and then preview things in a web browser using an html page with the swf file embedded.
check out projectsprouts. its a pretty nice Flash (as2/3/Flex/AIR) generation tool that can help you stub out your project, compile it, and even create unit tests if you want. pretty simple ruby install (i am a ruby newb, and got is running pretty easily). It was a pretty good support base, and an active mailing list where people will be happy to help you along.
It is important to note that the FlexSDK has very little to do with Flex unless you are linking against classes that are Flex specific. mxmlc does not have anything to do with MXML even though it will also compile MXML.
Here is an article that describes Flash development on Linux. It is pretty old, but the principles are the same. With an Actionscript 3 Compiler (contained in the FlexSDK) and a text editor, you are off to the races. It is a lot easier with Flash Builder 4, FDT 4, Intellij IDEA, Flash Develop, etc ;)