LANGREITER.COM plain, simple
      START     INDEX
 
flash-mx-notesVisualize Context (requires Java Plug-in)
CREATED BY chris • LAST EDITED BY chris 8241 days AGO
ActionScript in Flash MX is a highly dynamic language.

Nota bene: In ActionScript, functions are objects too and can have methods added to their prototype!



Undocumented Features
On Inheritance



f = function(a, b) {return a + b};
s = "f";
trace(eval(s).apply(null, [1, 2]));
>> 3
The first line creates and assigns a Function object. Function objects have the apply(obj, parArray) method.



NetConnection (used for Flash Remoting) is (?) an XMLSocket object.



chl, 2002-05-01: Even Smalltalkesque methodNotUnderstood-like functionality is there (__resolve is expected to "look up" or construct a fitting Function object and then return it, in this example, we just pass a statically defined function for every method call on our proxy):

FunctionProxy = function () {};
FunctionProxy.prototype.__resolve = function (methodName) {
trace("So you tried to execute: " + methodName);
return function () {
var s = 0;
for (x in arguments) {s += arguments[x]}
return s
}
}
fp = new FunctionProxy();
r = fp.sayNothingAtAll(10, 20, 30);
trace(r);
>> So you tried to execute: sayNothingAtAll
>> 60


  SEARCH

GET YOUR MOVE ON

  ALMOST ALL ABOUT YOU
So log in, fella — or finally get your langreiter.com account. You always wanted one.
Nearby in the temporal dimension:
Nobody.
... and 100 of the anonymous kind.
Click on Join us in the chatterbox dimension! for a moderate dose of lcom-talk. This will probably not work in Lynx and other browser exotica.


BACKLINKS
  Flash MX

RECENT EDITS (MORE)
  films-seen
  Blood Stone
  y!kes
  wet towel
  B Studio
  Pilcrow News
  Nastassja Kinski
  2011-10-06-steve
  2011-10-06
  comment-2011-08-04-1

POWERED BY
Special Entanglement Forces provided by Vanilla

&c.
GeoURL RSS 0.92

FRIENDLY SHOPS
Uncut Games bei Gameware

OFFEN!
Offenlegung gem. §25 MedienG:
Christian Langreiter, Langkampfen
See also: Privacy policy.



 
EDIT