Archive for the “talking” CategoryI had some XML E4X filters and I couldn't understand why they were working everywhere (included Gumbo) but in the Flash CS4 IDE. I've finally isolated the problem… I’ve got a simple XML like this: XML:
Basically my filter is parsing all the attributes "id" of the nodes "item", to return me the attribute "type", sounds simple. Here is my filter: Actionscript:
So, I nicely put this filter in a function, and then it stopped working in Flash CS4. When I tried to get the type of the id "item1" it worked but none of the id "item2" and "item3" worked, the filter wasn’t able to find the node. Also, when I removed the item3, which is a child of the item2, I could get the type of my item2… how weird, anyway… My mistake, which wasn’t really a mistake by the way, was to use the word "item" as a parameter of my function. It should work as the parameter has nothing to do with the XML but it seems that Flash CS4 messed up with something and got lost. So, this didn’t work: Actionscript:
But this worked: Actionscript:
As you can see only the parameter is different (item and itemID). Using a parameter that is the same word as a node name will make the filter not working as intended, only in Flash IDE CS4. See the source by clicking here. Often I had to talk with you through the comments, which isn't really great to solve bugs or find solutions, especially for BaseUI. We now have a forum for that I've added a little feature to the FPS class, you still can hide the bar by clicking on it and you can show the bar again by typing "fps". I've also slightly changed the way I show the values. You can find the source if you click here.
11
10
2008
Flex SDK 3.1 bug with SWC and GenericTag (fix update)Posted by: Romuald in talking, tags: as3, flash, flexHi, In this previous post talking about a bug with the Flex SDK, you can find how to fix a problem when you compile a SWF including a SWC containing pictures. Actually the version of the Flex SDK is 3.1 and the structure of the java library slightly changed. I applied the same fix on the GenericTag java class but now this class is in the jar file swfutils.jar You just need to replace this jar with the fix in this location: /flex_sdk/lib/ |

Entries (RSS)