Welcome to my Tumblelog. I'm your host, the one and only Josh "G-Funk" McDonald. Like all Tumbelogs, this is a random collection of stuff I think is interesting and worth collecting for either my own good or the world's.
Plus it's a good place to make fun of ricers around town.
Thu
Mar
6
There’s a difference between an object having a member foo that’s null, and a foo-less object.
Use the delete keyword to absolutely splat something! Code:
var test : Object = { foo : “bar” };
var res : String = “1: ” + test.hasOwnProperty(“foo”) + “\n”; // == true
test.foo = null;
res += “2: ” + test.hasOwnProperty(“foo”) + “\n”; // == true
delete test.foo;
res += “3: ” + test.hasOwnProperty(“foo”) + “\n”; // == false
Alert.show(res);
Tue
Feb
12
Foxtel IQ is sweet. I can see why seppos love their Tivo. Shame about Foxtel’s 1kbps QVGA signal really…
Tue
Feb
5
If you want verticalScrollBarPolicy=”auto” without getting a horizontal scroll bar as well, check out this example:
http://www.gfunk007.com/flex/ResizeScrollingCanvas/
It’s kinda kludgey, and there’s still a bunch of trace() statements, but you get the idea.
Wed
Jan
30
So you’re getting drag_enter but not drag_drop or drag_exit? Add this to your enter handler:
DragManager.acceptDragDrop(event.currentTarget as IUIComponent);
This lets the drag manager know you’re willing to receive this drop, and are interested in the other drag events.
Important: Don’t do any visual stuff before you do this if it’s conditional. What I mean is, if you do some hilight to show “i’m being dragged over” and then on inspection of the data you decide you’re not interested in the object currently being dragged and don’t call DragManager.acceptDrag(), you won’t get the drag_exit event, and can’t do your “mouseout” stuff.
And yes, I have been trying to figure this out for quite some time. Stop looking at me like that.
Sun
Jan
27
Partly an experiment, partly as a gag, I think I’ll go vegetarian for the duration of February this year. I think I’ll still eat fish, meat stocks, milk eggs and cheese tho :)
I’ll run over some cats or something to make up my share of animals not being eaten! Or the next month I’ll go “low carb” or something and just eat twice as much meat :D
Mon
Jan
21
Fucking nerds on forums suck all the fun out of Star Wars.
Tue
Jan
15
Seriously, go and buy Call of Duty 4 right now. If you don’t have a PS3 or a 360, go buy an Xbox and get Call of Duty 4. Srsly.
Thu
Jan
3
Java 6 is back. Yay! :D Now I can live the dream of String.isEmpty() and @Override on interface methods…. lousy Sun…. Who out there really thinks @Override on interface methods is a good feckin idea?
Tue
Oct
30
Basically, people pay me to do two things. Draw stuff and code stuff. All my “draw stuff” side of things is Adobe CS, which is great in a Mac. Half of my “code stuff” works is Adobe Flex, which is also great on a Mac, save the old Fx3 beta’s non support of dragging tool windows to a second monitor. But the other half of my “code stuff” work, is Java. Not only has Leopard not included 1.6 as was promised for years, but it’s deleted my 1.6 beta install, and Apple has pulled the DMG files. There’s all sorts of bugs in the 1.5 shipping with Leopard too. It doesn’t cooperate with Spaces by any stretch of the imagination, and I’m getting a ton of weird glitches and artifacts using Idea that I wasn’t getting last week :(
Besides Java support, leopard is great, and I’d hate to have to switch to Vista (shudder) or back to XP…