A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: import variables from php/html to km

Threaded View

  1. #1
    Member
    Join Date
    May 2005
    Location
    Germansky
    Posts
    58

    import variables from php/html to km

    Hi there,
    I want to build a php-based media-player which reads certain files from a directory (.mp3 for example). I have realised this in php so far, but
    i don´t know how to submit/post/import variables from the command line/url
    or rather from php´s resulting html INTO the playing-Koolmoves-swf, like
    player.swf?dir=nameofsubdir/&file=nameofsound.mp3

    In PHP for example i import and display variables this way:
    <?php echo$_GET['subdir']; ?><?php echo$_GET['nameofsound']; ?>
    ... is there an analog function in KM?

    Searching the forum leaded me to Loadvars which loads variables only
    from a -separate file- ... this won´t help here.

    any ideas / tips for me?

    p.s.:
    I have found these lines by necro searching the km-forum... but got no idea to handle..
    "..
    Try to use
    loadVariables("yourpage.asp","GET"); (to receive) and
    loadVariables("yourpage.asp","POST"); (to send)
    instead of "getURL".
    Also,don't forget that your dynamic page (ASP in this case) must be able to "format" as text array the output data:
    var1=OWEN&var2=AUS&...&varn=END
    cheers .."

    these threads match the problem as well:
    http://www.flashkit.com/board/showth...t=command+line
    or this
    http://www.flashkit.com/board/showth...t=command+line
    Last edited by hule2; 12-08-2005 at 06:20 AM.
    Let me learn from you!
    -always under construction-

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