Use Windows ActiveX - MSComm -(by fallen)-
This way is free for all windows user (win98,win2000,winXP,win2003), if you are on another OS , you can use the "SERIAL XTRA", because it seems free for MAC and Linux, but "SERIAL XTRA" costs $75 when you use it in windows, so I added this tutorial for windows user.
The SerialXtra if free of charge if you use it in Director. If you need to use it in a projector you will need to purchase the license. Educational establishments can request a free renewable license.
If you have any difficulty, you can leave a responses in my blog :http://eiart.net/blog/archive/232
|code for the button|
sprite(2).CommPort = 5 sprite(2).Settings = "9600,N,8,1" sprite(2).InputLen = 0 sprite(2).PortOpen = True sprite(2).InputLen = 0
If sprite(2).InBufferCount Then member("com5 message").text = sprite(2).Input End If
sprite(2).PortOpen = False
Sorry about my English , I hope I can explain it clarity, if you have any difficulty , you can leave a responses in my blog :http://eiart.net/blog/archive/232