Inputting Variables Into Flash Object

Hello All,
I have a technical question about feeding variables into a flash object with either XML or through some sort of javaScript.

I have a simple flash file that I want to work like a tabbed navigation. I am looking for some sort of dynamic code that would feed a variable into my flash file and tell it what frame or marker to play when the web page loads.

For instance:
Page one will play Frame 1
Page two will play frame 5
And so on…

Any insight as to how I can accomplish this would be extremely helpful. Thank you in advance.

Cheers,
-MC