OS Commerce + Flash + PHP Question

Alright guys and girls, here is my situation. I am not new to flash, nor php, nor OS Commerce. I just have never used them all together.

For you out there that don’t know what OS Commerce is , it is a highly powerful E-Commerce engine.

Anyway, all I want to do it make a flash header (navigation) for the Store. OSC makes the links in PHP code. In an html site the links look like this:

<A HREF="<?php echo tep_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>">Home</A>

Now I have no clue how to put this into a flash getURL() function. I tried just inserting the PHP code with threw all kinds of errors…understandably. Can someone point me in the right direction?

Thanks.

Aaron