This is probably common knowledge for most but I’m posting it as it just came up in conversation (as I demonstrated it to a colleague). Also for the budding component developers amongst us this be of use and even prove insightful.
So, given the title this obviously has something to do with MXML tags. Which it does.
So what about them?
Well I’m refering to is the functionality that allows you to load and review the actual classes that are defined by the
To do this open up Flex Builder and create a new MXML file. The default code that is generated will do so you should see the following in your ‘source’ view.
[Thanks for the update Rob] Now hold down CTRL on Windows or CMD (The Apple key :p) on OS X and hover your mouse over the word Application. What should happen is that it will underline and allow you to click it. Now with your mouse pointer click at the beginning of the <mx:Application… this should highlight that entire row, as you can see in the image mine highlights in blue.
When you click this new link the Actionscript 3.0 class for that tag will open in the IDE for you to look through. Apologies if I’m posting ‘money for old rope’ style information but it is so easily missed if you haven’t heard or seen it before…
For those that haven’t I hope it proves useful :)
You don’t have to select anything. Just hold the control button and click on whatever you want.
Thanks for that Rob, I just always did it like that – that makes it even easier then :D
You can also press F3, which also works with Java code. F3 is ‘Open Declaration’ so you can also select any variable in your code, press F3, and it will goto the declaration of that variable
this is used for embedding html pages in flex right ?
@hitesh No, this is a short cut to allow developers to view the underlying ActionScript code that is represented by MXML within a Flex application :)
what exactly is <mx:
and y do we use that
@sweety, the prefix is what is known as a namespace. You can read more about namespaces here: http://en.wikipedia.org/wiki/Namespaces
thanq sir..
which book is gud for learning flex from basics
@sweety
Programming Flex 3 from O’Reilly is an excellent primer (http://oreilly.com/catalog/9780596516215/?CMP=AFC-ak_book&ATT=Programming+Flex+3%2c). Getting Started with Flex 3, (http://oreilly.com/catalog/9780596520649/?CMP=AFC-ak_book&ATT=Getting+Started+with+Flex+3%2c), is a pretty good pocket guide, and The Flex 3 Cookbook, (http://oreilly.com/catalog/9780596529857/?CMP=AFC-ak_book&ATT=Flex+3+Cookbook%2c), is handy for those who like cookbook style books :D
thanq sir