Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: window re-scale?
From: kris Okun
Date: Thu, 27 Jul 2000 16:10:40 +0100

Does and one know how to or can anyone point me to how I can re-size a
window. I have duplicated the way you drag windows around and chnage to
z depth just like on the mac os...but am having trouble clicking on the
bottom right corner and dragging and resizing out from there. Problem 1
is that it scales from the center and not the upper left, and problem
two is that if i click and then stop dragging it still scales? any
help....here is my code...

Frame1
on click, start drag

Frame 2
Set Variable: "/:xpos1" = GetProperty ( "/a"&/:namea&"/but", _x )
Set Variable: "/:ypos1" = GetProperty ( "/a"&/:namea&"/but", _y )

Frame 3
Set Variable: "/:xpos2" = GetProperty ( "/a"&/:namea&"/but", _x )
Set Variable: "/:ypos2" = GetProperty ( "/a"&/:namea&"/but", _y )
Set Variable: "/:diffx" = (/:xpos2-/:xpos1)
Set Variable: "/:diffy" = (/:ypos2-/:ypos1)
Set Variable: "/:currentx" = GetProperty ( "/a"&/:namea, _width )
Set Variable: "/:currenty" = GetProperty ( "/a"&/:namea, _height )
Set Variable: "/:scalex" = (/:diffx/100)+1
Set Variable: "/:scaley" = (/:diffy/100)+1
Set Property ("/a"&/:namea4, X Scale) = /:currentx*/:scalex
Set Property ("/a"&/:namea4, Y Scale) = /:currenty*/:scaley

Frame 4
Go to and Play (3)








flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]