Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK 3.4 (Release)
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows XP
Browser: Internet Explorer 8.x
Language Found: English
Description
Steps to reproduce:
1. Create a new Flex project and enter the following code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="init()">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private function init():void
{ canvas.addEventListener(MouseEvent.CLICK, handler); canvasHitArea.mouseEnabled = false; canvas.hitArea = canvasHitArea; // comment the following line and the handler would work again canvas.filters = [new DropShadowFilter()]; }private function handler(e:MouseEvent):void
{ Alert.show("canvas clicked"); } ]]
>
</mx:Script>
<mx:Canvas x="55" y="47" width="148" height="96"
borderColor="#7CC9FF" backgroundColor="#689AFF" id="canvas">
</mx:Canvas>
<mx:Canvas x="211" y="47" width="148" height="96"
borderColor="#7CC9FF" backgroundColor="#FF68A4" id="canvasHitArea">
</mx:Canvas>
</mx:Application>
2. Compile and run the project
3. click on the pink box on the right
Actual Results:
nothing happens
Expected Results:
an alert box should appear
Workaround (if any):
none so far