![]() |
Рисование через скрипт
Вложений: 1
=======================
Pencil Drawing Create 2 blank movie clips. Place first movieclip with instance name "code" on layer 1. Create a guide layer for this layer & draw the shape you want draw at runtime(eg. a letter R); create a new layer above the guide layer. Place the second movieclip onto this layer at the top left corner(0,0) of the stage & enter the following code for this movieclip. onClipEvent (load) { x1 = _parent.code._x;// x & y co-ordinate for the movieclip //code. y1 = _parent.code._y; this.moveTo(x1,y1); this.lineStyle(3, 0xee3355, 100);// defines the outline //thickness, color, &alpha } onClipEvent (enterFrame) { this.lineTo(_parent.code._x, _parent.code._y); } ========================= Чего-то не получается у меня сделать так как написано в этом примере... Может чего напутал, посмотрите плиз. |
чет не открывается у меня твой зип.
в коде все прально... но тока, ессно, при такой постанове хрень нарисуется один раз - бо нету клера... |
Вложений: 1
вот глянь
|
| Часовой пояс GMT +4, время: 07:41. |
Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.