dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Help with resize

  1. #1
    Registered User
    Join Date
    Jun 2000
    Location
    Woodland Hills, California
    Posts
    191
    I need help with resize an image. Once the image is loaded into flash I want to be able to scale up and down.

    I have
    on (press) {
    holder._width = _width +1;
    holder._height = _height +1;

    }


    but it doesn't do it properly it scales the width way out every time you click on the button but not the height.

    Please help

    thanks in advanced

  2. #2
    President, save the
    New Zealand dollar foundation

    Join Date
    Jun 2000
    Posts
    1,743
    try
    Code:
    on (press) { 
         holder._width = holder._width +1;
         holder._height = holder._height +1;
    }
    or simply
    Code:
    on (press) { 
         holder._width += 1;
         holder._height += 1;
    }
    or even simpler
    Code:
    on (press) { 
         holder._width ++;
         holder._height ++;
    }

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center