A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: URL Parameters and Flash ?

  1. #1
    Senior Member
    Join Date
    Feb 2001
    Posts
    218

    URL Parameters and Flash ?

    If a user is returned to a website (for this example www.shopper.com) with the following string (containing parameters):

    h ttp://www.shopper.com/membersuccess.html?id=112233&email=george%40hotmai l.com&street_address=115+Bentley+Road

    ... how do I use these parameters in flash to do something ? How do I get them out of the URL ?

    I know this is vague but I haven't had much experience in this sort of thing. Do I need to use a php script or something ?

    How would I display these passed back parameters in flash text fields ?

    A point in the right direction will help me get started.

    Thanks,
    Stephen.

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    You only need to embed the Flash file with the following, for Flash 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 '
    +'TYPE="application/x-shockwave-flash"></EMBED></OBJECT>')
    </
    script

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Senior Member
    Join Date
    Feb 2001
    Posts
    218
    Ok thanks for your help > I will give it a go

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