A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Enlarge Movieclip

  1. #1
    Junior Member
    Join Date
    Aug 2011
    Posts
    6

    Enlarge Movieclip

    Hi,

    I have a movie clip (Grass) with central registration and two buttons (ZoomIn & ZoomOut). I am trying to find working code that will allow me to click the ZoomIn button and the Grass movie clip doubles in size (from 700x700 to 1400x1400 pixels). Then by the clicking the ZoomOut button, it goes back to normal size.
    Surely this is a very simple piece of code. Does anyone have this to hand? I can't find help on this anywhere. Thank you.

    AS 3.0

    Martin

  2. #2
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    Actionscript Code:
    on(release){
        grass._xscale = grass._xscale*2;
        grass._yscale = grass._yscale*2;
    }
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  3. #3
    Junior Member
    Join Date
    Aug 2011
    Posts
    6
    Lovely, thank you!

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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center