These day I’ve been fighting with this issue: trying to get the Flexer XML feed from FeedBurner into a Flex application. As many of you may know FeedBurner serves the XML with an XSL and browsers that know XSL will parse it and display it in a nicer way that a simple xml.
The problem is [...]
One thing, among others, that Flex doesn’t have, and is important because many of its components needs XML structures, is deleting (taking out) nodes from a XML structure. This is crucial for a tree or for a menu where you need to change it dynamically. So bellow is a recursive method that will go through [...]
I don’t know if you got in trouble when working with xmls but recently I found a bug (or a feature). Some differences when using toString() and/or xmlToString().
Take a look a the following code:
public var test1:XML = new XML("
<permissions></permissions>
");
public var test2:XML =
<permissions></permissions>;
public var test3:XML = new XML("
<permissions>
<test1>test</test1>
</permissions>");
public var test4:XML =
<permissions>
[...]
It seems that the constants behave strangely in Flex.
Here is why:
public const X:String = "X";
public const Y:int = 101;
public const NotSoConstant:XML = …some random xml…
Now here comes the fun part:
var x:string = X;
x = "aaa";
trace(X + ":" + x); // X:aaa
var y:int = Y;
y = 10;
trace(Y +":" + y); //101:10
var constantOrNot:XML = NotSoConstant;
constantOrNot = …another [...]
Some times you may pass over the following problem: the data doesn’t loads although the flex application is showing busy cursor. It remains in the loading process but it doesn’t finish. One of the following thing happens:
As you can see in the image above the SWF is not accessing the same domain it come from [...]
Having the code bellow:
<mx:application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:script>
<!–[CDATA[
public static const menubarXML:XMLList =
<root>
<menuitem label="main1" data="1">
[...]