Archive for January, 2008

Shan’s Simple Examples: Scale all children in Flex

Posted on January 24th, 2008 by Shan

I’ve decided since I attempt to help people in #flex (on EFNet) and #coldfusion / #cfflex (on DALNet) on a daily basis, that I’ll pick one simple question and try to whip up an example for everyone to see.

Today, someone asked how to scale all children of a container. The basic answer is to just loop over all the children, and set their scaleX and scaleY properties.

Click through for the example and source code.

Shan’s Simple Examples

Posted on January 24th, 2008 by Shan

I’ve started a series of posts on the Webapper blog called Shan’s Simple Examples. I’ll cover Flex and ColdFusion examples as I help others in the IRC channels #flex (EFNet) and #coldfusion / #cfflex (on DALNet).
Hopefully this will turn into a nice library of quick HOW-TOs for us developers.
See a list of blog postings.
View the [...]

All your Flex are belong to ME!

Posted on January 18th, 2008 by Shan

Greetings, AYFABU readers. Welcome to my wonderful little blog about CF, Flex, Tech and life in general. Be sure to catch up on some of my previous posts (there’s not too many of them).
I’ll be adding badges to the blog later today.

Flex Not-So Custom Preloader

Posted on January 17th, 2008 by Shan

Today I got a request to change the “Loading” text in the preloader of a Flex app. To my surprise, I didn’t see any examples on how to do this, so I thought I’d share my results.

When you like the existing preloader, but want to just make little tiny changes to it, here’s what you do. You’ll first need to go ahead and create a custom preloader class that extends DownloadProgressBar (the default preloader). In this new class, you’ll see the spot where you can just make tweaks to the preloader’s values:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package org.iotashan.components
{
    import mx.preloaders.DownloadProgressBar;

    public class CustomPreloader extends DownloadProgressBar
    {
        public function CustomPreloader()
        {
            super();
            // set your properties here
            this.downloadingLabel = "Getting the hampster to run on the wheel";
        }
       
    }
}

Once you’ve created this custom preloader, you just have to assign it to your application:

1
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" preloader="org.iotashan.components.CustomPreloader">

That’s it. Check out the live example here.

Hello CFBloggers, 360Flex

Posted on January 17th, 2008 by Shan

Greetings to the peeps coming cfbloggers.com! I’m happy to announce that someone finally answered my requests to aggro my blog, so hopefully I’ll start getting more than a dozen readers
If this is your first visit, be sure to visit the categories that interest you. I don’t have all too many posts, so it [...]

No, the other pedal on the left!

Posted on January 16th, 2008 by Shan

I was out running some errands, and saw this:

I noticed an elderly person being helped into a police car, too. One can only assume they were the driver. From the gas station across the street, one of the attendants mentioned her husband (or was it boyfriend?) was the manager of the Batteries Plus, and he [...]

iPhone Google Maps using outdated data!

Posted on January 15th, 2008 by Shan

So, I was going to a party this past weekend, and I forgot to grab directions. No problem, I’ll just pop the address into my TomTom Go 700. Uh oh, the address can’t be found. Well, that’s ok… I saw the house on Google Maps online, I’ll just look it up on my iPhone.
Except when [...]

Review: Plantronics .Audio 480

Posted on January 14th, 2008 by Shan

I’ve always wanted earbuds with a boom mic. I’ve wished for years that they make one. Finally, Plantronics got around to it with the Plantronics .Audio 480.
I saw the package at BestBuy, and didn’t hesitate to pick it up. When I opened the package, however, I got a nice little surprise. The buds have two [...]

Neat cooking website for those who don’t know how

Posted on January 10th, 2008 by Shan

I “cook”
I “cook” things like Mac & Cheese, and I’ve started to dabble into baking from baking mixes. I want to cook more, but I just don’t know how.
Today, thanks to Digg, I came across startcooking.com. After just a quick glance, I can see they’ve overcome the hurtle of most cookbooks… they actually explain and [...]

StringList updated to 1.1

Posted on January 9th, 2008 by Shan

Yeah, two days old, and a new version is released. Yesterday my co-workers at Webapper suggested a few additions to the library. So there was one tiny little bug fix, in addition to a bunch of new methods and constants. I also updated the ASDocs to include examples.
So, check out the project page for a [...]