theDeSilva.com Andrew de Silva

Entries Tagged as 'Flash'

FlashFlexFirefox – Flash Debugger Player Crash

February 25th, 2011 · No Comments · Flash, Flex

If you are using the Flash Debugger Player like I do to debug your work , you will soon to realized that the newer versions of Firefox tends to crash whenever the debugger prompts a warning. This is happening because Firefox will kill the debug session and cause it to crash Firefox. Here’s a solution [...]

[Read more →]

Tags:

FlashFlexReferenceError: Error #1069: Property startDrag not found on flash.text.TextField

August 4th, 2010 · No Comments · Flash, Flex

Here’s a quick solution to the error ReferenceError: Error #1069: Property startDrag not found on flash.text.TextField . This normally happens when you are trying to get the TextField to drag.   textField.addEventListener(MouseEvent.MOUSE_DOWN, drag); textField.addEventListener(MouseEvent.MOUSE_UP, drop);   // by setting mouseChildren = false it makes the drag function to use the container // of the movie [...]

[Read more →]

Tags:···

FlashFlexMouseEvent.DOUBLE_CLICK Not Firing

March 6th, 2009 · No Comments · Flash, Flex

Recently I was working on a project that I was using MouseEvent.DOUBLE_CLICK and the darn thing wasn’t firing no matter how many times that I’ve clicked on it. After awhile I remember that most  Flex component actually have a doubleClickEnable property . Guess what was the result of the trace when I did 1 trace(image.doubleClickEnabled) [...]

[Read more →]

Tags:·

FlashRemoving 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 // [...]

[Read more →]

Tags:····

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

FlashFlash 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. [...]

[Read more →]

Tags:·····

FlashFlexWidth 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 [...]

[Read more →]

Tags:····

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

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

FlashCalling 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 so [...]

[Read more →]

Tags:··