title: Blending objects with eachother but not with background actionscript 3
body: <p>I have a number of objects (represented as DisplayObjects) that i wish to blend with eachother.</p>
  
  <p>However behind these objects there is a background that i do not want to involve in the blending.</p>
  
  <p>So basically i want to blend these objects with eachother and afterwards use the result of this blending as a new DisplayObject (for example to put it on top of a randomly colored background).</p>
  
  <p>So what i have is:</p>
  
  <pre><code>var obj1:DisplayObject = getFirstObj();
  var obj2:DisplayObject = getSecObj();
  var background:DisplayObject = getBackground();
  
  obj1.blendMode = BlendMode.ADD;
  obj2.blendMode = BlendMode.ADD;
  </code></pre>
  
  <p>A first attempt i tried was putting these objects into a common DisplayObjectContainer hoping that blending mode would only be relative to all objects contained by the same DisplayObjectContainer, but this does not seem to be the case.</p>
  
  <pre><code>var objectsPool:Sprite = new Sprite();
  objectsPool.addChild( obj1 );
  objectsPool.addChild( obj2 );
  
  addChild( background );
  addchild( objectsPool );
  </code></pre>
  
  <p>So that diddent get me anywhere.
  Any help is appreciated.</p>
  
  <p>EDIT: changed DisplayObjectContainer to Sprite in the last code snippet</p>