mxml

Adding an image on the right side of the title bar of a panel in Flex 4

Hi, I'm trying to create a MXML component based on the spark Panel and I would like to add an image on the right end of the title bar, so that the panel will have a text on the title bar and a small image at the right end. I'm using a skin to define the colors, background fill etc. But how do I add this image at the right end of the tit...

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 seems as though the SkinPart metadata is supposed to be associated with properties and as s...

C++: Trouble with parsing XML file (MXML library)

I am having an issue with the following code. It uses the Mini-XML library to extract elements from an xml file. It compiles and runs fine, except that it is unable to get the last "radius element," returning NULL instead (it crashes if I don't check to see if subnode is not NULL). //Start loading <ssys> elements mxml_node_t *node; //...

Flex: how to layout a component to the top-right of a window?

I am writing a Flex (Flash Builder) application which has a map component (http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/Map.html) and a drop down list component used to select items shown on the map. I want the drop down list component to always be overlayed on top of the map in the top right corner, regardless of the size ...

Is there any live mxml mx:datagrid full text search example\tutorial?

So I have in my RIA a mx:DataGrid connected to some web service from which it obtains data (Dataprovider). I have a simple text fild. I want to on text in text field change to see in my table only lines containing inputed text in some part of any word in any column. how to do such thing? ...

how to display one mxml in another

I have one mxml file that process xml, and display the graphics on panel. I need to display first mxml in another mxml file, in some area(HBox, VBox, Panel, dont care). How i can do this? ...

How to inherit states with mxml?

I have the following panel component called AdvancedPanel with controlBarContent: <!-- AdvancedPanel.mxml --> <s:Panel> <s:states> <s:State name="normal" /> <s:State name="edit" /> </s:states> <s:controlBarContent> <s:Button includeIn="edit" label="Show in edit" /> <s:Button label="Go to e...

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: <mx:MenuBar x="0" y="0" width="100%" id="myMenuBar" labelField="@label" itemClick="menuChange(event)"> <mx:dataProvider> <s:XMLListCollection> <fx:XMLList xmlns=""> <menu label="File"> <item label="New"/> ...

Force Flex 4 Spark Hslider snap to certain values?!

I remember using values array on good old mx:HSlider, is there any workaround for s:HSlider?! Basically I need slider to choose values between 300 and 2500 in following steps 300,500,1000,2000,2500. <s:HSlider id="franchiser" value="1500" skinClass="components.HorizontalSlider" x="0" y="0" minimum="300" maximum="2500" /> ...

Use mxml without flex to make a library

Hello, I'm looking to make a library that contains some audio files and a small as3 non-flex class. Is it possible to do this with mxml and not include any flex actionscript? ...

Carriage Return Line Feed in MXML

I have this line: text="{selectedOrder.targetLocationName} 'crlf' {pickUpLocationHTML}" Does anybody has an idea how to make this work? Thank you. ...

XAML To MXML Conversion

Is to possible to generate MXML file using XAML file and vice versa??? Both are based on xml and contains similar type of coding.... So is there a way to convert XAML file to MXML file and vice versa? Thanks in advance... ...

Can I make my Flex entry-point MXML subclass a custom AS3 class

With MXML components, I've seen a pattern used where you have an AS3 class, then the MXML subclasses it, to have a separation between view/code (anonymized from real code): package com.john { public class MyComponent extends Canvas { ... } } <?xml version="1.0" encoding="utf-8"?> <logic:MyComponent xmlns:logic="com.john.*" ...

Can you use qualified class-names in MXML?

It's common to do something like: <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:app="com.john.*" xmlns:ctrl="com.john.controls.*" > <app:MyView ... /> <ctrl:MyControl ... /> </s:Application> Is it a requirement/limitation of MXML I have to def...

When using PopUpManager to instantiate an mxml component, How can I call a public function of that component to pass the component data?

Basically I am poping up the following component: PopUpManager.centerPopUp(PopUpManager.createPopUp(this,RegionExperienceDetailPopUp,false)); I need to call RegionExperienceDetailPopUp.generateData(passIntArray); What is the syntax to do this? ...

swf streaming audio player

i am New to flex.Can any one point me to a small piece of mxml code which plays audio files(mp3,wav.....) also which has the capabilities to pause, play, stop.... the audio file. Also this file would be embedded in a html file later on.. ...

how to add childs to canvas in varius orders

Hi, I need help to add childs to canvas. I want to add childs to canvas in top-down direction and left-right direction? I'm using the addChild function but I don't want to calculate the X and the Y for each Item. is there a way to do that? ...

Switching between DynamicStreamingVideoItems

I'm making a custom spark videoplayer able to play multiple rtmp stream with multiple bitrates using DynamicStreamingVideoItem. But how do i switch between DynamicStreamingVideoItems ?? ...

Flex 4 Spark Transitions - Possible to include from outside the component mxml?

Hello, I'm wondering if it is possible to build the transitions mxml outside the mxml component they are meant to be used in? For example, like how the Script tag can have a source= property. I'd like to be able to keep the component mxml nice and tidy but also keep the transitions declared via mxml. Thanks. ...

ItemRollOver with a custom ToolTip

I have this custom toolTip: <?xml version="1.0" encoding="utf-8"?> <mx:VBox xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" implements="mx.core.IToolTip" creationPolicy="all" cornerRadius="4" borderStyle="soli...