[ANN] Lua Alchemy v0.2
От: Alexander Gladysh Россия  
Дата: 06.02.09 07:05
Оценка:
Мы с партнёром по проекту Робертом Штевином (Robert Stehwien) выпустили очередной релиз Lua Alchemy: 0.2!

http://code.google.com/p/lua-alchemy/

Демо лежит здесь:

http://lua-alchemy.googlecode.com/svn/trunk/demo/index.html

Основная фича нового релиза — введение синтаксического сахара:
-- Says hello to the name entered in the text box on a button click

-- Create the controls
local vbox = as3.class.mx.containers.VBox.new()
local label = as3.class.mx.controls.Label.new()
local input = as3.class.mx.controls.TextInput.new()
local button = as3.class.mx.controls.Button.new()

label.text = "Name:"
button.label = "Say Hello"

-- Add a button listener to pop up an alert saying hello
button.addEventListener(as3.class.flash.events.MouseEvent.CLICK,
  function (e)
      as3.class.mx.controls.Alert.show("Hello " .. as3.tolua(input.text), as3.type(e))
  end, false, 0, true) -- set useWeakReference=true so listener doesn't keep button reference

-- Add all the controls to the canvas in a VBox
vbox.addChild(label)
vbox.addChild(input)
vbox.addChild(button)

canvas.addChild(vbox)


Код остальных примеров можно посмотреть здесь:

http://github.com/lua-alchemy/lua-alchemy/tree/v0.2/demo/LuaAlchemyDemo/assets

Полный список изменений довольно большой, поэтом приводить не буду. Читайте здесь:

http://github.com/lua-alchemy/lua-alchemy/raw/v0.2/HISTORY

Выношу от лица разработчиков проекта благодарность коллеге Efir'у за помощь с узкими местами Флеша.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.