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 8803939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:28:23+00:00 2026-06-14T01:28:23+00:00

By default, Kineticjsv4.0.5 does not support image border, therefore .showBorder() and .hideBorder() would result

  • 0

By default, Kineticjsv4.0.5 does not support image border, therefore .showBorder() and .hideBorder() would result in error saying

Uncaught TypeError: Object # has no method ‘showBorder’

But when I included the Image Plugin v1.0.1 javascript file, my game did not appear at all while FireBug reported no errors at all.

I have also started an issue on github.

Regards,

  • 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-14T01:28:24+00:00Added an answer on June 14, 2026 at 1:28 am

    Try this code

    <!DOCTYPE HTML>
    <html>
      <head>
        <script src="http://www.html5canvastutorials.com/libraries/kinetic-v4.0.5.js"></script>
    
        <script>
          window.onload = function() {
            var stage = new Kinetic.Stage({
              container: "container",
              width: 578,
              height: 200
            });
            var layer = new Kinetic.Layer();
    
            var imageObj = new Image();
            imageObj.onload = function() {
                var yoda = new Kinetic.Image({
                x: 140,
                y: stage.getHeight() / 2 - 59,
                image: imageObj,
                width: 106,
                height: 118,
                stroke:"Red",
                strokeWidth:5
              });
    
              // add the shape to the layer
              layer.add(yoda);         
    
              // add the layer to the stage
              stage.add(layer);
              yoda.on('mouseover', function() {
                    yoda.setStrokeWidth("Transparent");
                    yoda.setStroke(0);
                    layer.draw();
                });
            };
            imageObj.src = "http://www.html5canvastutorials.com/demos/assets/yoda.jpg";
          };    
        </script>
      </head>
      <body>
        <div id="container"></div>
      </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Default build of PyPy 1.7 with stackless included in, does not offer the ability
By default Devise creates a routing for a sign-in as '/sign_in'. How would I
A default constructor has no parameters. And nor does a constructor that you write
'Default UITableViewCell styles from Apple should not be used' Can somebody tell me what
By default, simple_form generates error messages in this form: <span class=error>error_text</span> but what i
the default of xtable is \begin{center} . I would like to make it: \begin{left}
By default the session expiry seems to be 20 minutes. Update: I do not
Default connection timeout value of npgsql is in seconds, but I would like to
Default Rails will render 404.html, then it thinks an error 404 is appropriate. However,
By default does ASP.net protect against SQL injection attacks when using ASP controls?

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.