Method for transferring data between modules by utilizing event mechanism in flex
An event mechanism and inter-module technology, applied in the direction of inter-program communication, multi-program installation, etc., can solve the problems of increasing the coupling between modules, code clutter, unfavorable maintenance and modification, etc., to achieve easy maintenance, clear structure, and elimination of dependencies. sexual effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
Embodiment
[0015] Assuming that the existing module A, module B, and module B need the data in module A, the method of using the event mechanism to transfer data between modules is as follows:
[0016] 1) The custom event class DataEvent is used to save and transmit data. The type of data to be transmitted can be any type recognized by the system, and it supports custom data types. The event class inherits from the flash.events.Event class, and adds one or more member variables for storing the data to be transferred.
[0017] 2) Create an instance of DataEvent in module A, save the data to be transferred into the variable defined in step 1, and then distribute the DataEvent event with the main program as the object of event distribution.
[0018] 3) In module B, set the monitoring of the event instance created in step 2. After listening to the event distributed by the main program, module B calls the corresponding processing method to separate the data carried in the event. In this way...
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