|
|||
|
Now you can use the CPortX activeX control in SWFKit or SWFKit Pro to access serial ports.Download
The query modem sample Note: You must use the CPortX in SWFKit Pro (SWFKit) ver 2.2 or later. For SWFKit 2.2 isn't released yet, please get a special edition of SWFKit Pro that can use the CPortX ActiveX object at http://www.swfkit.com/download/swfkit.exe |
|
|||
|
Hi topcmm,
This is great stuff. Everything installed ok. How do I send/receive a binary value out the comm port? I used to use StringStream.put but writestr does not have a put method. Thanks, Bob |
|
|||
|
E.g. The "querymodem" script in the "querymodem" sample, the last line is
Code:
commx.writeStr(command); Code:
var stream = new StringStream; stream.write(command); commx.write(stream); Similarly, in the "initialize" script, the "onRXChar" event handler is Code:
var str = this.readStr(count);
FlashPlayer.setVariable("response.text", str);
trace(str);
Code:
var stream = this.read(count);
FlashPlayer.setVariable("response.text", stream.toString());
trace(stream);
|
|
|||
|
hi
i m also trying to use the serial port in macromedia flash documents. i downloaded and opened the source file for query modem frm the sample. I would like to knw the procedure of going frm qm.fla file to the final product qm.exe that actually works. I downloaded and installed swkit pro2 and cportx activex component. this is what i tried. after installing both...i opened the .fla file in flash 8 and published the .swf i took this .swf and tried to add it to 'movies' in swfkit pro2 and used 'build' to get a '.exe' file. however the .exe file or the swf does not have any listing under the dropdown of PORT ....'it is blank.... while in the pre-compiled downloaded version it gives me a drop down with 'Port1' .... please tell me the exact procedure..... do i need to use the cportx ...if so how.. thanks |
|
|||
|
It won't work with only the swf file, you would have to write some codes to call the CPortX component. Please try the sample, it shows how to do this (just open the .skp file with swfkit).
|
|
|||
|
hi again,
thanks for the reply, I did get it to work and was able to successfully make a program to talk to the serial port and get response. I have one question however, I tested the program on windows XP, but I will be requiring to run the program on windows 98. Will the same program also work on windows 98. Does cportx work on both win XP and win 98. I tried to go on the download page and see if it mentions which operating systems cportx will work on but I did not see it. thanks for all your support. |
|
|||
|
hi
unfortunately i was not able to run the sample downloaded program qm.exe (query modem sample program) on the windows 98. First it said requires cportx....so i installed that...but after that when i ran the qm.exe again it was giving some error suggesting that the .exe is corrupt and reinstall the program...(although the same file works on windows xp 100% not corrupt). I am doing a university project and have bought a slow speed laptop (233 mhz) with touch screen and running windows 98. I spent all night yesterday and install windows XP on it. Now although the program works fine on winxp, (the sample and therefore mine also).... but I do not have drivers for the touch screen. I was hopeful that the program will work on windows 98 and thus I would have been able to use the touch screen/ And there does not seem to be any kind of support for winxp drivers from the manufacturers or any forums/groups. thanks anyway... atleast the program works on win xp now i can only hope i find some generic drivers and get the touch screen to work. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|