PHP variable passing to FlashMX to specify getURL directory?
Posted: Wed Aug 06, 2003 12:37 am
Howdy, all! For my first post . . . a PHP/Flash question. 
Quick, quick background before jumping in . . . I've been receiving PHP tutoring since January, allowing me to implement a number of time-saving PHP-based systems for my company's websites.
A big, fat redesign is coming for our main site soon, and I've been building it with much more PHP than the last design (100% HTML).
The pages now call an include file to display the interface, and the code goes below it.
To solve the problem of the include file being called from both the root and subdirectories, I've included this variable -- $info_array[dir_level] -- to specify if there needs to be a ../ or not.
Due to an over-abundance of content, we're using a Flash navigation bar as part of the interface, also in the include.
Problem is, I can't seem to pass $info_array[dir_level] through to the Flash file so it can call the pages properly from subdirectories.
In my PHP file, prior to calling the include, I have this line:
This is the Action in my Flash file:
. . . that the resulting URL would be:
Unfortunately, it ends up being:
Any ideas how to make the variable work properly in Flash MX?
I've tried six ways to sundown with various adjustments in Flash, including sending the variables with GET and POST, I've tried it without the info_array[], and I've done countless searches to find a solution and make this work.
Thanks ever so kindly in advance, and my apologies in advance if I've over-written. I look forward to any thoughts that can be offered, and, now that I'm here, offering anything my six months of PHP-ness can help with.
Quick, quick background before jumping in . . . I've been receiving PHP tutoring since January, allowing me to implement a number of time-saving PHP-based systems for my company's websites.
A big, fat redesign is coming for our main site soon, and I've been building it with much more PHP than the last design (100% HTML).
The pages now call an include file to display the interface, and the code goes below it.
To solve the problem of the include file being called from both the root and subdirectories, I've included this variable -- $info_array[dir_level] -- to specify if there needs to be a ../ or not.
Due to an over-abundance of content, we're using a Flash navigation bar as part of the interface, also in the include.
Problem is, I can't seem to pass $info_array[dir_level] through to the Flash file so it can call the pages properly from subdirectories.
In my PHP file, prior to calling the include, I have this line:
- $info_array[dir_level] = "../";
This is the Action in my Flash file:
- on (release) {
getURL("$info_array[dir_level]?q=contests", "_top");
}
. . . that the resulting URL would be:
Unfortunately, it ends up being:
Any ideas how to make the variable work properly in Flash MX?
I've tried six ways to sundown with various adjustments in Flash, including sending the variables with GET and POST, I've tried it without the info_array[], and I've done countless searches to find a solution and make this work.
Thanks ever so kindly in advance, and my apologies in advance if I've over-written. I look forward to any thoughts that can be offered, and, now that I'm here, offering anything my six months of PHP-ness can help with.