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

php vars to flash

Participant ,
Sep 18, 2006 Sep 18, 2006

Copy link to clipboard

Copied

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

Views

309

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST
I still get undefined in the combo box.

Votes

Translate

Translate

Report

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