theDeSilva.com Andrew de Silva

Entries Tagged as 'Flash'

Removing Context Menu from Flash Player

September 2nd, 2008 · No Comments · Flash

Here’s how to show or hide the default items in the Flash Player context menu. If showMenu is set to true (the default), all context menu items appear. If showMenu is set to false, only Settings and About Adobe Flash Player items appear. Note that in actionscript 3 showMenu has been replaced by
showDefaultContextMenu

// Actionscript 2
 
stage.showMenu=false;

 
// [...]

[Read more →]

Tags:····

[Workaround] Flash Bitmap maximum width and height

August 25th, 2008 · Comments Off · Flash

In my recent posting on Flash Bitmap maximum width and height, I blog about how Flash bitmapData object has a maximum width and height of 2880 pixel . I was recently contacted by John Keyton who was really nice to point a work around created by Ronald LosbaƱes that would allow you to create a [...]

[Read more →]

Tags:······

Flash Bitmap maximum width and height

August 5th, 2008 · No Comments · Flash

An updated post has been posted , check it out at [Workaround] Flash Bitmap maximum width and height
Recently I was working with a flash image zoom application and realized that after launching the application it kept crashing when it was loading the larger image, I’ve checked every where and nothing seems to be wrong. File [...]

[Read more →]

Tags:·····

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:····

Retrieve Flash Variables in Actionscript 3

June 21st, 2008 · No Comments · Flash

Previously, in ActionScript 2.0, you could pass variables along the query string or using FlashVars and the variables would be available in _level0, in ActionScript 3.0, it is a bit different . In Actionscript 3 variables that are passed in through query string have been moved to the parameters property of LoaderInfo instance. Here’s a [...]

[Read more →]

Tags:··

Calling external swf using loadMovie()

June 21st, 2008 · No Comments · Flash

Recently I was working on a flash project that was using Actionscript 2 and it was such a pain trying to use loadClip() and pass in the necessary variables through query string for loading the external swf into a movieclip. I figure I’ll post this here and hopefully someone who is trying to do [...]

[Read more →]

Tags:··

It’s been awhile

May 4th, 2008 · No Comments · Flash

Wow , I just realized how long since I’ve actually written a post here. I’ve been extremely busy with work lately and I have not got a chance to update with my blog. I’ve been working with more .NET stuff than ever at work and also attended a Flash ActionScript 3 class.
ActionScript 3 is a [...]

[Read more →]

Tags:···