MIAMI - Astrid Flaherty nimbly hops off a low platform and then swoops from side to side touching orange plastic cones.

Though she is 70 years old and a breast cancer survivor, she seems barely winded. Her secret: lifelong exercise and healthy eating.

“Exercise is the best anti-aging pill you can take,” says Dawn Davis, a fitness instructor at Shula’s Athletic Club in Miami Lakes, Fla.

And Flaherty has discovered on her own what doctors and fitness experts are saying: people can age more successfully if they develop a healthy lifestyle when they’re young that includes exercise, a healthy diet, sufficient sleep and watching their weight.

The Miami Lakes resident still hits the gym three times a week and plays tennis on Saturdays. And her diet emphasizes fresh, natural foods.

Being in good shape also helped when she was diagnosed with breast cancer in 2007. “My doctors were amazed that I was able to come back from my chemo sessions so quickly,” she says.

“People need to think about the aging process throughout their lives. I know it’s hard when you’re 20 years old,” says Dr. Sara Czaja, professor of psychiatry and behavioral sciences and the scientific director of the Center on Aging at the University of Miami’s Miller School of Medicine.

“It’s really important to take advantage of what we know,” Czaja says, “and we do know a lot about how to age healthily.”

That includes staying socially engaged throughout life and being mindful at a young age of the dangers of smoking, the links between skin cancer and overexposure to the sun, and having recommended preventive screenings, Czaja says.

“A lot of chronic disease - diabetes, high-blood pressure, cardiovascular disease, obesity - may be prevented by maintaining a healthy lifestyle throughout life too,” she says.

“What we’re also learning more and more is the importance of engaging in physical exercise. That leads to not only better cardiovascular health but also better cognitive health,” Czaja says. “There is suggested evidence that being obese can cause cognitive problems.”

But the reality is what initially motivates many people to exercise is concern about their appearance - not their health, says Rickie Ali, a fitness/wellness specialist and personal trainer at Shula’s Athletic Club.

“The fitness business knows this - with the ads about six-pack abs and all that,” he says. You can get lean following some of the programs now in vogue, he says, but they are not complete and some also put people at risk of injury by trying to do too much too fast.

“My main goal for people is for them to have the fitness they need to get through their everyday activities,” he says. “By default, the body gets leaner. But that is not my motivation.”

Anyone who wants health for life needs to address lifestyle habits, nutrition, wellness and fitness at every phase of their lives, Ali says.

A basic mantra for anyone who wants to age well is move, move, move.

In the 20s and early 30s that means building strong muscles, bone density and as healthy a cardiovascular system as possible, Ali says. “It’s like when you build a house. You need to build a solid foundation.”

And anyone who embarks on a fitness program needs to improve their nutrition as well. “Think of food as a fuel like gas for a car,” Ali says. “You might want to drive that car five days a week, but if the gas isn’t there, you can’t do it.”

As people head toward middle age, their metabolism may slow and a more sedentary lifestyle and chronic ailments may begin to take a toll.

Ali says the exercise movements for those at mid-life are basically the same as for a younger person but the number of repetitions and intensity may vary.

For older people, it’s important to work on movements that encourage better balance, flexibility and stability, Ali says. He might have people in this age group do balancing exercises on one leg, work on posture and alignment, and do stretches.

“If you have strong muscles and core, it’s easier to stop yourself from falling and risking injury,” Davis says.

Charles Eaves, 75, a retired salesman who trains with Davis, was almost an everyday runner before a recurrent foot injury sidetracked him.

After he stopped running, “my resilience just wasn’t there. I felt like if I fell, I would just lie there like a limp rag and wouldn’t be able to get up,” Eaves says.

Now after a year of thrice weekly training sessions with Davis, he says the strength and flexibility he had as a runner have come back.

As people age they need to adapt to changing realities, Czaja says. “Your life may be different but that doesn’t mean you’re not aging successfully.”

The good news is that even if you’ve never exercised or haven’t worked out regularly, it’s still possible to ease back into a fitness routine and find success at any age.

But it’s important before beginning an exercise regime, says Ali, to get medical clearance from a doctor and let your trainer know if there are any limitations. He also recommends a physical and lifestyle assessment to establish a baseline for building a fitness program.

Dr. Anaisys Ballesteros, a family practice physician with Baptist Health Medical Group, said her key advice to younger patients is: Don’t forget your annual preventive physical.

Younger people don’t tend to come in until they’re sick, she says. But regular preventive screenings can show them whether they are at risk for diabetes or high blood pressure when they are still young enough to modify diet, lifestyle - including controlling stress, fitness and weight, says Ballesteros.