Sending information into Flash
Posted: Fri Jan 07, 2005 3:10 pm
How does one send information into Flash? Basically I have a flash navigation bar embedded into a web page with a few buttons for different pages. You click a button, and it does a getURL() for that page. But, I also want the flash file to know what page it's on. It's actually using PHP. The entire thing is on index.php, and different pages are called by index.php?page=thispage. index.php will automatically include thispage.php in the content pane. So for example, when I click the home button in Flash, it does getURL("index.php?page=home");
But I want the home button to turn blue and display the sublinks for "Home". I want to do something like
<embed src='navbar.swf?page=home' width='700' height='200'> (Yes I understand I'm not supposed to use Embed, I don't know how to use object yet though). So that the variable 'page' gets sent to flash with the value of 'home'. I've tried using XML, but it's a lot of shuffling files just to tell flash what page it's on. No, I will not create seperate flash nav bars for each page.
Any help?
But I want the home button to turn blue and display the sublinks for "Home". I want to do something like
<embed src='navbar.swf?page=home' width='700' height='200'> (Yes I understand I'm not supposed to use Embed, I don't know how to use object yet though). So that the variable 'page' gets sent to flash with the value of 'home'. I've tried using XML, but it's a lot of shuffling files just to tell flash what page it's on. No, I will not create seperate flash nav bars for each page.
Any help?