December 12th, 2009 |
by teocomi |
published in
Flex 4
In this example I show an easy way to filter an ArrayCollection with multiple conditions, it can also be applied to XMLListColletions. Filters are given by the DropDownLists and the result is shown in the DataGrid.
Source here:
I created this function to filter the data, it loops through the files and if all the conditions are [...]
December 4th, 2009 |
by teocomi |
published in
Flex 4
Learn to use Adobe Flex 4 beta 2 (codename Gumbo) and Adobe Flash Builder 4 beta 2 in a week by stepping through this video training course. It is great, and it is the way I learned Flex.
From here you can download Adobe Flash Builder 4 beta 2.
If you are still a bit afraid [...]
November 13th, 2009 |
by teocomi |
published in
Flex 4
Some days ago I became crazy trying to format some simple text into a RichEditableText in Flex 4. This is because the Adobe team is deeply changing the way of using text in this new release. Let’s try to understand more on this:
“The Spark architecture provides three text “primitives” — Label, RichText, [...]
November 6th, 2009 |
by teocomi |
published in
Flex 4
The classical navigateToURL will not work in a loop to open multiple links at the same time, so here is a good solution:
[code lang="as3"]
protected function button_clickHandler(n:Number):void
{
if (n < linksArray.length) {
navigateToURL(new URLRequest(linksArray[n]), '_blank');
[...]
October 31st, 2009 |
by teocomi |
published in
Flex 4, Personal
Well, just tell me what you think of if ;)
http://teocomi.com/Teocomi.html
don’t forget to report all the bug you may encounter!
October 26th, 2009 |
by teocomi |
published in
Flex 4
I went almost crazy some time ago trying to resize and center some images dynamically loaded into Flex, finally I found out that the key point was to consider the image.contentWidth instead of the image.width. This beacuse if you try to get the image.width as you load the image it will return the value [...]
October 26th, 2009 |
by teocomi |
published in
Flex 4, PHP, Resources
Have you ever wondered how to test your PHP (for instance) files locally? Well I never did, till I found XAMP. It is a great tool to quickly install on your computer with no hassle Apache, MySQL, PHP + PEAR, Perl… There are different distributions for Windows, Mac OS, Linux and Solaris.
It became essential for [...]
October 26th, 2009 |
by teocomi |
published in
Flex 4
I was trying to create a simple preloader for my image gallery in Flex; so i ended up with something like this:
[code lang="XML"]
<mx:Image progress="pre.visible=true" complete="pre.visible=false" source="img.png"
height="40" width="40" />
<mx:Image id="pre" source="@Embed(source='preloader.swf')" height="40" width="40" />
[/code]
we simply use the events progress and complete of the image loading to [...]
October 23rd, 2009 |
by teocomi |
published in
Flex 4
I’m not good at flex or actionscript, let’s just say that I’m trying to. Anyway sometimes I’d like to post something about the great tool of Flex (maybe also Flash). So let’s star with some links that provided me great help:
Flex in a Week – Video tutorial (where i actually learned it)
Differences between Flex [...]