Design of the MFC& Flash-based Visualization Stage Management System

Similar documents
Inserting multimedia objects in Dreamweaver

The Design of Electronic Color Screen Based on Proteus Visual Designer Ting-Yu HOU 1,a, Hao LIU 2,b,*

Captivating Movies! Getting Started with Captivate

Design of Coal Mine Power Supply Monitoring System

Development of a Rapid Design System for Aerial Work Truck Subframe with UG Secondary Development Framework

Publishing overview. HTML wrapper for AS3 documents

Research Article. Three-dimensional modeling of simulation scene in campus navigation system

User Manual Version

The Construction of Digital Campus with Virtual Reality. Technology--Taking Xinhua College of Sun Yat-sen University As an.

Research and Implementation of Software Used for the Remote Control for VM700T Video Measuring Instrument

Design of Soybean Milk Machine Control System based on STC89C52. Ya-gang SUN, Yue ZHANG, Zhi-gang YANG, Rui-cheng ZHANG and Xiao-wei SHEN

Constructing an University Scientific Research Management Information System of NET Platform Jianhua Xie 1, a, Jian-hua Xiao 2, b

Efficient Path Finding Method Based Evaluation Function in Large Scene Online Games and Its Application

Getting Started with SitePal TM

Map Producing and Publishing based on the Digital Workflow

The Analysis and Research of IPTV Set-top Box System. Fangyan Bai 1, Qi Sun 2

Qingdao, , China. China. Keywords: Deep sea Ultrahigh pressure, Water sound acquisition, LabVIEW, NI PXle hardware.

STEP 1 STEP 2 STEP 3 STEP 4 You may see the following. Then click OK. information on your screen: Click on the more apps to expand the list.

Research on the Application of Digital Images Based on the Computer Graphics. Jing Li 1, Bin Hu 2

Creating a Multimedia Presentation

Available online at Procedia Engineering 29 (2012) 69 73

Analysis of Computer Hardware Maintenance Methods

Adobe CQ5.4 Voluntary Product Accessibility Template

Multimedia Authoring LAB-7 CSA 216

The Design of Water Quality Monitoring Cloud Platform Based on. BS Architecture

First, find a video on YouTube you want to put on your page. Click on the Share button, where you will see the Share or embed this video dialog box.

Final Site Guide: Part 2 Embedding & Linking Stuff (documents, videos, sound files)

Adobe Experience Manager 6.0 Voluntary Product Accessibility Template

A Rapid Development Method of Virtual Assembly Experiments Based on 3D Game Engine Wenfeng Hu 1, a, Xin Zhang 2,b

An intelligent LED landscape lighting system

EasyMAM V USER MANUAL. Ver.1.0 MAY Easy MAM

MagicInfo-i Premium Edition Author Quick Start Guide

REGIONAL COUNTRY INFORMATION SERVICE PLATFORM BASED ON HYBRID NETWORK

THE DESIGN OF EMBEDDED VIDEO SUPERVISION SYSTEM OF VEGETABLE SHED

The Development of Mobile Shopping System Based on Android Platform

Research on Automotive UDS Diagnostic Protocol Stack Test System

Study on XML-based Heterogeneous Agriculture Database Sharing Platform

The Online elearning Course Creation Tool

Insert a sound clip. Change animation sequence. Here are some tips for changing the order in which animations are sequenced on a slide.

Dr. Shahanawaj Ahamad. Dr. S.Ahamad, SWE-423, Unit-04

Customizing dynamic libraries of Qt based on the embedded Linux Li Yang 1,a, Wang Yunliang 2,b

SmartBuilder Section 508 Accessibility Guidelines

Tutorial: Overview. CHAPTER 2 Tutorial

Moodle plugin for the Online Video Service (OVS)

Design and Implementation of a Multi-Function Data Acquisition System based on Android Platform

GoLive will first ask you if your new site will be for one individual or a work group; select for a Single User, and click Next.

DIGITAL ANIMATION AND MULTIMEDIA BS (1 st or 2 nd Semester)

Research on the key technologies and realization of virtual campus

LDAP-based IOT Object Information Management Scheme

