CN101089811A - Flash and Net layered structure based on External Interface - Google Patents

Flash and Net layered structure based on External Interface Download PDF

Info

Publication number
CN101089811A
CN101089811A CN 200610027682 CN200610027682A CN101089811A CN 101089811 A CN101089811 A CN 101089811A CN 200610027682 CN200610027682 CN 200610027682 CN 200610027682 A CN200610027682 A CN 200610027682A CN 101089811 A CN101089811 A CN 101089811A
Authority
CN
China
Prior art keywords
flash
program
net
externalinterface
flash player
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 200610027682
Other languages
Chinese (zh)
Inventor
金骏
郑加高
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XINNA ADVERTISEMENT MEDIA CO Ltd SHANGHAI
Original Assignee
XINNA ADVERTISEMENT MEDIA CO Ltd SHANGHAI
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by XINNA ADVERTISEMENT MEDIA CO Ltd SHANGHAI filed Critical XINNA ADVERTISEMENT MEDIA CO Ltd SHANGHAI
Priority to CN 200610027682 priority Critical patent/CN101089811A/en
Publication of CN101089811A publication Critical patent/CN101089811A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

A Flash and Net layer-framing method based on External Interface includes using program carrying Active control element as Net program, using control element embedded in Flash Player as said Active control element, using external API as External Interface object and using Action Script program as Flash application program calling on External Interface object for realizing two-way communication of Action Script program and Net program.

Description

A kind of Flash and .Net layer architecture method based on ExternalInterface
Technical field
The present invention relates to computer program development technique method, particularly the combination technology method between Flash and the .Net bilingual program specifically is meant a kind of Flash and .Net layer architecture method based on ExternalInterface.
Background technology
At Visual Basic, Visual C++ .Net with can carry in other program of ActiveX control, before can be by fscommand () but two character strings utilizing the programming language of environment for use to handle send the VB incidents.The Flash Player 8 of new edition provides simpler method at present.
The ExternalInterface class is also referred to as outside API, be a new subsystem, can and have the HTML page or leaf of JavaScript or embed between the multipad of FlashPlayer at ActionScript and Flash Player container by it and easily communicate.ExternalInterface is similar with CallLabel () method to fscommand (), CallFrame () on function, but it is more flexible, more general.
ExternalInterface replaces older fscommand () function, to carry out interoperability with HTML page or leaf or container application.In the case, the outside comparable fscommand of API () provides more reliable functioning.
From ActionScript, can on the HTML page or leaf, call the JavaScript function.Outside API compares with fscommand (), and following improved function can be provided:
(1) can use any JavaScript function, and be not only the function that can use with the fscommand function.
(2) can transmit parameter any amount, that have arbitrary name; Be not limited to transmit an order and parameter.
(3) can transmit various data types (for example Boolean, Number and String); No longer only limit to the String parameter.
(4) can receive the value of calling now, and will be worth and directly return to ActionScript (as the rreturn value of calling).
Summary of the invention
Purpose of the present invention is exactly for a kind of Flash and .Net layer architecture method based on ExternalInterface is provided, and this method can provide more reliable functioning.
Purpose of the present invention can be achieved through the following technical solutions: a kind of Flash and .Net layer architecture method based on ExternalInterface, it is characterized in that, comprise program with .Net, ActiveX control, the ExternalInterface object, the framework method of ActionScript program, the program of described .Net program for carrying ActiveX control, described ActiveX control is for embedding the control of Flash Player (Flash player), described ExternalInterface object is outside API, it is a new subsystem, can and have the HTML page or leaf of JavaScript or embed between the multipad of Flash Player at ActionScript and Flash Player container by it and communicate, here being mainly with Flash Player is the .Net multipad that embeds ActiveX control, and described ActionScript program is to call the Flash application program of ExternalInterface object.
Described layer architecture method is according to the following steps framework:
(1) embed above-mentioned ActiveX control in above-mentioned .Net multipad, above-mentioned ActiveX control is for embedding the control of Flash Player (Flash player);
(2) promptly embed at above-mentioned ActiveX control and embed the Flash application program in the control of Flash Player (Flash player);
(3) in above-mentioned embedding Flash application program, use ExternalInterface object and ActionScript program;
(4) above-mentioned ActionScript program is to call the program of ExternalInterface object;
(5) above-mentioned ActionScript program is set up communication by calling the ExternalInterface object to the .Net program;
(6) the ActionScript program is at first set up with the ActiveX control that embeds Flash Player (Flash player) and is communicated by letter;
(7) the AetiveX control that embeds Flash Player (Flash player) is then set up with the .Net program and is communicated by letter;
(8) like this, the ActiveX control by ExternalInterface object, embedding Flash Player (Flash player) has just made up the layer architecture method of Flash and .Net.
Compared with prior art, the present invention is based on Flash and the .Net layer architecture method of ExternalInterface, can realize the two-way communication of ActionScript program and .Net program, make Flash and .Net layer architecture simpler, more flexible, more general by the ExternalInterface object.
Description of drawings
Fig. 1 is based on the Flash of ExternalInterface and .Net layer architecture method synoptic diagram;
Fig. 2 is based on the Flash of ExternalInterface and .Net hierarchy synoptic diagram.
Embodiment
The invention will be further described below in conjunction with drawings and the specific embodiments.
Referring to Fig. 1, Fig. 2, the Flash and the .Net layer architecture method that the present invention is based on ExternalInterface comprise Flash application program, ExternalInterface object .Net application program.By the ExternalInterface object, list Flash application program and two kinds of methods of .Net application program initiative below:
(1) active of Flash application program and .Net interapplication communications:
The Flash application program imports the ExternalInterface object, obtains rreturn value by the method that ExternalInterface.call calls .Net and provides.
var?result:Object=ExternalInterface.call();
.Net application program is set up the method for Flash application call by the ExternalInterface object, and rreturn value is set.
private?void?axShockwaveFlash1_FlashCall();
(2) active of .Net application program and Flash interapplication communications:
.Net application program, the method that provides by ExternalInterface object reference Flash application program, and obtain rreturn value.
result=this.axShockwaveFlash1.CallFunction();
The Flash application program imports the ExternalInterface object, adds a method that supplies .Net to call.
ExternalInterface.addCallback();
In sum, it is outside API that the present invention adopts the ExternalInterface object, it is a new subsystem, for the Flash Player 8 of new edition provides simpler method, can between Flash and .Net application program, easily communicate by it, make that Flash and .Net layer architecture are simpler, more flexible, more general.

