annoncé sur flexcoders http://tech.groups.yahoo.com/group/flexcoders/message/133047 ----- Lua Alchemy is a port of the Lua programming language for ActionScript using Alchemy. Using v0.1a inside Flash/Flex you can create any ActionScript class available at runtime, call functions, get/set properties on ActionScript objects and use Lua functions as an ActionScript function (including event listeners).
The project can be found here: http://code.google.com/p/lua-alchemy/ A demo can be found here: http://www.arcanearcade.com/Flex/LuaAlchemyDemoV.1a/index.html The next version will include syntax sugar so instead of calling as3.call(var, "function", param) you could call var.function(param) and similar calls to make calling ActionScript code look the same as calling Lua code. ----- on peut trouver plsu d'infos sur le wiki par ex: http://code.google.com/p/lua-alchemy/wiki/OnLuaAlchemy Lua est souvent utilisé pour scripter des jeux (en fait meme tres souvent...) ex de code Lua http://www.lua.org/manual/5.1/manual.html#2.6 ---- x = 10 -- global variable do -- new block local x = x -- new 'x', with value 10 print(x) --> 10 x = x+1 do -- another block local x = x+1 -- another 'x' print(x) --> 12 end print(x) --> 11 end print(x) --> 10 (the global one) ---- bref, voila bon example d utilisation de Alchemy :) zwetan --~--~---------~--~----~------------~-------~--~----~ Vous avez reçu ce message, car vous êtes abonné au groupe Groupe "FCNG" de Google Groupes. Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse [email protected] Pour résilier votre abonnement à ce groupe, envoyez un e-mail à l'adresse [email protected] Pour afficher d'autres options, visitez ce groupe à l'adresse http://groups.google.com/group/FCNG?hl=fr -~----------~----~----~----~------~----~------~--~---
