A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Returning a print message from PHP

  1. #1
    Junior Member
    Join Date
    Aug 2002
    Posts
    17

    Returning a print message from PHP

    Ok I have written a PHP script to insert an email address in to a database, the interaction is working fine my problem is returning a message from PHP to the flash interface.

    I have a movie clip named mailingbox sat in the root of the movie, within the mailingbox movie clip there is a dynamic text box named emailresponse.

    The code I am using in the PHP script is this:

    Print "_root.mailingbox.emailresponse = Your email address has been succesfully added.";

    To be honest I am still getting to grips with Flash 5, and so am not sure if I am referencing the dynamic text field correctly.

    Any help would be greatly appreciated.

  2. #2
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    Try removing the spaces around the = sign

    echo '_root.mailingbox.emailresponse = Your email address has been succesfully added.';
    becomes
    echo '_root.mailingbox.emailresponse=Your email address has been succesfully added.';

    assumuing the clip has the correct instance name and the dynamic textbox the right variable name, that should work

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center