A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Triggering Flash function from PHP

  1. #1

    Triggering Flash function from PHP

    How would I go about triggering a function from a PHP file?

    It's a send mail script that works fine ... but "echo "_root.myFunction();";" doesn't do the job.

    Any ideas?

    Thanks

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,039
    Hi,

    all you can normally do is send a variable, and make the movie do something when it receives the variable.
    Like
    if(status == 'ok') gotoAndPlay('sent');
    Note that using a loadvars object is a better choice than loadvariables - you can put this line into the onload handler

    Musicman

  3. #3
    Thanks Musicman ...

    How will the MC know to listen for the variable sent in by the .php file?

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