Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   ActionScript 1.0/2.0 (http://www.flasher.ru/forum/forumdisplay.php?f=93)
-   -   setPixel in class (http://www.flasher.ru/forum/showthread.php?t=101661)

Mr. Fixit 25.09.2007 15:42

setPixel in class
 
Код:

import flash.display.BitmapData;

class Pixel {

        private var bitmap:BitmapData;

        public function Pixel (__bitmap:BitmapData) {
                this.bitmap = __bitmap;
                process ();
        }
        private function process () {
                bitmap.setPixel (10,10,0xFFFFFF);                       
        }
}

а как сделать, что бы не юзать this?
и не передавать параметр в process ()...

iNils 25.09.2007 18:52

this не писать, он там не нужен, а параметры в process не передаются, так в чем вопрос?


Часовой пояс GMT +4, время: 20:22.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.