how to create basic template mxml page as ajax in flex

I want to create that page is portable for other pages as a template /main page how can ı do this?

ı want that main mxml page is useful for everywhere .For example in AJAX, the pages are storing at the background only needed parts of the page is coming to the screen ,ı want to apply such type of thing.