習作UI:初めてのFlash
習作UI:初めてのFlash その3

習作UI:初めてのFlash その2

 ネットで探してみると、マウスのキャプチャーの仕方が判明。ホットスポットへのMOUSE_DOWNのイベントをボタンで受け取ったあとは、(ホットスポットではなく)"stage"(Flashの表示領域全体)へのMOUSE_MOVEとMOUSE_UPイベントをlistenするようにすれば良いだけのことであった(ただし、これだとマウスのボタンを押したまま"stage"の外に出ると挙動が少しおかしくなる→これは別途解決する必用あり)。

 それに加えて、写真の移動・回転をつかさどっている部品を一つの独立したmovie symbolとして再利用可能にした。なんだかやたらとsymbolがネスティングしているが、これがFlash独特のプログラミング・パラダイムなのかも知れない。なぜ「Flashムービー」を作れる人はたくさんいるのに、キチンとした「インタラクティブFlashアプリ」を作れる人があまり多くないのかがだんだんと分かってきたような気がする。

Comments

Taichi

左の新作は回転の動作が直感的にわかるのでいいですね。
右のイチローのときは最初どう動くかわからなかったもので。

「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「
Taichi Fujisawa
『Think!』
http://businessandit.blog105.fc2.com/
「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「「

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name is required. Email address will not be displayed with the comment.)