Solved

Flex: Difference between 'flash' and 'mx' packages

Posted on 2008-10-07
2
663 Views
Last Modified: 2011-09-20
In Flex what is the difference between 'flash' package and the 'mx' package classes ? For example :

     import flash.utils.Timer;
     import mx.events.*;


0
Comment
Question by:young_buddha
2 Comments
 
LVL 9

Accepted Solution

by:
asaivan earned 250 total points
ID: 22661287
As far as I know, the flash package is the newer AS3 packages which are native to the Flash IDE.  The mx packages are descended from the older Flash MX and Flex 1 AS1 and AS2 classes, which have evolved into AS3.  The flash packages all work in the Flash IDE, and the mx packages will not (necessarily) work in the Flash IDE.
0
 
LVL 4

Assisted Solution

by:ngiamouris
ngiamouris earned 250 total points
ID: 22676934
Or, in other words, flash.* packages are bundled with Flash Player itself and are responsible for the most basic operations of Flash i.e. drawing, transformations, events and any other primitive operation. So, if you needed a ComboBox component for example, you would have to write thousands of lines of code if you were to use just flash.* classes. On the other hand, using mx.* packages (which would imply you're developing in Flex), you would have your fully customizable ComboBox plus a whole lot of enabling features with only a few lines of code. As I said, you can use the mx.* packages only if you're developing with Flex (as in Flex Builder). If Flex is too much for you and you want to develop in the Flash IDE solely, you could use the fl.* packages, which provide a basic set of UI components along with a few supporting classes.

So just to recap:
flash.* - Native classes built into Flash Player
mx.* - Flex Framework Classes written in AS3
fl.* - AS3 Classes for Flash Development
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question