dcsimg
A Flash Developer Resource Site

Results 1 to 15 of 15

Thread: [f8][little experiment]Flickr-tags-game?

Hybrid View

  1. #1
    Senior Member walnoot's Avatar
    Join Date
    Apr 2005
    Posts
    754

    [f8][little experiment]Flickr-tags-game?

    hi!
    Did some coding-exercise today and came up with the following:
    http://members.chello.nl/w.visser8/flickrtags.swf.
    You can click on the small words, it leads you through a network of somehow related words.
    I want some feedback:
    *does this work on your computer?
    *do you enjoy yourself browsing through tags in search of one of the words I gave underneath?
    *any ideas to make it (more) enjoyable?

    thanx in advance! Wouter.
    Last edited by walnoot; 10-11-2006 at 02:33 PM.

  2. #2
    Wait- what now? tidenburg's Avatar
    Join Date
    Dec 2005
    Posts
    1,472
    Nice work. If you plan on making this into a game. Then how about add more words and then set a time for the person to find a specific word by search through the catergories.
    "I'd only told them the truth. Was that so selfish? Our integrity sells for so little, but it is all we really have. It is the very last inch of us, but within that inch, we are free."

  3. #3
    Please, Call Me Bob trogdor458's Avatar
    Join Date
    Aug 2006
    Location
    Pensacola, FL
    Posts
    915
    definatly add some graphics, i didnt know it WAS a game at first, i thought it was supposed to be a thesaurus or something. too bad im not good at word games...

  4. #4
    Truimagz.com everfornever's Avatar
    Join Date
    Sep 2006
    Location
    St. Louis
    Posts
    1,306
    very cool, very unique. Lots of possibilities.

    only one bug, when I click off the word list it's sends the word list to another category also.

  5. #5
    Please, Call Me Bob trogdor458's Avatar
    Join Date
    Aug 2006
    Location
    Pensacola, FL
    Posts
    915
    i found october and nothing happened ;( add a winning animation, and if you already have one and i didnt know how to access it, add a friendlier layout

  6. #6
    Vox adityadennis's Avatar
    Join Date
    Apr 2001
    Posts
    751
    that's very cool. Better graphics would be nice. Something you could do is pull an image from google (or flickr) based on the word clicked. I think I some some (extremely messy)code to do that lying around. If would like it, just let me know

  7. #7
    Please, Call Me Bob trogdor458's Avatar
    Join Date
    Aug 2006
    Location
    Pensacola, FL
    Posts
    915
    another good idea (i think) is by making the words actually move around when you switch from category to category, sort of flying in from the top left corner, i believ some simple motion paths could do that

  8. #8
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,227
    At least add some sort of onMouseOver effect so people notice the words are clickable.

  9. #9
    Senior Member walnoot's Avatar
    Join Date
    Apr 2005
    Posts
    754
    Thanks for your replies!
    You're all right ofcourse, it doesn't looks like anything, but I always start things out very basic.
    At the moment it looks like this:http://members.chello.nl/w.visser8/flickrtags.swf.
    Have to smooth the movement, and there's some room for a picture maybe too. Don't know if I'm gonna make it into a game, or just make it a little toy, like it is.

    Everfornever, could you explain the bug once more? I don't really get what you mean.

    ps. I must say that textfields are pretty hard to program when you never really used them.

    Gr. Wouter
    Last edited by walnoot; 10-09-2006 at 03:48 PM.

  10. #10
    Please, Call Me Bob trogdor458's Avatar
    Join Date
    Aug 2006
    Location
    Pensacola, FL
    Posts
    915
    im not sure why you think it's so bad, you just need some graphics to draw people into it. im not even quite sure how you managed that whole word link thing, are there just pages filled with all these clickable words, and certain words link to them, or when you click on a word, does it actually bring up all words associated with that word and then display them? it's really hard to tell, i'm not too friendly with words (as posted earlier)

    i figure learning textfields is just like learning anything else you haven't tried (unless it's something that is completely over your head) i only used programmed text fields once, then decided against it, and went with a different look that didn't display your name all over the place (full name some places, first letter elsewhere)
    Last edited by trogdor458; 10-09-2006 at 04:40 PM.

  11. #11
    Vox adityadennis's Avatar
    Join Date
    Apr 2001
    Posts
    751
    wow, any chance of telling us how you made that wheel?

  12. #12
    Senior Member walnoot's Avatar
    Join Date
    Apr 2005
    Posts
    754
    Quote Originally Posted by adityadennis
    wow, any chance of telling us how you made that wheel?
    Sure, such things have been done a thousand times before, here you go:

    create a new font in your library, then linkage->export for actionscript->call it 'my font'

    copy and paste following code into the first frame of the main timeline:
    Code:
    var tf:TextFormat = new TextFormat();
    tf.font = "my font";
    tf.color = 0x000000;
    var len:Number = 50;
    for (i=0; i<len; i++) {
    	var deg = (360/len)*i;
    	var x = Math.cos(deg*Math.PI/180)*150+275;
    	var y = Math.sin(deg*Math.PI/180)*150+275;
    	_root.createTextField("t"+i, _root.getNextHighestDepth(), x, y, 100, 20);
    	_root["t"+i].embedFonts = true;
    	_root["t"+i].selectable = false;
    	_root["t"+i].text = i*i;
    	_root["t"+i].setTextFormat(tf);
    	_root["t"+i]._rotation = deg;
    }
    _root.onEnterFrame = function() {
    	var dx = _root._xmouse-275;
    	var dy = _root._ymouse-275;
    	var radian = Math.atan2(dy, dx);
    	var mdeg = Math.floor((radian*180/Math.PI)/(360/len))*(360/len);
    	for (g=0; g<len; g++) {
    		var deg = mdeg+((360/len)*g);
    		var x = Math.cos(deg*Math.PI/180)*150+275;
    		var y = Math.sin(deg*Math.PI/180)*150+275;
    		_root["t"+g]._x = x;
    		_root["t"+g]._y = y;
    		_root["t"+g]._rotation = deg;
    	}
    };
    I sliced the circle in equal segments by calculating 360/amount of words.
    In the onEnterFrame I check the angle of the mouse with the x/y-center and by dividing it with the segment-size I know at with segment-place it is in the circle. Then I put the textfields up their new coordinates.

    im not even quite sure how you managed that whole word link thing, are there just pages filled with all these clickable words, and certain words link to them, or when you click on a word, does it actually bring up all words associated with that word and then display them?
    it does actually bring up all words associated with that word and then display them. You can get it here:http://www.flickr.com/services/api/.

  13. #13
    Please, Call Me Bob trogdor458's Avatar
    Join Date
    Aug 2006
    Location
    Pensacola, FL
    Posts
    915
    im pretty sure it depends on the angle of the mouse compared to the center that tells which list item goes where, if you notice, the words aren't moving, they just appear to be switching texboxes

  14. #14
    Vox adityadennis's Avatar
    Join Date
    Apr 2001
    Posts
    751
    great, thanks

  15. #15
    Senior Member walnoot's Avatar
    Join Date
    Apr 2005
    Posts
    754
    Ok, finished my exercises with API's and XML for now, the final result.
    (beware:yahoo's adult filter on the images is not very good at it's job in my opinion)

    Maybe I come to a game with it in the future, but this is all getting a bit to hard for me now.

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