タグ

2009年8月12日のブックマーク (2件)

  • Flex:ArrayCollectionの使い道(非同期処理対策)

    FlexにはArrayCollectionというArrayとほとんどおなじようなものがある。 しかし、ArrayCollectionには変更時のイベントがあるので、これを使ってちょっと便利なことができる。 (というより、私にとっては困った非同期処理への苦肉の策とでもいうのでしょうか?) 私がこの機能を使おうと思ったのは、pop3クライアントを作っているのだが (出来上がったら公開しようと思っていますが、まだ、ちょっと文字化け関連でバグがありまして・・) Socket通信は非同期処理になってしまうということでした。 つまり、2通のメールを取得しようとしても、受信しているデータがどちらのメールかの保障がないということになります。 2つのオブジェクトを作ってしまえば2通の場合にはそれでもいいのですが、1000通の場合なら、1000個のオブジェクト? ということになるとちょっと抵抗があっ

  • Vivisecting Media » Blog Archive » The Flex Code-Behind Pattern

    April 22nd, 2008 Posted in ActionScript, Flex Development, Rich Internet Applications, web integration The Flex code-behind pattern is a design pattern that has been around since the release of Flex 1.0 yet is not known or used by a lot of developers. The initial concept of the pattern was based on the ASP.NET development pattern where the layout is handled in a main file and a secondary “backing”