简体   繁体   English

是弹性动作脚本吗?

[英]is flex actionscript?

I've been using flash for a long time, mostly as an animation tool with a little dabbling in actionscript. 我使用Flash已有很长时间了,大部分时间是作为动画工具使用,在ActionScript中有少许涉猎。 Over the years I've moved from mostly making animations to mostly making small flash games or proof of concepts in my spare time. 多年来,我已经从业余时间主要从制作动画转向制作小型Flash游戏或概念验证。 I've been very reluctant to learn as3 as I am not much of a programmer, but a friend of mine convinced me. 我一直不太愿意学习as3,因为我不是一个程序员,但是我的一个朋友说服了我。

I was looking things up and I keep coming across Flex, I am not entirely sure what flex is and I was hoping someone could explain it to me. 我一直在寻找东西,而我却不断遇到Flex,我不确定是什么Flex,我希望有人可以向我解释一下。 From what I've looked up, it sounds like flex is just actionscript outside of flash if that makes sense. 根据我的查找,如果可行,听起来flex只是Flash之外的actionscript。 Is this someone thing I should look into? 这是我应该研究的事情吗?

Both Flash and Flex use the ActionScript language — Flash CS3 and Flex 2 both support ActionScript 3 (which is compliant with the ECMAScript Edition 4), whereas the older version of Flash supports only ActionScript 2. Flash和Flex都使用ActionScript语言-Flash CS3和Flex 2都支持ActionScript 3(与ECMAScript Edition 4兼容),而旧版Flash仅支持ActionScript 2。

The differences between the two are: 两者之间的区别是:

1) Flash has been designed to facilitate the creation of interactive content, whereas Flex is geared toward application development. 1)Flash旨在促进交互式内容的创建,而Flex则适合于应用程序开发。

2) Flash stores your application structure in a binary FLA file, whereas Flex uses a text file based on the markup language of Flex, MXML. 2)Flash将应用程序结构存储在二进制FLA文件中,而Flex使用基于Flex MXML标记语言的文本文件。

3) Different deployment models. 3)不同的部署模型。

Flex originally was designed to bring enterprise programmers to the Flash Platform. Flex最初旨在将企业程序员带入Flash平台。 As a result, Flex features tools designed to accommodate the special needs of hardcore programmers. 因此,Flex提供了旨在满足硬核程序员特殊需求的工具。

Take a look at this blog post which illustrates the strength and weaknesses of Flash and Felx quite nicely. 看一下这篇博客文章 ,它很好地说明了Flash和Felx的优缺点。

Flex is many things, but in short Flex is a technology that combines MXML and ActionScript and allows you to quickly build Rich Internet Applications for the Flash Player. Flex是很多东西,但简而言之,Flex是一种结合了MXML和ActionScript的技术,使您可以快速为Flash Player构建Rich Internet Application。 Think of MXML as HTML. 将MXML视为HTML。 It's a markup language to build user interfaces. 这是构建用户界面的标记语言。 Good to know is that MXML is compiled down to ActionScript, so it is perfectly possible to write everything in ActionScript and avoid MXML although I wouldn't recommend that in most cases. 众所周知,MXML已编译为ActionScript,因此完全可以用ActionScript编写所有内容并避免使用MXML,尽管我在大多数情况下不建议这样做。 It is just a layer on top of ActionScript. 它只是ActionScript之上的一层。

The Flex Framework is a set of UI components, data collections, validators, service classes and much more that form the building blocks for your application. Flex框架是一组UI组件,数据集合,验证器,服务类以及构成应用程序构建块的更多内容。

The Flex SDK is the framework and the compilers that are needed to build your source code. Flex SDK是构建源代码所需的框架和编译器。

Flex Builder is the tool that can be used to create Flex applications. Flex Builder是可用于创建Flex应用程序的工具。

Flex is the name of a framework. Flex是框架的名称。 This framework allows you to use a markup language called MXML to define structure (similar to HTML) and a scripting language called ActionScript to define behavior (similar to JavaScript). 该框架允许您使用称为MXML的标记语言来定义结构(类似于HTML)和使用名为ActionScript的脚本语言来定义行为(类似于JavaScript)。 Flex comes with a full set of components for UI, data etc. to make building applications faster. Flex随附了用于UI,数据等的全套组件,以加快构建应用程序的速度。

Flash is an animation package you buy from Adobe. Flash是您从Adobe购买的动画包。 In Flash you can create animations on a timeline and define behavior with a scripting language called ActionScript. 在Flash中,您可以在时间轴上创建动画,并使用称为ActionScript的脚本语言定义行为。

Both Flex and Flash target the " Flash Platform ". Flex和Flash均以“ Flash平台 ”为目标。 In other words, the Flash Platform (the Flash plugin) plays SWF's and there are many tools that can build SWF's. 换句话说,Flash平台(Flash插件)可以播放SWF,并且有许多工具可以构建SWF。 Flex and Flash are only two of them. Flex和Flash只是其中的两个。

Eg there are also many open source tools that target the Flash Platform like MTASC (AS2), Haxe & SWFMill . 例如,还有许多针对Flash平台的开源工具,例如MTASC (AS2), HaxeSWFMill

it sounds like flex is just actionscript outside of flash 听起来flex只是Flash之外的actionscript

not 'outside', as it still runs on the flash plugin. 而不是“外部”,因为它仍在Flash插件上运行。 it's more like a framework for writing applications using AS3 and run them on top of Flash. 它更像是一个框架,用于使用AS3编写应用程序并在Flash之上运行它们。

maybe the 'outside flash' idea comes from AIR. 也许“外部闪光灯”的想法来自AIR。 that is simply a browser that doesn't look like one! 那只是一个看起来不像浏览器的浏览器! it renders HTML (with WebKit), JS and Flash. 它呈现HTML(使用WebKit),JS和Flash。 the only thing missing is an URL bar. 唯一缺少的是URL栏。 that simple difference is enough to make webapps look more like desktop apps. 这种简单的区别足以使Web应用看起来更像桌面应用。

需要注意的另一件有趣的事情是,Flex仅支持ActionScript 3,因此不能用于制作可与FlashLite一起用于嵌入式设备的应用程序。

Flex is an mixed open-source/proprietary framework + compiler by Adobe written in ActionScript and an XML based declarative language called MXML (used to construct user interfaces in a declarative style). Flex是由Adobe用ActionScript编写的混合开放源代码/专有框架+编译器,以及一种称为MXML的基于XML的声明性语言(用于以声明性样式构造用户界面)。 The framework consists mostly of GUI and related classes. 该框架主要由GUI和相关类组成。

Flex MXML is a really wonderful way to learn to create UI. Flex MXML是学习创建UI的绝佳方法。 I've only had a few months on it and I can really appreciate it's quality mobile app style of development. 我只用了几个月的时间,我真的很欣赏它高质量的移动应用程序开发风格。 I'm an old school Timeline dewb here so, it's quite the learning curve for me. 我是这里的一所老学校Timeline露珠,所以这对我来说是个学习曲线。 Definitely Actionscript 3, in so many different ways :D 绝对是ActionScript 3,它有多种不同的方式:D

Cheers 干杯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM