One of my friends was so kind and tell me about his tool and I think it’s really good.
SO, Flex-Spy allow you to inspect and dynamically change most properties and styles of the visual components in your Flex application.
Check it out a live at: http://www.mieuxcoder.com/data/2007/12/FlexSpy-1.2/dashboard.html (in the application, click the flexSpy button on the top-right [...]
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>
[...]
The following code inverts the colors of an image and returns the inverted image as an Image object. As parameter it needs the container of the image (a canvas).
private function invertImageColor(canvas:Canvas):Image
{
var newImage:Image = new Image();
newImage.source = Image(
[...]
I was working to a flex project and I just need to make a cast to a value to int … this it’s simple … and not so.
After few hour later, I have a vision …
I just try to make a cost from a decimal value to int, and I have noticed that [...]
As I have played with RSLs more I saw something surprising: If I compile the swc into a swf the resulting swf is bigger (almost twice) as it should have been. When you use compc to create a SWC, the SWF inside the SWC contains a lot of unnecessary stuff when used as [...]
As you saw in the previous posts you can use RSLs to reduce the size of a flex application.
If you use mxml in your application you should know that behind the scenes Flex will include in the project a lot of classes and controls (some of them you do not even want). You [...]
In a previous article I told you about the benefits of RSL’s. But you need also to know how to create them from a swc and how to use them.
First step is to create a new “Flex Library Project”. Write all the code you want to have in it. Then in your main application [...]
If you ever wanted to make a complex application with Flex you always asked yourself: Is the swf to big? How can I reduce it’s size?
Here are some small tips that do not relate to flex only, and one specific to flex:
One of the first questions any beginner in OOP and Flex will ask is: What do those public/protected stuff really mean?
Well here is a short table to describe them.