mxml

How do I change the size of an HBox in Flex to fit it's container?

I create an HBox, fill it with a grid of buttons, and set the scroll policy. When I resize the window, the stage changes size, and so does the HBox ... to a point. Once it reaches the height of the Grid it contains, it stops shrinking, like it has a "min-height". This ruins the scrollbar that I'm trying to establish in this case. I've ...

Conflicts between SWC skin and Spark drawing API

I have a project where we are trying to skin Spark components from a third party library that are built up from the drawing API primitives. Our first attempt involved creating a Flex skin (SWC) in Illustrator/Flash and applying that skin to the Spark components via CSS. We found that even with only a single instance of one of the comp...

Problem with parsing XML to DataGrid in Flex

Here I i'm trying to parsing a XML in like below: <?xml version="1.0" encoding="utf-8" ?> <spearkerslist> <speakers langid="afb" countryid="SA">200000</speakers> <speakers langid="acw" countryid="SA">6000000</speakers> <speakers langid="ars" countryid="SA">8000000</speakers> <speakers langid="arb" countryid="SA">20600000...

XSLT copy with modifications

Hi I'm stuck trying to work within these constraints, I'm using XSLT 1.0 {under .net}. I'd like to be able to do the following: i'm xsl:for-each'ing through a set of nodes of type <node> <data> unknown unstructured xml </data> <owner></owner> </node> i'd like to be able to output <node> <data> unknown unst...

ActionScript MXML <mx:> vs <s:>

Looks like I can use components for both or . So, which has more advantages? ...

Why this rectangle is not drawn?

public class Greeter extends MovieClip { public function Greeter() { addEventListener(Event.ADDED_TO_STAGE, go); } private function go(evt:Event):void { removeEventListener(Event.ADDED_TO_STAGE, go); var _root:MovieClip = parent.parent as MovieClip; var sp:Sprite = new Sprite(); ...

Flex Serialization for inbuilt components like...HBox, VBox, Panel, Canvas, DataGrid...

Here is the problem...I'm working on a flex application(actionscript)... I have a Panel in my application which contains 2 buttons and 3 canvas components at certain posstions...now I want to store the current state of panel in some file or database...and afterwards I want to load the same panel again in my application when I come back ...

Disable databinding in MXML

When the Flex SDK converts MXML to actionscript it generates a lot of databinding code. Sometimes, however, I don't want to bind a variable, for example if I know the variable will not change. I can't seem to find a work around in Flex to disable the autogenerated databinding. Also, I was hoping this might also help with some of the...

Resize nested mx:Lists to display all list items

Hi, I'm trying to create a nested list in Flex which will dynamically resize to display all children when the data provider changes. Here's a simplified example which illustrates the problem: <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var outer:ArrayCollection = new Arr...

Why this rect is not drawn?

My actionscript: package { import flash.display.Graphics; import flash.display.Sprite; import flash.events.Event; import spark.core.SpriteVisualElement; public class SimpleFill extends SpriteVisualElement { public function SimpleFill() { //var sprite:Sprite = new Sprite(); ...

how to export UI component to a string or something

Hi, I'm working on dashboard editor in flex, an application that allow users to drag ui objects inside a canvas. i need a solution to save the canvas with the objects inside (with all properties and locations x & y) to allow users to save dashboards to database and to open them . I need a way to get the canvas insides without parsing eac...

Adobe AIR NativeProcess - UAC problems when trying to run update installers.

Hi, I'm Adam. I'm trying to use Adobe AIR 2's NativeProcess API to emulate the ApplicationUpdater but I'm encountering problems when I try to run the downloaded AppUpdater.exe file on computers with UAC (User Account Control) enabled. When run without UAC enabled, the AppUpdater opens as usual and displays the standard Adobe replace di...

What's an awesome formatter for MXML/AS3?

I want a Flash Builder plugin that takes ugly unformatted mxml and makes it beautiful +1 if you would like something like this also. Edit: noticed that screenshot is barely legible. Larger version here: http://dl.dropbox.com/u/672147/mxmlFormatterDream.png ...

how to change the FusionWidgets UIComponent in Flex

Hi, I'm using the ravis FusionWidgets component in flex to create guages. I have a problem to change a guage in my program. I build an mxml component with the guage like this: "ns1:FusionWidgets id="myGuage" width="{guageWidth}" height="{guageHeight}" FCChartType="{guageType}" FCDataXML="{guageXML}" y="0" x="0"/" when the guageType and...

Flex 4 Scroller component doesn't render horizontal scrollbar.

I'm pretty sure my dynamic mxml layout must give me two scrollbars (horizontal and vertical) but it only shows vertical one. Am I missing something or is it a bug? <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xml...

Flex Best Practices - Multiple Flex Projects or 1 Project, multiple Application MXML files

Having seen several different ways of setting up larger projects in flex, I'm wondering what your opinions are of how to organize projects that are going to require 2 or more different applications. For example a public and private site within the project. The two main ways that I know of would be first, creating one flex project, and t...

Binding mxml (as)

I have actionscript file with a binding {someBinding}... The Main.mxml is where all the action happens. If I set {someBinding} in the "text" of a label component I will have a number. I have another form.mxml file. Where I want that binding to be in, but it can't find such binding. I need to have that {someBinding} in that other mxml,...

How do I access the root element of an MXML document if I can't set an id?

If I wanted to do something like this: <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" horizontalScrollPolicy="off" verticalScrollPolicy="off" xmlns:view="com.foo.bar.view.*" > <mx:Script> <![CDATA[ myWidth = 100; myHeight = 200; myCanvas.width = myWidth; ...

Why is my object reference null when trying to reference an mx:Canvas from ActionScript?

Hi everyone, this is a follow up question from this one, I don't want to keep going in the comments and preventing people from getting hard-earned reputation... :) In my Cairngorm command class, to get it to compile I needed to tell it what myCanvas was, so I used this line: var myCanvas : MyCanvas = new MyCanvas; I'm guessing that's...

"Default decoder could not decode result"

Here are the files - MXML: <mx:HTTPService id="score" url="http://...score.php" fault="mx.controls.Alert.show(event.fault.faultString)" method="POST" result=""mx.controls.Alert.show(event.result.toString())"> <s:request xmlns=""> <name>{name}</name> <score>{score}</score> </s:requ...