Does anybody out there have any suggestions as far as making improvements or tweaks to the text editors of eclipse? Cool plugins perhaps? I really miss a lot of the fluidity in TextMate when working in Flex Builder (things like tab triggers for snippets), but it’s still a little too much to develop Flex apps in TM. I was excited to find a plugin called Afae, which sounded like exactly what I was looking for, but it’s still a little weird and there’s no documentation as far as I can tell.
FlashApe » archive for October, 2008
Eclipse Text Editor Improvements?
- October 23rd, 2008
- 9:53 am
Searching an ArrayCollection using IViewCursor.find*
- October 15th, 2008
- 11:06 am
I ran into an issue today with this so I thought I'd post about it. Using a cursor with an ArrayCollection makes it pretty easy to search that collection for particular objects. Using the IViewCursor.find* methods (findAny, findFirst or findLast), you can specify a generic object which contain name/value pairs to try to match on the objects within the collection. In order to use the IViewCursor .find* methods, the collection must first be sorted.
So for example, if you has an AC of Book objects, and those Book objects contained properties for category_id and author_id, you could search the collection for a particular object like this:
-
var cursor:IViewCursor = booksCollection.createCursor();
-
-
var searchObj:Object = {category_id:1, author_id:3};
-
-
cursor.findAny(searchObj);
The gotcha I ran into today is that when you specify a search object, all the property fields that you are searching for must have been included in the sort. So if you sorted the booksCollection above just using a Sort for category_id, and tried the same search object, the author_id field would be ignored.
FP 10 Debug Player?
- October 15th, 2008
- 8:01 am
Is the Flash Player 10 debug player out yet? I can't seem to find it...can someone point me in the right direction?
Ending a Flex Builder Debug session would cause Safari to quit
- October 9th, 2008
- 5:27 pm
I have a feeling this is something specific to my installation, but adding it to google just in case. Whenever I ran a debug session for an actionscript project in Flex builder, Safari would quit when the session ended, either by terminating it in FB or by closing the browser window. To solve it, I went into the preferences under General > Web Browser and selected the radio button for "Use External Web Browser" and chose the checkbox for Safari, and that fixed it immediately.
TweenGroup
- October 8th, 2008
- 11:28 pm
Man, is it weird to be in love with someone else's code? "Codemance"? Anyway, Jack Doyle, creator of the awesome tweening libraries TweenLite/TweenFilterLite/TweenMax, as well as TransformManger, just broke out a new tool for managing your tweens called TweenGroup. Using TweenGroup you can manage multiple tweens as a single group, and do what he refers to as "align" your tweens. Aligning the tween group means that you can do stuff like have all the tweens play sequentially, one after the other, or start all at the same time, or start all at the same time with specified delay between them...all by setting a single property. If you have used effects in Flex, think Parallel and Sequence tags, but way more flexible.