Go Back   Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum > Support > php issues.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-15-2008, 01:40 PM
Member
 
Join Date: Nov 2007
Posts: 30
Red face passing data on to flash

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
Reply With Quote
  #2 (permalink)  
Old 05-15-2008, 07:08 PM
Senior Member
 
Join Date: Jan 2007
Posts: 939
Default

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
Reply With Quote
  #3 (permalink)  
Old 05-16-2008, 08:06 AM
Member
 
Join Date: Nov 2007
Posts: 30
Default

Thanks a lot. If you can find it that would be great. I've been trawling the tutes for a couple of days now and nothing I'm after has apeared yet.
Reply With Quote
  #4 (permalink)  
Old 05-16-2008, 08:26 AM
Member
 
Join Date: Nov 2007
Posts: 30
Default

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...
Reply With Quote
  #5 (permalink)  
Old 05-16-2008, 08:12 PM
Senior Member
 
Join Date: Jan 2007
Posts: 939
Default

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
Reply With Quote
  #6 (permalink)  
Old 05-22-2008, 09:13 AM
Senior Member
 
Join Date: Jul 2007
Posts: 132
Default

I believe (its been a while) you should pass the url as a variable from frame to frame and where you want to check it create a form to pick up the php script
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:20 AM.
Copyright 2002-2007 WebHosting.uk.com. All rights reserved.
Web Hosting UK Forum