Includeing fl.motion.Color - actionscript-3

I was reading this post: In as3 adjusting brightness of the shape is not working via coding, and it says to import "fl.motion.Color," but it doesn't seem to be in the default library. How do I include it?

You have to include the fl library.
You can find it in your installation folder under:
\Adobe\Adobe Flash CS5\en\Configuration\ActionScript 3.0\Classes
You would need to have Adobe Flash CS5 (or other version) installed.

Related

Type was not found or was not a compile-time constant: StageWebView

I am using flash builder 4.0 and am getting the following error. I have tied both 3.5 SDK and 4.0 SDK and set the flash version to 10 or above. I also tried a friends computer with flash builder 4.5 but could not resolve the error either.
Based on the Adobe link below StageWebView is part of AS3 which as I understand should be included with my current project as part of the flash.media.* group but I don't see it when I type the import statement.
Can someone tell me how to add StageWebView to a project or what I am doing wrong?
Error message:
Type was not found or was not a compile-time constant: StageWebView
Related link:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/StageWebView.html
StageWebView and many other classes are just for use with Adobe AIR, although they are included in the flash packages. sometimes also object methods are only available to AIR.
you recognize what is available only to AIR by the little red triangle logo in the reference.
Adobe AIR is not available in the web plugin. It is used to create "standalone" applications for desktop and mobile.

Is it possible to add Native Extensions to Actionscript Library projects?

I've got an ActionScript Library project which is shared between an ActionScript and an ActionScript Mobile project. It works nicely for sharing everything I need in the two projects, but I'd now like to share an Adobe Native Extension between the two projects.
There's a 'Native Extensions' tab for adding them on the [ActionScript Build Path] screen in both the AS and AS Mobile projects, but not the ActionScript Library project.
I tried adding the ANE via the 'Add SWC' dialog on the [Build Path] screen in the Library project (there is a filter for *.ane on the file browser), but the project then failed to run with a VerifyError: Error #1014: Class myANE could not be found.
Does anyone know if it is possible to add ANEs to ActionScript Library projects, or can they only be added directly to ActionScript or ActionScript Mobile projects?
Many thanks in advance for any advice.
Not in Flash Builder, no. You can do it in IntelliJ (I am in the middle of trying to make the switch right now and that has been a fantastic feature so far). If your ANE is open source, as quite a few are, it is likely the SWC used by the dev to compile the ANE is included in the source code, or you could generate yourself. The SWC is the only portion of the ANE required to compile any kind of AIR app or library. You'll have runtime errors if you don't include the ANE in the app, but that is a given regardless.
So if you have the SWC or can compile one, add that as an external library to your project.

How to add a component library to Flash CS5.5

I want to add Liquid Components to my existing project. I'm new to Flash development so I'm not sure how these components are installed. On the website it says to move .fla file to a specific folder.
I'm using Flash CS5.5 on Windows 7. I moved Liquid.fla file to: C:\Users\MyUserName\AppData\Roaming\Adobe\Flash CS5.5\en\Configuration\Components Note, there wasn't a Flash CS5.5 folder so I created it, it might not be right name, maybe that is the problem.
I also tried moving .fla file to C:\Program Files\Adobe\Adobe Flash CS5.5\en_US\Configuration\Libraries.
When I go to component panel in Flash CS5.5 I don't see these liquid components (even after restarting Flash CS5.5). Am I suppose to see the installed components in Flash CS5.5 Component panel?
Instead of putting that in Roaming folder, put it under "local", like the following
C:\Users\MyUserName\AppData\Local\Adobe\Flash CS6\en_US\Configuration\Components\Liquid
Mine is Flash CS6, but it should not be much different from CS5.5

Include MX library to Flash CS5 project

I need to use some classes belong to mx library, but when I try to import it Flash throws me an error that it can't find this library.
How can I import it to my project? I'm using Adobe Flash Professional CS5.
You may try downloading the Flex SDK, get mx.swc from Flex\frameworks\lib and add it to your library path (ActionScript Settings > Library Path) in Flash CS5.

FlashDevelop and Flash 11 Incubator

How can i start coding Flash 11 using ActionScript3 or Haxe with FlashDevelop?
Sorry for stupid question, solution was pretty easy.
Download Flash 11 Incubator
Download FlexSDK 4.5 and extract it somewhere
Download flashplayer_inc_playerglobal_022711
Make folder "10.1" inside {FlexSDK}/frameworks/libs/player
copy flashplayer_inc_playerglobal_022711.swc into new "10.1" folder and rename file to playerglobal.swc
Point FlashDevelop to FlexSDK 4.5
Set Project Target to 10.1
Add this "-swf-version=13" to Additional Compiler Option in project settings window
There is no official standalone Flash player 11 but you can use Unofficial one