Flash 画像の横スライド

var base:Number;


this.s01_bt.onRollOver = function(){

  base = ph_mc.aki1_mc._x; /*_xを基準に*/

 ph_mc.aki1_mc.onEnterFrame = function(){

 ph_mc._x -= (ph_mc._x + base)/20;/*スライドの移動スピード設定*/

  }

 }

this.s02_bt.onRollOver = function(){

 base = ph_mc.aki2_mc._x;

 ph_mc.aki2_mc.onEnterFrame = function(){

 ph_mc._x -= (ph_mc._x + base)/20;

  }

 }

this.s03_bt.onRollOver = function(){

 base = ph_mc.aki3_mc._x;

 ph_mc.aki3_mc.onEnterFrame = function(){

 ph_mc._x -= (ph_mc._x + base)/20;

  }

}

this.s04_bt.onRollOver = function(){

 base = ph_mc.aki4_mc._x;

 ph_mc.aki4_mc.onEnterFrame = function(){

 ph_mc._x -= (ph_mc._x + base)/20;

  }

}

this.s05_bt.onRollOver = function(){

 base = ph_mc.aki5_mc._x;

 ph_mc.aki5_mc.onEnterFrame = function(){

 ph_mc._x -= (ph_mc._x + base)/20;

  }

}

 

ポイント:

左上を基準に設定して新規ムービークリップを作るph_mcにスクロール用に各ムービークリップ画像を並べる

コメントをお書きください

コメント: 2
  • #1

    Brion (月曜日, 23 7月 2012 04:44)

    I was looking for something similar, I am very grateful you have shared this subject

  • #2

    buytadalafilonline (水曜日, 07 11月 2012 04:28)

    I intended to draft you this bit of remark in order to say thank you once again for the pretty guidelines you've documented here. It is quite strangely open-handed of you to present unhampered precisely what a lot of people could have made available as an electronic book to generate some cash for themselves, and in particular now that you could have tried it if you decided. Those good tips likewise served as a good way to recognize that some people have a similar dream the same as my personal own to understand a whole lot more concerning this condition. I am sure there are lots of more fun periods ahead for many who take a look at your website.

▲このページのTOPへ