A flash file function library calling method, device, electronic equipment and medium
A technology of file functions and preset functions, which is applied in the computer field, can solve problems such as slow opening speed, slow download, and large space occupation, and achieve the effect of code reuse and size reduction
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] like figure 1 As shown, a method for invoking a Flash file function library, the Flash file includes an ActionScript main program and N SWC components, and N is a positive integer, and the method includes:
[0047] Step S101, read the calculation parameters required by the target function into the first variable through the preset function function in the SWC component, wherein the target function belongs to the ActionScript main program;
[0048] Step S102, call the objective function interface corresponding to the objective function in the ActionScript main program through the preset function function, so that the objective function calculates the first variable, obtains a calculation result, and stores the calculation result into the second variable;
[0049] Step S103, allocating a variable pointer, the variable pointer is used to store the second variable, and the second variable is used as a parameter of the variable pointer;
[0050] Step S104, passing the firs...
Embodiment 2
[0099] This embodiment provides a Flash file function library calling device, such as Figure 4 As shown, the Flash file includes an ActionScript main program and N SWC components, where N is a positive integer, and the device includes:
[0100] The reading module 401 is used to read the calculation parameters required by the target function into the first variable through the preset function function in the SWC component, wherein the target function belongs to the ActionScript main program;
[0101] The calling module 402 is configured to call the target function interface corresponding to the target function in the ActionScript main program through the preset function function, so that the target function can calculate the first variable, obtain a calculation result, and store the calculated result. Put the above calculation result into the second variable;
[0102] An allocation module 403, configured to allocate a variable pointer for storing the second variable, using th...
Embodiment 3
[0110] This embodiment provides an electronic device, such as Figure 5 As shown, it includes a memory 510, a processor 520, and a computer program 511 stored on the memory 510 and operable on the processor 520. When the processor 520 executes the computer program 511, the following steps are implemented:
[0111] Through the preset function function in the SWC component, read the calculation parameters required by the target function into the first variable, wherein the target function belongs to the ActionScript main program;
[0112] Call the target function interface corresponding to the target function in the ActionScript main program through the preset function, so that the target function can calculate the first variable, obtain the calculation result, and store the calculation result in the second variable;
[0113] allocating a variable pointer for storing the second variable, using the second variable as a parameter of the variable pointer;
[0114] Passing the first...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com