Luoluo sparkling Mantianxing: follow the classic Flash cursor effect

Related Tags:

  Follow the so-called cursor effect, means that the website, the cursor around some lovely small NEE around, they flying the cursor to move to where they follow wherever.    Flash follow the cursor is actually an "ancient" topic, but for beginners, still fresh interesting.    Now, please join me in making a simple animated cursor follow it as a basis, we can create cool effects. 

  Results are as follows: 



pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'


type='application/x-shockwave-flash' width=550 height=400>

  Click here to download the source files 

  Step 1: First of all downloaded from the Internet a beautiful stars twinkling GIF animation, 

Luoluo sparkling Mantianxing: follow the classic Flash cursor effect

  Star.gif 

  ImageReady course can also like to produce their own software in a very simple (see Figure 1). 

Luoluo sparkling Mantianxing: follow the classic Flash cursor effect

  Step 2: Start Chinese version of Flash MX 2004 (hereinafter referred to Flash), the implementation of the "new document →" order a new Flash document, and then the implementation of the "revised → Document" command to open the file properties dialog box, set the Background Color Black, click "OK" button to return. 

  Step 3: implementation of the "Insert → new components" command (Ctrl + Shortcuts to F8) to open the dialog box to create new components, the name is set to "star" acts set to "movie clip", click "OK" and entered the movie clip editing window.    After the implementation of "document → → into the arena into" orders, in the resulting dialog box to find the first step in preparing good star.gif documents and come into (see figure 2). 

Luoluo sparkling Mantianxing: follow the classic Flash cursor effect

  Step 4: repeating the "Insert → new components" orders, in the creation of new components open dialog box, the name is set to "stars", behaviour is set to "movie clip", click "OK" button to enter the film Corporate edit window.    Right click on the layer 1 Timelines section 25, select "Insert frame" command, and then click the timeline for the lower-left corner of the "Insert layer" button increase in five layers.    The implementation of "window → the" order (shortcut Ctrl + L) to open the panel, click a layer in a section from the front panel will produce the "stars" video clips into central to the stage.    Then right-click the layer 2 of 5, select "Insert key frame" command, will be the same again "stars" video clips dragged arena, and its location can be a layer in the video clip is staggering.    And so on the first three layers eight, and four layers of 12, 5 of the first layer 20 is the key frame and the establishment of a "star" video clips into the arena, and to make them location varies.    Their purpose in doing so is to enable the stars twinkling in the time, location, Culaoweizhi order to ultimately screen some more lively, as shown in Figure 3.    Of course, you can also set up their own video clips arbitrary wishes of the location, number, start and end frames frame.    At the same time can tune into the "stars" video clip size, and so on, finally click on the upper left of the Timeline "Scene 1" button to return to the scene edit mode. 

Luoluo sparkling Mantianxing: follow the classic Flash cursor effect

  Step 5: In the main scene, click a layer of one, and then just establish good "stars" video clips from the panel until arena to ensure that dragged into the "stars" film clips for selected state, the stage started at the Bottom of the attributes panels, and click the "Case name" text box, for the example of a name change, called stars, shown in Figure 4.    Take a name as an example, we can ActionScript ActionScript call it. 

Luoluo sparkling Mantianxing: follow the classic Flash cursor effect

  Step 6: Click the layer 1 of 1, and then click start the bottom of the "moves - frame" panel, in the right input line editing area code ActionScript action: 

  StartDrag (the "stars", true); 

  At this point press Ctrl + Enter key test videos, we will find that there are many small flash flash stars, but also has to do with the cursor movement, how kind, it is a sense of achievement.    If satisfied with the results, press Ctrl + S bond save the animation source files, to the implementation of "document → derived → derived film" orders can be exported to SWF animation.    (See Network large subsidies 52) 

  Tips 

  StartDrag format is the syntax: startDrag (objective, fixed, l, t, r, b).    The "target" is that we set up to follow the cursor moving video clips; "fixed" means Lock mouse to center, or video clips whether the cursor lock center, and its value are the two true or false; l, t, r, b Video editing is limited within a rectangle, said they were left, right, the next. 

Related articles:

ColdFusionMX technical courses Phase III
  Has been for some time, because is a business trip, a meeting is there has been no time to write, time to spare last night finally to the third lesson finished Before the Spring Festival, the goal is finished fourth lesson.    I will put all the courses are in a Breeze Live Meeting,...
Today changed the CSS, to hbzxf (A good) learning!
  Today, I use his picture in their own BLOG come!    Good!    :: Quoted as follows::    -------------------------------------------------- --------------------------    Efficient techniques CSDNBLOG breathtaking finale    Hbzxf (A good)&n...
PS FLASH produced mosaic effect
  It still can be effective. Some trouble, but the production is very simple (and not a long time to write a guide, this disease seems to have language), as usual, look at the effect of satisfaction to see, then it  <embed src=’http://bbs.flash8.net/bbs/UploadFile/2005-7/200571735813258.sw...
CSS logo effect of the current page position Principle
  CSS logo effect of the current page position Principle    Current page - for instance, the page is now Home, in the navigation bar at the Home and the color is different from other columns to give visitors a clear instructions.    Below is a specific approach to achieve ...
Use HTML small Experience
  Using HTML (HyperText Markup Language, hyperlinks Markup Language) Web pages prepared by the language, because of the use of HTML Web browser support varying degrees, often in the HTML language used in a number of questions.    Here, I will learn and practice was dedicated to the e...