Tuesday, March 4th, 2008 |
|
Proxy/XML + [] = broken |
There’s an issue with the Proxy and XML classes when you use the [] syntax to execute methods.
For example, this is the working behaviour:
var g:Function = myProxy.go; // calls getProperty on the Proxy subclass myProxy.go(); // calls callProperty on the Proxy subclass
This is the non-working behaviour:
var g:Function = myProxy['go']; // calls getProperty on the Proxy subclass myProxy['go'](); // calls _getProperty_ on the Proxy subclass
In the second example the second line calls getProperty. So why is that a big deal? Two things: first, it’s not consistent with non-[] syntax, and second, it calls getProperty so you don’t know that the user is actually calling a method.
This was reported to Adobe on JIRA (Calling a method on a subclass of proxy dynamically invokes getProperty rather than callProperty) and after months of inactivity it was finally concluded that this is not a bug. Why? Here’s the example that was given:
(more…)
Tuesday, September 11th, 2007 |
|
FSCommand and getURL Bug in Flash Player 9 |
Having problems with getURL/navigateToURL or fscommand?
Using a getURL queue system because of a “bug in IE”?
Check this out:
FSCommand and getURL Bug in Flash Player 9
This will become more and more an issue with more and more people buying Flash CS3. In Flash CS3 you have the option to publish your AS1/AS2 projects for Flash Player 9 to take advantage of some of its features. If you do that, and your project uses getURL or fscommand, then it will be succeptible to this bug.
If you target Flash Player 8 in Flash CS3 you’ll be fine. The problem is when the player detects your SWF as being published for Flash Player 9 (AS1/AS2/AS3).
Wednesday, May 16th, 2007 |
|
Extra Pixel in V2 Components |
I know a lot of people have moved on to Flex 2 and Flash CS3 but there are many people that are still forced to use Flash 8 and earlier due to a variety of circumstances. I am one such individual.
In developing an app for a client I found an issue with V2 List and Tree that I had seen before but never really bothered with. Previously this issue was simply an annoyance. But in this current app the lnf needs to have a solid 1 pixel border around instances of the List and the Tree components.
The issue is a 1 pixel “extra” space between the left border and list items. No matter what you set the borderStyle to be the extra pixel is always there. This becomes very obvious when setting the borderStyle to none or solid and hovering over an item.
(more…)
Wednesday, February 14th, 2007 |
|
AS3 Tip: for loop index should not be uint |
In AS2 you probably typed your for loop index variable as Number. In AS3 I thought it would be better to use uint. I always start the index from 0, or some positive number and increment from there, like:
(more…)
Friday, January 12th, 2007 |
|
AS3 Projects and the SWF Metadata tag |
While most people are probably building Flex projects, there are some of us who build AS-only projects as well. While looking for resources on AS3 I came across Joey Lott’s ActionScript 3 Cookbook. Near the beginning of the book there is a section labelled “Customizing the Properties of an Application”. That caught my attention and I came across the SWF metadata tag.








