![]() |
|
||||||||||
|
|||||
|
Как сделать связь по LocalConnection между моей прогой на делфи или c++ , с флешкой встроеной в прогу или нет ?
Если бы найти документацию как локалконекшен реализован .... то былоб супер. И второй вопрос , где найти методы активХ флеша ? Заранее всем спасибо ! |
|
|||||
|
Цитата:
|
|
|||||
|
socketы Штука независимая ни от языка программирования ни от платформы
![]() Только вот если флэш вставлен в проект как АктивХ, то на кой ему коннект к хост-аппликэйшн открывать??? Для их общения ФСКомманд существует.
__________________
Two beer or not two beer?... |
|
|||||
|
Нельзя ли мне на мыло умной доки про эту штуку- активХ скинуть. И про сокет, да, вобщем, о всем, чего не жалко
__________________
Государственный Сберегательный банк Украины. Полтавский прайс-сервер ТРЕЙДЕР Продажа CD с доставкой по СНГ Продажа металлопроката on-line |
|
|||||
|
socket connection , это хорошо , но разве флеш открывает соккет ?
кто бы расказал как реализован локал конекшен ..... а зачем фскоманд ? если можно напрямую ? |
|
|||||
|
Да все доки есть в хэлпах ко флэшу:
Syntax new XMLSocket(); Arguments None. Description Constructor; creates a new XMLSocket object. The XMLSocket object is not initially connected to any server. You must call the XMLSocket.connect method to connect the object to a server. Syntax myXMLSocket.connect(host, port); Arguments host A fully qualified DNS domain name, or a IP address in the form aaa.bbb.ccc.ddd. You can also specify null to connect to the host server on which the movie resides. port The TCP port number on the host used to establish a connection. The port number must be 1024 or higher. Description Method; establishes a connection to the specified Internet host using the specified TCP port (must be 1024 or higher), and returns true or false depending on whether a connection is successfully established. If you don't know the port number of your Internet host machine, contact your network administrator. If the Flash Netscape plug-in or ActiveX control is being used, the host specified in the argument must have the same subdomain as the host from where the movie was downloaded. If you specify null for the host argument, the host contacted will be the host where the movie calling XMLSocket.connect resides. For example, if the movie was downloaded from http://www.yoursite.com, specifying null for the host argument is the same as entering the IP address for www.yoursite.com. If XMLSocket.connect returns a value of true, the initial stage of the connection process is successful; later, the XMLSocket.onConnect method is invoked to determine whether the final connection succeeded or failed. If XMLSocket.connect returns false, a connection could not be established. Syntax fscommand(command, arguments); Arguments command A string passed to the host application for any use. arguments A string passed to the host application for any use. Description Action; allows the Flash movie to communicate with the program hosting the Flash Player. In a Web browser, fscommand calls the JavaScript function moviename_Dofscommand in the HTML page containing the Flash movie, where moviename is the name of the Flash Player as assigned by the NAME attribute of the EMBED tag or the ID property of the OBJECT tag. If the Flash Player is assigned the name theMovie, the JavaScript function called is theMovie_Dofscommand. ЗЫ 2Junge А что может быть прямее fscommand-а? Запускать таймер и проверять не изменилась ли какая-нить переменная во флэше? ![]()
__________________
Two beer or not two beer?... |
![]() |
Часовой пояс GMT +4, время: 20:21. |
|
|
« Предыдущая тема | Следующая тема » |
|
|