package com.oscars {
import flash.filters.ColorMatrixFilter;
import fl.motion.AdjustColor;
import flash.events.Event;
private var color : AdjustColor;
private var colorMatrix : ColorMatrixFilter;
private var matrix : Array;
private var filterBW : Array;
//
public var georgeValentin:Actor;
public var peppyMiller:Actoress;
public var uggie:Dog;
//
public class TheArtist extends blackAndWhiteSilentMovie {
public function TheArtist(){
color = new AdjustColor();
color.brightness = color.contrast = 20;
color.hue = 0;
color.saturation = -100;
matrix = color.CalculateFinalFlatArray();
colorMatrix = new ColorMatrixFilter(matrix);
filterBW = [colorMatrix];
stage.filters = filterBW;
stage.frameRate = 16;
addEventListener(Event.ADDED_TO_STAGE,andAction,false,0,true);
}
public function andAction(e:Event):void
{
georgeValentin = new Actor();
peppyMiller = new Actress();
uggie = new Dog();
georgeValentin.voiceVolume = peppyMiller.voiceVolume = uggie.voiceVolume = 0;
}
}
}
import flash.filters.ColorMatrixFilter;
import fl.motion.AdjustColor;
import flash.events.Event;
private var color : AdjustColor;
private var colorMatrix : ColorMatrixFilter;
private var matrix : Array;
private var filterBW : Array;
//
public var georgeValentin:Actor;
public var peppyMiller:Actoress;
public var uggie:Dog;
//
public class TheArtist extends blackAndWhiteSilentMovie {
public function TheArtist(){
color = new AdjustColor();
color.brightness = color.contrast = 20;
color.hue = 0;
color.saturation = -100;
matrix = color.CalculateFinalFlatArray();
colorMatrix = new ColorMatrixFilter(matrix);
filterBW = [colorMatrix];
stage.filters = filterBW;
stage.frameRate = 16;
addEventListener(Event.ADDED_TO_STAGE,andAction,false,0,true);
}
public function andAction(e:Event):void
{
georgeValentin = new Actor();
peppyMiller = new Actress();
uggie = new Dog();
georgeValentin.voiceVolume = peppyMiller.voiceVolume = uggie.voiceVolume = 0;
}
}
}