Spring ActionScript

程序名称:Spring ActionScript

授权协议: Apache

操作系统: 跨平台

开发语言: ActionScript

Spring ActionScript 介绍

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

当前版本的Spring
ActionScript已经实现了IOC,反射编程框架,集成了CairngormPureMVC框架。接下来会开发一个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()  
}

Spring ActionScript 官网

http://www.springactionscript.org/

相关编程语言

BlazeDS 是一个基于服务器的Java 远程控制(remoting...
OVal 是一个可扩展的Java对象数据验证框架,验证的规...
Volta 是一套开发工具,专为开发分布式、实时系统应...
OpenDDS 是一个开源的 C++ 实现的 对象管理组织 OMG...
JADE (Java Agent DEvelopment Framework) 是一个完...
FastMM ,在D2006和2007中已代替了原来的内存管理器。