07 Aug 2009 @ 3:53 PM 
JUnit isn't found!!!

JUnit isn't found!!!

I upgraded to version 6.8 and now all the junit tests don’t work. The IDE gives me the error that the “package org.junit does not exist”.

However, the JUnit 4.5 – junit-4.5.jar is located in the Test Libraries folder. Additionally, the old projects that worked without a problem in .

I uninstalled NetBeans 6.5. It doesn’t seem to explain why junit is not being found, since there is a copy at C:\Program Files\NetBeans 6.8 M1\platform10\modules\ext\junit.jar”

Tags Tags: , , ,
Categories: Uncategorized
Posted By: Tommy
Last Edit: 07 Aug 2009 @ 03 53 PM

E-mailPermalinkComments (0)
 13 May 2009 @ 4:35 PM 

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.

Tags Tags: , , , , , , ,
Categories: Uncategorized
Posted By: Tommy
Last Edit: 13 May 2009 @ 04 39 PM

E-mailPermalinkComments (1)
\/ More Options ...
Change Theme...
  • Users » 2
  • Posts/Pages » 170
  • Comments » 8
Change Theme...
  • VoidVoid
  • LifeLife « Default
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LiteLight
  • No Child Pages.
  • No Child Pages.
  • No Child Pages.