vita_de Posted November 13, 2012 Share Posted November 13, 2012 Здравствуйте. Проблема с наследованием в классах Flash. Простой пример прилагается. Результаты во Flash и Unigine разные. вкратце: Проблема заключается в обращении из frame к функции (в примере Hide() ), которая имеет одинаковое имя во всех трех классах. Мы вызываем Hide() из FIRST, а срабатывает Hide из SECOND. Проблема исчезнет если убрать у классов наследников наследование от родителя "extends _main". Спасибо. ===================== translation from google ===================== Hello The problem with inheritance in classes Flash. A simple example is attached. Results in Flash and Unigine different. briefly: The problem is to use a function of the from frame (in the example Hide() ), which has the same name in all three classes. We call Hide() from FIRST, and works from Hide SECOND. The problem goes away if you remove the classes of heirs to inherit from parent "extends _main". Thank you. flash.rar Link to comment
frustum Posted November 14, 2012 Share Posted November 14, 2012 This problem had been fixed several weeks ago. This is a result from our engine build: Init Main Init First Init Main Init Second Hide First The SDK update will be available in several days. Link to comment
vita_de Posted November 14, 2012 Author Share Posted November 14, 2012 Thank =) We are waiting for the new version. Link to comment
Recommended Posts