小小菜鸟的web菜园子

web开发学习。好记性不如烂笔头。每天进步一点点!

导航

在flexBuilder3中使用Gumbo sdk.

1:到http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4/下载最新版本的sdk,是个zip包

2:解压缩包,比如我把所有文件解压缩到"myGumbo"文件夹中

3:打开flex->window->perferences->flex->installed flex sdks

4:点add按钮,browser到刚才的"myGumbo"文件夹。  点OK按钮

5:新建flex工程,然后在新建的工程上点右键--属性-->flex compiler-->use a specific sdk,  选择 flex 4.0

6:下方的require flash player vision 10.0.0

Flex Builder Project Properties dialog box

 

7:点OK按钮.

完成,测试代码:

 

<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/08/02/using-the-beta-gumbo-sdk-in-flex-builder-3/ -->
<Application xmlns="http://ns.adobe.com/mxml/2009"
        xmlns:mx
="http://ns.adobe.com/mxml/2009"> <!-- was: library:adobe/flex/halo -->

    
<Group id="group"
            horizontalCenter
="0"
            verticalCenter
="0">
        
<Rect id="rect"
                width
="120"
                height
="60">
            
<fill>
                
<SolidColor color="red" alpha="0.2" />
            
</fill>
            
<stroke>
                
<SolidColorStroke color="black" weight="4" />
            
</stroke>
        
</Rect>
        
<TextGraphic id="textGraphic"
                horizontalCenter
="0"
                verticalCenter
="0"
                color
="#000000"
                fontFamily
="Arial"
                fontWeight
="bold">
            
<content>{Capabilities.version}</content>
        
</TextGraphic>
    
</Group>

    
<mx:Label text="I'm a Halo Label component!" />

</Application>

 

ctrl+f11,查看结果吧~~

 

 

来自:http://blog.flexexamples.com/2008/08/02/using-the-beta-gumbo-sdk-in-flex-builder-3/

翻译:小小菜鸟

 

posted on 2008-11-24 14:09  『小小菜鸟』  阅读(1174)  评论(2编辑  收藏  举报