1.配置好java和maven3环境
M2_HOME=D:\apache-maven-3.0.5
M2=%M2_HOME%\bin
path=%M2%
命令窗口中执行:mvn -v,运行正常则安装成功
2.下载fd模板,拷贝到fd安装目录/Projects文件夹内,我的是E:\Program Files\FlashDevelop\Projects
3.重起fd,可以看到jangaroo模板了
4.点击fd上的command prompt按钮,输入mvn jetty:run,启动服务环境
package com.acme.jooflash { import flash.display.Loader; import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; import flash.net.URLRequest; import flash.text.TextField; /** * ... * @author harriet */ [SWF( backgroundColor='0xFFFFFF', frameRate='30', width='640', height='480')] public class Main extends Sprite { public function Main() { /*var helloWorld:TextField = new TextField(); helloWorld.text = "Hello Harriet!"; addChild(helloWorld);*/ /*var s:Sprite = new Sprite(); s.graphics.beginFill(0xff00ff, 0.1); s.graphics.drawCircle(100, 0, 100); s.graphics.endFill(); addChild(s); s.addEventListener(MouseEvent.MOUSE_OVER, doClick);*/ var url:String = "logo.png"; var urlr:URLRequest = new URLRequest(url); loader.load(urlr); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, doShow); //addChild(loader); } private var loader:Loader = new Loader(); private function doShow(e:Event):void { addChild(loader.content); } } }