This content has been marked as final. Show 9 replies
I don't believe Flash can do that, but one of the third party Flash
'wrappers' could. Director especially, can talk easily to serial devices
using various Xtras. And since it can play Flash, you could do most of your
design in Flash, then just use the wrapper to get the additional
functionality you need.
Adobe Community Expert
Thanks for the advice, Dave. I will try wrapping it in Director and see what that does for me.
What kind of bar code scanners and such are you planning on using?
Most bar code scanners only scan in text anyway but the barcode font will delimit it using a * or | or some other foreign character so that a program knows where the legit text starts and stops. This is wide practice with POS as far as I can remember.
Cash drawers are another story. Depending on the model of the machine, it may take a simple set of DOS like carriage returns (LPT based drawers) or if it is USB, it may take communication with an external interface software (provided with the drawer) that opens it.
Figure out first what the hardware requires. You may or may not need wrappers at all. If Flash is the interface, I'm assuming the end result here is a projector running on a computer so the bar code scanner is probably inline with the keyboard meaning it will scan text directly. As for the drawer, you may be able to send FS Commands or ExternalInterface to the program that will open the drawer.
As it is a university project, I am not actually going to be connecting a scanner or cash drawer because these items will have to be handed in with the project. I am busy researching ways in which Flash can connect to these items and then include this in my report. It does not matter what connectivity is used - either USB or serial is good.
Just research the different machines and their options. It will be important to know how they interface with the outside world.
Thank you, SymTsb
You could always go through C++ or such. I'm guessing the project would essentially be like what you see in grocery stores, right? Only in sexy flash form? VisualBasic for example would allow you to insert a flash ActiveX control, and send/receive from there.
This would ultimately defeat the purpose of the project imho. VB can do it all without Flash at all. The challenge here is to see if Flash can actually be used as the RIA platform to make this happen. Good luck to nadanamesleft. I'd love to see where he gets with this.
Yeah, but since when can VB muchless any windows API-only compilation pull off such a smoothly rendered interface? But I get what your saying.