Current Position:Home > Changing mxml UIComponents with Actionscript

Changing mxml UIComponents with Actionscript

Update:11-30Source: network consolidation
Advertisement
Hello,
i´m searching about a way to change the text of labels createtd with Designer by Actionscript. But i try to browse the entire collection to find all used UI-Components.
If i use the debugger, i can see  an mxmlContent Array with all Components but i can´t use theses in Actionscript.
Regards
Thomas

The Best Answer

Advertisement
Hi David,
thanks for the reply, but that is not, what i want.
I´m searching about a solution to browse the complete mxml component list in Actionscript.
We will change the labels of all items by runtime with data from a cfc (Coldfusion component) without hard coding the labels in Actionscript. I need a readable collection of all UI-Components to read the id´s, comparinge these with the cfc datasource and change these with other data from this source.
As i say, the Applipcation.mxmlContent (or any Group.mxmlContent) has all these properties. Baut i can´t use mxmlContent in Flashbuilder because i got an error, that this property is not defined instead i can read that in the debugger.
Thomas
  • Changing mxml UIComponents with Actionscript Update:11-30

    Hello, i´m searching about a way to change the text of labels createtd with Designer by Actionscript. But i try to browse the entire collection to find all used UI-Components. If i use the debugger, i can see  an mxmlContent Array with all Components

  • Converting MXML Components to ActionScript Classes Update:10-11

    I'm in the process of converting most (if not all) of my MXML components to Action Script classes. I've found this is easy, and doesn't require a lot of extra code when extending a simple container or control. However, several of my MXML components h

  • How to Access MXML components  from ActionScript class Update:10-11

    Hi , I am having a Application Conataner , in which i am having a Form Container with some Label in it . This is some thing similar to this as shown : <Mx:Application> <Mx:Form> <Mx:Label text="Hello world"/> </Mx:Form> &

  • Instantiate MXML component in actionscript - percent sizing issues Update:11-30

    Hey guys, I'm busting my head trying to sort out this issue. I have a MXML custom component which is being instantiated in actionscript, e.g.: component:CustomComponent = new CustomComponent(); The custom component extends Canvas (i.e. the root XML t

  • Dynamically add custom MXML components in Actionscript Update:11-30

    As there's no constructor for custom MXML components, how to dynamically add it as a child using ActionScript? I'm looking for some alternative to avoid the need to rewrite the entire existent component in ActionScript just to add it this feature (a

  • How to call methods from .mxml file from actionscript file Update:11-30

    I have a Example.as and a Test.mxml. In this Test.mxml, I have a function which is something like: public function doTest():void      Alert.show("testing!"); How do I from example.as call this function doTest() from Test.mxml? I tried declaring

  • Adding mxml form with actionscript Update:11-30

    In my application, I have a form that is generated with an accodion and a repeater. The repeater is used to generate the number of forms needed based on the number of children in the xml dataprovider. Now what I would like to do is to add new forms w

  • Accessing MXML ArrayCollection from ActionScript class? Update:11-30

    I have an MXML file that has an arraycollection for my Tree component. I am overriding the updateDisplayList function in order to add lines to all of my nodes in the Tree.. however I can't seem to figure out how to access that ArrayCollection from in

  • How to import MXML Component in ActionScript Update:10-11

    Hello, I'm having a structure similar to this: root    - components        - subcomponents (MyCustomMXMLComponent)    - views In views package I have a piece of AS where I want to instantiate an MXML Component from subcomponents. In Views: var data:D

  • MXML Components and ActionScript Classes Update:11-30

    Hello, I am fairly new to Flex and OOP and am confused on how some parts of OOP work. I have a Spark TextInput Component with an id which equals "test". I also have a function that takes "test.text", appends a string to and and puts th