SoFunction
Updated on 2025-04-11

Very good Flash speed advertising navigation

Very good Flash speed advertising navigation
Today I sorted out the computer and saw this effect, and I practiced it again
Let's see the effect first:
Create a new flash name casually, size 588*350 :

1. Import the picture you want to put into the library.
2. Create a new mc name with mc1, drag the picture just now, align it on top and align it on left.
3. Create a new mc name as color. Use the rectangle tool to drag a color bar width of 20 and height of 350, and then go back to mc1 to create a new layer. Drag the color in and align it with the left and top.
4. Create a new layer and write the text to be displayed on mc1.
5. Create a new layer on mc1 and add a 20*350 button, the instance name is btn.
6. Repeat the above steps to create 5 mcs, with the names mc1-mc5 respectively.
As shown in the picture:
 
7. Create a new mc. Create 5 new layers. Drag m1-m5 into the previous layer. The instance names are m0-m5 respectively.
8. Write on the first frame:

for (i=0; i<5; i++) {
 this["m"+i]._x = _root.my_qlX0[i];
 var btnNum = this["m"+i].btn;
  = i;
  = function() {
  this._parent._parent.(0.200000, _root["my_qlX"+][1]);
  this._parent._parent.(0.200000, _root["my_qlX"+][2]);
  this._parent._parent.(0.200000, _root["my_qlX"+][3]);
  this._parent._parent.(0.200000, _root["my_qlX"+][4]);
 };
}

9, then drag this mc into the scene and write it on the first frame:
= function(sp, tx) {
this._x = this._x+sp*(tx-this._x);//Slow
};
= function(sp, sx) {
  = 0;
  = function() {
  if (<30) {
   (sp, sx);
  } else {
   delete onEnterFrame;
  }
  ++;
 };
};
//Coordinate control
my_qlX0 = [0, 500,522,544,566];//[m1 start position, m2 at the right position, m3 at the right position]
my_qlX1 = [0, 22,522,544,566];//When m2 slides to the position of each m on the left
my_qlX2 = [0, 22,44,544,566];//When m2,m3 slides to the left and the position of each m
my_qlX3 = [0, 22,44,66,566];//When m2, m3, m4 slide to the left and the position of each m
my_qlX4 = [0, 22,44,66,88];//When m2,m3,m4,m5 slides to the left and the position of each m

10. Ctrl+Enter test video.