Working with Images and Multimedia

The Design and Development of Flexsim/JMP based Quality Simulation System for Mass Customization

New Media Production week 3

Review Questions FL Chapter 3: Working With Symbols and Interactivity

Chapter 5. Creating Special Effects Delmar, Cengage Learning

LATIHAN Identify the use of multimedia in various fields.

Getting Up and Running

To add a graphic PC Shift right click while pointing at cell; Mac Command (apple) click on the cell. This will open up the Cell Properties

Adobe Experience Manager (AEM) 5.6 for Forms Portal Voluntary Product Accessibility Template

Design of Digital Voltmeter for Microcontrollers

vinodsrivastava.com FLASH

Robo Demo Authoring Standards. Interactive Tutorials

Research and Design of Crypto Card Virtualization Framework Lei SUN, Ze-wu WANG and Rui-chen SUN

Exercise 5 Animated Excel Charts in PowerPoint

SYSTEM OF PREVIEW AND DETECTION BASED ON NETWORK VIRTUAL EXPERIMENT

Research on Computer Network Virtual Laboratory based on ASP.NET. JIA Xuebin 1, a

Research on Load Balancing and Database Replication based on Linux

Design of Substation and Distribution Station Monitoring System Based on DELPHI and Intelligent Modules

Version 2.0. Campus 2.0 Student s Guide

Research and Application of Mobile Geographic Information Service Technology Based on JSP Chengtong GUO1, a, Yan YAO1,b

PowerPoint Spring 2002

Step Sheet: Creating a PowerPoint Presentation

Developing the Roadmap - Director Next Survey

result, it is very important to design a simulation system for dynamic laser scanning

A Hybrid Architecture for Video Transmission

COMS W4172 : 3D User Interfaces Spring 2017 Prof. Steven Feiner Date out: January 26, 2017 Date due: January 31, 2017

VIC: Video Integrated Content

Microsoft PowerPoint and Digital Photos

Design of PC Remote Monitoring System for Standby Generators Chuanhong Zhou 1,a,Jinjie Xiao 1,b, Wei Ren 1,c

WWF CMS Map Tool User Guide

Performance Degradation Assessment and Fault Diagnosis of Bearing Based on EMD and PCA-SOM

A Network-Based Management Information System for Animal Husbandry in Farms

School Installation Guide ELLIS Academic 5.2.6

Voluntary Product Accessibility Template

Design and Application of the Visual Model Pool of Mechanical Parts based on Computer-Aided Technologies

Summary Table Voluntary Product Accessibility Template

Design of Smart Home System Based on ZigBee Technology and R&D for Application

EXPLORER, A VISUALIZATION SYSTEM FOR RESERVOIR SIMULATIONS

Design and Implementation of Inspection System for Lift Based on Android Platform Yan Zhang1, a, Yanping Hu2,b

The intelligent weather station system based on Arduino

POWERPOINT Add the Pizzazz to Your Presentation

Work orders management based on XML file in printing

The Parameters Optimization of Fusion Winglet Based on Orthogonal Experiment Yue LUO 1, *, Qi WANG 1, Qi DU 1 and Hou-An DING 1

Microsoft PowerPoint Advanced

EconPortal Instructor Quick Start for Krugman/Wells Macroeconomics, 3e

Analysis and Design of the Client in the Supervision System Based on Android

VIDOS-NVR. User Guide

07 - TRANSCRIPTION... 1 TRANSCRIPTION MODE Turning on Transcription Mode Start transcribing... 2

Research on Approach of Equipment Status and Operation Information Acquisition Based on Equipment Control Bus

Design and Implementation of Embedded Bluetooth Multicast System

Unit 6. Multimedia Element: Animation. Introduction to Multimedia Semester 1

Transcription:

2016 International Conference on Control and Automation (ICCA 2016) ISBN: 978-1-60595-329-8 Design of the MFC& Flash-based Visualization Stage Management System Yu-jian JIANG 1, Jie-hai CHEN 1,a,*, Zhi-bin SU 1 and Peng-hao REN 2 1 School of Information Engineering, Communication University of China, Beijing, P.R. China 2 School of Computer Science, North China University of Technology, Beijing, P.R. China a superdonio@126.com *Corresponding author Keywords: Shockwave Flash Object Controls, SWF, MFC, Visualization. Abstract. This paper employs the ShockWave Flash Object controls to realize the communication between MFC and Flash. The SWF files are embedded into MFC projects and the frame switchover are controlled by packaging functions. A visualization software for stage management is developed based on that technology. Introduction In order to achieve successful performance, a stage manager is needed to coordinate the Stage Lighting, Stage Sound, Stage Machinery. However, traditional stage manager can only rely on eyes and ears to see and to hear whether the stage sound, lighting and stage machinery are working properly. This kind of work is of low efficient, and can't rule out potential malfunction during rehearsals. Modern stage technology, therefore, is in urgent need of a digitized stage management system that can show the malfunction of the stage machinery. With this technique, three systems stage lighting, sound, and stage machinery can be integrated together. Stage manager can monitor all the equipment running statuses on the stage, and can take remedial measures as soon as possible when there is an equipment failure. The ShockWave Flash Object control is applied in this paper. The operating data of the stage lighting, sound and stage machinery can be integrated efficiently, and status of all the equipment in the stage can be shown vividly. Microsoft Foundation Classes (MFC), is a kind of class library provided by Microsoft. It is packaged by Windows API in the form of C++ class. It contains an application framework to reduce the workload of programming personnel. The classes involved contain a large number of Windows classes and many Windows built-in controls and package classes of modules. Flash is an interactive vector multimedia technology. It is a kind of integrated creation software with the animation creation and application development in a body. It provides a full-featured creation and editing environment for creating digital animation. As a kind of high-end application, Flash creators provide some executable scripts instructions and extended interfaces to adapt to the industrial-grade animation production. Just by installing the FLASH player, users can directly browse FLASH content and don't need to download and install the plugin. Besides embedding Flash into MFC, unity3d can also be an option. However, unity3d is mainly used for 3D model, and the implementation is difficult to operate with complicated code quantity. 2D animation is enough to show the equipment working process on the stage. so it is more convenient and simpler with Flash.

Figure 1. Data Transmission of Three Systems. Communication Ways of MFC and Flash Communications between Flash and external program can apply the functions of the ShockWave Flash Object function control [3]. All the classes functions of the control can be called after the ShockWave Flash Object controls are Embedded in the MFC and a member variable is given to the control association. Now communication between MFC and the Flash is divided into two parts. The first part is sending messages to outside engineering by Flash. The second part is getting messages from Flash. Corresponding to these two steps, FSCommand (command, args) and Get Variable () and Set Variable () implementation are in control. Adding Shockware Flash Object Control To embed the Flash animation, MFC should add the shockwave Flash object controls into the MFC project. The process is as follows: Make sure the system has equipped with Flash first. After establishing the MFC project, choose registered Activex controls in the control bar. Choose the shockwave flash object, click insert to enter into the project, then add a class in the project for this control, and generate an object of the control. Insert the controls to "your own", an icon will appear in the VC dialog editor, and this is the control icon. Drag the icon to the performance period and associate it with an object, then the Flash control is embedded into the MFC project successfully. Flash Sending Messages to External Projects As shown at Fig. 2. Users can use the FSCommand (command, args) function in the ShockWave Flash Object controls to send messages to outside Flash. Its two parameters form character strings. For example, pressing the button A can send message: FSCommand ("button", "buttona"); and pressing the button B can send FSCommand ("button", "button B"). Based on the two parameters of different strings, the Flash program can determine which button the user pressed after receiving the FSCommand message. By using this function, messages can be actively conveyed to external projects in Flash animation. External Projects Receiving Messages from Flash Function CShockwave Flash: Set Variable (LPCTSTR name, LPCTSTR value) can set the value of the variable in Flash. The value can be the property of the elements in Flash, such as the size, rate of play, and transparency etc. The parameter name is a property s name of a component in Flash files under a certain situation; value is the given number, for example, to change the value y in the BottonA coordinate in the root situation into Y, it should written into Set Variable("_root. BottonA._ y", Y). It is notable that value is a string parameter; therefore, Y should be transformed into CString.

How to Control the Flash Play We all know that Flash is played by frame, while movies are played as the sequence of the films. Since eyes have the features of visual stopping, the picture is moving when played at this speed. So does the animation production. When it comes to Flash, one flame equals to one film. Controlling the Flash means to control the flames of the Flash. Loading swf Files The function m_ Flash Player. Load Movie (from the pathway of 0, //flash) in the ShockWave Flash Object control can be used to load Flash files. Control the Flame of Flash Flash is played from the first flame to the last one by default. What we should do is to let the Flash change with the received data. For example, the main elevating stage is located at 3m, and it has to be lifted to 5m first and then dropped to 1m as ordered. Figure 2. Flash Sending Messages to External Equipments. //External projects sending messages to set the main elevating stage at 5m. Set Variable("_root.ElevatingStage._y",5) //Check the current position of the main elevating stage. Y = Current Position("_root. Elevating Stage. _y") //When the current position is at 3m, it should be in up state. Elevating Stage. Go To Frame(up,5) // Send another order to down the main elevating stage to 1m. Set Variable("_root.ElevatingStage._y",1)s // Check the position and change the state into down Y = Current Position("_root. Elevating Stage._ y"); Elevating Stage. Go To Frame(down,5); Following is the illustration of the equipment working state of the stage and the CUE chart. Table 1. CUE Instructions in the setting. Time Stage Machinery Operation 10sec Main Stage Move to 5m 20sec No.1 Light Change into Yellow light 40sec Sound Amplify the sound by 5dB 50sec Main Stage Move to 3m 1min 10sec No 1. Light Change into Blue light

Since the Flash file is played frame by frame, the frame jumping instruction should be used when Flash needs to jump to nonadjacent state. For example, each of the lighting Flash file has 50 frames, including the weak-strong-weak process. When changing the Flash file from red light to yellow light, following instructions should be acted: Y = Current Position("_root. Light._ Clr") //Checking the current position of light Z = Y + 50 * W // positioning the frame that needs changing. Set Variable("_root. Light._ Clr", Z) //Jumping to the corresponding frame. When the main stage has 200 frames, and up the Flash from 3m to 5m and then down to 3m again, the following operations are needed: Elevating Stage. Go To Frame(up,5); Elevating Stage. Go To Frame(down,3); Specific animation play sequence in this setting is as Fig. 3. Figure 3. Animation Playing Diagram of Stage Machinery in the Setting. The scheduling system analyze the feedback data from stage machinery, stage light and stage sound subsystem, then the operation will be completed by calling interface function in the ActiveX control, triggering corresponding events, sending data to the stage scheduling system and receiving command from it. After the receiving data are unpacked and compared, the stage scheduling system will send out fault warning in real time if there is an error. Interface of the software is shown in Fig 4.

Figure 4. Interface of the software. Conclusions This paper achieves the communication between MFC and Flash with the ShockWave Flash Object control. The packaging function is used to control the jump of SWF frames, with which a stage management software is developed. In practice, the MFC and Flash are highly integrated. Flash can show the working status of the equipment exactly with small time delay. This technology can provide good visual supervision for stage management. Acknowledgment We would like to thank the National Science and Technology Support Program (Foundation project: Research on interface protocol of Stage manage, Project number: 2012BAH38F01-04) and Engineering Project of CUC (Foundation item: Research on platform Architecture of Science and Technology services for performing arts, Project number: 3132014XNG1424) for their help and support. References [1] Feng Jinjun. Design and Implementation of MFC-Based Plugin Applications [J]. Computer and Information Technology, 2008(06):165-168. [2] Jia Zhenying. Virtual Scene Building and Game Implementation Based on MFC and Flash [J]. Discuss and Practice, 2013(05): 34-38. [3] Fan Zhixian, New Method of Developing User Interactive Interface with MFC [J]. Journal of Engineering Graphics, 2008(04): 160-163. [4] Sun Xin, Detailed Explanation of VC++ [M]. Electronic Industry Press.