Is it okay to purposely stall a small single-engine aircraft just before touch down to get a good flare? I'm still learning ground theory and have only flown in simulators (P3D v3 Academic). For a long time, I've been trying to properly flare single engine aircraft but have mostly failed. I even watched a video on youtube made by a certain flight instructor that said that the smaller airplanes like a Cessna 172 and Mooney acclaim don't flare - they "transition" just to make sure the rear gears touch down first. 

However, I recently invented/discovered a trick that let me get a nice flared touch down while flying one of these aircraft (in P3D): as I approached the runway, I had the nose pointed down (or straight, as required) but as I was about to reach the threshold, with my speed somewhere around 50 knots, I reduced the speed (sometimes almost pulling the throttle to IDLE) and pitched up. In that condition, the airplane would tend to fall rather than go up and since the aircraft's height is just around 20 - 50 FT, the impact, I thought, would not be fatal. 

However, I realized that I was essentially stalling the aircraft (purposely) and I even got a stall warning (though it obviously lasted for about 3 secs). And note: since I'm saying "STALL", I mean to say that the aircraft does cover some (significant) horizontal distance stalling before touching down. I know it's obvious to let the airplane sink a little by synchronizing the thrust and pitch but what i am talking about here is essentially something like a "flared approach", a nose-up approach like what usually jet airliners do.

As far as I know, a stall situation is usually a bad one. However, I was thinking that it might be okay if the pilot knew what he/she was doing and still had control while purposely stalling the aircraft. But I'm confused since I haven't flown a real bird yet.

So, my question is, is it okay to stall a small aircraft for the sake of a good flare?
"To get a good flare".  Never heard of pilots talking about "wow, I had a great flare on that landing!", although a very famous test pilot really had a beauty landing the XF-92A, reducing landing speed from around 160 to 67 mph.

So why do we flare?  What is a flare?  

"Flaring"  is increasing AOA to MAINTAIN lift as the plane slows down.

Why do we slow down as much as possible before landing?

Too fast and the plane will "bounce". Bouncing is not a major problem if it is on the main gear (and not too hard).  Bouncing the nose gear can be disasterous.  Since you have a lower AOA for the same lift when faster, risk of bouncing the nose gear is greater.  For taildragger, the risk is prop strike.

So you flare to increase AOA after rounding out and prior to touchdown, reducing speed and increasing AOA.

Do you need to stall to get a good flare?  NO!

Does the stall warning mean I'm stalled?  Try it at altitude first.  Generally they are set a few knots ABOVE stall, and it is normal to hear it as you touch down.  Know your plane.

Finally, "round out" at approach speed (you don't want to stall here), then reduce throttle and pitch up (flare).  The trick is to hold it a few feet off the runway as speed decreases and AOA increases.  You are now flaring!

Actually landing, well, everyone has their own ideas.  In a 172, I could just start to feel the seat of my pants drop.  At that point, back pressure on the yolk was relaxed just a tiny bit (slightly reducing AOA and lift), and the plane would settle onto the runway.

Flaring as all about speed control.  Keep it safe.