A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: PHP variables?

  1. #1
    Junior Member
    Join Date
    Jul 2003
    Posts
    18

    PHP variables?

    Hi All,
    I am a PHP newbie...But that said I am trying to use what I believe to be a variable from PHP in Flash.

    Asking for trouble I know but hey!

    In the PHP code there is this:

    <?php echo tep_image(DIR_WS_IMAGES . 'image.gif', 'imagename', '204', '50'); ?>

    I know that part of this is the path to the image folder. But I am not sure how to get this data into flash and which part of it I should use.

    Any help would be great...Thanks

  2. #2
    Senior Member
    Join Date
    Mar 2001
    Location
    Breda, The Netherlands
    Posts
    522
    Hi,

    I'm not sure what sort of variable this is but the way the pass php vars to flash is like this:

    // make flash variabele
    echo "&title=" . $title . "&sec=" . $sec . "&kb=" . $kb . "&swf_name=" . $swf_name . "&test=" . $test . "&loaded=1";

    "&title=" Is your variable in the flashmovie
    $title Is the value passed to that through the php variable.
    You can sent multiple variables at once by using the . -operator.

    HTH, Danielle.

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