Posts Tagged ‘Flex’

LineBreak / NewLine in Flex Text Control from XML String

Wednesday, October 27th, 2010

Unfortunately the standard way (‘\n’)  of inserting new lines in Flex Text Controls (Label, Text etc) doesn’t work when the string comes from XML.

The magical way to do it is by using ‘
‘ so

Lorem
Ipsum becomes

Lorem
Ipsum

Custom Skinnable Slider Component for Adobe Flex 3

Friday, August 14th, 2009

First of all let me apologize for not blogging in a while but I’ve been working on couple of interesting projects after which it was time for deserved vacation on the BlackSea’s beaches.

Anyway I needed a better looking horizontal slider for one of the projects and all of my googling got me nothing reasonable (most of the tutorials were for changing the Thumb and leaving the default TrackHighlight) so I had to figure out something. Here is my horizontal slider, it is pretty basic but you can use it as a base for your needs. Corner Radius and Background Gradients are set via CSS, width and height are flexible too. Check the example and get the source code.

To view this page ensure that Adobe Flash Player version 9.0.124 or greater is installed.

Get Adobe Flash Player

Papervision3D: Getting Started with Adobe Flex (Screencast)

Tuesday, January 27th, 2009

After completing my personal website I started considering the idea of recording some video tutorials and as a result I have just done my first Papervision3D screencast. One thing I am very pleased with is the technical part of this task. Since I’m not a big fan of Camtasia and other propriatery software this time I used VirtualDub with x264 codec instead of Camstudio and flashsv. This way the quality of the video and the file size came out amazingly well (less than 1mb per minute of recording).

Moving to what the tutorial includes:

  1. Downloading and installing Tortoise SVN
  2. Downloading (check out) the Papervision3D SVN repository
  3. Setting up Flex Library Project (in Adobe Flex Builder) for the code downloaded at step 2.
  4. Setting up Flex Project (in Adobe Flex Builder) for our first Papervision3D attempt
  5. Writing and testing very simple AS3 Class CoolCube for getting started with PV3D
  6. Having fun!
To view the “Papervision3D: Getting Started with Adobe Flex” screencast you need Flash Player 9 or later.

PS. Sorry for the lag of outline around the captions but  I was informed that I have to buy a license for JW Player (which supports outlines). This forced me to use Flowplayer which has insane set of features but is nightmare to configure.

If you have any other player in mind (or hosting which will not recompress the video), please drop me a line.

Covarege of Flexcamp (Sofia, Bulgaria)

Saturday, January 19th, 2008

On 17 Jan 2008 took place the first event in Bulgaria dedicated to Adobe Flex and building RIA with it. It was well organized by Gugga and RIABG with one exception – it was in a weekly day which for sure lowered the number of visitors.

Summary of the things that were interesting to me:

  1. A sneak preview of Adobe Thermo – there are couple of videos already on YouTube
    1. http://www.youtube.com/watch?v=XecRJgbdCtU
    2. http://www.youtube.com/watch?v=qzAKlSE_-9o
  2. Adobe Flex 3 CRUD Database Wizard
  3. Couple of presentations which included good explanations for Flex databinding mechanism
  4. A demo of SWFAddress deeplinking utility

Of course there were some disappointments too – there was one presentation about laptop.bg which looked like payed commercial because it didn’t showed anything connected with Flex even the site itself and one more: the guy sitting in front of me took the iPod 🙁

Anyway it was a good experience, I hope there will be plenty more.

Install Adobe Flex Builder Alpha on Debian

Sunday, October 7th, 2007

After bumping my head against the monitor for couple of minutes i have successfully installed Adobe Flex Builder Linux Public Alpha on my Debian Unstable Linux. Here is the procedure:

1. wget http://download.macromedia.com/pub/labs/flex/\
flexbuilder_linux/flexbuilder_linux_install_a1_100207.bin

2. apt-get install eclipse sun-java5-bin

3. update-alternatives –config java
(set /usr/lib/jvm/java-1.5.0-sun/jre/bin/java to be used)

4. run the installer

Enjoy