Quantcast
Channel: Adobe Community : Unanswered Discussions - Adobe Captivate
Viewing all articles
Browse latest Browse all 23155

Cp6 + AS3 swf : "target == stage" not working

$
0
0

Hello,

 

I've done a SWF where I want to reset stage when clicking outside objects.

 

The SWF alone works perfectly but does not inside Captivate.

 

I did a simplified version :

 

mc.visible = false;

 

stage.addEventListener(MouseEvent.CLICK, clickOutside, false, 0, true);

 

function clickOutside(e:MouseEvent):void

{

          if (e.target == stage)

          {

                    mc.visible = true;

          }

}

 

The line :   if (e.target == stage)

does not work anymore.

 

Does importing SWF in Cp adds another level (stage is Cp scene, the SWF parent) ?

 

Thanks.


Viewing all articles
Browse latest Browse all 23155

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>