Skip to main content
August 15, 2008
Answered

External variable issue using AS3 in FlashCS3

  • August 15, 2008
  • 2 replies
  • 249 views
I am trying to pass database values into Flash (using AS3) through a simple PHP script output! The trouble is ... I have not been able to get Flash/AS3 to acknowledge that it has received the supposedly externally loaded data, let alone prove that it is ready to work with the values passed into it in some way. So, OK...

...here is my PHP code (phpCode.php):
This topic has been closed for replies.
Correct answer
Incidentally, the code I posted in this thread DOES work!

That is, provided the first line of the AS3 code is as posted above, instead of containing a single period ( . ) in the file path, as did my local code.

2 replies

Correct answer
August 16, 2008
Incidentally, the code I posted in this thread DOES work!

That is, provided the first line of the AS3 code is as posted above, instead of containing a single period ( . ) in the file path, as did my local code.

August 15, 2008
I tested your code and it works just fine on my local WAMP installation?

My output panel traces:

lname is theLastName
fname is theFirstName

Have you stepped through your code line by line with the debugger to see where flash is messing up?

Cheers,
Flashtastic