PDA

View Full Version : OS Commerce + Flash + PHP Question



asj
June 17th, 2005, 10:18 AM
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 (http://www.oscommerce.com) 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

bwh2
June 17th, 2005, 10:40 AM
first, read this (http://www.kirupa.com/forum/showthread.php?t=32478). your answer depends on what version of oscommerce you are using and what the addresses look like. so give us a sample address from the site.

basically what you'll do is write a php file to act as the intermediary between flash and the oscommerce php page. it's not that difficult of a process. you'll use loadVars to load variables from the php page into flash.

also read this (http://www.kirupa.com/developer/actionscript/flashphpxml_integration.htm) less the mysql part.

asj
June 17th, 2005, 11:49 AM
Thanks I'll review it and revamp my question.. thanks.
Aaron