rgb luli

<img src=\"/wp-content/plugins/flqt/needplugin.gif\" height="31" alt="placeholder for flash movie" />

tessék draggelni. pl a 3 szint egymásra etc. fla itt, script itt :

import flash.display.BitmapData;
import flash.geom.Rectangle; //xywh
import flash.geom.Point;

// -----

var luli:BitmapData=BitmapData.loadBitmap("luli")

bits={red:1,green:2,blue:4}

c={}
c.red=new BitmapData(150,150,true,0xffff0000)
c.green=new BitmapData(150,150,true,0xff00ff00)
c.blue=new BitmapData(150,150,true,0xff0000ff)
for (var i in c) {
	var m=_root.createEmptyMovieClip(i.charAt(0),_root.getNextHighestDepth())
	m.attachBitmap(c[i],1)
	m.onPress=function(){
		this.swapDepths(_root.getNextHighestDepth())
		this.startDrag(false)
	}
	m.onRelease=function(){stopDrag()}
	c[i].copyChannel(luli, new Rectangle(0, 0, 150, 150), new Point(0, 0), bits[i],8);
	m.cacheAsBitmap=true
	m.blendMode="add"
}
g._x=150
b._x=300 </code>