A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Tweet High Score

  1. #1
    Senior Member
    Join Date
    Dec 2000
    Posts
    125

    Tweet High Score

    Can anyone tell me how they would add the high score on a "tweet this" link.

    So, to make a "tweet this" button:

    on (release) {
    getURL("http://twitter.com/home/?status=I just smashed ## roaches at http://bit.ly/9OTcEA");
    }

    How do I get the score in there.

  2. #2
    Senior Member
    Join Date
    Dec 2000
    Posts
    125
    OK, well, I guess I need more help than I thought. The "?" is not a friend of flash.

    Oh, I am using flash 8 (AS2)

  3. #3
    Senior Member
    Join Date
    Dec 2000
    Posts
    125

    Not the ?

    OK, so I've been researching and it looks like it's not the "?". Seems like it would work the same as a "?Subject" in "mailto:", but it's not working.

    Anyone have any ideas?

    This works perfect:

    on (press) {
    getURL("mailto:email@email.com?Subject=test");

    }

  4. #4
    Senior Member
    Join Date
    Dec 2000
    Posts
    125

    Anyone?

    Can anyone tell my why the /?status isn't working? Anyone tried this before? I have searched google and can't find anything. I think this would be a good idea, and I'm sure many of you would use it. I mean, imagine people tweeting their high score, only to have other people go and play your game, meaning more traffic to your site? I like that idea.

    Anyone else had this idea before?

  5. #5
    Senior Member
    Join Date
    Dec 2000
    Posts
    125

    It works

    OK looks like it actually works. Iposted it to the server and it's working. think I've had that problem before that it can't see a remote file from a local something or other. Whatever.

    http://goycodesign.com/Untitled-2.swf

    So, the code I am using it the original code posted above. I'll get working on how to get the var score in there.

  6. #6
    Senior Member
    Join Date
    Dec 2000
    Posts
    125

    I did it

    Holy crap, I did it. I figured it out.

    http://goycodesign.com/pushButton.swf

    Here's the code:

    on (press) {
    getURL("http://twitter.com/home?status=I just pushed a button "+_root.score+" times at http://bit.ly/9XsGYz %23PushMyButton","_blank");
    }

    the %23 is a hash tag "#"

Tags for this Thread

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