Cascading Style Sheets Tutorial

BOSS Guide produced detailed explanation of the source code code

  See first title: 

  Click here to download the original document 

  Good,,,, written for the first time this NEE ~ ~ tense psychological well-dug “ “ 

  FLASH you a lot of aircraft games, but really, as "Smart-touch" did very little integrity, and most of them are not the BOSS, but in a frame cycle in the aircraft and, naturally lower interest a lot of … 

  Recently FLASH8 Guide little new game section, I also write a handbook, is the view of a game FLASH8 return :-) 

  Here, I do BOSS talk about the production of ideas, the other protagonists ah, the enemy (Xiaobing), not including its, and, in this regard FLASH8 Guide should be a lot, we can find some 

  Well, not that nonsense, and, all in all, and my method is not the best, but I hope that can give some encouragement and confidence Rookie (including me), make their own elephant "Smart Collision - "the same game to :-) 

  Click to download the source files 

  Good,,,, written for the first time this NEE ~ ~ tense psychological well-dug “ “ 

  FLASH you a lot of aircraft games, but really, as "Smart-touch" did very little integrity, and most of them are not the BOSS, but in a frame cycle in the aircraft and, naturally lower interest a lot of … 

  Recently FLASH8 Guide little new game section, I also write a handbook, is the view of a game FLASH8 return :-) 

  Here, I do BOSS talk about the production of ideas, the other protagonists ah, the enemy (Xiaobing), not including its, and, in this regard FLASH8 Guide should be a lot, we can find some 

  Well, not that nonsense, and, all in all, and my method is not the best, but I hope that can give some encouragement and confidence Rookie (including me), make their own elephant "Smart Collision - "the same game to :-) 

  Principle is simple: 
  BOSS is an independent, he was a single MC, and there are a lot of the MC-ching, each Lo was one of its "act", such as: the protagonist mobile Rafah,,,, mad bullets pull the ultra-infamous attack …. …. pull their death animation pulled, and then the MC the first Zhen, is a random function, the MC Random go BOSS inside a Guozhen, and then BOSS will respond to the acts, how kind? is not very simple? then open your FLASH 2004, the official beginning of the production of bar, huh 

  1: MC arena layout: 

  Scenes of a total of the two main MC,,,, the BOSS is a bullet, in the name bosszd scenes inside, and the other one is the BOSS Rafah, naturally,,,, the scene inside it called the name of it BOSS! 

  2: The outer BOSS events processors: the code below: 

  OnClipEvent (load) ( 
  This._alpha = 0; / / just out for the transparency of 0, to let it have a smooth out the effect of 
  ) 
  ) 
  OnClipEvent (enterFrame) ( 
  If (this._alpha <100) (/ / that is, the above-mentioned Latin America, and the initialization of BOSS ALPHA 0, when it is less than 100, let him from the right (Scene, ) flying in, and until the time ALPHA 100 on the suspension down 
  This._x -= 9; 
  This._alpha = 5; 
  ) 
  If (this._x <= 354) ( 
  This._x; 
  ) 
  If (this._x> = 495) ( 
  This._x–; 
  ) / / / BOSS these two restrictions is to allow movement in the right scene, if it went to the left side of the table games are live on the O :-)  
  ) 

  3. Random motion to bar! BOSS! 
  Double-click access to the MC BOSS, the first Zhen code: 

  OnClipEvent (load) ( 
  This._alpha = 0; / / just out for the transparency of 0, to let it have a smooth out the effect of 
  ) 
  ) 
  OnClipEvent (enterFrame) ( 
  If (this._alpha <100) (/ / that is, the above-mentioned Latin America, and the initialization of BOSS ALPHA 0, when it is less than 100, let him from the right (Scene, ) flying in, and until the time ALPHA 100 on the suspension down 
  This._x -= 9; 
  This._alpha = 5; 
  ) 
  If (this._x <= 354) ( 
  This._x; 
  ) 
  If (this._x> = 495) ( 
  This._x–; 
  ) / / / BOSS these two restrictions is to allow movement in the right scene, if it went to the left side of the table games are live on the O :-) 
  ) 

  3. Random motion to bar! BOSS! 
  Double-click access to the MC BOSS, the first Zhen code: 

  OnClipEvent (load) ( 
  This._alpha = 0; / / just out for the transparency of 0, to let it have a smooth out the effect of 
  ) 
  ) 
  OnClipEvent (enterFrame) ( 
  If (this._alpha <100) (/ / that is, the above-mentioned Latin America, and the initialization of BOSS ALPHA 0, when it is less than 100, let him from the right (Scene, ) flying in, and until the time ALPHA 100 on the suspension down 
  This._x -= 9; 
  This._alpha = 5; 
  ) 
  If (this._x <= 354) ( 
  This._x; 
  ) 
  If (this._x> = 495) ( 
  This._x–; 
  ) / / / BOSS these two restrictions is to allow movement in the right scene, if it went to the left side of the table games are live on the O :-) 
  ) 

  3. Random motion to bar! BOSS! 
  Double-click access to the MC BOSS, the first Zhen code: 

  OnClipEvent (load) ( 
  This._alpha = 0; / / just out for the transparency of 0, to let it have a smooth out the effect of 
  ) 
  ) 
  OnClipEvent (enterFrame) ( 
  If (this._alpha <100) (/ / that is, the above-mentioned Latin America, and the initialization of BOSS ALPHA 0, when it is less than 100, let him from the right (Scene, ) flying in, and until the time ALPHA 100 on the suspension down 
  This._x -= 9; 
  This._alpha = 5; 
  ) 
  If (this._x <= 354) ( 
  This._x; 
  ) 
  If (this._x> = 495) ( 
  This._x–; 
  ) / / / BOSS these two restrictions is to allow movement in the right scene, if it went to the left side of the table games are live on the O :-) 
  ) 

  3. Random motion to bar! BOSS! 
  Double-click access to the MC BOSS, the first Zhen code: 

  Stop (); 
  A = random (8) 2; 
  GotoAndStop (a); 
  / / Is mainly made of a random number, and then Jump to the Guozhen, and thus the random acts of the different BOSS 

  Rafah has finally started firing bullets! No. 2 Zhen code: 
  To image, in this Guozhen, BOSS is not a static picture, and why? Fired bullets in it! 
  I have a very simple animation MC small circle to the bullets that he fired bullets MC this event handling functions are as follows: 

  OnClipEvent (load) ( 
  Count = 0; / / initialize a timer act continues, we call this action to control the current (fired bullets action) the duration of 
  Time = 0; / / initialization bullets interval timer, 
  ) 
  OnClipEvent (enterFrame) ( 
  If (_root.plane._y <= 110) ( 
  _root.boss._y = 3; 
  ) / / Let BOSS fired bullets in the same time, conduct a Y direction of the movement, so that it is not dull 
  Time; 
  Count; / / Since it is a timer, of course, he is constantly increasing since the Rafah simulated the passage of time … 
  If (time> = 5) ( 
  DuplicateMovieClip (_root.bosszd, "bosszd" count, count 11100); 
  Time = 0; / / When the bullets interval timer to 5, he immediately-0, to the cycle of reproduction bullets 
  ) 
  If (count> = 25) ( 
  _root.boss.gotoAndPlay (1); 
  ) / / Timer sustained more than 25 acts of the time, so he went to the first-zhen, for the next call random acts 
  ) 

  On the bullets, it is completely independent and BOSS, and he has his own way, he is fixed, the code as follows: 

  OnClipEvent (load) ( 
  If (String (_name)! = "Bosszd") ( 
  This._x = _parent.boss._x-104; 
  _parent.boss._y This._y = 160; 
  ) 
  / / This is the initialization two bullets emerging position, and his position adjustment, I This is the BOSS out of the muzzle, if you like can be the X, Y points to a large, and let it out from the bottoms can be BOSS 
  ) 
  OnClipEvent (enterFrame) ( 
  If (String (_name)! = "Bosszd") ( 
  / / If this is not the name of examples BOSSZD, on the implementation of the function inside the fact MC is not enforced code, to make it clearer, it is only a confused version, with the BOSS to copy, reproduce out BOSSZD name is "bullet Register", 
  This._x -= 10; / / BOSS bullets Path movement, both: right to left movement 
  If (this._x <= 0) ( 
  RemoveMovieClip (this); / / If bullets beyond screen, removed … 
  ) 
  ) 
  ) 

  Well, this is just a one acts, the other as long as it is fired bullets, and production ideas are the same, and, the other fired bullets on the other acts will be able to achieve the above-zhen random launch different types of bullets, and, for example, widening divergence bombs, and bullets of cotton open the Rafah “ “ super pulled, TU? the super? Well Below I describe it under this act 

  4. Quickly the super-infamous bar! Called BOSS or you do not deserve this name! 

  This looks very difficult, in fact if you read the above Dongdong, I do not have to say that you should be able to think of how to do that … 
  I am not wordy, and it also gives Bozhuan,,,, on the simple idea I do this BOSS When will the large body of a bright, and the images flash, and then a laser shoot, and all this is only an MC, I think we all know how to do this the animation, and, not to mention everyone can design their favorite BOSS when the super moves, I will not make such doors Axe Rafah :-) 

  Attention should be paid to that place: the injection laser is used in the process of doing an animation deformation, and is also a laser bullets 

  So he wanted to collision detection and player, and, so, it is necessary to add this laser 

  If (this.hitTest (_root. protagonist) (_ root. Protagonist. Endlife ()}// if shot in the protagonist, the protagonist on the link 

  5, prompted, and design your own BOSS!! 

  Although I am here to talk about the BOSS of the two movements, but should be extended action, it is not difficult, simply because that is more in the frame, and, in these new added-Zhen again expounded on the BOSS acts, For instance, and, three bombs widening divergence …. Section 4 of the first flowering bombs …. 5 BOSS suddenly suicide try to do the protagonists collision Rafah,,,, more Reference Series Psikyo it. … 
  In the final one general with the death of BOSS animation, to its HP = 0 on the Skip to this Zhen, .. 

  6. End … 

  Here so far, almost all the key areas described in the end, and I spent nearly two hours time, Khan …. 
  In short, I hope you will have read this post-harvest, and create their own favorite to BOSS! 

  Click the document 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • DotNetKicks
  • DZone

Tags: css code, css code generator, css color code, xhtml elements xhtml source

Releated Posts

  • Use CSS + JavaScript can drag the window to achieve the source code (recommended)
  • Ajax on a framework (AjaxFeeling provide the framework source code)
  • News: Ajax.NET Professional writers have released the latest version of source code!
  • AS code 2.0: new language elements
  • Show how to prevent ASV source code

This entry was posted on Sunday, September 30th, 2007 at 12:00 am and is filed under CSS Tutorial By Examples. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

« Louver effects animation, Flash production methods without AS
Flash production of rolling buffer zone »

Leave a Reply

  • Categories

    • CSS Properties (491)
    • CSS Tutorial (1154)
    • CSS Tutorial By Examples (1201)
    • Css+Div Web Design (3274)
    • Xhtml and Web Design (1797)
  • Archives

    • February 2008
    • January 2008
    • December 2007
    • November 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • April 2007
    • March 2007
    • February 2007
    • January 2007
  • Pages

    • About us

Cascading Style Sheets Tutorial