FLEX 图形框架上市

Degrafa Derby

今天一个FLEX图形框架已经上市了,其可以方便在FLEX中建立图形,方便很多人对图形创建不熟悉的困扰。暂时放出了几个DEMO,不过都比较简单。

FRAMWORK 下载地址:http://code.google.com/p/degrafa/downloads/list

SAMPLE地址:http://samples.degrafa.com/

API 地址:http://docs.degrafa.com/

 

Paint

Geometry

Repeaters

一个高级应用的代码:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml&quot;
                layout="absolute"
                xmlns:degrafa="http://www.degrafa.com/2007&quot;
                backgroundGradientColors="[#333333, #222222]">
    <mx:ArrayCollection id="colorComboData">
        <mx:source>
            <mx:Object label="aqua"/>
            <mx:Object label="chartreuse"/>
            <mx:Object label="mintcream"/>
            <mx:Object label="fuchsia"/>
            <mx:Object label="gold"/>
            <mx:Object label="peru"/>
            <mx:Object label="black"/>
            <mx:Object label="antiquewhite"/>
        </mx:source>
    </mx:ArrayCollection>
    <degrafa:Surface    verticalCenter="0"
                        horizontalCenter="0">
        <!– Creating a fill. –>               
        <degrafa:fills>
            <degrafa:SolidFill     id="comboColor"
                                colorKey="{colorCombo.selectedItem.label}"/>
        </degrafa:fills>
        <!– Creating a Geometry Group. –>
        <degrafa:GeometryGroup>
            <!– Creating a Circle. –>
            <degrafa:Circle    fill="{comboColor}"
                            radius="200"/>
        </degrafa:GeometryGroup>
    </degrafa:Surface>
    <mx:ComboBox id="colorCombo" dataProvider="{colorComboData}" x="329" y="10"/>
</mx:Application>

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: