Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Design > Adobe Creative Suite

  • Print
  • + Share This
Like this article? We recommend

Like this article? We recommend

Tying It Together

With the XML structure and component created, all that needs to be done is to tie it together in the MXML file.

Listing 3 shows how this is done by adding a new Headline when the creationComplete event of the document is fired.

Listing 3: Tying it all together

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="" layout="absolute" backgroundColor="#ffffff" creationComplete="addHeadline();">
          import com.studiosedition.view.Headline;
          private function addHeadline():void
              var headline:Headline = new Headline(’headlines.xml’, 5);
  • + Share This
  • 🔖 Save To Your Account