fc2ブログ

PixelText variation (2)

2007/09/28 22:35 - tweener

修正点1 Pixelize.as を修正

public static function createPositions(
 dispStr : String , // 表示文字列
 scl     : uint = 1 // セルの1辺の長さ(ピクセル単位)
):Array {
 // 引数処理
 scale = scl;

 // ピクセル化する文字列
 var aqLetter:AqLetter = new AqLetter(
  null ,
  { font:"_sans",size:16 }
 );
 aqLetter.text = dispStr;
 ……
 ……

修正点2 Main.as を修正

<クラスプロパティ>
private var scale : uint = 1; // セルの1辺の長さ

<init メソッド内の一部分>
positions = new Array();
for ( var i:int=0; i<len; i++ ) {
 positions[i] = Pixelize.createPositions( strs[i] , scale );
}

  1. Main.as のクラスプロパティ scale:uint
  2. Pixelize.as の createPositions メソッド内、new AqLetter() の第2引数であるオブジェクト { font:String , size:uint }

にほんブログ村 IT技術ブログへ

スポンサーサイト




コメントの投稿

非公開コメント

タグクラウド

最近の記事
カテゴリ
月別アーカイブ
プロフィール

Aquioux

Author:Aquioux
日曜 Flash プログラマ。
Flash 作品は本館で展示しています。


mailto:aquioux@mail.goo.ne.jp

ブログパーツ

あわせて読みたい

フィードメーター - 閃光的網站・弛緩複合体 -Review Division-


検索/translation
Google



オススメ本

コメント
トラックバック
RSS

Add to Google

Bloglinesで閲読登録

はてなRSSに追加

Subscribe with livedoor Reader

My Yahoo!に追加

Add to Technorati Favorites!

feedpathに追加