Merge branch 'fix-stage-sprite-clicked'

Conflicts:
	src/blocks/Block.as
This commit is contained in:
Nathan Dinsmore 2014-06-24 14:09:05 -04:00
commit 293b1560b0

View file

@ -473,6 +473,7 @@ public class Block extends Sprite {
public function duplicate(forClone:Boolean, forStage:Boolean = false):Block {
var newSpec:String = spec;
if (forStage && op == 'whenClicked') newSpec = 'when Stage clicked';
if (!forStage && op == 'whenClicked') newSpec = 'when this sprite clicked';
var dup:Block = new Block(newSpec, type, (int)(forClone ? -1 : base.color), op);
dup.isRequester = isRequester;
dup.parameterNames = parameterNames;