How to use ArrayCollection and ArrayList in AS3.0 in flash professional mx.collection - actionscript-3

Can we use the mx.collection package in as3.0 flash professional (not in flash builder) ? If yes, from where can i get the whole mx package?

ArrayCollection is part of the Flex framework, you would need to include the Flex framework in your CS5 project. I'm not sure if this is possible.

Related

How to use MXML mx.controls.Label in ActionScript

I have one AS3 application which was developed entirely in AS3 without using single line of code in MXML. Of late I am realizing that MXML has some rich controls which are not provided in open source Apache Flex SDK. One library which is of most interest to me in mx.controls, it includes Label, DataGrid etc.
Now, I want to extend my AS3 application to call mxml compiled into swf file. I tried to import mx.controls inside my AS3 programs but it does not sense that. Please tell me if I am doing anything wrong. If I am able to import mx.controls inside as3 class it would save me a lot of time. Can I do this?
Alternatively, I am trying to write a few applications in mxml and then call (.swf) in AS3. Is it possible?
I tried Googling but all examples are pointing to using ActionScript inside MXML with [CDATA[]]. But I want the inverse. Calling MXML from ActionScript.
Please explain me at nuts and bolts level as I am struggling with this a lot.
thanks in advace
You can't do that because Flex, that uses MXML, is framework built on top of the Actionscript. But you can do reverse. In Flex MXML you can use Actioscript code, and you can also use Flash components like Sprite, MovieClip... by using UIComponent or SpriteVisualElement as their parent container.

FLVPlayback without Flash CS

I'm implementing Google video Ads in flash game, using FlashDevelop. Google has a sample where they're using FLVPlayback component to display video... problem is, I don't have this class anywhere.
I've searched how to add it, but all solutions say "link to C:\Adobe\Flash CS\Components\etc" path, which obiouvsly without Flash CS I don't have... and don't want to install it just for this :)
I wonder if there is a way to get the FLVPlayback without installing Flash CS?
You can try import external adobe components swc through Flashdevelop interface.
Maybe this can help you: link
I quit and just installed the Flash Professional CC, and there linked to the component path, but it didn't work for some reason. Then I included the FLVPlayback.swf component inside my AS3 app, which compiled etc. but as I learned FLVPlayback wasn't really what I needed.
After some fumbling I made it work with Flex Spark component - VideoPlayer, used inside AS3. You can find some code on the devlist: https://developers.google.com/interactive-media-ads/community?place=msg%2Fima-sdk%2Fc3KH11vxSd0%2FeLuYneYpch4J

Adobe Flash Builder : AddChild vs AddElement

Using Adobe Flash Builder 4.0 ?
Getting error when using addChild(). Compiler suggests about using addElement(). Are both these functions alternate of each other ? Or is it like addChild is deprecated ?
To get clear. Adobe Flash Builder is IDE for developing flex apps. What's important is Flex SDK version. Obviously you're using version 4+. I suggest to avoid using mx (Flex 3) components without strong need. You should read more about Flex 3 and Flex 4 difference.
Post about addChild vs addElement.

Create Windows/Macintosh Projector from Flash Builder 4

Am I able to publish a Windows/Macintosh projector from Flash Builder 4? I would like a solution that stays within the IDE, rather than having to open FlashPlayer.exe and export the EXE/App.
You can display your swf in the standalone flash player, and then create the projector from there (file -> create projector).
http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_sa.exe
Closing this question...doesn't seem possible. I'm sticking with Flash CS5 to publish projectors.
I've had to do this with FB As3 projects. You have to convert your project type to Flash Professional Project: right-click project in the Package Explorer / Add/Change Project Type / Add Flash Professional Project Type. You'll have to create a fla to use as the source. Set the fla Class in the Properties panel to the main class of your project, and add all your resource libs & SWCs to Flash Professional Project: File/ActionScript Settings/Library path tab. This is important or you'll get compile errors. Seems like FB should do this for you, but it doesn't. Now in Flash professional: Commands/Export as Projector.
Many Years too late, but for future reference.

reference a fla component in an actionscript project?

How do I reference a fla component from an actionscript project? I use flex builder.
I think that the answer depends on what component you are using, but inside flash IDE toggle the option of exporting the component to actionscript, or using the component code libraries should work.