Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

1075767 Posts in 44140 Topics- by 36113 Members - Latest Member: Hardcore2dacore

December 29, 2014, 01:06:59 AM
  Show Posts
Pages: 1 ... 15 16 [17] 18 19 ... 33
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 Smiley

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:

Code:
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

Code:
ExternalInterface.call('showStream');

funny as i tried this in work today on another computer and it worked like a charm  Roll Eyes

from freezing to
Quote
The ExternalInterface is not available in this container
323  Developer / Technical / Re: What are you programming RIGHT NOW? on: January 21, 2011, 12:04:40 PM
currently working on player name input in as3, and reading data from facebook into flash via javascript.

made me very grumpy but happy at the same time
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? Evil ) 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.
326  Developer / Technical / Re: [Actionscript3]Reading data from html? on: January 21, 2011, 05:09:40 AM
awesome replies guys, that should do the trick Smiley thanks a ton!
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:

Code: (FB js)
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;
  });
});

Code: (call js script)
<SCRIPT LANGUAGE="JavaScript" TYPE="TEXT/JAVASCRIPT">
  fqlQuery();
</script>

Code: (name div)
<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.
329  Community / Versus / Re: Battle Lines on: January 19, 2011, 02:48:43 AM
whoooa, this looks awesome, great idea Smiley

can't wait to see more Smiley
330  Player / Games / Re: What games are "Must Buys" this 2011? on: January 18, 2011, 05:21:09 AM
crysis 2 Who, Me?
331  Player / Games / Re: Poorly describe games and try to guess what they are on: January 18, 2011, 05:09:50 AM
Hit things with a stick and run around in circles
Half-life

that made me laugh Cheesy
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:
Quote
-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)
333  Community / Versus / Re: two towns ... minimal turn-based strategy on: January 18, 2011, 04:36:16 AM
mockup looks delicious Smiley
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 Hand Shake Left Epileptic Hand Shake Right Hand Any Key
335  Developer / Creative / Re: So what are you working on? on: January 17, 2011, 03:58:15 AM
working on a bunch of stuff lately and this helps:

http://itsmelol.com/blog/?p=95

it's a little code documentation tool where you add some description, old code and new code, mark the changes and save it as html, and you get a nice little html as an output Smiley
336  Developer / Technical / Re: Facebook, Flash, FlashDevelop & Actionscript 3 on: January 09, 2011, 02:15:16 PM
not yet, i'm still working on some stuff (actionscript 3 wise) and i havent fully explored... the terrain, yet, to write a tutorial about it.

i'm planning on finishing my game and putting tutorial up around friday Smiley
337  Player / General / Re: What are you listening to at the moment? on: January 04, 2011, 03:36:40 AM
muse, guiding light

http://www.youtube.com/watch?v=fGLtufyEMFU

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
339  Feedback / Playtesting / Re: Minecraft (alpha) on: January 03, 2011, 12:31:03 AM
http://www.minecraftforum.net/viewtopic.php?f=25&t=86929

bah, i don't know what mods are out there, i only play on some local server with about 30-40 players from the forum i visit and there is basic stuff, nothing fancy.

if anyone has some interesting server to share, let me know ^^
340  Developer / Technical / Re: Facebook, Flash, FlashDevelop & Actionscript 3 on: December 31, 2010, 07:02:21 AM
maybe you're right.

anwayway I have

Code: (ActionScript 3)
ExternalInterface.call('share');

when i wanna post stuff and then in javascript:

Code: (Javascript @ underlying html page)
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.
Pages: 1 ... 15 16 [17] 18 19 ... 33
Theme orange-lt created by panic