![]() |
|
||||||||||
|
|||||
|
FD Team
|
В чем понт использования AddEventListener() в классе?
------------------------------------------------ class TestClass extends MovieClip{ function TestClass(){ trace("constructor"); } public function onRollOver(){ trace("rollover"); }; } или такой вариант --------------------------------------------- import mx.utils.Delegate; class TestClass extends MovieClip{ function TestClass(){ trace("constructor"); this.addEventListener("rollover",Delegate.create(this,onRoll)); } public function onRoll(){ trace("rollover"); }; } |
![]() |
Часовой пояс GMT +4, время: 23:20. |
|
|
« Предыдущая тема | Следующая тема » |
|
|