For a person, email spam may be just another day of 21st century where most well known email clients can keep the danger level well under control. But when it comes to server level spam protection, you really have to seat on the edge to keep up with the spammers. With fraudulent, inappropriate and offensive emails being delivered in vast quantities to businesses every day, spam protection is a vital component of your network’s security strategy. Spam wastes network users’ time and network resources, and can also be dangerous (especially since now days crooks deliver financial Trojans through mail- which …

Spyware sucks! Even the God dam! Spyware makers hate Spyware. You should be aware of that unlike viruses and worms, Spyware does not usually self-replicate. Like many recent viruses; however, Spyware—by design—exploits infected computers for commercial gain. Typical tactics furthering this goal include delivery of unsolicited pop-up advertisements; theft of personal information (including financial information such as credit card numbers); monitoring of Web-browsing activity for marketing purposes; or routing of HTTP requests to advertising sites. Many people have a misconception about Spyware that, since it don’t infect computer and rapidly spread it merely pose threat. Call it adware, …

This is the second session in the flex tutorial series. In “Flex 101: Knowing Flex” we just get to know Flex a bit closely. In this session we will focus on MXML basics, which is the key to any Flex application development.

As you already know, MXML is a kind of XML markup language, which only used in Flex especially for layout user interface components.

MXML vs. HTML

Though for a new bi it may be hard to grasp, but honestly MXML isn’t so different than HTML. Just like HTML, MXML provides tags that define user interfaces. But MXML provides a much richer tag set, such as-data grids, data binding, trees, tab navigators, accordions, menus, animation effects etc. Not only that you will be even able to extend MXML with custom components (MXML + ActionScript) that you reference as MXML tags. The biggest difference between HTML and MXML is the outcome, the MXML defined applications are compiled into SWF (Flash file) files and rendered by Flash Player which you got to admit much more rich and dynamic than HTML.

MXML coding

You are a developer or not, you should know by now, every markup language follow their own coding standard, MXML isn’t different at all. Since it is a variant of XML markup language, you will find a lot of similarities. So let’s start with a simple MXML file and explaining the parts of it.
<?xml version=”1.0″ encoding=”utf-8″?>

<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml”>

<mx:Label text=”Hello World!” fontWeight=”bold” fontSize=”24″ />

</mx:Application>

This is an example of simple MXML file, to display “Hello World”. Note that the first line of the MXML file specifies an optional declaration of the XML version.
<?xml version=”1.0″ encoding=”utf-8″?>

There are plenty of Flex tutorials out there, still why another one? Simple in my opinion most of the Flex tutorial I came across with goes too deep/complex without creating a base of understanding. Flex isn’t HTML  that you can just learn it through so called -Dumb guide to Flex. To be able to use full potential of Flex you should be known to one or more of these- PHP, ASP,JSP, CSS, XML etc. No need to be master of those but at least familiar with them makes Flex application …

Close
E-mail It