Claims (2)

1. Flash and .Net layer architecture method based on an ExternalInterface, it is characterized in that, comprise program with .Net, ActiveX control, the ExternalInterface object, the framework method of ActionScript program, the program of described .Net program for carrying ActiveX control, described ActiveX control is for embedding the control of Flash Player (Flash player), described ExternalInterface object is outside API, it is a new subsystem, can and have the HTML page or leaf of JavaScript or embed between the multipad of Flash Player at ActionScript and Flash Player container by it and communicate, here being mainly with Flash Player is the .Net multipad that embeds ActiveX control, and described ActionScript program is to call the Flash application program of ExternalInterface object.
2. a kind of Flash and .Net layer architecture method based on ExternalInterface according to claim 1 is characterized in that, described layer architecture method is according to the following steps framework:
(1) embed above-mentioned ActiveX control in above-mentioned .Net multipad, above-mentioned ActiveX control is for embedding the control of Flash Player (Flash player);
(2) promptly embed at above-mentioned ActiveX control and embed the Flash application program in the control of Flash Player (Flash player);
(3) in above-mentioned embedding Flash application program, use ExternalInterface object and ActionScript program;
(4) above-mentioned ActionScript program is to call the program of ExternalInterface object;
(5) above-mentioned ActionScript program is set up communication by calling the ExternalInterface object to the .Net program;
(6) the ActionScript program is at first set up with the ActiveX control that embeds Flash Player (Flash player) and is communicated by letter;
(7) ActiveX control that embeds Flash Player (Flash player) is then set up with the .Net program and is communicated by letter;
(8) like this, the ActiveX control by ExternalInterface object, embedding Flash Player (Flash player) has just made up the layer architecture method of Flash and .Net.
CN 200610027682 2006-06-13 2006-06-13 Flash and Net layered structure based on External Interface Pending CN101089811A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610027682 CN101089811A (en) 2006-06-13 2006-06-13 Flash and Net layered structure based on External Interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610027682 CN101089811A (en) 2006-06-13 2006-06-13 Flash and Net layered structure based on External Interface

