注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

神魔破杜梓的叨叨堂

Programming every day!

 
 
 

日志

 
 
 
 

在flex builder 中使用fl.controls.*  

2008-05-02 00:34:52|  分类: My Tech |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
原文地址

Problem Summary

Often happens to have to mange a pure Flash project; it's always a good solution to use flex builder plug in to write the code, but if we add flash components on the stage or if we want to create them at runtime, it's not possible to import the fl package.

Solution Summary

To solve the problem we use an external SWC file as library in our AS3 project

Explanation

if we want to add a component at runtime like a Slider or a CheckBox or so on, Flex sdk has to know where to find them to import, because in the native flex library the fl package is not present.

So the dirty solution is :

[FLASH PART] - create the library
- create a new .fla file in Flash CS3
- save it
- CRTL + SHIFT + F12 to see the export options
- check the option "export SWC"
- Now put all the component you need into the stage
- Save the file and publish it; now you have your swc file library to be included in your project

在flex builder 中使用fl.controls.* - hydra1983 - Edisons Closet


[Flex Bulder]
Now in flex builder
- create a new actionscript project
- create a lib folder and put the swc file inside it
- Right click on the project -> Properties
- Actionscript Build PAth tab -> Library Path add the swc folder
- Clean the project


now you can use the components : )

Ciao
Matteo Lanzi






Related files for download

Swc Library example
as3Components.swc

swc.JPG

  评论这张
 
阅读(422)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017