Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   ActionScript 3.0 (http://www.flasher.ru/forum/forumdisplay.php?f=83)
-   -   FLASM и одна ф-ция. Помогите! (http://www.flasher.ru/forum/showthread.php?t=142580)

dmx102 25.07.2010 15:15

FLASM и одна ф-ция. Помогите!
 
Декомпилировал код, но до конца не понятно, что делает по действиям ф-ция:

Код:

function getXXX ()
      push r:1, r:2, r:3
      push 'trans', 0.0
      setVariable
      push 'now', 0.0, 'Date'
      new
      setVariable
      push 0.0, 'now'
      getVariable
      push 'getFullYear'
      callMethod
      setRegister r:3
      pop
      push 0.0, 'now'
      getVariable
      push 'getMonth'
      callMethod
      setRegister r:2
      pop
      push 'ddate', 0.0, 'now'
      getVariable
      push 'getDate'
      callMethod
      varEquals
      push 'hour', 0.0, 'now'
      getVariable
      push 'getHours'
      callMethod
      varEquals
      push 'minute', 0.0, 'now'
      getVariable
      push 'getMinutes'
      callMethod
      varEquals
      push 'second', 0.0, 'now'
      getVariable
      push 'getSeconds'
      callMethod
      varEquals
      push 0.0, 'now'
      getVariable
      push 'getMilliseconds'
      callMethod
      setRegister r:1
      pop
      push 'transNumber', r:1, 'second'
      getVariable
      push 'minute'
      getVariable
      push 'hour'
      getVariable
      push 'ddate'
      getVariable
      push r:2, r:3, 7, 'Date'
      getVariable
      push 'UTC'
      callMethod
      setVariable
      push 'trans', 11, -12, 2, 0.0, 'transNumber'
      getVariable
      push 'toString'
      callMethod
      push 'substr'
      callMethod
      setVariable
      push 'trans'
      getVariable
      branch label1286
      push UNDEF
    label1286:
      setRegister r:0
      pop
      setRegister r:3
      pop
      setRegister r:2
      pop
      setRegister r:1
      pop
      push r:0
      return
    end // of function getXXX

Знающие люди, помогите пожалуйста

t4arty 25.07.2010 17:02

думаем своим умом и больше не дебагим ;(

zurkis 25.07.2010 17:26

правила, пункт 3


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

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