Spring ActionScript

码农软件 · 软件分类 · 面向方面AOP/IoC · 2019-09-29 19:27:56

软件介绍

Spring ActionScript 是 ActionScript 编程语言的一个 IoC 、MVC 编程框架,主要用于 Flash、Flex 和 AIR 平台的应用开发。

当前版本的Spring ActionScript已经实现了IOC,反射编程框架,集成了Cairngorm和PureMVC框架。接下来会开发一个MVCS( Model-View-Controller-Service)的架构,并且加入AOP(Aspect Oriented Programming)面向切面编程。

使用pranaframework框架的一个例子(与使用Spring ActionScript类似,只是包名改了):

1.定义XML配置文件.

prana_config.xml

<?xml version="1.0" encoding="utf-8"?>
<objects>
<object id="sound" class="flash.media.Sound"/>
<object id="request" class="flash.net.URLRequest">
<constructor-arg type="String" value="testSound.mp3"/>
</object>
</objects>

2.加载配置文件,生成对象.

ActionScript时间轴代码

import org.pranaframework.context.support.XMLApplicationContext;
 
var context:XMLApplicationContext=new XMLApplicationContext("prana_config.xml");
context.addEventListener("complete",onContextComplete);
context.load();
 
function onContextComplete(e:Event):void{
var sound=context.getObject("sound")
sound.load(context.getObject("request"))
sound.play()
}

本文地址:https://codercto.com/soft/d/15682.html

程序员的修炼

程序员的修炼

Jeff Atwood / 陆其明、杨溢 / 人民邮电出版社 / 2014-4 / 45.00元

《程序员的修炼——从优秀到卓越》是《高效能程序员的修炼》的姊妹篇,包含了Coding Horror博客中的精华文章。全书分为8章,涵盖了时间管理、编程方法、Web设计、测试、用户需求、互联网、游戏编程以及技术阅读等方面的话题。作者选取的话题,无一不是程序员职业生涯中的痛点。很多文章在博客和网络上的点击率和回帖率居高不下。 Jeff Atwood于2004年创办Coding Horror博客(......一起来看看 《程序员的修炼》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具