AS Learning: On load external images cycle rolling seamless connectivity

Related Tags:

  _global.i = 5; / / Number of external picture 
  X = 500; / / external picture Width of the same picture size. 
  _global.leng = I * x; 
  _root.createEmptyMovieClip ( "Xtszlsp123", 0); 
  _roob.xtszlsp123._x = 0; 
  _root.xtszlsp123.createEmptyMovieClip ( "B", 1); 
  _root.xtszlsp123.createEmptyMovieClip ( "Bb", 2); 
  For (j = 1; j <= i; j) ( 
  _root.xtszlsp123.b.createEmptyMovieClip ( "Mc" j, j); 
  _root.xtszlsp123.b [ "Mc" j]. LoadMovie ( "00" j. "JPG"); 
  _root.xtszlsp123.b [ "Mc" j]. _x = (J-1) * x; 
  ) 
  For (k = 1; k <= i; k) ( 
  V = k Number (i) 
  _root.xtszlsp123.bb.createEmptyMovieClip ( "Mc" v, v); 
  _root.xtszlsp123.bb [ "Mc" v]. LoadMovie ( "00" k. "");// I JPG picture format 001. JPG - 005.JPG 
  _root.xtszlsp123.bb [ "Mc" v]. _x = (V-1) * x; 
  ) 
  _root.xtszlsp123.onEnterFrame = Function () ( 
  _root.xtszlsp123._x -= 10; / / picture the speed of the shift to the left. 
  If ((-_root.xtszlsp123._x)> = leng) ( 
  _root.xtszlsp123._x Leng =; 
  ) 
  ) 

  In fact, to achieve the above loading external picture when it is rolling cycle shortcomings: 

AS Learning: On load external images cycle rolling seamless connectivity


  We found that after loading the picture is not part of significance: the first five Figure picture. 


  _global.i = 5; / / Number of external picture 
  X = 500; / / external picture width, according to the picture you want to load size settings, but the same picture size. 
  _global.leng = I * x; 
  _root.createEmptyMovieClip ( "Xtszlsp123", 0); 
  _roob.xtszlsp123._x = 0; 
  _root.xtszlsp123.createEmptyMovieClip ( "B", 1); 
  _root.xtszlsp123.createEmptyMovieClip ( "Bb", 2); 

  For (j = 1; j <= i; j) ( 
  _root.xtszlsp123.b.createEmptyMovieClip ( "Mc" j, j); 
  _root.xtszlsp123.b [ "Mc" j]. LoadMovie ( "00" j. "JPG"); 
  _root.xtszlsp123.b [ "Mc" j]. _x = (J-1) * x; 
  ) 
  J = int (Stage.width/500) 1; / / from the stage and the width of the picture width ratio, if the width of the stage between 1-2 between the size of images, J = 2, and so on. They only a temporary replacement role.    Loading behind the picture, it is not necessary loaded. 
  For (k = 1; k <= j, k) ( 
  V = k Number (i) 
  _root.xtszlsp123.bb.createEmptyMovieClip ( "Mc" v, v); 
  _root.xtszlsp123.bb [ "Mc" v]. LoadMovie ( "00" k. "");// I JPG picture format 001. JPG - 005.JPG 
  _root.xtszlsp123.bb [ "Mc" v]. _x = (V-1) * x; 
  ) 
  _root.xtszlsp123.onEnterFrame = Function () ( 
  _root.xtszlsp123._x -= 10; / / picture the speed of the shift to the left. 
  If ((-_root.xtszlsp123._x)> = leng) ( 
  _root.xtszlsp123._x Leng =; 
  ) 
  If the picture by adding mobile direction, the pace changed with the mouse: 
  _global.i = 4; / / Number of external picture 
  X = 800; / / external picture width of the same picture size. 
  _global.leng = I * x; 
  _root.createEmptyMovieClip ( "Xtszlsp123", 0); 
  _root.xtszlsp123._x =- _global.leng; 
  Trace (_root.xtszlsp123._x) 
  _root.xtszlsp123.createEmptyMovieClip ( "B", 1); 
  _root.xtszlsp123.createEmptyMovieClip ( "Bb", 2); 

  For (j = 1; j <= i; j) ( 
  _root.xtszlsp123.b.createEmptyMovieClip ( "Mc" j, j); 
  _root.xtszlsp123.b [ "Mc" j]. LoadMovie ( "00" j. "JPG"); 
  _root.xtszlsp123.b [ "Mc" j]. _x = (J-1) * x; 
  Var tu_width = _root.xtszlsp123.b.mc1._width 
  ) 
  J = int (Stage.width/800) 1 
  For (k = 1; k <= j, k) ( 
  V = k Number (i) 
  _root.xtszlsp123.bb.createEmptyMovieClip ( "Mc" v, v); 
  _root.xtszlsp123.bb [ "Mc" v]. LoadMovie ( "00" k. "");// I JPG picture format 001. JPG - 005.JPG 
  _root.xtszlsp123.bb [ "Mc" v]. _x = (V-1) * x; 
  ) 
  _root.xtszlsp123.onEnterFrame = Function () ( 
  H = Stage.width/2-_xmouse; 
  _root.xtszlsp123._x -= H/10; / / picture of the mobile speed, because too joined the 10 
  If ((-_root.xtszlsp123._x)> = leng) ( 
  _root.xtszlsp123._x Leng =; 
  ) 
  If ((_root.xtszlsp123._x)> = 0) ( 
  _root.xtszlsp123._x -= Leng; 
  ) 

  ) 

Related articles:

Open a page in accordance with the designated URL directly Jump to a new page
  To open a page in accordance with the designated URL directly Jump to a new page, can be directly In "body> tag, joined onLoad attributes, we can conveniently directly in the framework of the objectives of Jump to open the URL.    Examples of this are all the documents inde...
Study: Web traffic increased experience
  On the personal homepage of the visit, the Internet has been one of the most popular topic, and is also the most difficult to know one.    If you have a personal Web site is complete, so no matter how perfect, not to improve on the promotion of visits, at best, but only to their ow...
How to use your promotional advertising exchange website
  Many users may be completed after all Home logged into some search engines, but because your URL is often hidden in the N-layer Categories, it is not very good advertising effect.    Home now out of the picture has a great attraction, most of these advertisements picture designed a...
Flash AS snow animation production
  Use pure Flash Actionscript achieved snow animation effects.    Effect Demo:  <embed src=http://www.webjx.com/upfiles/20070422/20070422092451_webjx_com_070422.swf pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type...
Making spring oscillation damping effect
  Examples of the results are as follows spring, and then drag the ball, release the mouse, the ball movement will be from top to bottom, the same effect with the spring.  <embed src=http://www.webjx.com/img2/flashs0412167.swf pluginspage='http://www.macromedia.com/shockwave/download/i...