Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-21-2007, 08:19 PM
Junior Member
 
Join Date: Aug 2006
Posts: 10
Default About Sockets and TWAIN objects

Hi!

Sockets:
Let's say I have done two programs. One is the reciever and one is the sender (Client and Server).This means I need to know the IP and Port of the other computer which I am to send a file to. How do I get that information and how do I create that port? (The computers are not in the same LAN).

I'm sorry I dont know so much about sockets but it would be very nice of you to tell me how I should do.

TWAIN Objects:
If I have a webcam how do I get the images so that I can work with them in my FFish code? I have tried the "twainSelectSource()" function but that just brings up a list and then brings up some kind of dialog that wants me to capture images and then send them to Swfkit. I want this to run in the backgrund without any dialogs after I have started the procces.
Think of it as I want to get the images and them send them one after another through a socket object.

Thank you very much.
Reply With Quote
  #2 (permalink)  
Old 11-25-2007, 09:20 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: About Sockets and TWAIN objects

About sending and receiving files, you will have to input the IP and Port of the receiver manually in the sender program. That information cannot get by programming, you will have to write it down on paper or remember it.

About capture images from a webcam, that can be done by using pure actionscript code:

1. attach the webcam to a Video object
2. create a BitmapData object and draw the Video
3. save the image data in the BitmapData object

Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:38 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.