惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

A
About on SuperTechFans
Y
Y Combinator Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Security Blog
Microsoft Security Blog
aimingoo的专栏
aimingoo的专栏
I
InfoQ
C
Check Point Blog
IT之家
IT之家
MyScale Blog
MyScale Blog
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
Last Week in AI
Last Week in AI
GbyAI
GbyAI
P
Proofpoint News Feed
量子位
Stack Overflow Blog
Stack Overflow Blog
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
人人都是产品经理
人人都是产品经理
B
Blog
T
The Blog of Author Tim Ferriss
H
Help Net Security
云风的 BLOG
云风的 BLOG

博客园 - 步青云

comfyui一次成功的抽卡 在 MySQL 5.7 中实现每月手动创建分区 tp5设置log文件输出 微信小程序连接websocket随记 命令提示符 在win64上使用bypy进行百度网盘文件上传 phpqrcode生成任意尺寸的二维码 Visual Studio 2017 安装心得 用火车头采集器8.6免费版采集图片 为了android sdk下载,必须修改hosts win2003服务器网站和数据库的二周自动备份 ultraedit去空行 用Navicat for MySQL进行数据库的导入导出 尝试jquery插件的开发 移动硬盘数据惊魂恢复记 用C#的控制台程序监控apache网站是否正常 织梦内容管理系统 4_0_1 的rand()优化 RHEL6下编译Mplayer Linux下第一个C程序 用SciTE调试C++程序遇到的小问题
FlashDevelop的第一个程序
步青云 · 2011-06-24 · via 博客园 - 步青云

以前自己装过一次 FlashDevelop-3.3.4-RTM.exe ,而且也在线安装了flex_sdk_4,
今天新建一个AS3项目时,编译出现错误:
The definition of base class Sprite was not found.

尝试各种办法,都没有解决,搜索一下FlashDevelop配置Flex SDK 4方面的文章,都是很简单呀
郁闷中,决定重装。

竟然成功了!写下第一个程序:

package
{
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;/**
* ...
*
@author frey
*/
public class Main extends Sprite
{
public function Main():void
{
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
trace(
"hello");
}
private function init(e:Event = null):void
{
removeEventListener(Event.ADDED_TO_STAGE, init);
// entry point
var circlr1:Sprite = new Sprite();
circlr1.graphics.beginFill(
0xFFCC00);
circlr1.graphics.drawCircle(
40, 40, 40);
circlr1.buttonMode
= true;
circlr1.addEventListener(MouseEvent.CLICK, clicked);
function clicked(event:MouseEvent):
void {
trace(
"click!");
}
addChild(circlr1);
}
}

}

按F5进行test movie,效果如下:

按黄色的按钮,出现的调试信息如下图所示:

写本文是为了祝贺自己整合最土团购和团800的一站通成功。