つくっちゃいました
たいしたもんじゃないですが、5分で作れたのでちょっと感動。
開発環境はメモ帳→VIM。
文字コードがUTF-8じゃないと色々まずそうなので、VIMがおすすめです。
素直に開発環境使ってもいい気がしますが、プロパティとかを覚えてしまえばそんなに問題ないかもしれません。
後、コンパイルは普通に通りました。
SDKを落として、binディレクトリにパスを通して、ソースのあるフォルダに移動。
後はいつもの通り。
mxmlc hoge.mxml
シンタックスの誤りなどは、きちんとコンソールで訂正してくれます。
コンパイルオプションとかはあるんでしょうか?
とりあえず、下にコンパイルしてできたサンプル張っておきますね。
ついでなのでソースも追記に。
全然たいした事はしてないので、期待はなさらず。
開発環境はメモ帳→VIM。
文字コードがUTF-8じゃないと色々まずそうなので、VIMがおすすめです。
素直に開発環境使ってもいい気がしますが、プロパティとかを覚えてしまえばそんなに問題ないかもしれません。
後、コンパイルは普通に通りました。
SDKを落として、binディレクトリにパスを通して、ソースのあるフォルダに移動。
後はいつもの通り。
mxmlc hoge.mxml
シンタックスの誤りなどは、きちんとコンソールで訂正してくれます。
コンパイルオプションとかはあるんでしょうか?
とりあえず、下にコンパイルしてできたサンプル張っておきますね。
ついでなのでソースも追記に。
全然たいした事はしてないので、期待はなさらず。
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundGradientColors="[#ddffff, #cceeee]">
<mx:XMLList id="tasks">
<task>
<name>イーピンを死んじゃうツモだ…!</name>
<priority>1</priority>
<pending>false</pending>
<closed>false</closed>
</task>
<task>
<name>『メキシコに吹く熱風!』という意味のサンタナと名づける</name>
<priority>3</priority>
<pending>false</pending>
<closed>true</closed>
</task>
<task>
<name>いう事を聞かない新人を魔法でぶっ飛ばす</name>
<priority>1</priority>
<pending>true</pending>
<closed>false</closed>
</task>
<task>
<name>ツナギを着てベンチに腰掛ける</name>
<priority>1</priority>
<pending>true</pending>
<closed>true</closed>
</task>
<task>
<name>新世界の神になる</name>
<priority>2</priority>
<pending>false</pending>
<closed>false</closed>
</task>
</mx:XMLList>
<mx:Panel title="タスク管理一覧" height="450" width="600" borderStyle="inset" color="#9c9c9c">
<mx:Label width="100%" paddingLeft="10" paddingRight="10" paddingTop="20" color="#adadad" text="いわゆる一つの萌えサンプル" />
<mx:DataGrid id="gd" width="100%" height="100%" rowCount="{gd.dataProvider.length + 1}" dataProvider="{tasks}">
<mx:columns>
<mx:DataGridColumn dataField="name" headerText="名称" color="#ff8888" />
<mx:DataGridColumn dataField="priority" headerText="優先度" color="#88dd88" />
<mx:DataGridColumn dataField="pending" headerText="保留" color="#8888ff" />
<mx:DataGridColumn dataField="closed" headerText="完了" color="#888888" />
</mx:columns>
</mx:DataGrid>
</mx:Panel>
</mx:Application>
以上、これだけ。
これでFlashが作れるというだけで、個人的には感動。
高いですからね…Flash…
後、今日覚えた事。
動的に要素を追加/設定する方法。
rowCount="{gd.dataProvider.length + 1}"
DataGridの場合こんな感じ。
dataProviderにXMLなどを指定できるので、そのサイズを取って、ヘッダの分1を足すらしいです。
Repeaterというコンポーネントも発見したので、そちらも明日やってみます。
まだActionScriptにはたどり着けていない…
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundGradientColors="[#ddffff, #cceeee]">
<mx:XMLList id="tasks">
<task>
<name>イーピンを死んじゃうツモだ…!</name>
<priority>1</priority>
<pending>false</pending>
<closed>false</closed>
</task>
<task>
<name>『メキシコに吹く熱風!』という意味のサンタナと名づける</name>
<priority>3</priority>
<pending>false</pending>
<closed>true</closed>
</task>
<task>
<name>いう事を聞かない新人を魔法でぶっ飛ばす</name>
<priority>1</priority>
<pending>true</pending>
<closed>false</closed>
</task>
<task>
<name>ツナギを着てベンチに腰掛ける</name>
<priority>1</priority>
<pending>true</pending>
<closed>true</closed>
</task>
<task>
<name>新世界の神になる</name>
<priority>2</priority>
<pending>false</pending>
<closed>false</closed>
</task>
</mx:XMLList>
<mx:Panel title="タスク管理一覧" height="450" width="600" borderStyle="inset" color="#9c9c9c">
<mx:Label width="100%" paddingLeft="10" paddingRight="10" paddingTop="20" color="#adadad" text="いわゆる一つの萌えサンプル" />
<mx:DataGrid id="gd" width="100%" height="100%" rowCount="{gd.dataProvider.length + 1}" dataProvider="{tasks}">
<mx:columns>
<mx:DataGridColumn dataField="name" headerText="名称" color="#ff8888" />
<mx:DataGridColumn dataField="priority" headerText="優先度" color="#88dd88" />
<mx:DataGridColumn dataField="pending" headerText="保留" color="#8888ff" />
<mx:DataGridColumn dataField="closed" headerText="完了" color="#888888" />
</mx:columns>
</mx:DataGrid>
</mx:Panel>
</mx:Application>
以上、これだけ。
これでFlashが作れるというだけで、個人的には感動。
高いですからね…Flash…
後、今日覚えた事。
動的に要素を追加/設定する方法。
rowCount="{gd.dataProvider.length + 1}"
DataGridの場合こんな感じ。
dataProviderにXMLなどを指定できるので、そのサイズを取って、ヘッダの分1を足すらしいです。
Repeaterというコンポーネントも発見したので、そちらも明日やってみます。
まだActionScriptにはたどり着けていない…
Comments
"They explained containment won't, previously, previously, ever be the insurance plan. Most of us aroused from sleep eventually, and Pakistan received nuclear guns -- if would've been the plan with Pakistan, we'd happen to be with battle having Pakistan. We wakened some day, in addition to Tiongkok got fischer weaponry. Many of us wakened one day, in addition to Russian federation had them,Inch he said. [url=http://danielecerioni.com/ricordo.php?key=portafogli-gucci]portafogli gucci[/url]
“That’s once the thoughts ? it simply seemed to be terrible; the idea modified everything from your joyfulness,” Bryan Allen stated. [url=http://www.scarsdalesoccer.org/planning.php?key=louis-vuitton-diaper-bag]louis vuitton diaper bag[/url]
Therefore richtig exklusiv conflict das Meeting jedoch nicht. Denn Petkow hatte ebenso mit anderen russischen Sendern gesprochen. <a href="http://www.kickask.com/graham.php?key=jordans-retro" target="_blank">cheap jordans</a>
Font ResizeFort Morgan Library & Gallery Dark brown Carrier LunchCity recreational areas personnel keep hectic, Reese saysJob: Snow treatment to sowing blooms, in addition flood recoveryBy Jenni Grubbs
The particular assembly was publicised as being of importance to all stakeholders, therefore, if this Ceo from the IEB which focused them to leave thinks about some sort of District Councillor that represent it is mothers and fathers and also students is pointless, there is no desire their board is ever going to get their particular self-assurance along with the college will simply spin out of control directly into Exclusive Procedures. [url=http://www.kickask.com/graham.php?key=jordans-for-sale]cheap jordans[/url]
This ballots are going to be sealed before the lure process is definitely finished. A protracted judge battled can ensue from then on. [url=http://www.scarsdalesoccer.org/planning.php?key=discount-louis-vuitton]louis vuitton outlet[/url]
Posted: <a href="http://www.tourneurbois.fr/accessoires.php?key=solde-louboutin" target="_blank">louboutin pas cher</a>
--MAN Town Is better than Gulf BROM 3-1, STAYS Still living IN ENGLISH Most recognized Nfl Headline Competition
<a href="http://www.gdx3s45s112180itio1m8gp1vx2t7m18s.org/">atslocknfwe</a>
tslocknfwe http://www.gdx3s45s112180itio1m8gp1vx2t7m18s.org/
[url=http://www.gdx3s45s112180itio1m8gp1vx2t7m18s.org/]utslocknfwe[/url]