Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

php vars to flash

Participant ,
Sep 18, 2006 Sep 18, 2006
I'm useing the following scripts to pass a variable from php to a flash combo box....problem is I get undefined in the combo box when i test my movie using cntrl + enter and if i try to view the swf on the webserver.
Will somebody please tell me what i'm doing wrong?

TOPICS
ActionScript
354
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Sep 18, 2006 Sep 18, 2006
Just a couple of notes.

1) don't use a '$' in front of the variables you are sending to Flash.

"$comboData1" should be "comboData1"

2) Not sure about using multipl "echo" statements. I never have but that doesn't mean you can't.

3) Try something straightforward first, like:

echo 'comboData1=this is data 1';

If that works then move up to trying the variables.

4) The last thing to note is that your PHP variables are surrounded by quotes.

"$dataForCombobox_1" should be $dataForCombobox_1

Hope these help.

Tim
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Sep 18, 2006 Sep 18, 2006
Just a couple of notes.

1) don't use a '$' in front of the variables you are sending to Flash.

"$comboData1" should be "comboData1"

2) Not sure about using multipl "echo" statements. I never have but that doesn't mean you can't.

3) Try something straightforward first, like:

echo 'comboData1=this is data 1';

If that works then move up to trying the variables.

4) The last thing to note is that your PHP variables are surrounded by quotes.

"$dataForCombobox_1" should be $dataForCombobox_1

Hope these help.

Tim
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 18, 2006 Sep 18, 2006
Just a couple of notes.

1) don't use a '$' in front of the variables you are sending to Flash.

"$comboData1" should be "comboData1"

2) Not sure about using multipl "echo" statements. I never have but that doesn't mean you can't.

3) Try something straightforward first, like:

echo 'comboData1=this is data 1';

If that works then move up to trying the variables.

4) The last thing to note is that your PHP variables are surrounded by quotes.

"$dataForCombobox_1" should be $dataForCombobox_1

Hope these help.

Tim
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 18, 2006 Sep 18, 2006
LATEST
I still get undefined in the combo box.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines