KR100998988B1 - Transformation Method from W3C Standard Based Widget Format File to Flash Format Based Widget File - Google Patents

Transformation Method from W3C Standard Based Widget Format File to Flash Format Based Widget File Download PDF

Info

Publication number
KR100998988B1
KR100998988B1 KR1020090041658A KR20090041658A KR100998988B1 KR 100998988 B1 KR100998988 B1 KR 100998988B1 KR 1020090041658 A KR1020090041658 A KR 1020090041658A KR 20090041658 A KR20090041658 A KR 20090041658A KR 100998988 B1 KR100998988 B1 KR 100998988B1
Authority
KR
South Korea
Prior art keywords
widget
file
flash
format
converting
Prior art date
Application number
KR1020090041658A
Other languages
Korean (ko)
Other versions
KR20090057953A (en
Inventor
이충환
강성탁
김야일
윤상민
서정민
Original Assignee
(주)디지탈아리아
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by (주)디지탈아리아 filed Critical (주)디지탈아리아
Priority to KR1020090041658A priority Critical patent/KR100998988B1/en
Publication of KR20090057953A publication Critical patent/KR20090057953A/en
Application granted granted Critical
Publication of KR100998988B1 publication Critical patent/KR100998988B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/18Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

본 발명은 파일 변환에 대한 것으로, XML, HTML, Javascript, 멀티미디어 데이터 등이 포함된 W3C 표준 기반 위젯 포맷 파일을 플래시 포맷 기반 위젯 파일로 변환하는 방법에 관한 것이다. The present invention relates to a file conversion, and relates to a method of converting a W3C standard based widget format file including XML, HTML, Javascript, multimedia data, etc. into a flash format based widget file.

본 발명은, W3C 표준 기반 위젯 포맷 파일을 플래시 포맷 기반 위젯 파일로 변환하는 방법에 있어서,The present invention provides a method of converting a W3C standard based widget format file into a flash format based widget file.

위젯 파일의 리소스를 플래시 코드 및 요소로 변환하는 단계; 위젯 파일의 설정 정보 파일을 플래시 코드 및 요소로 변환하는 단계; 위젯 파일의 위젯 정보 파일을 플래시 코드 및 요소로 변환하는 단계; 상기 단계들에서 변환된 데이터들을 플래시 기반의 구조로 재작성하여 플래시 기반 포맷의 파일로 출력하는 단계를 포함하는 것을 특징으로 한다.Converting the resources of the widget file into flash code and elements; Converting the setting information file of the widget file into a flash code and an element; Converting the widget information file of the widget file into flash code and elements; And rewriting the data converted in the above steps into a flash-based structure and outputting the data to a file in a flash-based format.

이상과 같은 본 발명을 이용하면, 기존의 W3C 표준 기반의 위젯 포맷 파일들은 플래시 포맷 기반의 위젯 파일들로 변환하여 플래시 엔진이 기 탑재된 PC뿐만 아니라 휴대폰, 네비게이션 등의 다양한 모바일 기기에 탑재할 수 있으며, 신규로 위젯을 개발하는 경우에도 한 가지의 위젯만 개발하면 해당 위젯을 플래시 기반 포맷 위젯으로 변환하여 다양한 플랫폼 및 이기종 단말에 이식이 가능하게 되어, 다양한 위젯 서비스의 보급이 활성화 되며, 사용자 입장에서는 다양한 위젯 서비스를 다양한 기기에서 사용할 수 있으며, 개발사 입장에서는 개발 비용을 절감할 수 있어, 적은 개발 비용으로 다양한 기기에 이식함으로써, 보다 많은 수익을 창출할 수 있다.By using the present invention as described above, widget format files based on existing W3C standards can be converted into flash format based widget files and mounted on various mobile devices such as mobile phones and navigation devices as well as PCs equipped with a flash engine. In the case of developing a new widget, if only one widget is developed, the widget can be converted into a flash-based format widget, which can be ported to various platforms and heterogeneous terminals, thereby enabling the spread of various widget services. Various widget services can be used on various devices, and development costs can be reduced for developers, and more profits can be generated by porting to various devices with low development costs.

위젯, 플래시, 변환, 모바일 단말Widget, flash, conversion, mobile terminal

Description

W3C 표준 기반 위젯 포맷 파일을 플래시 포맷 기반 위젯 파일로 변환하는 방법{Transformation Method from W3C Standard Based Widget Format File to Flash Format Based Widget File}Transformation method from W3C Standard Based Widget Format File to Flash Format Based Widget File}

본 발명은 파일 변환에 대한 것으로, XML, HTML, Javascript, 멀티미디어 데이터 등이 포함된 W3C 표준 기반 위젯 포맷 파일을 플래시 포맷 기반 위젯 파일로 변환하는 방법에 관한 것이다. The present invention relates to a file conversion, and relates to a method of converting a W3C standard based widget format file including XML, HTML, Javascript, multimedia data, etc. into a flash format based widget file.

PC, 휴대단말, 네비게이션 등의 전자 기기들의 하드웨어적인 발전과 웹 기반 기술의 발전으로 인하여, 현대 사회는 이른바 웹2.0 시대를 맞이 하게 되었다. 위젯 서비스는 웹2.0을 대표하는 서비스 중에 하나로서, 사용자와 응용 프로그램/운영체계 등과의 상호 작용을 보다 원활하게 지원해 주는 그래픽 인터페이스이고, 사 용자는 포털 서비스나 컨텐츠 제공 사이트를 일일이 방문하지 않아도 단말 내의 대기 화면상에서 원하는 서비스, 예를 들면, MSN메시저, 증권, 시계 기능, 날씨, 주식 정보 등을 위한 위젯을 통하여 바로 해당 사이트에 접속함으로써, 사용자들이 필요로 하는 서비스에 대한 접근성 및 편리성을 향상시키게 된다 With the development of hardware and Web-based technologies of electronic devices such as PCs, portable terminals, and navigation systems, modern society has come to meet the so-called Web 2.0 era. Widget service is one of the representative services of Web 2.0, and is a graphic interface that supports the interaction between the user and the application / operating system more smoothly, and the user does not have to visit the portal service or the content providing site. Improve accessibility and convenience of services that users need by directly accessing the site through widgets for desired services on the idle screen, such as MSN messages, stocks, clock functions, weather, stock information, etc. Let

그래서, 이러한 위젯 서비스는 Windows Gadgets, Apple Dashboard, Google desktop, Yahoo Widget, WidSets, Nokia Web Runtime Widget 등의 다양한 명칭으로 PC와 모바일 단말용으로 공급되고 있다. Thus, such widget services are being provided for PCs and mobile terminals under various names such as Windows Gadgets, Apple Dashboard, Google desktop, Yahoo Widget, WidSets, Nokia Web Runtime Widget.

그런데, 이러한 기존의 위젯 서비스는 회사 별로 상이한 위젯 플랫폼을 제공하고, 각각의 위젯 플랫폼은 그 회사에서 제공하는 특정한 하드웨어나 운영체제에서만 한정적으로 서비스 되고 있다. 따라서, 다양한 기기에 보급되기에는 다음과 같은 한계점을 가지고 있다.However, these existing widget services provide different widget platforms for each company, and each widget platform is limited to a specific hardware or an operating system provided by the company. Therefore, it has the following limitations to spread to various devices.

첫째, 현재 보급되고 있는 다양한 위젯들이 동작할 수 있는 위젯 플랫폼들과 위젯을 구성하는 기반 기술들이 조금씩 상이하기 때문에, 해당 기술이 적용 가능한 플랫폼 특정 환경(OS, Middleware, GUI Engine 등) 안에서만 서비스가 가능하다. 예를 들면 Yahoo Gadget은 Html+XML, CSS, XML, Java Script 등을 기반 기술로 사용하고 있어 해당 기술이 원활히 적용 가능한 PC 기반의 Windows와 Mac OS에서만 서비스되고 있으며, 해당 환경이 갖추어 지지 않은 모바일 단말에서는 서비스가 이루어지지 않고 있다.First, since widget platforms that can operate various widgets that are currently being distributed and the underlying technologies that make up widgets are slightly different, they can be serviced only within the platform-specific environment (OS, Middleware, GUI Engine, etc.) to which the technology is applicable. Do. For example, Yahoo Gadget uses Html + XML, CSS, XML, Java Script, etc. as its base technology, so it is only serviced on PC-based Windows and Mac OS where the technology can be applied smoothly. In service, no service.

둘째, 상기와 같은 한정적인 서비스 환경 때문에, 일반적인 위젯들을 다양한 플랫폼을 가진 기기들에 각각 이식하기 위해서는 각각 다른 플랫폼 환경에 맞추어 해당 위젯을 대폭 수정하거나 거의 새롭게 개발해야 하기 때문에 막대한 개발 비용이 소요된다.Second, due to the limited service environment as described above, in order to port general widgets to devices having various platforms, a huge development cost is required because the corresponding widgets need to be greatly modified or almost newly developed for different platform environments.

본 발명은 이상과 같은 종래의 기술적인 문제점을 감안하여, 위젯들이 다양한 기기에 원활히 보급되고, 각각의 플랫폼에 이식하는 개발 비용을 줄일 수 있도록, W3C 표준 기반 위젯 포맷 파일을 이미 PC와 모바일 단말에 널리 퍼져있는 플래시 기반 포맷의 위젯 파일로 변환시키는 방법을 제공한다.In view of the above-described technical problems, the present invention provides a W3C standard-based widget format file to a PC and a mobile terminal so that widgets can be spread to various devices and reduce development costs for porting to each platform. Provides a way to convert widget files to a widely available Flash-based format.

이상과 같은 기술적 과제를 달성하기 위하여, 본 발명은, In order to achieve the above technical problem, this invention,

W3C 표준 기반 위젯 포맷 파일을 플래시 포맷 기반 위젯 파일로 변환하는 방법에 있어서,In a method of converting a W3C standards-based widget format file to a Flash format-based widget file,

위젯 파일의 리소스를 플래시 코드 및 요소로 변환하는 단계; 위젯 파일의 설정 정보 파일을 플래시 코드 및 요소로 변환하는 단계; 위젯 파일의 위젯 정보 파일을 플래시 코드 및 요소로 변환하는 단계; 상기 단계들에서 변환된 데이터들을 플래시 기반의 구조로 재작성하여 플래시 기반 포맷의 파일로 출력하는 단계를 포함하는 것을 특징으로 한다.Converting the resources of the widget file into flash code and elements; Converting the setting information file of the widget file into a flash code and an element; Converting the widget information file of the widget file into flash code and elements; And rewriting the data converted in the above steps into a flash-based structure and outputting the data to a file in a flash-based format.

이상과 같은 본 발명을 이용하면, 기존의 W3C 표준 기반의 위젯 포맷 파일들은 플래시 포맷 기반의 위젯 파일들로 변환하여 플래시 엔진이 기 탑재된 PC뿐만 아니라 휴대폰, 네비게이션 등의 다양한 모바일 기기에 탑재할 수 있으며, 신규로 위젯을 개발하는 경우에도 한 가지의 위젯만 개발하면 해당 위젯을 플래시 기반 포맷 위젯으로 변환하여 다양한 플랫폼 및 이기종 단말에 이식이 가능하게 되어, 다양한 위젯 서비스의 보급이 활성화 되며, 사용자 입장에서는 다양한 위젯 서비스를 다양한 기기에서 사용할 수 있으며, 개발사 입장에서는 개발 비용을 절감할 수 있어, 적은 개발 비용으로 다양한 기기에 이식함으로써, 보다 많은 수익을 창출할 수 있다.By using the present invention as described above, widget format files based on existing W3C standards can be converted into flash format based widget files and mounted on various mobile devices such as mobile phones and navigation devices as well as PCs equipped with a flash engine. In the case of developing a new widget, if only one widget is developed, the widget can be converted into a flash-based format widget, which can be ported to various platforms and heterogeneous terminals, thereby enabling the spread of various widget services. Various widget services can be used on various devices, and development costs can be reduced for developers, and more profits can be generated by porting to various devices with low development costs.

이제, 본 발명의 구성 및 동작을 도1 내지 도4를 참고로 하여 자세히 설명하도록 한다.Now, the configuration and operation of the present invention will be described in detail with reference to FIGS.

1. 리소스 변환기를 통한 리소스 변환 단계(S110)1. Resource conversion step through the resource converter (S110)

일반적인 W3C 표준 기반 포맷 위젯에서 사용하는 기술들은 서비스 회사마다 조금씩 다르지만 구성 요소는 동일하다. The techniques used by the common W3C standards-based format widgets vary slightly among service companies, but the components are the same.

위젯 파일(210)은 위젯 리소스(220), 메타 정보 등 주요 정보를 저장하는 설정 정보 파일(230), 화면 표현을 위한 위젯 정보 파일(240)로 구성된다. 리소스 변환 과정은 이런 위젯 파일(210)에서 먼저 리소스(220)를 추출하여 플래시 구성 요소로 변환한다.The widget file 210 is composed of a widget resource 220, a setting information file 230 for storing main information such as meta information, and a widget information file 240 for displaying a screen. The resource conversion process first extracts the resource 220 from the widget file 210 and converts it into a flash component.

위젯 리소스(220)에는 gif, jpg 와 같은 이미지 파일, wav, mp3와 같은 사운 드 파일, 화면 구성 요소의 스타일 지정을 위한 CSS 파일, 화면 구성 요소 지정을 위한 HTML 파일, 화면 구성 요소의 속성 참조와 변경, 다양한 계산을 위한 JavaScript 파일이 있다.The widget resource 220 includes image files such as gif and jpg, sound files such as wav and mp3, CSS files for styling screen components, HTML files for screen component assignment, and property references for screen components. There are JavaScript files for modifications and various calculations.

해당 리소스들(220)은 리소스 변환기(250)를 거쳐 각기 플래시 기반의 구조를 이루는 구성 요소들로 변환된다. 각 리소스(220)의 상세한 변환 과정은 아래와 같다.The resources 220 are converted into components constituting the flash-based structure through the resource converter 250. The detailed conversion process of each resource 220 is as follows.

이미지 파일과 사운드 파일 등과 같은 멀티미디어 파일은 플래시에서 DEFINE 태그를 활용하여 각 파일의 데이터를 플래시 파일에 포함될 데이터로 변환할 수 있다. 또한, 파일은 그대로 두고 각각을 불러들일 수 있는 플래시의 액션 스크립트 코드로 변환해 두고, 각 파일을 참조하는 부분을 이 코드로 치환한 후 플래시 파일을 생성하면 동일한 결과를 얻을 수 있다.Multimedia files, such as image files and sound files, can use the DEFINE tag in Flash to convert the data in each file into data that will be included in the Flash file. You can also get the same result if you leave the file intact, convert it to Flash's ActionScript code, and replace the code that references each file with the code.

화면 구성 요소의 스타일 지정을 위한 CSS 파일은 각 스타일의 이름과 스타일로 구성된 테이블로 변환해 둔다. CSS는 글자 크기, 색상, 바탕색상 등을 지정하며 플래시의 텍스트 태그들에서 그대로 사용될 수 있다.The CSS file for styling screen components is converted into a table of names and styles for each style. CSS specifies the font size, color, background color, and so on, and can be used in text tags in Flash.

위젯에서는 화면 구성 요소 지정을 위해 XML과 HTML의 일부를 사용하며, 리소스에 포함된 HTML 파일은 이미지, 텍스트 등 위젯에서 주로 사용되는 태그들만 사용한다. 리소스 변환기(250)는 주요 HTML 구성 요소를 화면상에 표시하기 위한 액션 스크립트 기반의 클래스와 라이브러리도 포함하고 있으며 HTML 태그에 따라서 해당된 클래스의 인스턴스를 생성하는 액션 스크립트 코드로 변환한다. Widgets use parts of XML and HTML to specify screen components, and HTML files included in resources use only the tags that are commonly used in widgets, such as images and text. The resource converter 250 also includes ActionScript-based classes and libraries for displaying major HTML components on the screen, and converts them into ActionScript code that creates instances of the corresponding classes according to HTML tags.

예를 들어, 이미지를 표현하기 위한 IMG 태그의 경우, 액션 스크립트 변수명 은 IMG 태그에 지정된 이름으로 하고 태그에 정의된 속성을 파라미터로 하여 리소스 변환기(250)에서 제공되는 htmlIMG 클래스의 인스턴스를 생성하는 코드를 만들어 내게 된다. For example, for an IMG tag to represent an image, the ActionScript variable name is the name specified in the IMG tag and the attribute defined in the tag is used as a parameter to create an instance of the htmlIMG class provided by the resource converter 250. The code is generated.

이와 같은 변환 과정은 HTML 태그와 그에 대응되는 액션 스크립트 클래스를 정의하여 이루어지며, 그 예는 도표3과 같을 수 있다. This conversion process is performed by defining HTML tags and corresponding ActionScript classes. An example of this may be as shown in Table 3.

또한, HTML 태그에서 사용되는 CSS 속성은 플래시 형태로 변환 시에 해당 속성 값을 참고하여 각 플래시 구성 요소가 구성 될 수 있도록 변환한다.In addition, CSS property used in HTML tag is converted so that each Flash component can be configured by referring to the property value when converting to Flash.

화면 구성 요소의 속성 참조 등에 사용되는 JavaScript는 ECMA 표준을 따르는 플래시의 액션 스크립트 언어와 거의 동일하며, 변환의 결과는 액션 스크립트 코드가 된다. 스크립트 언어의 기본 요소인 변수 선언, 함수 선언, 반복문, 조건문은 거의 동일하며 이러한 요소들의 변환을 통한 액션 스크립트 코드 생성은 JavaScript 문법과 그에 대응되는 액션 스크립트 문법을 정의하여 자동으로 이루어진다. 예를 들어, Double, Float 같은 데이터 타입은 액션 스크립트의 Number 데이터 타입으로 변환될 수 있고, 반복문을 위한 for 문은 액션 스크립트의 for 문으로 변환될 수 있다. 자세한 변환 예는 도표 4와 같다.JavaScript, which is used to refer to screen component properties, is almost identical to Flash's ActionScript language, which conforms to the ECMA standard, and the result of the transformation is ActionScript code. Variable declarations, function declarations, loops, and conditional statements, which are the basic elements of the scripting language, are almost identical. ActionScript code generation through the conversion of these elements is done automatically by defining JavaScript grammar and the corresponding ActionScript grammar. For example, data types such as Double and Float can be converted to the Number data type in ActionScript, and for statements for loops can be converted to for statements in ActionScript. A detailed conversion example is shown in Table 4.

2. 설정 정보 변환기를 통한 설정 정보 변환 단계(S120)2. Setting information conversion step via the setting information converter (S120)

설정 정보 파일(230)은 위젯의 버전, 저작자, 설명 등 실제 화면과는 상관없는 메타 정보들을 저장하고 있다. 이러한 정보들은 플래시의 전역 정보로써 저장될 수 있다. 설정 정보 변환기(260)는 위젯 설정 정보 파일(230)을 읽어들여 각 구성 요소를 플래시 파일의 전역 데이터를 저장하는 _global 변수의 속성으로 할당한다. The configuration information file 230 stores meta information that is not related to the actual screen, such as the widget version, author, and description. Such information may be stored as global information of the flash. The configuration information converter 260 reads the widget configuration information file 230 and assigns each component as an attribute of the _global variable that stores global data of the flash file.

3. 위젯 정보 변환기를 통한 위젯 정보 변환 단계(S130)3. Widget information conversion step through the widget information converter (S130)

위젯 정보 파일(240)은 위젯의 가로와 세로 크기, 화면을 구성하는 이미지, 텍스트 등의 구성 요소, 스크립트 및 전역 함수 등으로 구성된다. 위젯 정보 변환기(270)는 이러한 위젯 정보로 화면에 표시할 수 있는 다양한 플래시 구성 요소나 액션 스크립트 코드로 변환하고, 정보에 나열된 속성에 따라 변환된 구성 요소들의 좌표 등의 속성을 설정한다. Widget information file 240 is composed of the horizontal and vertical size of the widget, the image constituting the screen, components such as text, scripts and global functions. The widget information converter 270 converts the widget information into various flash components or ActionScript code that can be displayed on the screen, and sets properties such as coordinates of the converted components according to the properties listed in the information.

각 정보들의 자세한 변환 과정은 아래와 같다.The detailed conversion process of each information is as follows.

위젯 자체에 국한된 가로와 세로 크기는 플래시의 바탕 화면인 스테이지의 크기로 변환되며, 배경 색상/그림은 배경을 위한 맨 하단 레이어를 두고 이 레이어의 색상을 지정하거나 그림을 배치하여 변환한다.The horizontal and vertical dimensions specific to the widget itself are converted to the size of the stage, which is the desktop of Flash, and the background color / picture is converted by placing a color or placing the picture with the bottom layer for the background.

화면을 구성하는 이미지, 텍스트 등 주요 구성요소는 HTML의 일부 태그나 XML 태그로 구현되며, 이들은 위젯 구성요소와 대응되는 변환될 플래시 구성요소를 정의하여, 플래시에서 사용되는 화면 구성 요소들로 변환할 수 있다. 또한, 각 구성요소는 속성을 이용하여 좌표를 직접 지정한 경우에는 속성 변환을 통하여 좌표를 지정하고, 그렇지 않은 경우에는 순차적으로 좌표를 계산하여 좌표 속성을 변경한다.The main components, such as the image and text that make up the screen, are implemented as some HTML tags or XML tags, which define the Flash component to be converted that corresponds to the widget component, which can be converted to the screen components used in Flash. Can be. In addition, each component specifies coordinates through attribute conversion when the coordinates are directly designated using the attribute, and otherwise, coordinates are sequentially calculated to change the coordinate attribute.

예를 들어, Image 태그는 플래시의 MovieClip으로 변환할 수 있고, Timer 태그는 액션 스크립트의 setInterval 함수나 Timer 클래스로 변환할 수 있으며, Text 태그나 TextArea 태그는 플래시의 TextField로 변환할 수 있다. For example, an Image tag can be converted to a Flash MovieClip, a Timer tag can be converted to ActionScript's setInterval function or Timer class, and a Text or TextArea tag can be converted to a Flash TextField.

화면 구성 요소들은 좌표, 폭과 높이, 투명도, 보일지 여부 등의 속성을 가지며 이 들은 속성과 이에 대응하는 액션 스크립트 속성을 정의하여 변환할 수 있다. 예를 들어, 좌표 지정을 위한 _hOffset, _vOffset 속성은 플래시의 액션 스크립트에서 _x, _y 속성으로 변환되며, 폭과 높이는 _width, _height로, 투명도와 보일지 여부는 _alpha, _visible 속성으로 변환된다.Screen components have properties such as coordinates, width and height, transparency, visibility, etc. They can be converted by defining properties and corresponding ActionScript properties. For example, the _hOffset and _vOffset properties for specifying coordinates are converted to _x and _y properties in Flash's ActionScript, and the width and height are converted to _width and _height, and the transparency and visibility to _alpha and _visible properties.

또한, 위젯의 화면 구성 요소들은 사용자와의 반응을 위하여 마우스로 눌렀을 때, 마우스를 뗐을 때와 같은 순간을 인식하여 처리를 할 수 있게 해주는 이벤트 처리 함수도 선언할 수 있게 한다. 대표적으로 마우스를 누른 순간의 처리를 위한 onMouseDown, 눌렀다 뗄 때의 처리를 위한 onMouseUp, 마우스가 구성 요소 위에 있을 때의 처리를 위한 onMouseEnter, 마우스가 구성 요소를 벗어날 때의 처리를 위한 onMouseExit와 같은 것들이 제공된다. In addition, the widget's screen components allow you to declare an event handling function that allows you to recognize and handle the same moment when you press the mouse and release the mouse to react with the user. Typicals include onMouseDown for handling the moment the mouse is pressed, onMouseUp for handling the press and release, onMouseEnter for handling when the mouse is over the component, and onMouseExit for handling when the mouse leaves the component. do.

플래시의 액션 스크립트에서는 마우스 뿐만 아니라 키보드 등 다양한 이벤트를 처리할 수 있는 기법을 제공할 수 있으며, 언급된 위젯의 주요 기능들도 모두 제공되므로, 이를 이벤트 핸들러와 이에 대응되는 액션 스크립트 이벤트 핸들러를 정의하여 쉽게 변환할 수 있으며, 함수 내의 코드는 JavaScript로 기술되므로 이에 대응되는 액션 스크립트로 변환하여 함수의 선언과 내용은 모두 변환할 수 있다. 함수 선언 변환의 예를 들면, onMouseDown은 액션 스크립트의 onPress 함수 로, onMouseUp은 onRelease 함수로, onMouseEnter는 onRollOver로 변환할 수 있다.Flash's ActionScript can provide a mechanism that can handle various events such as the keyboard as well as the mouse. Since all the main functions of the mentioned widgets are provided, this can be defined by defining event handlers and corresponding ActionScript event handlers. It's easy to convert, and the code within the function is written in JavaScript, so you can convert it to the corresponding ActionScript to convert both the declaration and the contents of the function. As an example of function declaration conversion, you can convert onMouseDown to the onPress function in ActionScript, onMouseUp to onRelease, and onMouseEnter to onRollOver.

4. 플래시 파일 생성기를 통한 플래시 기반 포맷 위젯 파일 생성 단계(S140)4. Flash-based format widget file generation step through the flash file generator (S140)

상기의 과정을 거쳐, 모든 구성 요소의 변환이 끝나서 플래시 구성 요소 및 액션 스크립트 코드가 생성되면, 플래시 파일 생성기(280)에서 재구성하여 플래시 기반 포맷의 파일을 생성한다. Through the above process, when all components are converted and the flash component and the ActionScript code are generated, the flash file generator 280 may be reconstructed to generate a file of the flash-based format.

플래시 기반 포멧의 파일은 헤더와 플래시 구성 요소를 선언하는 태그들로 구성되며, 각 태그는 해당 구성 요소를 위한 속성들을 포함하는 바이트 코드가 된다. 또한, 액션 스크립트 코드의 선언을 위한 태그도 있으며, 액션 스크립트 코드는 해당되는 바이트 코드로 변환되어 이 태그의 속성으로써 포함된다.A file in Flash-based format consists of a header and a tag that declares a Flash component. Each tag is a byte code that contains the properties for that component. There is also a tag for the declaration of ActionScript code, which is converted to the corresponding byte code and included as an attribute of this tag.

변환된 플래시 구성 요소는 각 구성 요소를 위한 플래시 기반 포멧의 태그와 속성들로 변환되며, 생성된 액션 스크립트 코드는 플래시 기반 포맷의 바이트 코드로 변환되어 액션 스크립트의 바이트 코드를 선언하는 태그에 포함된다. 예를 들어, 도형은 DefineShape 태그로 변환되며 이미지는 DefineBits 태그에 해당되는 바이트 코드로 변환된다. 이렇게 변환된 코드를 결합하면 최종적으로 플래시 기반 포맷의 위젯 파일(290)이 생성된다. 이 때 변환되는 플래시 기반 포맷의 형태는 일반적으로 PC에서 널리 쓰이는 SWF 포맷을 포함하여, 모바일 단말에 널리 쓰이는 포맷인 DMF, VIS 등으로 변환 될 수 있으며, 경우에 따라서는 새로운 명칭의 플래시 기반 포맷으로 정의할 수도 있다. The converted Flash component is converted into tags and attributes of the Flash-based format for each component, and the generated ActionScript code is converted into the byte code of the Flash-based format and included in the tag that declares the byte code of the ActionScript. . For example, the figure is converted to a DefineShape tag and the image is converted to a byte code corresponding to the DefineBits tag. Combining the converted code generates a widget file 290 in a flash-based format. In this case, the converted flash-based format may be converted to DMF, VIS, etc., which are widely used in mobile devices, including SWF format which is widely used in PC. It can also be defined.

이상에서는 본 발명의 바람직한 실시예를 설명하였으나, 본 발명은 이 실시 예에 한정되는 것이 아니라 본 발명의 정신을 벗어나지 않는 범위 내에서 다양한 변형이 가능하다는 점을 유의해야 한다.While the preferred embodiment of the present invention has been described above, it should be noted that the present invention is not limited to this embodiment and various modifications can be made without departing from the spirit of the present invention.

도 1은 본 발명의 위젯 전환 순서를 나타내는 흐름도.1 is a flow chart showing a widget switching sequence of the present invention.

도 2는 본 발명의 위젯 변환시의 구조도.2 is a structural diagram at the time of widget conversion of the present invention;

도 3은 본 발명을 적용하여 HTML을 변환하는 방법을 예시함.3 illustrates a method of converting HTML by applying the present invention.

도 4는 본 발명을 적용하여 Java Script를 변환하는 방법을 예시함.4 illustrates a method of converting a Java Script by applying the present invention.

Claims (5)

W3C 표준 기반 위젯 포맷 파일을 플래시 포맷 기반 위젯 파일로 변환하는 방법에 있어서,In a method of converting a W3C standards-based widget format file to a Flash format-based widget file, 위젯 파일의 리소스를 플래시 코드 및 요소로 변환하는 단계;Converting the resources of the widget file into flash code and elements; 위젯 파일의 설정 정보 파일을 플래시 코드 및 요소로 변환하는 단계;Converting the setting information file of the widget file into a flash code and an element; 위젯 파일의 위젯 정보 파일을 플래시 코드 및 요소로 변환하는 단계;Converting the widget information file of the widget file into flash code and elements; 상기 단계들에서 변환된 데이터들을 플래시 기반의 구조로 재작성하여 플래시 기반 포맷의 파일로 출력하는 단계를 포함하는 것을 특징으로 하는 W3C 표준 기반 위젯 포맷 파일을 플래시 포맷 기반 위젯 파일로 변환하는 방법.And rewriting the data converted in the above steps into a flash-based structure and outputting the data in a flash-based format to a flash format-based widget file. 제 1항에 있어서, The method of claim 1, 상기 위젯 파일의 리소스를 플래시 코드 및 요소로 변환하는 단계는,Converting the resources of the widget file into flash code and elements, 상기 위젯 파일에서 위젯의 리소스를 추출하여 각 파일 형식에 대응되는 변환테이블을 이용하여 플래시의 구성 요소 및 코드로 변환하는 것을 특징으로 하는 W3C 표준 기반 위젯 포맷 파일을 플래시 포맷 기반 위젯 파일로 변환하는 방법.A method of converting a W3C standard based widget format file into a flash format based widget file, comprising: extracting a resource of a widget from the widget file and converting the widget resource into a component and code of a flash by using a conversion table corresponding to each file format . 제 1항에 있어서, The method of claim 1, 상기 위젯 파일의 설정 정보 파일을 플래시 코드 및 요소로 변환하는 단계는,Converting the setting information file of the widget file into flash code and elements, 상기 위젯 파일에서 설정 정보 파일을 추출하여 설정 정보를 플래시의 구성 요소로 변환하는 것을 특징으로 하는 W3C 표준 기반 위젯 포맷 파일을 플래시 포맷 기반 위젯 파일로 변환하는 방법.Extracting a setting information file from the widget file and converting the setting information into a component of a flash; and converting the W3C standard based widget format file into a flash format based widget file. 제 1항에 있어서, The method of claim 1, 상기 위젯 파일의 위젯 정보 파일을 플래시 코드 및 요소로 변환하는 단계는,Converting the widget information file of the widget file into flash code and elements, 상기 위젯 파일에서 위젯 정보 파일을 추출하여 각 위젯 정보에 대응되는 변환테이블을 이용하여 플래시의 구성 요소 및 코드로 변환하는 것을 특징으로 하는 W3C 표준 기반 위젯 포맷 파일을 플래시 포맷 기반 위젯 파일로 변환하는 방법.Extracting a widget information file from the widget file and converting the W3C standards-based widget format file into a flash format-based widget file, characterized in that the conversion table corresponding to each widget information to convert to the components and code of the flash. . 제 1항에 있어서, The method of claim 1, 변환된 데이터들을 플래시 기반의 구조로 재작성하여 플래시 기반 포맷의 파일로 출력하는 단계는,Rewriting the converted data into a flash-based structure and outputting a file in a flash-based format, 플래시 기반의 포맷의 파일이 SWF, VIS, DMF 중의 어느 하나의 파일 형태인 것을 특징으로 하는 W3C 표준 기반 위젯 포맷 파일을 플래시 포맷 기반 위젯 파일 로 변환하는 방법. A method of converting a W3C standards-based widget format file into a flash format-based widget file, wherein the file in a flash-based format is one of SWF, VIS, and DMF.
KR1020090041658A 2009-05-13 2009-05-13 Transformation Method from W3C Standard Based Widget Format File to Flash Format Based Widget File KR100998988B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020090041658A KR100998988B1 (en) 2009-05-13 2009-05-13 Transformation Method from W3C Standard Based Widget Format File to Flash Format Based Widget File

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020090041658A KR100998988B1 (en) 2009-05-13 2009-05-13 Transformation Method from W3C Standard Based Widget Format File to Flash Format Based Widget File

Publications (2)

Publication Number Publication Date
KR20090057953A KR20090057953A (en) 2009-06-08
KR100998988B1 true KR100998988B1 (en) 2010-12-09

Family

ID=40988564

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020090041658A KR100998988B1 (en) 2009-05-13 2009-05-13 Transformation Method from W3C Standard Based Widget Format File to Flash Format Based Widget File

Country Status (1)

Country Link
KR (1) KR100998988B1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100747663B1 (en) 2007-05-04 2007-08-08 주식회사 위즈커뮤니케이션 Personal terminal capable of executing widget and background display setting method
KR100877059B1 (en) 2007-10-29 2009-01-07 주식회사 엘지텔레콤 Method and system for changing skin of mobile widget

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100747663B1 (en) 2007-05-04 2007-08-08 주식회사 위즈커뮤니케이션 Personal terminal capable of executing widget and background display setting method
KR100877059B1 (en) 2007-10-29 2009-01-07 주식회사 엘지텔레콤 Method and system for changing skin of mobile widget

Also Published As

Publication number Publication date
KR20090057953A (en) 2009-06-08

Similar Documents

Publication Publication Date Title
CN108984174B (en) Cross-platform application creation method, device, server and storage medium
CN104090749B (en) A kind of WinCE Product Interface theme upgrades transform process method and system
CN108572965B (en) Resource loading method and device
US10207190B2 (en) Technologies for native game experience in web rendering engine
US10061575B2 (en) Managed execution environment for software application interfacing
JP2015534145A (en) User interface control framework for stamping out controls using declarative templates
US20090199213A1 (en) Automatic Connections Between Application Components
KR101416100B1 (en) An interface for interworking with javascripts in hybrid web applications
KR101416104B1 (en) A dynamic loading apparatus and method of java script code performing native functions of hybrid web applications
CN113126990B (en) Page development method, device, equipment and storage medium
KR101456505B1 (en) A user interface framework for developing web applications
KR20080021081A (en) Fine-grained control of z-order elements in a xml presentation
US7974829B2 (en) System for simulating mobile phone and method thereof
CN111740948A (en) Data packet issuing method, dynamic updating method, device, equipment and medium
CN113918195A (en) Application interface updating method and device, electronic equipment and readable storage medium
WO2023103430A1 (en) Data visualization display method and apparatus, medium and electronic device
US8549493B2 (en) Defining a MIDlet region space
CN102693238A (en) Widget application method and system and multimedia terminal
KR20110130611A (en) Web platform unit for mobile terminal connectioned web-application program in heterogeneous operating system
KR100998988B1 (en) Transformation Method from W3C Standard Based Widget Format File to Flash Format Based Widget File
CN108304169B (en) Implementation method, device and equipment for HTML5 application
CN116340680A (en) Display equipment and control method for managing life cycle of plug-in object
CN113094138A (en) Interface display method and device, electronic equipment and storage medium
CN113761871A (en) Rich text rendering method and device, electronic equipment and storage medium
CN113961279A (en) Page rendering method, device, server and storage medium

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20130930

Year of fee payment: 4

LAPS Lapse due to unpaid annual fee