Показать сообщение отдельно
Старый 16.04.2007, 20:21
ARTur2 вне форума Посмотреть профиль Отправить личное сообщение для ARTur2 Найти все сообщения от ARTur2
  № 22  
Ответить с цитированием
ARTur2

Регистрация: Sep 2005
Адрес: Литва
Сообщений: 195
Вроде бы разобрался и в свой код:
Код:
 public function Navigator() {
          this.onLoad = function() {
               this.createEmptyMovieClip("picture", this.getNextHighestDepth());
               this.createEmptyMovieClip("viewArea", this.getNextHighestDepth()).createEmptyMovieClip("mask", this.getNextHighestDepth());
               this.createEmptyMovieClip("redRect", this.getNextHighestDepth());
               this.createEmptyMovieClip("clickArea", this.getNextHighestDepth());
               this.picture.attachMovie(this.mc, "my_mc", this.getNextHighestDepth());
               this.viewArea.attachMovie(this.mc, "my_mc", this.getNextHighestDepth());
добавил следущее:
Код:
public function Navigator() {
          var my_mc:MovieClip;          this.onLoad = function() {
               this.createEmptyMovieClip("picture", this.getNextHighestDepth());
               this.createEmptyMovieClip("viewArea", this.getNextHighestDepth()).createEmptyMovieClip("mask", this.getNextHighestDepth());
               this.createEmptyMovieClip("redRect", this.getNextHighestDepth());
               this.createEmptyMovieClip("clickArea", this.getNextHighestDepth());
               this.picture.attachMovie(this.mc, "my_mc", this.getNextHighestDepth());
               this.viewArea.attachMovie(this.mc, "my_mc", this.getNextHighestDepth());
			   my_mc.cacheAsBitmap = !my_mc.cacheAsBitmap;               this.viewArea.setMask(this.mask);
но по-моему ничего не изменилось... тормозов меньше не стало... Может я что-то не правильно делаю?

по поводу примера он у меня тут лежит : boot drive\Program Files\Macromedia\Flash 8\Samples and Tutorials\Samples\ActionScript\CacheBitmap.


Последний раз редактировалось etc; 16.04.2007 в 20:26.