A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Calling a movieclip with a PHP thread

  1. #1
    Junior Member
    Join Date
    Nov 2001
    Posts
    6

    Calling a movieclip with a PHP thread

    Hi there,

    A quick question for someone without a lot of PHP knowledge. In a flash movie, I'd like a user to be able to have a choice of buttons, each of which would add a movie clip. (E.g. If they click button "A" it will add a barking dog, if they click button "B" it will add a running cat, etc.)

    I then want the user to be able to e-mail this movie with a PHP form (which I know how to do) but in the URL string, it will load the movie (dog/cat) that the user has selected. That way, when their friend receives the e-mail, it will take them to a page with the flash movie that shows the movieclip their friend chose.

    Like I say, my PHP is a little weak and my Actionscript is decent, but not super, so as much help as anyone can give would be appreciated!

    Thanks a lot!

  2. #2
    you could use something like http://mysite.com/movie.php?choice=dog

    and then use PHP to look at the $_GET['choice'] variable and then in ur flash embed pass the choice as a flashvar... then in your flash get the flashvar and load the relevant movie.

  3. #3
    Junior Member
    Join Date
    Nov 2001
    Posts
    6
    Thanks! That sounds like what I'm looking for; I'll give it a try!

  4. #4
    no worries, all the best getting it up and running

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