- 浏览: 78654 次
- 性别:
- 来自: 杭州
最近访客 更多访客>>
文章分类
最新评论
-
ieniac:
516456267 写道离线版非常好使!
查看当前本机浏览器FlashPlayer版本 -
516456267:
离线版非常好使!
查看当前本机浏览器FlashPlayer版本
I wanted to see whether it was viable to use IntelliJ 8 as an IDE for creating complete Flash applications (for writing Actionscript). By default, the application allows you to create Flex applications and creates a "HelloWorld" app to get you started. But at first it was unclear how I could write AS3 classes and compile them without jumping over to flash or using FlexBuilder.
I spent some time today dealing with issues regarding certain flash Objects (namely the Stage) being "null" and after some reading, I discovered this was to do with timing - I read around online and after looking in many places, I pieced together this mxml file:
- <?xml version="1.0" encoding="utf-8"?>
- <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
- layout="absolute"
- applicationComplete="init()"
- horizontalScrollPolicy="off"
- verticalScrollPolicy="off">
- <mx:Script>
- <![CDATA[
- import com.yourNamespaceHere.Shell;
- private function init():void {
- var shell:Shell = new Shell();
- this.rawChildren.addChild(shell);
- shell.init();
- }
- ]]>
- </mx:Script>
- </mx:Application>
This replaced the HelloWorld.mxml that IntelliJ provided and it does two things:
1. Waits until "applicationComplete" (so the 'stage' exists).
2. Runs a function called init(), this instantiates Shell.as and places it on the stage (as a 'raw' child element). Once shell has been instantiated, init() is run and this can do whatever you like really - instantiate other classes, place objects on the stage, etc.
IntelliJ will use the Flex SDK's compiler to 'build' all of your project .as files; all you need to do is tell it where to find the Flex 3 SDK (in Leopard, it was installed by default in: /Applications/Adobe Flex Builder 3 Plug-in/sdks)
Once you've got some code written in the shell, you can use the IntelliJ debugger to run the app, inspect trace statements and so on. Although it's not quite as easy to "get up and go" with IntelliJ as it is with the FlexBuilder plugin (or application), it still makes authoring AS3 possible using IntelliJ.
Example Shell.as (will trace out the stage width and height):
- package com.yourNamespaceHere {
- import flash.display.MovieClip;
- public class Shell extends MovieClip
- {
- public function init ( ):void{
- trace('shell :: init ', stage.stageWidth, stage.stageHeight);
- }
- }
Hope this is useful to someone who had wanted to know how to use IntelliJ as an Actionscript IDE and who was finding the same issues I had been running into.
o-link : http://blog.msbbc.co.uk/2008/12/editingauthoring-actionscript-3-classes.html
发表评论
-
Sublime Text 2 Custom Layout
2012-10-15 15:21 7011. Edit Sublime Text 2\Data ... -
Linux Tips
2012-10-15 06:43 601-- How to config ip in Linux F ... -
Change FireBug DEFAULT font-family
2011-12-31 16:44 7681. Search *firebug*.xpi in Fire ... -
cygwin for e-texteditor
2011-08-17 11:03 667install cygwin for ete Se ... -
Config Remark
2011-06-19 15:06 8841. version control 2. out o ... -
IE associate Fix
2010-08-11 09:33 644注册动态链接库 for %%i in (c:\windows ... -
qq.foxmail.crack
2009-10-20 17:31 933javascript:var s=/mail.qq.com/; ... -
Flex & RIA
2009-08-22 23:28 798Framework: a. Cairngorm [MVC] ... -
Tell, Don't Ask
2009-08-22 19:41 2436Alec Sharp, in the recent boo ... -
Never, never, never use String in Java (or at least less often :-)
2009-08-22 19:24 1029Never, never, never use (unwrap ... -
Extract flash from Excel or Word
2009-06-05 14:34 854打开含有Flash的EXCEL文档, 点击"视图& ... -
Google的九条创新原则
2009-06-04 11:57 737Innovation, not instant perfec ... -
Ten Quotients of Success
2009-05-29 10:50 1011成功是每一个人都梦想 ... -
How to Rate a Software Developer
2009-05-29 10:42 968How do you rate a software deve ...
相关推荐
在编辑(Editing)环节中,IntelliJ IDEA提供了一系列快捷键来提高编码效率。比如,Control+Space是基本的代码补全,Control+Shift+Space则是智能代码补全,它会根据上下文过滤方法和变量。Command+Shift+Enter可以...
### IntelliJ IDEA 参考卡片详解(Mac版) #### 概述 IntelliJ IDEA是一款功能强大的集成开发环境(IDE),广泛应用于Java和其他多种语言的软件开发。为了提高工作效率,掌握快捷键是必不可少的一环。本参考卡片将...
### IntelliJ IDEA 操作手册知识点详解 #### 一、基本设置 **1.1 主题外观设置** - **路径**:`File > Settings > Editor > General` - **操作**:选择`Mouse`选项卡下的`Change font size with Ctrl + Mouse ...
IntelliJ IDEA作为一款流行的集成开发环境(IDE),在Mac操作系统上的使用提供了众多的快捷键功能,可以帮助开发者提高编码效率和质量。以下是基于IntelliJ IDEA在Mac系统下快捷键使用的主要知识点: ### Mac键盘...
### IntelliJ IDEA 快捷键大全:Win与Mac版详解 #### 一、IntelliJ IDEA 简介 IntelliJ IDEA 是一款由 JetBrains 公司开发的强大集成开发环境(IDE),主要应用于 Java 开发,同时也支持其他多种编程语言和技术栈...
IntelliJ IDEA是一款广受欢迎的Java开发集成环境,它的强大功能和高效快捷键极大地提高了开发者的工作效率。在Mac操作系统上,使用IntelliJ IDEA时掌握一些常用快捷键能显著提升编程体验。以下是一些关键的快捷键...
IntelliJ IDEA是一款广受欢迎的Java集成开发环境(IDE),由JetBrains公司开发。它以其高效、智能的代码编辑器,强大的代码分析和重构工具,以及丰富的插件系统而闻名。"Idea快捷键"指的是在IntelliJ IDEA中使用的...
IntelliJ IDEA 是一款非常流行的 Java 开发工具,由 JetBrains 公司开发。它提供了强大的功能来提高开发效率,其中包括了丰富的快捷键设置(KeyMap),使开发者可以更快地完成各种操作。本文将详细介绍 IntelliJ ...
IntelliJ IDEA 是一款强大的Java集成开发环境,其在Mac操作系统上的快捷键设计与Windows版本有所不同。本篇文章将详细介绍适用于Mac系统的IntelliJ IDEA常用快捷键,帮助Mac用户提高编程效率。 首先,了解Mac键盘的...
### IntelliJ IDEA 快捷键详解 #### 一、编辑操作(Editing) - **Ctrl+Space**:基础代码完成。提供当前上下文中可用的所有类、方法或变量名称的列表。 - **Ctrl+Shift+Space**:智能代码完成。过滤当前上下文中...
cursive for idea Advanced structural editing, refactorings, VCS integration and much more, all out of the box ----------------------- Code completion, syntax highlighting First class ClojureScript ...
IntelliJ IDEA是一款流行的集成开发环境,广泛应用于Java、Kotlin、Groovy、Scala、JavaScript、TypeScript等编程语言的开发。IntelliJ IDEA 2020.1是该软件的一个版本,而ReferenceCard是IDEA的一部分,通常被称作...
在使用IntelliJ IDEA这款流行的集成开发环境(IDE)时,尤其是在macOS操作系统上,掌握快捷键可以帮助开发者提高编码效率。以下是一些常用的IntelliJ IDEA快捷键,分为几个主要的使用场景进行介绍。 一、编辑...
Using this Object-oriented application users can perform management of employees such as adding new employee details editing/updating their details removing them from the system or viewing all ...
"OYUVNP5.rar_editing_人工智能/神经网络/深度学习"这个压缩包文件似乎包含了与这些主题相关的代码和资源,特别是关于“Poisson Image Editing”算法的实现。下面将详细解释这个算法以及它与深度学习的关系。 ...
在《Editing In ArcMap》这本书中,作者详细阐述了如何使用ESRI的桌面GIS软件ArcMap进行地理数据的创建和编辑。ArcMap不仅是一个用于地图制作和分析的强大工具,还提供了对地理数据和表格数据的管理和编辑功能。 在...
之前我发了数篇系列博文来仔细研究Poisson Image Editing算法,每次重新审视和深入,仿佛都能有更为深刻的认识和很大的收获。这应该算是我这个系列的完结篇,会用用Matlab代码一点一点的演示,原文作者到底是如何...
"Papte.rar_editing_数值算法/人工智能"这个压缩包文件集合,显然涉及到一种名为"Poisson Image Editing"的高级图像编辑技术。这种技术基于数学中的泊松方程,为图像融合提供了更为自然且无缝的结果。 "Poisson ...
安装时可选择以下组件:Oxygen 2 Personal EditionVisitor 3 Personal EditionTexView 2BinPBO Personal EditionFSM Editor Personal EditionSound editing toolsTools for converting (required)...
IntelliJ IDEA是Java开发者广泛使用的集成开发环境,其2021.1版本的ReferenceCard.pdf文档中,详尽列出了在Windows和Linux系统中使用IntelliJ IDEA时的快捷键和功能操作。以下是这份快捷键中文文档中的重要知识点...