OK, but you haven't given us some crucial information (assuming that anyone here is willing to help you with this project):
What are you trying to power? In other words, what voltage and current do you want? Obviously, without that information, nobody can possibly help you (again, assuming they're willing to).
Having asked that, let me post a direct power-line operated circuit that I know for sure works:
**broken link removed**
Now, before I proceed, I must tell you that you're going to hear nothing but criticism of this. I know for sure that Eric Gibbs, one of the moderators here, hates this circuit, and will tell that if you build it, your house will burn down, your children will get electrocuted, and the police will come and confiscate it.
I'm here to tell you that it works. I have this very circuit on as I type. It's been merrily burning (metaphorically; no magic smoke has been released) for a few months now. I have no doubt that it will continue to do so for years.
Yeah, yeah: people here will tell you that it can't possibly work. Or that you need diodes to protect the LEDs (remember, a LED is a diode), or a resistor to discharge the capacitor, etc., etc.
I'm too lazy to check the capacitor value at the moment. I will tell you that it is a type (X2?) approved for power-line voltages.
It works. So what are you proposing to power directly from the power line?