Solved

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

Posted on 2008-10-07
2
655 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Flex organization chart 5 594
FLex Calendar 3 534
Video Playback in Flex Mobile App 4 1,442
flex - list item renderer 7 669
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…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now