Basically what I am trying to do is I have member buttons and for what ever button is pressed an id# will be sent to the flash movie that loads on the same page than that flash movie than calls a php script to access the DB and recieves it back to flash I have the last part work by calling the php script from a get url ex:http://localhost/getinfo.php?id=1. So I need to make a variable that would be id=var so that way only one flash page is needed for all members as well as one php script for all members. I hope this makes sense.
if you have a 2nd browser session opening you can use the LocalConnection() object to send a variable/value pair from your sending to your receiving movie. if you're loading a 2nd swf file into your first, you just need to use the correct path to reference the variable.
Actually I have an all flash page in layers in the one layer I click on a button that open up to show a list of members than they can click on a member name and that loads another move in a different layer that is suppesed to go to the php script and get the data from the sql database and disply it back on that page. As a test I put id=9 in the php script and it returned the profile I expected for id9. This works great for me in HTML one page is used for all 29 members which saves a lot of work. My problem is on the action I have under the release memid=9 and then I have the 2nd movie using the get command and going to this page http://localhost/retrieve.php?id=memid, I have even tried id=9 still doesn't pass though. Would the problem be the fact I am using the GET command in the second movied to retrieve the dynamic data? If so what would a work around be?
you have one browser session and only need to use the correct path from the timeline that contains your loadVariables() target movieclip to the timeline that contains your id=9 statement. you need not append the variable name to the url. so, if id=9 is on your _level0 timeline and you use dataHolder.loadVariables("http://localhost/retrieve.php","GET"), then use dataHolder.id=_level0.id prior to your loadVariables() statement.
With respect to using the LocalConnection object: I have a login UI created in Flash embedded on a page. If the user is validated via the online database, I want to send variables extracted from the database during login to a flash UI in the next browser page to be opened. I've accomplished this with a LoadVars to a PHP page that writes a query string on the tale of the Param and embed tags for the flash file. Is there a more elegant way of accomplishing a variable handoff from one flash movie to another on the next browser page to open? I was hoping I could use a LoadVars.load command on the next browser page, but unless I write a text file on the server with the variables I want to pass, I can't figure out a way to do what I want. Is the text file the right approach? Thanks in advance for all comments.
Don't see what you're looking for? Try a search.
|