First time here? First time here? Newsletter Signup Newsletter
651326 Members and growing! | Flash Jobs
Search tutorials
Author: Michael Georges

OK Flash Folks - I thought I'd send this in 'cos I have not seen it done in Flash before. If you want to resize a Flash 'Window' or mc by dragging (like a 'Windows' window) this works. I'm sure if can be refined but here's the basic idea...

Make a mc 'scaler'. On layer 1 make a square = 100 x 100. Fill it with a light easy colour. Put the top left hand corner at the cross hairs of the stage. On a layer above that put some type to fill the square. (Blakes poetry works best) Drop an instance on stage. Call it 'scaler' and put the top left corner at 0,0.

New symbol = mc = 'Triangle'. Make a right angled triangle. Sides about 20 px. Rt. angle = bottom right. Put this rt. angle corner at the cross hairs of the stage. New layer. Button symbol = similar triangle. Actions for the btn:

On (Press) 
Start Drag ("")
End On

On (Release)
Stop Drag
End On

We're still in the 'triangle' mc edit mode, so make a new actions layer:

Frame 1:

Set Property ("/scaler", X Scale) = GetProperty("",_x) 
Set Property ("/scaler", Y Scale) = GetProperty("",_y)

Frame 2.

Go to and Play (1)

Put the 'triangle' mc on stage. xpos. = 100, ypos. = 100, so it lies inside the bottom right hand corner of 'scaler'.

That's it.

» Level Basic

Added: 2001-01-30
Rating: 4 Votes: 36
(10 being the highest)
» Author
No author details available.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!

Comments

  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: Christopher E Vance
» Title: Aqua Live
» Description:

A vector based mermaid.

Featured Sound Loops
Image for equalize

Audio Player

» Author: Peter
» Title: Action
» Description: Funk Action Groove loop. let me know if you manage to find a use for it, would love to see it. Thanks
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: SoundScalpel
» Description: Cartoon stretching/expanding sound made from rubbing an inflated balloon.