how-to-code.com

Flex Datagrid Remove Headers

Website / Blog :  www.how-to-code.com

Contact :  This e-mail address is being protected from spambots. You need JavaScript enabled to view it

To remove the headers from a Flex Datagrid set the showHeaders property to False. i.e. showHeaders="false".

 

Flex Trim String

Written by Philip

To trim a String in Flex you'll need to use StringUtil.trim , this allows you to basically take the spaces off the end of a string.

Remember you'll need to import mx.utils.StringUtil; so your code should look like as follows.


2
3
4
var stringWithSpacesOnEnd:String = "hello      ";
stringWithSpacesOnEnd = StringUtil.trim(stringWithSpacesOnEnd);
//stringWithSpacesOnEnd will now not be "hello " but "hello"
//As we've just trimed the string.
If your looking for a nice StringUtil class that you can use try the AS3 String Utils class on gskinner.com at
 

Welcome to How-To-Code.com

Written by Philip

Website / Blog : www.how-to-code.com

Contact : This e-mail address is being protected from spambots. You need JavaScript enabled to view it

Hello! and Welcome to How-To-Code.com. I've set up this site for myself and others to be a 'database' of articles of mainly how to code AS3, Flash and Flex Applications, Games and everything that is super cool in the Flash Platform world at this current time. Currently I am submitting articles to this site, but it's really easy if you wish to submit articles to this site too, or wish to submit a link to post on this site! Go for it, the nav bar should be above this text if I've developed the site correctly!

   

Written by Philip

Contact : This e-mail address is being protected from spambots. You need JavaScript enabled to view it

Advanced Flash Preloader (Timeline Based)

The Advanced Flash Preloader was something I distributed a while ago, about 2004, but it still works with Flash CS3 and probably CS4, easily. It's a basic timeline based flash preloader. It's a great flash preloader to start with if you're up to Timeline stuff. It has simple instructions that within the .FLA, and in 2004 I even set up a tutorial on how to place it into your movie. The great thing is I tell you how to test it as well, which is handy, so you actually know it works after you implement it! Enjoy.



Advanced Flash Preloader Download

File Name File Extension Size in Mb
AdvancedFlashPreloader .zip 1.666

How to Use the .FLA

Full instructions on how to use this file are contained within the .FLA

 

‘WPF Control Development Unleashed’ book on Safari books!

Written by Ashley

WPF Control Development Unleashed by Pavan Podila and Kevin Hoffman is finally available on Safari Books Online!

I’m hoping that this book does what it says on the tin, and provide us with some good examples of real-world, scalable and robust WPF applications..

   

Page 1 of 3