Old 03-14-2008   #1 (permalink)
Registered User
 
Join Date: Jan 2008
Posts: 7

Allowing the user to resize a window.

Basically, what I'm trying to do is replicate that handy little bottom right corner of windows that are er... not maximized. Whatever the word is, I want the user to be able to grab hold of this corner (bottomRight) and allow them to drag it around and use it to resize the window.

I've gotten the square to stick to the window easily enough, I know how to get it to drag, it's just the math that's throwing me off. Keep in mind that the window can be at any place on the stage.

My problem is:
I want the window to be able to resize according to the position of bottomRight.

Here is my code so far:

Code:
bottomRight.onPress = function() {
     _root.window.stopDrag();
     bottomRight.startDrag();
     _root.window._width = some math thing that I don't know.
     _root.window._height = some math thing that resembles the one above this.
}

Last edited by thatpyrokid; 03-14-2008 at 02:32 PM.
thatpyrokid is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-14-2008   #2 (permalink)
Just unleashed!
 
unleash's Avatar
 
Join Date: Jul 2005
Location: Inbetween
Posts: 2,210
Blog Entries: 9

Looks fine to me,

what is the problem? Is the code not working, or are you missing a part?
See I don't see a question/ problem in your story...this probably is me But just to make sure...could you post the question so everyone understands?
__________________
"I haven't failed, I've just found out
10.000 ways that don't work."

~Thomas Edison~
unleash is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-14-2008   #3 (permalink)
Registered User
 
Join Date: Jan 2008
Posts: 7

Ah! I fixed it...
Maybe I shouldn't code at 12am.
Makes for stupid problems.

Last edited by thatpyrokid; 03-14-2008 at 02:45 PM.
thatpyrokid is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-15-2008   #4 (permalink)
photoshop ninja
 
agentxi's Avatar
 
Join Date: Oct 2006
Location: Red Deer - ish, alberta
Posts: 516

can you post up your fixed code, and possibly a working sample? i'm curious as to how it looks.
__________________

Your a Graphic Designer...If you could go back in time you wouldn't go back to see the rise and fall of civilizations, you'd go back in time to destroy comic sans and papyrus.
agentxi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-15-2008   #5 (permalink)
Just unleashed!
 
unleash's Avatar
 
Join Date: Jul 2005
Location: Inbetween
Posts: 2,210
Blog Entries: 9

me too, a fixed code would be great
__________________
"I haven't failed, I've just found out
10.000 ways that don't work."

~Thomas Edison~
unleash is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the css script to open link to new window? mary HTML / PHP / ASP / JS 6 03-22-2008 05:42 PM
Automatic resize et al sizzla HTML / PHP / ASP / JS 3 04-19-2006 04:15 PM
Redirect into new window mmjosh1010 HTML / PHP / ASP / JS 8 10-29-2005 11:56 PM
Photoshop to Imageready resize bradgil Adobe Photoshop 1 09-25-2005 07:55 PM
Centering In Window GoldNetX HTML / PHP / ASP / JS 2 07-12-2004 03:29 AM


All times are GMT +1. The time now is 08:46 AM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT