Virtual instrument based on flash graphical interface
A technology of graphical interface and virtual instrument, applied in the field of virtual instrument, can solve the problems of difficult to reuse programs, difficult to realize the dynamic mode of virtual instrument pointer, enlargement and shrinkage distortion, etc., to achieve the effect of occupying less storage space
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
example 1
[0020] Example 1 is that the operating program of the present invention is as follows:
[0021] package {
[0022] \\Other loader packages
[0023] \\Flash interacts with other containers
[0024] Import flash.external.ExternalInterface;
[0025] public class main extends MovieClip \\ class that defines the fal file (flash stage)
[0026] {
[0027] \\Define main class private constants, variables, method functions, etc.
[0028] \\Pointer movement method function
[0029] private function ChangeNeedleAngle(): void
[0030] {
[0031] / / Calculate what angle the pointer needs to move to
[0032] / / Pointer movement target angle = offset angle of real-time data relative to scale 0;
[0033] / / Control the pointer not to spin around
[0034] if(pointer current angle>=-180 &&pointer current angle<0)
[0035] {
[0036] Pointer movement target angle = pointer movement target angle - 360;
[0037]}
[0038] / / Create real-time pointer motion animation effect
[0039] var tw...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 