我可以在没有 Flex builder 的情况下使用 flex 吗? [英] Can i use flex without Flex builder?

查看:35
本文介绍了我可以在没有 Flex builder 的情况下使用 flex 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始学习 FLEX.我只有 flex sdk.所以我可以只使用它开始学习吗?如果是这样,请建议我通过链接..

i am starting to study FLEX. i have only flex sdk. So can i start study only using that. If so please suggest me the link to go through..

但是,使用编辑器将最大限度地减少我们的工作,并将自行创建代码.所以作为一个新的学习者,理解新事物会很乏味,也很难学习新事物......

But still, Using an editor will minimize our work and will create the code by its own. So as a new learner it would be tedious to understand and also hard to learn new things...

推荐答案

是.

只是一点背景知识:Flex Builder(又名 Flash Builder)、mxmlc 编译器(免费)和 Flash CSx 都将 Actionscript 代码编译成 SWF 文件和/或 AIR 文件.Flash CSx 是一个以设计为中心的工具,内置了一个极其简单的编码编辑器(不比记事本有用多少);Flex Builder/Flash Builder 是一个成熟的程序员 IDE(基于 Eclipse);mxmlc 编译器是一个免费的命令行工具,可将 Actionscript 文件编译为 SWF 和 AIR 文件.(您必须使用自己的编辑器来编写源文件.)

Just a bit of background: Flex Builder (a.k.a Flash Builder), the mxmlc compiler (free) and Flash CSx all compile Actionscript code into SWF files and/or AIR files. Flash CSx is a design-centric tool with a ultra-simplistic coding editor built in (not much more useful than Notepad); Flex Builder/Flash Builder is a full-blown programmer's IDE (based on Eclipse); the mxmlc compiler is a free command-line tool that compiles Actionscript files into SWF and AIR files. (You have to use your own editor to write the source files.)

MXML 是一种 xml 语言,用作 Actionscript 的快捷方式.您可以使用 mxml 而不是 Actionscript 进行编码,编译器会在编译之前将您的 mxml 转换为 Actionscript.您不能使用 mxml 作为所有 AS 编码的简写.大多数情况下,您可以将其用作 UI 编码的替代品以及将数据绑定到 UI 元素的一种方式.编译器将 mxml 转换为 Actionscript 类,然后将 Actionscript 类(创建为 mxml 的类和在 Actionscript 中本地编码的类)编译为字节码.Flash 虚拟机(例如浏览器插件)运行字节码.

MXML is an xml language that acts as a shortcut for Actionscript. You can code in mxml instead of Actionscript and the compiler will convert your mxml into Actionscript before compiling. You can't use mxml as a shorthand for all AS coding. Mostly you can use it as a substitute for UI coding and as a way of binding data to UI elements. The compiler converts the mxml into Actionscript classes and then compiles the Actionscript classes (the ones created as mxml and the ones coded natively in Actionscript) into bytecode. The Flash virtual machine (e.g. the browser plugin) runs the bytecode.

目前,您可以对 Actionscript 和 mxml 进行编码,然后使用 Flex Builder/Flash Builder 或 mxmlc 编译器(免费)进行编译.Flash CSx 不能理解 mxml,所以你只能编译直截了当的 Actionscript.

Currently, you can code both Actionscript and mxml -- and then compile using Flex Builder/Flash Builder or the mxmlc compiler (which is free). Flash CSx can does not understand mxml, so you it can only compile straight-forward Actionscript.

注意:有第三方工具,如 FDT 也可以用来编写和编译 Actionscript 和 mxml.

Note: there are third-party tools, such as FDT that can also be used to write and compile Actionscript and mxml.

语言 Actionscript 已多次修订.在它成为一种专有语言的短暂阶段之后,它演变成与 Javascript 非常相似的东西.然后,在 AS 2.0 中,它变得更像 Java —— 并且在 AS 3.0 中继续朝着这个方向发展.(它的语法与 Java 非常相似,而且和 Java 一样,它是基于类的).

The language Actionscript has been revised several times. After a brief phase when it was a proprietary language, it morphed into something much like Javascript. Then, with AS 2.0, it became much more like Java -- and it continues in this direction with AS 3.0. (its syntax is very similar to Java and, like Java, it is class-based).

您可以在 Flash CSx、Flex Builder/Flash Builder 和免费 sdk 中使用一组核心 Actionscript 类.还有一些称为 Flex 框架的其他类,它们在 Flex Builder/Flash Builder 和 sdk 中可用,但在 Flash CSx 中不可用.这些额外的类添加了新的可视化组件,例如数据网格、高级 UI 布局引擎和数据绑定框架.

There are a core set of Actionscript classes that are available to you in Flash CSx, Flex Builder/Flash Builder and the free sdk. There are additional classes, known as the Flex Framework, which are available to you in Flex Builder/Flash Builder and in the sdk -- but not in Flash CSx. These extra classes add new visual components, such as a datagrid, an advanced UI-layout engine, and a framework for data-binding.

您可以在没有 Flex Builder IDE 的情况下使用 Flex 框架(将在下一版本中更名为 Flash Builder).

You can use the Flex Framework without the Flex Builder IDE (which is going to renamed, in the next version to Flash Builder).

不使用 Flex Builder 进行编译

您还可以在不使用 Flex 框架的情况下使用 Flex Builder/Flash Builder -- 这意味着您可以在 IDE 中编程并仅使用不属于框架的 Actionscript 类(如果您在Flash 而不是 Flex Builder).

You can also use Flex Builder/Flash Builder without using the Flex Framework -- meaning you can program in the IDE and use only Actionscript classes that aren't part of the framework (the classes you'd use if you programmed in Flash and not Flex Builder).

您可以选择使用或不使用 mxml.

You can choose to use or not use mxml.

您甚至可以使用 mxml 自动生成不属于 Flex 框架的 Actionscript(例如您自己的自定义类).

You can even use mxml to auto-generate Actionscript that's not part of the Flex Framework (e.g. your own custom classes).

使用mxml 用于您自己的类

祝你好运!我的 Actionscript 博客

这篇关于我可以在没有 Flex builder 的情况下使用 flex 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