Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9227387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:04:00+00:00 2026-06-18T05:04:00+00:00

Working with javascript and the Easeljs lib and createjs, i need some help. my

  • 0

Working with javascript and the Easeljs lib and createjs, i need some help.
my program draws some circles and fills them with color. also with a Ticker they are moving and with some if statements they are bouncing from the walls of the window.
The circles are created dynamicly and the amount of circles is different everytime.

Now I need to implement a feature so that the circles will enlarge when you press them. They should get their radius +1px bigger every 30 ms. I don’t know how to do that.
1. Do u use onPress for this?which callbacks do i need to use and how will i find out if the mouse is released and the circle can stop growing?
2. do i need to delete circleObject from my circlesArray or is it enough to delete it from the stage and draw them again?
I’m desperate for help, i would be glad if someone could give me some clues!

Greetings T

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:04:02+00:00Added an answer on June 18, 2026 at 5:04 am

    With the information you provided I would refer you to take a look at this EaselJS Example on github: https://github.com/CreateJS/EaselJS/blob/master/examples/DragAndDrop_hitArea.html
    The onPress-Method is used there in a way that you could probably almost copy as is.

    Yours could look like this:

    function(target){
        target.onPress = function(evt) {
            target.grow = true; //or a grow-factor or so
            evt.onMouseUp = function(ev) {
                target.grow = false;
            }
        }
    }(circle);
    

    and in your tick-function you look through all circles, check for their grow==true and increase their radius if so

    And 2:
    Your circleObjects all are a createjs.Shape right? You don’t have to delete them from the stage or from the array, you can use circle.graphics.clear(); and then redraw the circle with the new radius.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working in JavaScript and stuck in a problem and need help from
I am trying to get some Javascript working in my Rails app. I want
I have some working Javascript that manipulates the some DOM elements. The problem is,
I need to put different information in separate lines, I have a working Javascript
I now have a working JavaScript autocomplete function, thanks to help from many of
I have some working Javascript code that generates an RDF/XML document using variables picked
Working with Javascript (jQuery), given 2 color values ( 2033ff and 3300a0 for example)
I've been working with JavaScript and i need to call a function from another
I have some working JavaScript that I want to convert to pure jQuery. Please
I need JavaScript working almost perfectly in my application that should be able to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.