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
3
votes
4 answers

How i write inline conditional statement in Flex with two expressions(case)?

How i write the inline conditional statement in Flex with two expressions(case) like text="{expression, expression2 ? true:false}" Flex compiler only check the first expression and on behalf of that give result.But i want to check both statement…
Tahir Alvi
  • 896
  • 2
  • 14
  • 44
3
votes
2 answers

Integrate Flare3D into a Flex application

I'm building an application with the Flex framework and the 3D graphics library Flare3D. I want to be able to embed my 3D scene into an MXML application and still have the mouse events dispatched to the 3D scene. Here is my code: - The MXML…
grandouassou
  • 2,500
  • 3
  • 25
  • 60
3
votes
1 answer

Different tooltips for different parts of a component in Action Script

I want to have a tooltip that shows different things when the mouse goes over a different part of a component. For example if it is the top half of a component it will show one tooltip. If the mouse is on the bottom half of the segment then the…
RNJ
  • 15,272
  • 18
  • 86
  • 131
3
votes
2 answers

How to prevent container in itemRenderer from exceeding width of list container?

In a Flex Mobile project I have a simple itemRenderer where I'm trying to create an "bubble" texting effect, similar to ichat or iphone (just so you get what im going for). But if the text is longer than the screen it runs off, rather than just…
brybam
  • 5,009
  • 12
  • 51
  • 93
3
votes
1 answer

How do I get the root display object of a MovieClip to be a MovieClip object with Flex?

I am trying to build an MXML application with Flash Builder 4.5, and I am integrating an API that requires the root of a display object to be a MovieClip. Personally I think this is bad design but I have to go with it. The root object always seems…
Matt Esch
  • 22,661
  • 8
  • 53
  • 51
3
votes
1 answer

setting variables in MXML while avoiding data binding?

I love MXML but am starting to notice some of its drawbacks. The main one I'm struggling with is its larger memory usage due to the need for binding. In the super simple code snippet below, which I've tested on Flex 4.0
fred august
  • 1,109
  • 12
  • 31
3
votes
2 answers

RegExpValidator MXML

HiI have a problem with a regular expression. I have an RegExpValidator in MXML and I want that is invalid when the source contain a or bMy RegExpValidator is
Snote
  • 955
  • 3
  • 19
  • 36
3
votes
2 answers

How to have same component ID in different state (Flex Mobile Project)

For example, in my flex mobile application I have a portrait and a landscape state. Both with the same components, but they are being laid out using different HGroups and VGroups in each state. If i was just putting click handlers on these…
brybam
  • 5,009
  • 12
  • 51
  • 93
3
votes
2 answers

How to create an AIR application in Flash Builder 4 without mxml

I am an actionscript developer and I know nothing when it comes to mxml. recently switched to using flash builder and I really like it but I want to create an AIR application in flash builder but I don't want to use mxml since I don't need any of…
user663738
  • 31
  • 2
3
votes
1 answer

Flex popup manager, mousedown outside of the popup removes the popup

If you create a popup via: PopUpManager.addPopUp( popup, this, false ); PopUpManager.bringToFront( popup ); It will create a popup and bring it on top of any other visual piece. I have one problem though. This 'popup' needs to stay up even when the…
andrewpthorp
  • 4,998
  • 8
  • 35
  • 56
3
votes
2 answers

Disable warning only in one place

In an MXML code public var data:ArrayCollection = new ArrayCollection(); I'm getting a warning: Data binding will not be able to detect assignments to "data" I know that the data…
Maxim Razin
  • 9,114
  • 7
  • 34
  • 33
3
votes
2 answers

Make an MXML component report the target of the click as the component and not the children

So, I have a component based on canvas, and within that component I have two images. I have the component listen for a click and when that event occurs one image goes transparent and the other becomes visible. This part works perfect. Now, on…
invertedSpear
  • 10,864
  • 5
  • 39
  • 77
3
votes
2 answers

MXML without Flex Framework/Components

The Flex compiler can compile "pure AS3" SWF files that don't contain any Flex Component bytecode. So, Would it be possible to create a custom component framework (used in place of the Flex Framework), that can still be visually laid out using MXML…
darscan
  • 963
  • 1
  • 12
  • 17
3
votes
3 answers

Flex 3 - Must I add components before setting their attributes when using AS3?

Let us say that I have a Flex 3 mxml component, call it A. A has a get/set attribute called 'b'. Within A I have another internal component C, which is specified using mxml. When "instantiating" component A within mxml, I can specify the value of b…
Stephen Cagle
  • 14,124
  • 16
  • 55
  • 86
3
votes
1 answer

Is it possible to create skinnable components in MXML using the Spark component architecture?

There are lots of examples of how to create skinnable components in AS3 using the new Spark component architecture, however I've yet to find any such examples using MXML. What I'm mainly referring to is defining the skin parts and skin states. It…
Marcus Stade
  • 4,724
  • 3
  • 33
  • 54