| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read | ![]() |
|
||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I have a slightly perplexing query.
I am currently working on a client site and the way we design our site involved the "get" method from the address bar... Put simply, when users go to our sites they are given an extension to allow them to access the pages (ie: www.yoursite.com/home.php?reseller=joebloggs) Each page has a code at the top which pulls the address ($reseller = $_GET['reseller'] then if the extension is not valid they will be sent to an alert page..So each link has to echo the reseller name to allow the next page to check it, and so allow them to continue eg:/documents.php?reseller=<? echo("$reseller") ?> Basically my problem is with flash. I want to make a snazzy site header with links in flash, but obviously I need to get flash to read the reseller variable from the page address and then apply it when the user clicks. Otherwise they wont get very far... I dont know how clued up you guys are with flash and php integration, but any help would be hugely appreciated.. Cheers |
|
|||
|
i found a tutorial a while back that explained how to do just that.
I used it for a graph of a family tree created from data passed to it from mysql and php. I can't remember exaclty how i did it now except that you changed the $var to &var and created an instance in flash with the same name to receive that info. It was all straight forward really. If i can find the tutorial i will post it here (unless you have already sorted it)
__________________
West Dorset Community |
|
|||
|
Ok I've found a tute which is 90% of what I want
http://www.nunomira.com/tutorials/loading_variables.php If you scroll near the bottom of the page (the text with download .fla: 10 below it) it passes the url string on to flash. The only difference is it prints the output in to a text field, and I just want to pull the info to use as a link... |
|
|||
|
Am trying to find the link Shaun but without success.
I do remember I had trouble because I had to echo (or print) out the results on a seperate page for the data to be inserted in the flash file, which was not ideal but worked for my purpose. I will keep looking for the link.
__________________
West Dorset Community |
![]() |
| Thread Tools | |
| Display Modes | |
|
|