Flex Toast style windows - actionscript-3

How can i create toast style windows in Flex MXML application like following?
http://www.adobe.com/devnet/air/flex/quickstart/articles/creating_toast-style_windows.html
I want to use this component in flex MXML where as this component is based on Action Script.
Was anyone able to recreate or use it in MXML project?

I reused some of the files and made it work in Flex Builder 3. :)

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.

Flex 4.5 / Apache Flex UI Framework Architecture

Is there any framework for UI development in Flex 4.5 ? Better standard for creating UI view layers using Action script. Also how to create states and state transitions in Action script?
Is there any framework for UI development in Flex 4.5 ?
Flex is a framework for UI Development. You can read up on the Flex Component Lifecycle for more information on how it works.
Better standard for creating UI view layers using Action script.
I don't understand what you're asking for here. You want a better standard than what?
Also how to create states and state transitions in Action script?
You can create states and state transitions in ActionScript similar to how you do it in MXML. Every component has a states array; and each entry in the state array will be an instance of the State class which will have a bunch of 'commands' to add or remove children or change properties. The full list is in the state class API documentation under the related API elements header.
Setting up states in ActionScript is tedious, though.

Component like HorizontalList for Flash

I'm developing an Flash application in ActionScript 3.0. I need a component to render my items horizontally using an ItemRenderer. I used fl.controls.List to do this vertically and found that there's HorizontalList for Flex applications, but I can't migrate to Flex.
Is there a component that I can use or how can I create one?
Update:
I tried TileView with 1 row but it causes columns to overlap when the number of items is greater than the component's width. How can I achieve something like overflox: hidden in Actionscript 3.0?

How can I add a class to my flash cs4?

I am about to create a simple demo in flash where I have 3 layers, 3 keyframes.
Currently I am just use some simple gotoAndStop() to move to the next keyframe.
But now I need a custom event to do that but I can't create a class inside the action of a keyframe so I am not able to create a custom event.
I just have AS3 developing experience in flex so far.
Thanks in advance.
you can import any class to your flash ide application:
import com.warren.events.CustomEvent;
after this you just have to do the regular usage you would do in flex. Don't forget to have you Custom Event class in the source path folder as your fla, or to configure your fla to have the correct source path of your classes.
(Publish settings/Actionscript-settings...source path)

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.