dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Retriving number from a html link

  1. #1
    Senior Member
    Join Date
    Jan 2001
    Posts
    166

    Retriving number from a html link

    hello,

    I have a link like this.

    <a href="flashmovie.swf">Flash Version</a>


    I want to send a number to the flash movie when the user press the link.


    maybe something like flashmovie.swf?number=12345


    Is this the right way??

    Regards

    Godowsky

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    That would be ok if the swf is not embedded in html. If it is you can embed the swf with some javascript to get the same result.

    <script language="JavaScript">
    document.write ('<OBJECT classid="clsid27CDB6E-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
    Jan 2001
    Posts
    166
    Can you show me how, - I can't seem to make it work.


    Regards

    Godowsky

  4. #4
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Ooops, i meant to and pasted the code but it didnt show up in the post. I'll try again.

    <script language="JavaScript">
    document.write ('<OBJECT classid="clsid27CDB6E-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>

    It showed in preview but if it does not show for any reason you could look at the source code of
    www.pellepiano.com/vykort/knock.html

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

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