Need help with small project

Place to place any code snippets, completed games, or even uncompleted games for IR users to use.

Need help with small project

Postby gallopinggiraffe » Sat Jan 20, 2018 7:08 pm

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!!
gallopinggiraffe
 
Posts: 2
Joined: Sat Jan 20, 2018 7:04 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Need help with small project

Postby a_bertrand » Sun Jan 21, 2018 3:48 am

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.
Creator of Dot World Maker
Mad programmer and annoying composer
User avatar
a_bertrand
New Worlds Engine creator
 
Posts: 1507
Joined: Mon Feb 25, 2013 8:46 am
Has thanked: 15 times
Been thanked: 23 times

Re: Need help with small project

Postby hallsofvallhalla » Mon Jan 22, 2018 12:39 pm

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
User avatar
hallsofvallhalla
Site Admin
 
Posts: 11842
Images: 13
Joined: Wed Apr 22, 2009 6:29 pm
Location: mobile, al
Has thanked: 11 times
Been thanked: 146 times
Blog: View Blog (3)

Re: Need help with small project

Postby gallopinggiraffe » Mon Jan 22, 2018 6:50 pm

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?
gallopinggiraffe
 
Posts: 2
Joined: Sat Jan 20, 2018 7:04 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Need help with small project

Postby hallsofvallhalla » Mon Jan 22, 2018 9:08 pm

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.
User avatar
hallsofvallhalla
Site Admin
 
Posts: 11842
Images: 13
Joined: Wed Apr 22, 2009 6:29 pm
Location: mobile, al
Has thanked: 11 times
Been thanked: 146 times
Blog: View Blog (3)


Return to Code Sharing

Who is online

Users browsing this forum: No registered users and 1 guest

cron

x