I think what is going on is that we haven't wrapped Click on
org.apache.flex.html.Image.
We have to do so because we don't want to emulate flash.events.* on the JS
side.  We did it for Button, but not other controls.

It should be relatively straightforward to add.  Any volunteer wishing to
learn how to contribute to FlexJS can try patching Image.as with the
clickKiller code from org.apache.flex.core.UIButtonBase.as and submitting
that in a JIRA.  Thinking about it some more, that code should probably be
added to UIBase.as instead of Image.as.

Otherwise, I'll get around to doing it in a couple of days.

-Alex

On 6/17/14 10:19 AM, "Peter Ent" <[email protected]> wrote:

>The way FlexJS is constructed, the FlexJS ActionScript SDK uses some
>Flash-level APIs and events, but only for internal use;
>org.apache.flex.events package is what you should be using.
>
>In your apps, your code should be able to be cross-compiled into
>JavaScript, so any Flash libraries should not be present (they don't have
>JavaScript equivalents) and that might be what you are seeing.
>
>Peter Ent
>Adobe Systems
>
>On 6/17/14 12:51 PM, "jcvfc" <[email protected]> wrote:
>
>>hi 
>>
>>i'm trying to put an image in my project with a click event, but when i
>>try
>>to compile with Apache Flexjs Compiler shows me the following error -
>>"ERROR
>>File not found: flash.events.MouseEvent".
>>
>>Does anyone knows what this is?
>>
>>Thank you
>>
>>
>>
>>--
>>View this message in context:
>>http://apache-flex-users.2333346.n4.nabble.com/Flexjs-ERROR-File-not-foun
>>d
>>-flash-events-MouseEvent-tp6876.html
>>Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Reply via email to