<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml">
<mx:Label text="MyApp1"/>
<mx:Button label="goto MyApp2" click="parentDocument.loadpath = 'MyApp2.mxml'"/>
</mx:Application>