dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Adobe Animate cc Java Script mouse follower is not aligned with mouse with responsive

  1. #1
    Join Date
    Feb 2017
    Posts
    6

    Adobe Animate cc Java Script mouse follower is not aligned with mouse with responsive

    Hello everyone,
    I have started a website on Adobe Animate CC, I have done mouse follower with this code:


    Code:
    this.stage.canvas.style.cursor = "none";
    this.mouseEnabled = true;
    this.addEventListener("tick", fl_CustomMouseCursor.bind(this));
    
    function fl_CustomMouseCursor() {
    	this.plus_mc.x = stage.mouseX;
    	this.plus_mc.y = stage.mouseY;
    	this.black_plus_mc.x = stage.mouseX;
    	this.black_plus_mc.y = stage.mouseY;
    }

    Now when I do the website responsive at publish setting the follower is not aligned with mouse cursor it only get aligned when I position the cursor at top left corner.
    I Hope some one can help me!

    Thank you,

    Khalil

  2. #2
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    4,629
    Adobe products use ActionScript not JavaScript, you would be better asking in the Adobe community help forums.
    --> JavaScript Frameworks like JQuery, Angular, Node <--
    ... and please remember to wrap code with forum BBCode tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles