Skip to main content
Participant
November 14, 2010
Question

Accessing application attributes

  • November 14, 2010
  • 1 reply
  • 351 views

How can I access apllication attributes? For exemple, I want to do that:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application name="SimpleApplicationExample" xmlns:fx="http://ns.adobe.com/mxml/2009"
                xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" width="500">

<mx:Label text="application.width" />

</mx:Application>

evidently, this code will not run; but do you understand what I want?

This topic has been closed for replies.

1 reply

stilbenAuthor
Participant
November 14, 2010

Answer:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application name="SimpleApplicationExample" xmlns:fx="http://ns.adobe.com/mxml/2009"
                xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" width="500">
               
<mx:Label text="application width: {this.width}" />

</mx:Application>

Message was edited by: stilben