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:
Start Drag ("")
We're still in the 'triangle' mc edit mode, so make a new actions layer:
Set Property ("/scaler", X Scale) = GetProperty("",_x)
Set Property ("/scaler", Y Scale) = GetProperty("",_y)
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'.
|» Level Basic|
Rating: 4 Votes: 36
|No author details available.|
|Download the files used in this tutorial.|
|Download (0 kb)|
|More help? Search our boards for quick answers!|