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

How can you change a Label's color at runtime in ActionScript 3.0?

I get the following error: 1119: Access of possibly undefined property color through a reference with static type mx.controls:Label. The thing about that is that, in the MXML, color is an attribute of Label. But if I try to say something…
Panzercrisis
  • 4,590
  • 6
  • 46
  • 85
5
votes
3 answers

How to add wordWrap on spark GridColumn

Today, I decided to test spark datagrid instead of mx:Datatagrid. But a problem appear: I didn't found wordWrap option, do you know how to solve that?
Flex60460
  • 933
  • 2
  • 18
  • 49
4
votes
3 answers

Can I have multiple classes in one file in MXML?

I have a classB that will only be used inside classA. However, classA is written as mxml, not actionscript code. Is it possible to nest classes in MXML or add another class after the root tag in the same .mxml file? Clarification: I want both…
Bubbles
  • 466
  • 4
  • 17
4
votes
3 answers

How do I stop a datagrid's first-row itemRenderer from instantiating/adding/initializing/etc twice?

In a Flex DataGrid's first row, the itemRenderer will initialize twice. Tracing the results reveals that the flex framework is possibly creating two instances of the first row's itemRenderer. In a more complex application, where the itemRenderer…
user56512
4
votes
3 answers

flex 3 accessing main mxml from actionscript code

im writting an actionScript class to handle my web service calls. When i retrieve a result i want to call a setter method in my main mxml application. My problem is that i dont know how to access the methods in the actionScript section of my main…
cdugga
  • 3,849
  • 17
  • 81
  • 127
4
votes
2 answers

Unsupported sampling flex/actionscript

In action script i need Loading configuration file /opt/flex/frameworks/flex-config.xml t3.mxml(10): Error: unsupported sampling rate (24000Hz) [Embed(source="music.mp3")] t3.mxml(10): Error: Unable to transcode music.mp3. …
Rajeev
  • 44,985
  • 76
  • 186
  • 285
4
votes
5 answers

How do I attach camera to Spark.components.VideoDisplay

I'm using Flash Builder and created a spark-application Flex project that will stream video from the local camera. If I use mx.controls.VideoDisplay; there is no problem since it has attachCamera(camera) method. But Spark's VideoDisplay component…
Onur Yıldırım
  • 32,327
  • 12
  • 84
  • 98
4
votes
7 answers

what are the advantages of using mxml over actionscript in a flex application?

they both seem to accomplish the same things with different syntax, whats the point of using two different technologies. Please highlight every possible benefit of using mxml. Also are there scenarios when one is more beneficial than the other and…
timmaktu
  • 163
  • 1
  • 1
  • 12
4
votes
2 answers

Programatically enable/disable menuBar buttons in Flex 4

I have the following XML in my Flex4 (AIR) project that defines the start of my menu interface:
Hamid
  • 4,410
  • 10
  • 43
  • 72
4
votes
5 answers

is there such a thing as an MXML interface

This could potentially be a dumb question so apologies in advance if it is. I'm wondering if theres an equivilant of Interfaces in MXML? Everytime I feel the need to use an interface I always wind up making an actionscript and not an MXML file…
dubbeat
  • 7,706
  • 18
  • 70
  • 122
4
votes
2 answers

How to use AS3 class in MXML?

How would I use the following AS3 class within MXML? AS3 Class: package mtm { import flash.display.MovieClip; import flash.display.Shape; public class TestClass extends MovieClip { public function TestClass() { var…
Mike Moore
  • 7,228
  • 10
  • 42
  • 63
4
votes
1 answer

Hello World fails with "Error: Could not resolve to a component implementation"

I'm just starting with Adobe Flex on linux, and can't get the hello world example to work. My application.mxml file is simply
drpepper
  • 462
  • 1
  • 5
  • 16
4
votes
2 answers

What is the best way to DEBUG memory leaks in a Flex program written in Actionscript and MXML?

Let me start by clarifying what this question is NOT. It's not a request for an simple explanation of how Flash memory management or garbage collection works (reference counting, mark and sweep, etc.). Nor is it a request for tips for avoiding…
4
votes
3 answers

static/private child component in mxml?

Are there any way to declare a child component in mxml which is private/protected or even static? Sure we can do this inside a script tag, but are there any other way?
Andy Li
  • 5,894
  • 6
  • 37
  • 47
4
votes
3 answers

Duplicate complex MXML binding in ActionScript

MXML lets you do some really quite powerful data binding such as: I've found that the BindingUtils class can bind values to simple properties, but neither of the bindings…
MidnightGun
  • 1,006
  • 1
  • 19
  • 39
1 2
3
75 76