A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: problem sending variables to banner

  1. #1
    Junior Member
    Join Date
    May 2003
    Location
    Arnhem, Netherlands
    Posts
    2

    problem sending variables to banner

    I want to give promotors there own banner to promote my sites.
    to keep track of there banner stats they heve ther own Id.

    But offcorse i dont want to make for every promotor an uniek banner so i want to get ther ID into the url within the movie.

    on (release) {
    getURL("http://www.site.com/promo/?pid=&user&sid=122 ", "_blank", "GET");
    }

    i want to get the variable from the movie code
    like this:

    <cut>
    <PARAM NAME=movie VALUE="flashtest.swf?user=234">
    <EMBED src="flashtest.swf?user=234" menu=false quality=high scale=noborder bgcolor=#000000 WIDTH="468" HEIGHT="60" NAME="flashtest" ALIGN=""
    TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
    <cut>

    Dos anybody understand what i mean and help me to get this to work?

    Thanks,

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    the code in your flash should read
    on (release) {
    getURL("http://www.site.com/promo/?pid="+user+"&sid=122 ", "_blank", "GET");
    }

    Musicman

  3. #3
    Junior Member
    Join Date
    May 2003
    Location
    Arnhem, Netherlands
    Posts
    2

    Oke that workt perfect.

    Oke that workt perfect.

    The problem whas that you cant test this on a local machine it has to be uploaded to the server before the variables in de html are pased on to the flash file.


    And ofcorse a didnt know abbout the + sign

    Thanks a lot.

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