Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion EaselJS mouse event problem
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Grant Skinner  
View profile  
 More options Jun 28 2011, 5:59 pm
From: Grant Skinner <grant.skin...@gmail.com>
Date: Tue, 28 Jun 2011 15:59:44 -0600
Local: Tues, Jun 28 2011 5:59 pm
Subject: Re: [easeljs] Re: EaselJS mouse event problem
Yes, this is correct. Browsers block pixel access to cross domain resources. The net result of this is that mouse events (which rely on pixel access) will fail in any stage that displays images from other domains. This also occurs when testing from the local file system in many browsers.

Grant.

On 2011-06-27, at 11:06 , Mike Chambers wrote:

> I dont have to code in front of me right now, but I am guessing that
> we are acessing data in the canvas to get information about the mouse
> event. The browser's security model prevents this when running from
> seperate domains.

> More info here:

> http://stackoverflow.com/questions/2390232/why-does-canvas-todataurl-...

> If you get a chance, can you see if you can track down the line of
> code in EaselJS which is triggering the security error? If you find
> it, then I will look at it.

> Otherwise, Ill try and take a look at it when I get some time
> (although im not sure when that will be).

> mike

> On Jun 24, 7:50 pm, ahmed <barqawi...@gmail.com> wrote:
>> it is when image source like this:http://example.com/img.pngorwww.example.com/img.pngeven if same domain

>> you can test it:
>> - install library
>> - open example dragAndDrop
>> - change image link with image above or any image from the intenet

>> On Jun 24, 7:49 pm, Mike Chambers <mikechamb...@gmail.com> wrote:

>>> Is the issue only when you try to load an image from a separate domain?

>>> mike

>>> On Fri, Jun 24, 2011 at 2:50 AM, ahmed <barqawi...@gmail.com> wrote:

>>>> Hallo

>>>> i am implementing touch animation with EaselJs library.

>>>> when i read image from local folder all mouse events is working good
>>>> like: onPress.

>>>> but when i choose image source from link like:
>>>> http://www.visionale.net/wp-content/uploads/cool-accessories-car.jpg

>>>> mouse events will not work like: omPress.

>>>> try example dragAndDrop from library and change image link "img/x.jpg"
>>>> to any link from internet- Hide quoted text -

>>> - Show quoted text -


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.