CN107145364A - A kind of cross-domain method and devices for accessing data of Flash - Google Patents
A kind of cross-domain method and devices for accessing data of Flash Download PDFInfo
- Publication number
- CN107145364A CN107145364A CN201710172686.6A CN201710172686A CN107145364A CN 107145364 A CN107145364 A CN 107145364A CN 201710172686 A CN201710172686 A CN 201710172686A CN 107145364 A CN107145364 A CN 107145364A
- Authority
- CN
- China
- Prior art keywords
- download component
- interface
- class
- animation file
- target
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a kind of cross-domain method and devices for accessing data of Flash.Present invention method includes:Write the second animation file of the first animation file of loading, search download component class and corresponding download component interface that second animation file has, the target download component class for downloading the first animation file is obtained in download component class, target download component class is instantiated as instance object, the corresponding target download component interface of instance object is called, the data in third party website are obtained.The method that the embodiment of the present invention realizes spanned acquiring data, improves the flexibility of Flash program and the convenience of data access.
Description
Technical field
The present invention relates to field of computer technology, the cross-domain method and devices for accessing data of more particularly to a kind of Flash.
Background technology
At present, Flash is widely used in webpage design and web animation making and video web page broadcasting etc., most
Video website includes webcast website all using Flash as its video player, and most web game, most
The Web page application programs such as mailbox all develop some functions using Flash, and Flash specifically used file is SWF (Shock
Wave Flash) file, Flash take into account cross-domain (cross-domain to refer in a website domain name from a safety viewpoint at the beginning of design
It is lower access another website domain name under data) safety problem because it is cross-domain access some files or resource have mobile
Danger, the process has exceeded the scope of website itself, for station outside resource can not audit its security.And for some across
The demand of domain browsing, Flash provides a kind of strategy, and being set by configuration policy file crossdomain.xml files can
Which domain name to access data across, and if the website domain name for some websites is not matched somebody with somebody in configuration policy file
Data therein can not be accessed by putting.
The content of the invention
The embodiments of the invention provide a kind of cross-domain method and devices for accessing data of Flash, cross-domain acquisition number is realized
According to method, improve the flexibility of Flash program and the convenience of data access.
In a first aspect, this application provides a kind of cross-domain methods for accessing data of Flash, methods described includes:
The second animation file of the first animation file of loading is write, first animation file is under third party website domain name
Animation file;
Search download component class and corresponding download component interface that second animation file has;
The target download component class for downloading first animation file is obtained in the download component class, by the target
Download component class is instantiated as instance object, and the instance object includes corresponding download component interface;
The corresponding target download component interface of the instance object is called, the data in the third party website are obtained.
Further, it is described write loading the first animation file the second animation file the step of, including:
Define an animation file loading example;
Register the call back function that animation file loading is completed;
The interface of the animation file of request to create first;
The interface is called to load first animation file;
Write the call back function.
Further, it is described to search download component class and the corresponding download component interface that second animation file has
The step of, including:
Search the symbol that second animation file is used, the symbol includes all bags names used, all class names,
All function names and variable name;
The symbol used is read by decompiling instrument, the download component class that second animation file has is determined
And corresponding download component interface.
Further, it is described that the target download component for downloading first animation file is obtained in the download component class
Class, the step of target download component class is instantiated as into instance object, is specifically included:
Class is called to judge that interface judges whether the target download component class;
If so, then calling class to obtain interface obtains the target download component class;
According to the target download component class, the instance object of the target download component class is created, the reality is determined
The download component interface of exampleization object.
Further, it is described to call the corresponding target download component interface of the instance object, obtain the third party
The step of data in website, specifically include:
The corresponding target download component interface of the instance object is obtained, the target download component interface needs for user
Obtain the interface of data in the third party website;
The target download component interface is called to obtain the data in the third party website.
Second aspect, this application provides a kind of cross-domain devices for accessing data of Flash, described device includes:
Unit is write, the second animation file for writing the first animation file of loading, first animation file is the
Animation file under tripartite's website domain name;
Searching unit, connects for searching download component class and corresponding download component that second animation file has
Mouthful;
Instantiating unit, the target download group of first animation file is downloaded for being obtained in the download component class
Part class, instance object is instantiated as by the target download component class, and the instance object includes corresponding download component
Interface;
Call unit, for calling the corresponding target download component interface of the instance object, obtains the third party
Data in website.
Further, it is described write unit specifically for:
Define an animation file loading example;
Register the call back function that animation file loading is completed;
The interface of the animation file of request to create first;
The interface is called to load first animation file;
Write the call back function.
Further, the searching unit specifically for:
Search the symbol that second animation file is used, the symbol includes all bags names used, all class names,
All function names and variable name;
The symbol used is read by decompiling instrument, the download component class that second animation file has is determined
And corresponding download component interface.
Further, the instantiating unit specifically for:
Class is called to judge that interface judges whether the target download component class;
If so, then calling class to obtain interface obtains the target download component class;
According to the target download component class, the instance object of the target download component class is created, the reality is determined
The download component interface of exampleization object.
Further, the call unit specifically for:
The corresponding target download component interface of the instance object is obtained, the target download component interface needs for user
Obtain the interface of data in the third party website;
The target download component interface is called to obtain the data in the third party website.
By writing the second animation file of the first animation file of loading in the embodiment of the present invention, second animation is searched
Download component class and corresponding download component interface that file has, obtain in download component class and download the first animation file
Target download component class, instance object is instantiated as by target download component class, is called under the corresponding target of instance object
Component interface is carried, the data in third party website are obtained.The embodiment of the present invention loads the 3rd by writing a Flash file
Flash file under square website domain name, then gets the download component interface of the website, finally by this by reflex mechanism
Download component interface obtains interested content.So gone to allow under the website domain name by the Flash file write
Flash file goes to download the data of the website, actual to realize that download is that Flash file under the domain name goes to download, so domain
Name detection judgement is same domain name, it is achieved thereby that the method for spanned acquiring data, improve Flash program flexibility and
The convenience of data access.
Brief description of the drawings
Fig. 1 is one embodiment schematic diagram of the cross-domain methods for accessing data of Flash in the embodiment of the present invention;
Step S1 specific embodiment schematic flow sheet in Fig. 2 embodiment illustrated in fig. 1;
Step S2 specific embodiment schematic flow sheet in Fig. 3 embodiment illustrated in fig. 1;
Step S3 specific embodiment schematic flow sheet in Fig. 4 embodiment illustrated in fig. 1;
Step S4 specific embodiment schematic flow sheet in Fig. 5 embodiment illustrated in fig. 1;
Fig. 6 is one embodiment schematic diagram of the cross-domain devices for accessing data of Flash in the embodiment of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model that the present invention is protected
Enclose.
The (if present)s such as term " first ", " second " in description and claims of this specification and above-mentioned accompanying drawing
It is for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that the number so used
According to can exchange in the appropriate case, so as to the embodiments described herein can with except the content for illustrating or describing herein with
Outer order is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that the non-exclusive bag of covering
Contain, for example, the process, method, system, product or the equipment that contain series of steps or unit are not necessarily limited to what is clearly listed
Those steps or unit, but may include not listing clearly or intrinsic for these processes, method, product or equipment
Other steps or unit.
Referring to Fig. 1, one embodiment of the cross-domain methods for accessing data of Flash includes in the embodiment of the present invention:
S1, the second animation file for writing the first animation file of loading;
Wherein, first animation file is the animation file under third party website domain name;First animation file, second move
It can be SWF files to draw file.
Download component class and corresponding download component interface that S2, the second animation file of lookup have;
Because the form of animation file is disclosed, by taking SWF files as an example, some modes can be taken to enter SWF files
Row is searched, it is known which class this SWF file has, and protects which function interface etc..
S3, in download component class obtain download the first animation file target download component class, by target download component
Class is instantiated as instance object;
Wherein, the instance object includes corresponding download component interface.
S4, the data called in the corresponding target download component interface of instance object, acquisition third party website.
By writing the second animation file of the first animation file of loading in the embodiment of the present invention, second animation is searched
Download component class and corresponding download component interface that file has, obtain in download component class and download the first animation file
Target download component class, instance object is instantiated as by target download component class, is called under the corresponding target of instance object
Component interface is carried, the data in third party website are obtained.The embodiment of the present invention loads the 3rd by writing a Flash file
Flash file under square website domain name, then gets the download component interface of the website, finally by the download component interface
To obtain interested content, so the Flash file allowed under the website domain name is gone to go to download by the Flash file write
The data of the website, it is actual to realize that download is that Flash file under the domain name goes to download, so domain name detection judgement is same
Individual domain name, it is achieved thereby that the method for spanned acquiring data, improve Flash program flexibility and data access it is convenient
Property.
As shown in Fig. 2 the step S1 can specifically include:Newly-built second animation file, and in second animation text
Code is write in part and realizes following steps:
S11, one animation file loading example of definition;
Specifically, still by taking SWF files as an example, ActionScript Loader examples can be defined first.And
A Loader class is provided in ActionScript to be used for loading the files such as SWF files, or picture JPG, GIF animation.
Therefore a SWF files loading example is defined to be implemented as follows:
Var swfLoader:Loader=new Loader ();
The call back function that S12, registration animation file loading are completed;
In this step still by taking SWF files as an example, the interface of a Loader example is provided in ActionScript, is used
To register loading completion event, after Loader loadings complete a SWF file, the function of this registration can be adjusted back, to tell
Its SWF file has loaded completion.An addEventListener interface is provided in Loader and is used for registered events.
The specific prototype of interface is as follows:
addEventListener(type:String,
listener:Function,
useCapture:Boolean=false,
priority:Int=0,
useWeakReference:Boolean=false)
Wherein, first parameter type:String is used for representing the event type of registration, corresponding to being then herein
Event.COMPLETE, represents registration SWF loading completion events;Second parameter listener:Function is used for representing note
Call back function after the completion of the completion event of volume, is performed for triggering call back function;3rd parameter priority:Int is used for
The priority of sign event, uses default value 0;4th parameter useWeakReference:Boolean specify call back function be
Weak application or strongly reference, use default value false.
S13, the animation file of request to create first interface;
Still by taking SWF files as an example, the interface of request to create animation file i.e., request to create SWF interface URLRequest,
Interface is provided in ActionScript to be used for from one SWF file of network or local request, physical interface is as follows:
URLRequest(url:String=null)
Wherein, parameter url:The incoming URL addresses of String signs or local path.
S14, the interface is called to load first animation file;
When animation file is SWF files, the interface of Loader examples can be called to carry out the SWF files of load request, had
Body interface is as follows:
load(request:URLRequest,context:LoaderContext=null)
Wherein, parameter request:URLRequest is exactly the request object of loading, is exactly to create in step S13
URLRequest objects.
S15, write the call back function.
Call back function swfLoadCompleteHandler is write, this function is that the registration loading called above is completed
Call back function.
Further, as shown in figure 3, above-mentioned steps S2 can specifically include:
The symbol that S21, lookup second animation file are used;
Wherein, the symbol includes all bag names used, all class names, all function names and variable name;
S22, the symbol used read by decompiling instrument, determine the download group that second animation file has
Part class and corresponding download component interface.
Because the form of SWF files is disclosed, it is easy to find third-party decompiling instrument, SWF can be carried out
Decompiling, SWF files can store all symbols used, such as can store all bag names, all class names, all functions
Name and variable name etc., then by decompiling instrument be that can read these names, it is known that the protection of this SWF file which
A little classes, which function interface, so as to subsequently to get these classes and interface using reflex mechanism.
Wherein, download component interface has the method for the downloading data from website, and such common realization is as follows:
1. define a data downloaded object.
public var urlLoader:URLLoader=new URLLoader ();
2. define the interface that a data are downloaded.
public function download(url:String):void{
urlLoader.load(new URLRequest(url));
...}
Wherein parameter url:String is then the website URL addresses for the data for needing download.Want to obtain by incoming this
The URL addresses of access evidence can then obtain any data for wanting to obtain the website.Wherein urlLoader is then to perform specifically
Logic is downloaded, data can be stored in urlLoader after the completion of downloading, and download can be then got by accessing urlLoader
Data.As long as finding above-mentioned function logic from the SWF of the website, then illustrate that the SWF is to provide download component, then may be used
To download desired data using the download component.So far, it is achieved that to find out in a SWF file by the step and carries
The data download interface of confession.
Further, as shown in figure 4, above-mentioned steps S3 can specifically include:
S31, class is called to judge that interface judges whether target download component class, if so, then performing step S32;
S32, call class obtain interface obtain target download component class;
S33, according to target download component class, create the instance object of target download component class, determine the instantiation
The download component interface of object.
Still by taking SWF files as an example, we are loaded with a third-party SWF text by Loader interface first in S1
Part, which class then can see SWF by step S2 decompiling has include download component interface, and then can be by anti-
The mechanism of penetrating obtains the download component interface to be called.First citing assumes that SWF has a class name to be ClassDownload, should
There is a method public function download (url in class:String):void{
urlLoader.load(new URLRequest(url));
}
Party's rule is, for the address of an incoming downloading data, then to call loader to carry out downloading data.So may be used
Can then instantiate ClassDownload object by reflex mechanism, and call the download component interface of the downloading data
Download.It is as follows so by the specific call method of reflex mechanism:
(1) Loader interface is first called to judge whether this target download component class.
Whether third party SWF then may determine that by Loader interface hasDefinition (above-mentioned class judges interface)
With this target class.Prototype is as follows:
hasDefinition(name:String):Boolean
Wherein, parameter name:String is then the name (name of target download component class) for inserting class, and return value is then
True is then present, and is that False is then not present.Call as follows:
var bDefine:Boolean=swfLoader.contentLoaderInfo.applicationDomain.ha
sDefinition("ClassDownload");
Wherein, swfLoader is then in step S1 plus SWF Loader examples, and parameter " ClassDownload " is then false
If in the presence of this class.Return value bDefine signs whether there is this class.
(2) Loader interface is called to obtain this target download component class.
This class can then be got by Loader interface getDefinition (above-mentioned class acquisition interface).Prototype
It is as follows:
getDefinition(name:String):Object
Wherein, parameter name:String is then the name of class, and return value is then target class.
var cClass:Class=swfLoader.contentLoaderInfo.applicationDomain.getD e
finition("ClassDownload")as Class;
Wherein swfLoader is then in step S1 plus SWF Loader examples, and parameter " ClassDownload " is then false
If in the presence of this target download component class.Return value cClass is then this target download component of corresponding ClassDownload
Class.
(3) object of class is instantiated.
Got by step (2) after class cClass, an instance object can have been created by it, determine the example
Change the interface of object.
It is specific as follows:
Var obj:CClass=new cClass;
Thus create cClass instance objects obj.So far, just realized by reflection machine by the step
Make to create the instance object of a target download component class.
Further, as shown in figure 5, above-mentioned steps S4 can specifically include:
S41, the corresponding target download component interface of acquisition instance object;
Wherein, the target download component interface is that user needs to obtain the interface of data in the third party website;
S42, invocation target download component interface obtain the data in the third party website.
The instance object obj of a class is created by step S3, so as to directly invoke its target download component
The method of interface, to download the data of needs.It is specific as follows:
Assuming that class cClass has an interface download (url:String), interface has a parameter url, for depositing
Need the URL addresses of data obtained.Directly it can then be called by obj objects.
Var strURL:String;Such as it is:http://test/userinfo
obj.download(strURL);
And after the completion of data download, the member variable urlLoader that data can be stored in ClassDownload classes
In, then it is then the data that we want to obtain to directly read data therein.The SWF files oneself write by then passing through
Go to allow the SWF files under the third party website domain name to go to download the data of the website, thus actual download be the domain name under
SWF files go to download, so domain name detection judgement is same domain name, so it is achieved thereby that the method for spanned acquiring data.
So far, the download component class got by reflex mechanism is achieved that by the step and its interface is called,
So as to eaily call the interface of the SWF under third party website domain name.
The embodiment for the device that animation data is called in the embodiment of the present invention is described below.
Referring to Fig. 6, be one embodiment schematic diagram of the cross-domain devices for accessing data of Flash in the embodiment of the present invention,
In the embodiment, the cross-domain devices for accessing data of Flash include:
Unit 601 is write, the second animation file of the first animation file is loaded for writing, first animation file is
Animation file under third party website domain name;
Searching unit 602, for searching download component class and corresponding download component that second animation file has
Interface;
Instantiating unit 603, for being obtained in the download component class under the target for downloading first animation file
Component class is carried, the target download component class is instantiated as instance object, the instance object includes corresponding download
Component interface;
Call unit 604, for calling the corresponding target download component interface of the instance object, obtains the described 3rd
Data in square website.
Further, it is described write unit 601 specifically for:
Newly-built second animation file, and write code in second animation file and realize following steps:
Define an animation file loading example;
Register the call back function that animation file loading is completed;
The interface of the animation file of request to create first;
The interface is called to load first animation file;
Write the call back function.
Further, the searching unit 602 specifically for:
Search the symbol that second animation file is used, the symbol includes all bags names used, all class names,
All function names and variable name;
The symbol used is read by decompiling instrument, the download component class that second animation file has is determined
And corresponding download component interface.
Further, the instantiating unit 603 specifically for:
Class is called to judge that interface judges whether the target download component class;
If so, then calling class to obtain interface obtains the target download component class;
According to the target download component class, the instance object of the target download component class is created, the reality is determined
The download component interface of exampleization object.
Further, the call unit 604 specifically for:
The corresponding target download component interface of the instance object is obtained, the target download component interface needs for user
Obtain the interface of the third party website data;
The target download component interface is called to obtain the data in the third party website.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the unit
Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, such as multiple units or component
Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or
The coupling each other discussed or direct-coupling or communication connection can be the indirect couplings of device or unit by some interfaces
Close or communicate to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used
When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially
The part contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer
Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the invention
Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
Described above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before
Embodiment is stated the present invention is described in detail, it will be understood by those within the art that:It still can be to preceding
State the technical scheme described in each embodiment to modify, or equivalent substitution is carried out to which part technical characteristic;And these
Modification is replaced, and the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (10)
1. a kind of cross-domain methods for accessing data of Flash, it is characterised in that methods described includes:
The second animation file of the first animation file of loading is write, first animation file is dynamic under third party website domain name
Draw file;
Search download component class and corresponding download component interface that second animation file has;
The target download component class for downloading first animation file is obtained in the download component class, the target is downloaded
Component class is instantiated as instance object, and the instance object includes corresponding download component interface;
The corresponding target download component interface of the instance object is called, the data in the third party website are obtained.
2. according to the method described in claim 1, it is characterised in that the second animation text for writing the first animation file of loading
The step of part, including:
Define an animation file loading example;
Register the call back function that animation file loading is completed;
The interface of the animation file of request to create first;
The interface is called to load first animation file;
Write the call back function.
3. according to the method described in claim 1, it is characterised in that described to search the download group that second animation file has
The step of part class and corresponding download component interface, including:
The symbol that second animation file is used is searched, the symbol includes all bag names used, and all class names own
Function name and variable name;
The symbol used is read by decompiling instrument, download component class that second animation file has is determined and right
The download component interface answered.
4. according to the method described in claim 1, it is characterised in that described obtained in the download component class downloads described the
The target download component class of one animation file, the step of target download component class is instantiated as instance object, specifically
Including:
Class is called to judge that interface judges whether the target download component class;
If so, then calling class to obtain interface obtains the target download component class;
According to the target download component class, the instance object of the target download component class is created, the instantiation is determined
The download component interface of object.
5. according to the method described in claim 1, it is characterised in that described to call the corresponding target of the instance object to download
Component interface, the step of obtaining the data in the third party website, is specifically included:
The corresponding target download component interface of the instance object is obtained, the target download component interface is that user needs to obtain
Take the interface of data in the third party website;
The target download component interface is called to obtain the data in the third party website.
6. the cross-domain devices for accessing data of a kind of Flash, it is characterised in that described device includes:
Unit is write, the second animation file for writing the first animation file of loading, first animation file is third party
Animation file under website domain name;
Searching unit, for searching download component class and the corresponding download component interface that second animation file has;
Instantiating unit, the target download component of first animation file is downloaded for being obtained in the download component class
Class, instance object is instantiated as by the target download component class, and the instance object connects including corresponding download component
Mouthful;
Call unit, for calling the corresponding target download component interface of the instance object, obtains the third party website
In data.
7. device according to claim 6, it is characterised in that it is described write unit specifically for:
Define an animation file loading example;
Register the call back function that animation file loading is completed;
The interface of the animation file of request to create first;
The interface is called to load first animation file;
Write the call back function.
8. device according to claim 6, it is characterised in that the searching unit specifically for:
The symbol that second animation file is used is searched, the symbol includes all bag names used, and all class names own
Function name and variable name;
The symbol used is read by decompiling instrument, download component class that second animation file has is determined and right
The download component interface answered.
9. device according to claim 6, it is characterised in that the instantiating unit specifically for:
Class is called to judge that interface judges whether the target download component class;
If so, then calling class to obtain interface obtains the target download component class;
According to the target download component class, the instance object of the target download component class is created, the instantiation is determined
The download component interface of object.
10. device according to claim 6, it is characterised in that the call unit specifically for:
The corresponding target download component interface of the instance object is obtained, the target download component interface is that user needs to obtain
Take the interface of data in the third party website;
The target download component interface is called to obtain the data in the third party website.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710172686.6A CN107145364B (en) | 2017-03-21 | 2017-03-21 | Method and device for Flash cross-domain access data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710172686.6A CN107145364B (en) | 2017-03-21 | 2017-03-21 | Method and device for Flash cross-domain access data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107145364A true CN107145364A (en) | 2017-09-08 |
CN107145364B CN107145364B (en) | 2021-04-23 |
Family
ID=59783720
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710172686.6A Active CN107145364B (en) | 2017-03-21 | 2017-03-21 | Method and device for Flash cross-domain access data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107145364B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571851A (en) * | 2010-12-27 | 2012-07-11 | 阿里巴巴集团控股有限公司 | Data communication method and system |
-
2017
- 2017-03-21 CN CN201710172686.6A patent/CN107145364B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571851A (en) * | 2010-12-27 | 2012-07-11 | 阿里巴巴集团控股有限公司 | Data communication method and system |
Non-Patent Citations (2)
Title |
---|
PLEX: "flash/flex的程序跨域访问swf或者图片资源", 《HTTPS://WWW.XUEBUYUAN.COM/ZH-TW/1576101.HTML》 * |
VOIDCN: "使用Loader/URLLoader/URLStream载入外部swf并获取类定义", 《HTTP://WWW.VOIDCN.COM/ARTICLE/P-DQBJYXIQ-K.HTML》 * |
Also Published As
Publication number | Publication date |
---|---|
CN107145364B (en) | 2021-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190342334A1 (en) | Method, client, and server for preventing web page hijacking | |
CN106528432A (en) | Construction method and apparatus for test scene data, and buried point test method | |
US8719706B2 (en) | Cloud-based application help | |
CN109804377A (en) | Intersection sources traffic in restricted computer environment | |
CN106933871A (en) | Short linking processing method, device and short linked server | |
US20100299625A1 (en) | Presenting information in an instant messaging application | |
US9830304B1 (en) | Systems and methods for integrating dynamic content into electronic media | |
CN108363792A (en) | Link generation method, device, storage medium and the electronic equipment of five application page | |
CN107070870A (en) | A kind of data capture method and device | |
CN104504096B (en) | A kind of information transferring method and web page browsing device of inter-network page | |
CN109120794B (en) | message display method and device and electronic equipment | |
CN108717437A (en) | Search result methods of exhibiting, device and storage medium | |
CN102591916A (en) | Webpage opening method and website system | |
CN107528825A (en) | A kind of resource downloading method, terminal and computer-readable recording medium | |
CN104346463A (en) | Loading method and device of page label and browser client | |
CN105100242A (en) | Data processing method and system | |
CN107341027A (en) | The generation method and generating means of user interface | |
CN107391182A (en) | Generation method, device, server and storage medium of theme installation package | |
CN107203470A (en) | Page adjustment method and device | |
CN105978868A (en) | Method and apparatus for searching IP address authority | |
CN105049452B (en) | Switching method, device and the intelligent terminal of resource downloading mode | |
CN114647412A (en) | Content display method and terminal equipment | |
WO2013173487A1 (en) | Utilizing a secondary application to render invitational content | |
CN103873525B (en) | Create the system and method for digital content operation platform | |
CN107145364A (en) | A kind of cross-domain method and devices for accessing data of Flash |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230615 Address after: 3F-03, Floor 3, Zhanjiang Science and Technology Business incubator Building (Military Police Yayuan Apartment Building), No. 18, Guangtian Road, Chikan District, Zhanjiang, Guangdong 524000 Patentee after: Zhanjiang Lime Animation Technology Co.,Ltd. Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd. |