I am working on a flex project using sharedobjects to store information on my server. I am not 100% sure how to do this, so I was looking up tutorials and came across this bit of code:
nc = new NetConnection();
nc.connect("rtmp://[website here]");
so = SharedObject.getRemote("ballPosition", nc.uri, false);
so.connect(nc);
But when it gets to the 3rd line, it crashes. I don’t know how to use the debugger for flex sadly enough, which I am looking into now, but I figured that I would post this here and hope for the best. Thanks in advance.
I started posting this as a comment, but it quickly got too long..
You may be getting the error because you’re not connected to the server. If you’re connected then you’ll get a
truereturned from your second line. I’d start there. eg:Also, you might try wrapping this in a try/catch block as that will give you the error, but won’t kill your app (since you’re new to debugging).
In all, debugging is simply awesome and can save you a lot of time in certain situations. good luck!