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 OnOn (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 |
| » Author |
| No author details available. |
| » Download |
| Download the files used in this tutorial. |
| Download (0 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


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