|
321
|
Developer / Technical / Re: The grumpy old programmer room
|
on: January 21, 2011, 02:04:25 PM
|
yea i know, but i was assigning text straight after textfield creation, before EVERYTHING, even xy positions, width/height, etc. well, now i know  now i only need to figure out why i suddenly can't call JS code from swf. it worked earlier today (on different computer)*, now i build project and run it, call js function and get this: The ExternalInterface is not available in this container if i don't go insane now, i never will edit: who would't it know - i only get this error when running FB js locally, if i run it on my server, which is set as source for FB app, everything works flawlessly. HELL YEA?! *it seems i have problems with debugger there, not displaying flash errors
|
|
|
|
|
322
|
Developer / Technical / Re: [Actionscript3]Reading data from html?
|
on: January 21, 2011, 01:06:11 PM
|
well, what the hell, flashdevelop and game freeze as i try to call external js function ExternalInterface.call('showStream'); funny as i tried this in work today on another computer and it worked like a charm  from freezing to The ExternalInterface is not available in this container
|
|
|
|
|
324
|
Developer / Technical / Re: The grumpy old programmer room
|
on: January 21, 2011, 11:48:14 AM
|
|
i just spent 2 FREAKING hours trying to set formatting to my textfield in as3, only to find out i have to set text AFTER i set formatting to take effect!!!!!!!!!
WHAT IS THIS I DONT EVEEEEEN
|
|
|
|
|
325
|
Community / Versus / Re: From Somewhere, A Transmission... [no title yet]
|
on: January 21, 2011, 05:19:35 AM
|
...Another thing your post just made me think of: Like, say if one person had the food that the other player needed to win, and right before the other player could kill him, that person ate all the food.... In that case, maybe eating their body would provide more nourishment? We shall see.
this sound extremely morbid yes, but i was thinking of same "solution" - if one player stops cooperating and he dies, you eat him and survive (maybe also get his stuff), meaning win (it's not like it never happened before: http://en.wikipedia.org/wiki/Uruguayan_Air_Force_Flight_571). This explanation is easy (or not?  ) to believe, so you can just include in your story, when telling the aftermath of the game. So you force players to play and try to win, not just achieve a draw or something.
|
|
|
|
|
327
|
Developer / Technical / [Actionscript3]Reading data from html?
|
on: January 21, 2011, 04:25:08 AM
|
So I have a Facebook query that reads data of current user and displays it in a div like so: FB.api('/me', function(response) { var query = FB.Data.query('select name from user where uid={0}', response.id); query.wait(function(rows) { document.getElementById('name').innerHTML = 'Your name: ' + rows[0].name; }); }); <SCRIPT LANGUAGE="JavaScript" TYPE="TEXT/JAVASCRIPT"> fqlQuery(); </script> <div id="name"></div> which is great and all as i get my login name displayed on html of app. but how would i read that inner html of name div? maybe some useful pointers? i've been digging (literally) through old articles on web, but everything either points into getting data from php's url or plain text file parsing, nothing about html reading, or going through elements or anyhing. even better would be as3 ability to read js function returns.
|
|
|
|
|
328
|
Community / Versus / Re: From Somewhere, A Transmission... [no title yet]
|
on: January 21, 2011, 01:30:43 AM
|
|
maybe this has been discussed before, i don't know, but WHAT IF...
one of them just stops collaborating half way in the game?
i mean - if you give all players something that will bring them victory or eventually destroy them, somebody will sooner or later stop cooperating and waste everything, so both die.
like, you have to find stuff to survive, but you have to work together. so if one of them stops helping, both die and no one wins?
Rise of nations had the similar "problem" where you had nuclear weapons you could use to win, but losing player could easily abuse them in a situation where he could only defend and nuke everything to armageddon, so no one won. only "moral" victory for the before-armageddon-winning guy.
just throwing some thoughts around.
also, last time i worked with GM local and global connections worked the same way, so if you get LAN stuff done, you have global too.
|
|
|
|
|
332
|
Community / Versus / Re: Versus Competition: Rules
|
on: January 18, 2011, 04:42:15 AM
|
hmmmmm, i guess i could transform the current idea in new one and start from scratch, today. now this: -must it be a game dedicated to versus ONLY or have versus as one of the options? (it would be singleplayer / versus ONLY modes, two of them)
|
|
|
|
|
334
|
Community / Versus / Re: Versus Competition: Rules
|
on: January 18, 2011, 04:26:35 AM
|
hey gais, maybe i've missed it, BUT: -can it be a game i'm already working on -must it be a game dedicated to versus ONLY or have versus as one of the options? I MEAN I COULD CREATE A GAME WHICH WOULD BE COOP AND VERSUS AT THE SAME TIMEEEE 
|
|
|
|
|
338
|
Player / General / Re: What are you reading?
|
on: January 04, 2011, 02:37:57 AM
|
|
was reading hitchhiker's guide to the galaxy and picture of dorian gray but got bored.
i started reading hitchiker's for like xy time now but again lost interest after few tens of pages and dorian gray (the book overal, not the character, if anyone then painter MUST be) sounds extremely gay and i can't force myself to read any further
|
|
|
|
|
340
|
Developer / Technical / Re: Facebook, Flash, FlashDevelop & Actionscript 3
|
on: December 31, 2010, 07:02:21 AM
|
maybe you're right. anwayway I have ExternalInterface.call('share'); when i wanna post stuff and then in javascript: function share() { var share = { method: 'stream.share', u: 'http://itsmelol.com/' };
FB.ui(share, function(response) { console.log(response); }); } now, this works ok, because i get permissions dialog from FB when ran for the first time and then share dialog. i need to check that init function thingy.
|
|
|
|
|