Publications (1)

Publication Number Publication Date
CN101089811A true CN101089811A (en) 2007-12-19

Family

ID=38943178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610027682 Pending CN101089811A (en) 2006-06-13 2006-06-13 Flash and Net layered structure based on External Interface

Country Status (1)

Country Link
CN (1) CN101089811A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2521311C2 (en) * 2009-09-21 2014-06-27 Тенсент Текнолоджи (Шэньчжэнь) Компани Лимитед Method and system for facilitating interaction of network device with flash device
CN104216722A (en) * 2013-05-30 2014-12-17 步览捷信息科技(上海)有限公司 Automatic transplanting processing method of Spread control upgrading from ActiveX to .NET
CN108536523A (en) * 2018-04-20 2018-09-14 朱长德 The method that ActiveX nestings Flash is normally interacted in browser
CN110795340A (en) * 2019-10-04 2020-02-14 广州易方信息科技股份有限公司 Non-invasive Flash player automatic testing method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2521311C2 (en) * 2009-09-21 2014-06-27 Тенсент Текнолоджи (Шэньчжэнь) Компани Лимитед Method and system for facilitating interaction of network device with flash device
US8978040B2 (en) 2009-09-21 2015-03-10 Tencent Technology (Shenzhen) Company Limited Method and system enabling co-operating of web apparatus and flash apparatus
CN104216722A (en) * 2013-05-30 2014-12-17 步览捷信息科技(上海)有限公司 Automatic transplanting processing method of Spread control upgrading from ActiveX to .NET
CN104216722B (en) * 2013-05-30 2017-05-17 步览捷信息科技(上海)有限公司 Automatic transplanting processing method of Spread control upgrading from ActiveX to .NET
CN108536523A (en) * 2018-04-20 2018-09-14 朱长德 The method that ActiveX nestings Flash is normally interacted in browser
CN110795340A (en) * 2019-10-04 2020-02-14 广州易方信息科技股份有限公司 Non-invasive Flash player automatic testing method

Similar Documents

Publication Publication Date Title
CN102185901B (en) Client message conversion method
US7523223B2 (en) Web control simulators for mobile devices
CN104391826A (en) Data format conversion method and data format converter
US8316379B2 (en) Method for invoking UOML instructions
BR0317783A (en) Method of interacting with a schema-defined service through a terminal device on a network, terminal device, computer program product, and server
MX2009004469A (en) Contextual window-based interface and method therefor.
CN101334872B (en) Electronic government documents exchanging method based on web service
CN101861578B (en) Network operating system
CN101089811A (en) Flash and Net layered structure based on External Interface
CN103179133A (en) Communication method between client side and server based on entity class
JP2011515721A5 (en)
CN111061883B (en) Method, device, equipment and storage medium for updating knowledge graph
CN101146119A (en) A device and method for browser-cross self-adapted call of local function
SG135200A1 (en) A system and method for building component applications using metadata defined mapping between message and data domains
CN103530097A (en) Implement method and device of module crossing middleware platform
JP2006323816A5 (en)
CN104679489A (en) System and method for internally setting web browser in online game client side
CN102436391A (en) Android WebKit control method and system
CN104063219B (en) The form development approach and system of a kind of WEB systems
CN103152426B (en) The server of the webpage of prestrain Client browse, system and method
CN103744663A (en) Pre-caching technology based Android interface design frame model
CN107168700A (en) Foundational development framework based on the SQL SELECT full-automatic list WEB background management systems driven
CN109522507B (en) Method for uniformly managing webpage components
CN104850789A (en) Remote code injection vulnerability detection method based on Web browser helper object
JP2009508255A (en) Script application framework

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication