Solved

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

Posted on 2008-10-07
2
664 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
change color row in datagrid 6 651
establish a .net -flex website with existing code 3 337
Flex mobile local storage. 2 671
FlashBuilder allocate more memory using FlashBuilder.ini 18 280
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…
Facebook has became the #1 social media platform. People share many funny videos there, yet you don't know how to download them? Now you can download Videos from Facebook in just 3 simple steps.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 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