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, 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.
Thursday, July 13th, 2006 |
|
SWF9 to SWF8 Communication – EI not LC – Part 2 |
Below is an example that contains a SWF9 that was written in Flex (AS-only) and contains two textfields. The SWF9 loads a SWF8 that also contains two textfields. The top textfields are input fields. The left-hand contents belong to the SWF9 and the right-hand contents belong to the SWF8. When you type in the top-left textfield, which resides in the SWF9, the text will get sent to the bottom-right textfield, which resides in the SWF8. When you type in the top-right textfield, which resides in the SWF8, the text will get sent to the bottom-left textfield, which resides in the SWF9.
(more…)








