Archive for May, 2009

Posted By Tommy

kate_huang_4.jpg

kate_huang_4.jpg

kate_huang_3

kate_huang_3

kate_huang_2

kate_huang_2

kate_huang_1

kate_huang_1

Posted By Tommy

hitTest fails to work with a line!!!

So I’ve been trying to get my space alien game working, and ran into a huge block. No matter what I did, I couldn’t get Flash to recognize my lines with the hitTest function!

I couldn’t figure it out. I had two movieclips, and I was trying to use the hitTest function. What’s so hard about that???

You can test for yourself. First make a line on the stage, then make it into a movieclip with F8. Call it something original like “lineOnStage”. Now try as you can, you will never be able to get the hitTest to fire!!! Oh boy. Guess they forgot to mention that the hitTest function works with the fill, not the border.

createEmptyMovieClip("triangle_mc", getNextHighestDepth());
triangle_mc.beginFill(0x006090);
triangle_mc.moveTo(50, 50);
triangle_mc.lineTo(100, 150);
triangle_mc.lineTo(0, 150);
triangle_mc.lineTo(50, 50);

var hit_X = 100;
var hit_Y = 75;
var shapeFlag = true;

triangle_mc.onPress = function() {
this.startDrag();
};

triangle_mc.onRelease = function() {
this.stopDrag();
if (this.hitTest(lineOnStage)) {
trace("Hit.");
}
};

Ok, one more secret:

If you reduce the width of a rectangle to 1, you can never increase it again. It is now a line. Haha. So you have to delete it and start from scratch.

Posted By Tommy

Wiki-hoaxer can get sued

A recent hoaxer vandalized the page of a famous musician hours after his death with a random quote. Then news outlets picked up on the quote, printing it inside the dead musician’s obituary.
http://tech.yahoo.com/news/nm/20090507/wr_nm/us_wikipedia_hoax_2

However, what the vandal didn’t realize is that he could be sued for defamation. The quote mentioned, “When I die there will be a waltz playing in my head,” is a bit poetic. But at the same time it is defamatory to hear that a hoaxer wrote it and wrongly inserted it so that it would be miscopied by others in memory of the man.

Therefore, I believe his estate could sue that guy. And I think they should. Editing Wikipedia is a right that does not come without responsibility. Knowingly publishing false information is libel, and if Wikipedia grants us the opportunity to publish material, we must refrain from committing crimes, like that vandal.