I have a few suggestions. Maybe something will work. Go to a local teacher store and buy a sticker chart (you might be able to find one at Wal Mart) and stickers. Choose a goal. For example, staying in bed after Mommy or Daddy say "lights out." For any night she does that, she can put a sticker on the chart when she gets up in the morning. After she either fills the chart or gets a certain number of stickers, then she gets a prize that you have chosen before hand. This can be a toy or special time with Mom or Dad or whatever you choose that will be special to her.
Another suggestion is to put up a gate at her door. I only had to do this one night with my youngest. She hated the thougt of being "locked in" her room. She stayed in her bed every night after.
When you tuck her in, tell her what you expect of her. Say "Even if you are not tired, you have to stay in your bed with your eyes closed." Tell her to think about something that she wants to dream about. You might even help her do this the first night or two and then get her to do it on her own. My daughters love stories of them being princesses and riding magic carpets, etc. I start telling the story, but only if their eyes are closed.
Often it just takes the child settling down so that they can fall asleep. Take away the flash light and replace it with a night light (the kind that doesn't get hot). Don't allow her to play out of her bed when it is sleep time. If she is used to playing in her room before bed, set a timer for 10 - 20 minutes. When it goes off, she must get in bed. If the problem is that she plays with things in her room and won't stay in bed, you may have to have a "goodnight" box for her toys that is removed at night. Good Luck!