Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL
Help

Chapter 2. Getting started > Using design mode - Pg. 34

34 C HAPTER 2 Getting started Now, give it a run and see what happens. You should see something similar to figure 2.9. That wasn't too bad, was it? What you added was a but- ton (no surprise there). Anything you can add via MXML is categorized as a component. Visual components such as but- tons are also known as controls. Flex comes with a lot of Figure 2.9 Your first Flex components, but if you can't find what you want among application! Congratulations, them, you can make your own as well (which is what chap- you're now a Flex developer. ter 17 is all about). In this example, we added our button programmatically, but Flash Builder has a design side to it as well, which can help in prototyping and creating proof of concepts quickly. 2.5 Using design mode Flash Builder has an interesting feature called design mode that lets you visually cre- ate your application (see figure 2.3, item #7 to enable). Design mode allows you to drag and drop visual components into the application, position them, and tweak their properties (such as the background color). Going back to the Hello World! example, click the Design button. This time you should notice a couple more views on the right side of the window, titled States and