Using firbase as database almost works.


  • *
  • Posts: 2
Works fine with getting data from firebase ...wooohoo!

but when i try to put data from stencyl it wont work!
i have testet that it works from a test site.
See the video and please.....please helmp me :)


  • *
  • Posts: 2258
Stencyl doesnt support Firebase atm as far as I know


  • *
  • Posts: 1491
The block in Stencyl "POST" data but doesn't PUT data

First of all

I would look at the postToURL fubntion

Code: [Select]
public static function postToURL(URL:String, data:String = null, fn:Event->Void = null)
if(fn == null)
fn = defaultURLHandler;

var request:URLRequest = new URLRequest(URL);
request.method = URLRequestMethod.POST;

if(data != null)
{ = new URLVariables(data);

var loader = new URLLoader(request);
loader.addEventListener(Event.COMPLETE, fn);

#if flash
loader.addEventListener(IOErrorEvent.NETWORK_ERROR, defaultURLError);
loader.addEventListener(IOErrorEvent.IO_ERROR, defaultURLError);
//making sure the connection closes after 0.5 secs so the game doesn't freeze
    runLater(500, function(timeTask:TimedTask):Void

trace("Cannot open URL.");

modify the file and replace  URLRequestMethod.POST  by URLRequestMethod.PUT
if it works, I would try to make my own block.

By just changing the code, does it work ?


  • Posts: 1771
How about checking for errors in chrome's console? ( SHIFT+CTRL+i )
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.