?
Solved

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

Posted on 2008-10-07
2
Medium Priority
?
666 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 1000 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 1000 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

Automating Your MSP Business

The road to profitability.
Delivering superior services is key to ensuring customer satisfaction and the consequent long-term relationships that enable MSPs to lock in predictable, recurring revenue. What's the best way to deliver superior service? One word: automation.

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…
The Summer 2017 Scholarship Winners have been announced!
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

752 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