Uh... "r" is the pointer to RequestColor. It returns 1 or True if they select a color. The only thing I didn't post was the "b+.bb" include. But you don't need it. Just replace that with:
Const EVENT_WINDOWCLOSE = $803
Const EVENT_GADGETACTION = $401