tailieunhanh - Adobe Flash CS3: The Professional Portfolio- P49
Adobe Flash CS3: The Professional Portfolio- P49:Now you can easily create web-ready images and animations within the familiar Adobe environment. With the recent acquisition of Macromedia, Adobe has added Flash to its suite of creative products, thus solidifying its position as the world's leading developer of graphic and visual communications tools. The Against The Clock Portfolio Series Flash title ensures that you'll learn everything you need to complete any job that requires Flash skills | 1 2. Outside the closing bracket type .x . As we stated earlier you are writing this code to move one character to the left. By adding the x property including the required dot to the statement this statement now refers to the horizontal x position of the instance which is determined by the randomly generated variable. The x property determines an object s horizontal position across on the Stage. The y property determines the object s vertical position up or down on the Stage. To move something left on the Stage you have to subtract from the object s x position. 1 3. After the in the script pane type this char temp _mc Remember the right side of the statement is assigned to the left side of the statement. This line of code moves the selected character 50 pixels to the left from its previous position. vax Number r eir-P Ma th. random 4 temp this char -rtemp-r _rcc . xachis char teitp-j- _nz .x-5C 1 4. Select lines 3-6 in the script pane and then choose Edit Copy Command Control-C . var temp Number tersp-Math. random 4 temp Note The equals sign assignment operator assigns values from right to left and not vice-versa. Note Add to the x property to move an object to the right. Subtract from the x property to move an object to the left. Add to the y property to move an object down. Subtract from the y property to move an object up. 1 5. In the timeline add keyframes at Frames 36 48 60 72 84 and 96 of the Actions layer. a 5 10 15 20 25 X 35 40 45 50 55 60 65 70 75 80 85 90 95 100 105 110 115 tl Event H. __ -il Anions _ J__ 51 Fl 1 6. Select Frame 36 and paste the copied code into the script pane. You don t need to declare the variable every time you want to use it so you didn t need to copy line 1 of the script in Frame 24. When the main timeline reaches Frame 36 the temp variable gets a new value which maps to .
đang nạp các trang xem trước