Questions tagged [mxml]

MXML is an XML-based declarative language similar to CFML

MXML is an XML-based () declarative language created as part of the Adobe Flex framework.

MXML tags represent components written in ActionScript () under the hood. When you compile a Flex () application, the MXML is compiled using Adobe's mxmlc compiler into ActionScript which is then compiled with the application's actionscript code into a SWF () file.

Because of this, anything done in MXML could also be written in Actionscript. The language exists in order to simplify and accelerate application development for the Adobe Flash platform.

1126 questions
24
votes
7 answers

Flex Warning: Unable to bind to property 'foo' on class 'Object' (class is not an IEventDispatcher)

I've got an object that contains a dozen or so fields I want to bind to form elements, so that I can use that object to send the data back to the server to be saved. Definition of my container object: private static const emptyLink:Object = { …
Adam Tuttle
  • 19,505
  • 17
  • 80
  • 113
19
votes
4 answers

Possible to use Flex Framework/Components without using MXML?

Is it possible to use the Flex Framework and Components, without using MXML? I know ActionScript pretty decently, and don't feel like messing around with some new XML language just to get some simple UI in there. Can anyone provide an example…
davr
  • 18,877
  • 17
  • 76
  • 99
14
votes
1 answer

Extending MXML custom components via MXML

What I'd like to do: create an MXML component with some children, then extend it via MXML to create a new component with more children, without losing the original set. In other words create a component bc.mxml
fred august
  • 1,109
  • 12
  • 31
14
votes
1 answer

Flex: What's the difference between an MXML "Component" and an MXML "Module"?

As the title suggests, what's the difference between a "Component" (New –> MXML Component) and a "Module" (New –> MXML Module)? Thanks, David
David Wolever
  • 148,955
  • 89
  • 346
  • 502
13
votes
4 answers

Flex: does painless programmatic data binding exist?

I've only done a bit of Flex development thus far, but I've preferred the approach of creating controls programmatically over mxml files, because (and please, correct me if I'm wrong!) I've gathered that you can't have it both ways -- that is to…
Rytmis
  • 31,467
  • 8
  • 60
  • 69
11
votes
7 answers

How to put\save files into your application directory? (adobe air)

How to put\save files into your application directory? (adobe air) (code example, please)
Rella
  • 65,003
  • 109
  • 363
  • 636
10
votes
7 answers

When should an oldschool flash developer use flex?

What are the key differences between Flash and Flex? I have over five years experience with flash and feel very comfortable developing with it and ActionScript3. I find myself more and more curious about Flex and want to know when it is best to…
Brian Hodge
  • 2,125
  • 2
  • 19
  • 29
9
votes
1 answer

Difference between visible and includeInLayout properties of a component in Flex

Can anybody please tell me what about visible and includeInLayout properties of a component and what is the state of the component when they are in combination of {false,false},{false,true},{true,false}. Thank you in advance.
9
votes
6 answers

How to inherit states with mxml?

I have the following panel component called AdvancedPanel with controlBarContent:
Treur
  • 763
  • 4
  • 13
9
votes
4 answers

Set Flex component width to 100% at runtime?

If I am creating say a input field through MXML, I can set the width to 100%. But I cannot seem to do this at runtime through ActionScript. This works: This wont compile, says width is a number, not a string: var…
davr
  • 18,877
  • 17
  • 76
  • 99
8
votes
6 answers

Flex custom item renderer for the displayed item in the combobox

I am using a custom item renderer in a combobox to display a custom drawing instead of the default text label. This works fine for the dropdown list but the displayed item ( when the list is closed) is still the textual representation of my…
pbreault
  • 14,176
  • 18
  • 45
  • 38
8
votes
2 answers

Using validators in DataGrid - Flex

i have an editable DataGrid, something like:
Thiago Valle
  • 449
  • 1
  • 6
  • 20
8
votes
2 answers

How do I visually "break out" of a Container in Flex?

Here's my problem - I have some code like this: So the problem is that the Button inside the canvas has an x property way in excess of the Canvas's width - since it's a…
Paul Mignard
  • 5,824
  • 6
  • 44
  • 60
7
votes
1 answer

restricting character set in a Textinput field

I have a TextInput field that should be restricted to either capital letters, lowercase letters, numbers and underscores. This is the code I'm trying to use to restrict characters: restrict="\\A-Z\\a-z\\0-9\\ \\_\\-" I'm using MXML for this…
StephenAdams
  • 521
  • 2
  • 9
  • 26
7
votes
4 answers

Compiling mxml files with ant and flex sdk

I am just getting started with flex and am using the SDK (not Flex Builder). I was wondering what's the best way to compile a mxml file from an ant build script.
sutee
  • 12,568
  • 13
  • 49
  • 61
1
2 3
75 76