ログインしてさらにmixiを楽しもう

コメントを投稿して情報交換!
更新通知を受け取って、最新情報をゲット!

【高度】Flash Action Scriptコミュのスクリプトを使用した文字のリンクを付けたいのですが‥

  • mixiチェック
  • このエントリーをはてなブックマークに追加
スクリプトで文字を奥行きある感じで複数配置し、その文字をクリックすると
迫ってきて大きくなって一番大きくなった時に、指定したページへ飛ぶ

というのを作りたいのですがその「文字の大きくなった時にリンク先に飛ぶ」
というのが調べたりはしているのですが出来ずに困っております。

どなたかご教授頂けますと助かります。
宜しくお願い致します。

※ちなみに下記スクリプト内の「aaa bbb ccc ddd eee」という部分が
浮かぶ文字になります。



// register root as environment
Object.environment = this;

// create camera object
this.cam = {x:0, y:0, z:500, dx:0, dy:0, dz:-500};

// set environmental constants
this.fl = 1000;

// create 'space' to which all words will be attached
this.createEmptyMovieClip("space",1);
// center 'space' on the stage
space._x=300;
space._y=169;

// a string of words related to the wind
this.somewords = "aaa bbb ccc ddd eee";
// convert the string of words into an array of words
this.wordList = new Array();
this.wordList = this.somewords.split(" ");

// create one instance for each word in the list
for (n=0;n<this.wordList.length;n++) {
// pick a word from the list
var word = Object.environment.wordList[n];
var x = random(600)-300;
var y = random(337)-169;
var z = random(Object.environment.fl*2)-Object.environment.fl;

// create an instance of the SpaceWord object
nombre = "word"+String(depth++);
initialization = {txtword: word, x: x, y: y, z: z};
space.attachMovie("spaceWord", nombre, depth, initialization);
}

this.onEnterFrame = function() {
this.cam.dz+=.5;
// move the camera to its destination
this.cam.x+=(this.cam.dx-this.cam.x)/10;
this.cam.y+=(this.cam.dy-this.cam.y)/10;
this.cam.z+=(this.cam.dz-this.cam.z)/30;
}

stop();

コメント(0)

mixiユーザー
ログインしてコメントしよう!

【高度】Flash Action Script 更新情報

【高度】Flash Action Scriptのメンバーはこんなコミュニティにも参加しています

星印の数は、共通して参加しているメンバーが多いほど増えます。

人気コミュニティランキング