Department of Drug and Natural Product Synthesis, University of Vienna, Althanstraße 14, A-1090 Vienna, Austria.
J Cheminform. 2011 Feb 1;3(1):6. doi: 10.1186/1758-2946-3-6.
So far, there have been no Flash-based web tools available for chemical structure input. The authors herein present a feasibility study, aiming at the development of a compact and easy-to-use 2D structure editor, using Adobe's Flash technology and its programming language, ActionScript. As a reference model application from the Java world, we selected the Java Molecular Editor (JME). In this feasibility study, we made an attempt to realize a subset of JME's functionality in the Flash Molecular Editor (FlaME) utility. These basic capabilities are: structure input, editing and depiction of single molecules, data import and export in molfile format.
The result of molecular diagram sketching in FlaME is accessible in V2000 molfile format. By integrating the molecular editor into a web page, its communication with the HTML elements on this page is established using the two JavaScript functions, getMol() and setMol(). In addition, structures can be copied to the system clipboard.
A first attempt was made to create a compact single-file application for 2D molecular structure input/editing on the web, based on Flash technology. With the application examples presented in this article, it could be demonstrated that the Flash methods are principally well-suited to provide the requisite communication between the Flash object (application) and the HTML elements on a web page, using JavaScript functions.
到目前为止,还没有基于闪存的网络工具可用于化学结构输入。本文作者提出了一项可行性研究,旨在使用 Adobe 的 Flash 技术及其编程语言 ActionScript 开发一个紧凑易用的 2D 结构编辑器。作为来自 Java 世界的参考模型应用程序,我们选择了 Java 分子编辑器(JME)。在这项可行性研究中,我们尝试在 Flash 分子编辑器(FlaME)实用程序中实现 JME 功能的一个子集。这些基本功能是:结构输入、单个分子的编辑和描绘、以 molfile 格式导入和导出数据。
FlaME 中的分子图草图结果可在 V2000 molfile 格式中访问。通过将分子编辑器集成到网页中,使用两个 JavaScript 函数 getMol()和 setMol()建立了其与该网页上 HTML 元素的通信。此外,还可以将结构复制到系统剪贴板。
首次尝试基于 Flash 技术在网络上创建用于 2D 分子结构输入/编辑的紧凑型单文件应用程序。通过本文呈现的应用示例,可以证明 Flash 方法非常适合使用 JavaScript 函数在 Flash 对象(应用程序)和网页上的 HTML 元素之间提供必要的通信。