A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How i can get the POST Variables in my Flash Movie

  1. #1
    Junior Member
    Join Date
    Apr 2004

    How i can get the POST Variables in my Flash Movie

    Hi everyone, i need to get the POST Vars in my Flash Movie.
    I have 2 frames:
    1. topFrame (topFrame.htm) = Contents a Flash Movie called MENU
    2. mainFrame (mainFrame.htm) = Contents de Flash Movie called MAIN

    I Call a MENU Movie by MAIN Movie like this...
    getURL("topFrame.htm?myvar=abc", "topFrame");

    In the MENU Movie I want to detect the variable MYVAR an use the data ABC, how can i do this?


  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Stockholm, Sweden
    Pleas dont crosspost. Not everyone checks if you already got an answer in another thread so you might waste a lot of nice peoples time.

    You have to use some javascript in the html embed code for the Flash file to recieve the variables.

    PHP Code:
    <script language="JavaScript">
    document.write ('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '
    +'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" '
    +'WIDTH=750 HEIGHT=500> <PARAM NAME=movie VALUE="knock.swf'+document.location.search+'">'
    +'<PARAM NAME=quality VALUE=high>'
    +'<EMBED src="knock.swf' +document.location.search+'" ' 
    +'quality=high  WIDTH=750 HEIGHT=500 '

    -Pelle Piano
    // Image Gallery
    // Photo Blog

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