theDeSilva.com Andrew de Silva

Entries Tagged as 'Flex'

Width and Height for Dynamic Image in Flex

July 16th, 2008 · No Comments · Flash, Flex

Recently I was working on a Flex project and realize upon having my project on the live server , I couldn’t retrieve the height and width property of my loaded image by doing below

var img:Image = new Image();
img.source = "image.jpg"
trace(img.height);
trace(img.width);

The trace statement above will just show 0 for both width and height. Of course after [...]

[Read more →]

Tags:····

Finding Client Machine Capabilities using Flex / Flash

June 29th, 2008 · No Comments · Flash, Flex

Recently I was writing an application for Flex which I wanted to know about client-machine’s capabilities in order to provide optimal experience on my application. After searching around, I found the Capabilities API in Action script 3. This became extremely helpful as I can know figure out a things on my client machine to make [...]

[Read more →]

Tags:····