Whats the best Method for navigating html from flash & vice versa?

hey all

ok, so basically i need to find out the best Method for navigating html from flash & vice versa.
*
HERES MY CURRENT STRATEGY…*
flash;
the flash banner will be just the one swf, it will navigate through the html content with the getURL function

html
each html page has the flash swf embedded using swfobject, a unique ‘loadstate’ variable will be passed from the html to flash,
eg. for the homepage it’ll be;

<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("/swfs/header.swf", "sotester", "924", "350", "8", "#69be28");
so.addVariable("loadstate", "home"); 
so.write("flashcontent");
// ]]>
</script>

flash;
flash will receive this loadstate variable, then using switch/case it will gotoAndStop on the appropriate frame.
e.g

[AS]// check variable passed from html, then play approiate frame
switch (loadstate) {
case “Home” :
castMC.gotoAndPlay(1);
break;
case “Renewal” :
castMC.gotoAndPlay(2);
break;
case “Growth” :
castMC.gotoAndPlay(3);
break;
case “Harvest” :
castMC.gotoAndPlay(4);
break;
case “Use” :
castMC.gotoAndPlay(5);
break;
}
[/AS]

is there a better way of achieving the same result using swfobject to pass the variables to the .swf?

many thanks
Cam
:sailor: