View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide

asControlSpec not understood

a = MouseX.new(0, 1); //(in SC3)

ERROR:
Message 'asControlSpec' not understood.

RECEIVER:
   Integer 0
ARGS:
Instance of Array {    (08CBE6F0, gc=01, fmt=01, flg=11, set=00)
}
CALL STACK:
	Object::doesNotUnderstand
		arg this = 0
		arg selector = 'asControlSpec'
		arg args = [0]
	ExternalControlSource::spec_
		arg this = 
		arg argSpec = 0
	Meta_ExternalControlSource::new
		arg this = class MouseX
		arg spec = 0
	Meta_MouseX::new
		arg this = class MouseX
		arg spec = 0
	< closed FunctionDef >  (no arguments or variables)
	Interpreter::interpretCmdLine
		arg this = 
		var function = 
	Process::interpretCmdLine
		arg this = 



solution:
a = MouseX.new([0, 1]);
in SC3 there is a more open control model that allows to
implement different behaviour by defining a message 'asControlSpec'

Links to this Page