Page 1 of 1

Need help with small project

Posted: Sun Jan 21, 2018 12:08 am
by gallopinggiraffe
So I am currently learning ActionScript 3(Please do not mention how old it is lol) and C# to move to a different position where I work. They want me to make a program that sends data from a local database using C# and have AS3 display whatever is in the database

I am having a hard time finding info on how to do this so any help is appreciated. Thanks!!

Re: Need help with small project

Posted: Sun Jan 21, 2018 8:48 am
by a_bertrand
I'm not an expert of AS3, but you should be able to have some sort of timer on AS3 and then request a WEBAPI / Webpage which serves your data. You should also be able to have some sort of TCP connection but there I don't know AS3 enough to even know how that could be called.

Re: Need help with small project

Posted: Mon Jan 22, 2018 5:39 pm
by hallsofvallhalla
AS3..i just threw up in my mouth a little. hahah kidding.

cant you use sockets?
https://stackoverflow.com/questions/428 ... -questions

looks like a good tutorial for c# to as3
https://jacksondunstan.com/articles/2872

Re: Need help with small project

Posted: Mon Jan 22, 2018 11:50 pm
by gallopinggiraffe
I appreciate the help guys. I am extremely new to this stuff so it's like a foreign language. On the sockets would I just past the path to my local database or no?

Re: Need help with small project

Posted: Tue Jan 23, 2018 2:08 am
by hallsofvallhalla
you would path the response from c# to AS3, so I assume do all your db stuff on the c# side then pass response to AS3 via sockets.

Re: Need help with small project

Posted: Tue Apr 10, 2018 12:43 am
by Jackolantern
Oh man, I wish I had seen this earlier. I hope this guy is learning Flex. If he is learning AS3 through the Flash route this is going to be a pile of pain.

I actually liked AS3. A lot really. Typescript is essentially AS3 with a slightly different syntax.