Sometimes you need to pass values from components to skin, for example having a dynamic layout. Using Flex sdk 4 you can transfer values using content property of the hostComponent ({hostComponent.content}).
I made a small example that use hostComponent.content, changing the values of HSliders the colors of the component will be changed.
So [...]
Last two week I seen two great applications that make use of multi-screen experience capabilities of Flash Platform.
Androideroids by Grant Skinner
Desktop MP3 Music Player by Mihai Corlan
The first is a prototype multiplayer asteroids game in which each player uses an Android phone as their game controller. The player connects to the game and [...]
If you have a big project you will soon find out that you’ll need to have to versions of the application. One that you work on and one that you need to give it as a release build. On a release build you need to get rid of unwanted things like pre-filed login credentials that [...]
What is AMF and a bit of history
Action Message Format (AMF) is a compact binary format that is used to serialize ActionScript object graphs. Once serialized an AMF encoded object graph may be used to persist and retrieve the public state of an application across sessions or allow two endpoints to communicate through the exchange [...]
Adobe release other two projects into the open source world. We are speaking about: Open Source Media Framework (OSMF) and Text Layout Framework (TLF).
Open Source Media Framework was previously known as Strobe, now is a an open framework for building media players for the Flash Platform. Download it from here and for more information about [...]
Let’s say you created a new component and you want to add some properties that need to be bindable. Something like this:
<flexer:myComp width="400" height="200" myNewSetter="{_myData}" />
<mx:Script>
[Bindable]
private var _myData:String= "";
</mx:Script>
And when we do this
_myData = "new_val_1";
the myComp component should know that _myData has changed and should modify itself [...]
This weekend I’ve been programming a new tree component that is intended to be used as a hierarchical menu. One thing that I have to do was to change the default behavior of the disclosureIcon. If you wonder what is the disclosureIcon, it is the grey arrow that shows if there is a node or [...]
Last week we received an email from someone having problems changing the position of the close button of a TitleWindow or Panel component. After a short brainstorming we found a solution and created a new component.
If you wonder how we did it the answer is simple: we extended the TitleWindow component and got into [...]
If you need and auto resized text area then you are in problems. As far as I know there is no property to use to make a text area auto resizeable.
I really needed an auto resizable text area so I started searching and studying. I found that we can use mx_internal properties, variables and methods [...]
In a previous article I explained how to create a custom preloader that will replace the very first flex preloader (the one that appears when starting application). That article was created using Flex Builder 2 and now needs an update because Flex Builder is at version 3 since a good time and Gumbo is on [...]
This article is a follow-up of this two: How To Make an Image With Border and Continuing Image With Border. I’m writing it in order to show you that you can import Image With Border component in a Panel. Mike had some problems using the component so here it is.
To use Image With Border just [...]
This was a tricky issue… but solvable. I needed to found a way to collapse the left panel of a HDividedBox. This can be easily done by using moveDividerTo() method or setting getDividerAt().x (for vertical getDividerAt().y) property to the desired value. The problem is this: if you want to collapse the left at double click [...]
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 [...]
In the previous article I explained how to use Yahoo! Maps. Now I’ll explain how to create a custom marker and how to place it on the map. This is not an easy task because on Yahoo! Developer Network (YDN) there is not enough documentation regarding Yahoo! Maps API for AS3. Take a look at [...]
This article will explain how to create a wildcard search. What I mean is the following:
dir *.*
or
dir myfile??.txt
The old DOS searching way. The first command (if you’ll run them in Command Prompt) returns all files with extension from the current folder. The second command will return any file having its name as this: [...]