Solved - found the PixelBender SDK - have to compile the .pbk into a .pbj not just rename the .pbk to .pbj :-). Flex 4 is getting pretty interesting!
Mic. --- In flexcoders@yahoogroups.com, "Mic" <chigwel...@...> wrote: > > [Better place for this?] Getting a constant ArgumentError: Error > #2004: One of the parameters is invalid message. > > [Embed(source="assets/BrightnessThreshold.pbj")] > public var ThresholdShader:Class; > public var brightnessShader:Shader = new Shader(); > > brightnessShader.byteCode = new ThresholdShader(); //ERROR > brightnessShader.data.threshold.value = [0.75]; > > in .pbj: > > parameter float threshold > < > minValue: float(0.0); > maxValue: float(1.0); > defaultValue: float(0.5); > >; > > In following multiple examples, it seemes that the > > brightnessShader.byteCode = new ThresholdShader(); > > syntax is correct - passing a 0.75 param to it gives a > > Argument count mismatch on Flex4Project6_ThresholdShader(). Expected > 0, got 1. > > message. I get this on any .pbj file I use, thinking it is something > basic. TIA, > > Mic. >