From dae0ebcbcf174b89964f6c1e00d0abcacc42267d Mon Sep 17 00:00:00 2001 From: Nathan Dinsmore Date: Wed, 14 May 2014 03:21:59 -0400 Subject: [PATCH] Fixed dragging "when Stage clicked" into a sprite --- src/blocks/Block.as | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/blocks/Block.as b/src/blocks/Block.as index 418ce24..acac285 100644 --- a/src/blocks/Block.as +++ b/src/blocks/Block.as @@ -453,7 +453,8 @@ 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 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;