Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Help with location
Index -> Graphics and Design, Web Design -> Flash MX Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
eNc




PostPosted: Sun Aug 15, 2004 1:20 pm   Post subject: Help with location

I have a moving window for my website and when you move it so for it goes off screen so I am wondering how I could use and if statement to reset the x + y co - ordinates when its position is in a certain spot on the screen. Please Help thanks.
Sponsor
Sponsor
Sponsor
sponsor
TheZsterBunny




PostPosted: Sun Aug 15, 2004 8:24 pm   Post subject: (No subject)

what?

try the setProperty commands.

-Z
zylum




PostPosted: Wed Aug 25, 2004 9:38 pm   Post subject: (No subject)

something like? :
code:
if ((window._x >= window.width || window._x >= Stage.Width) && (window._y <= window.height || window._y >= Stage.Height)) {
window._x = defaultX
window._y = defaultY
}


sorry if the syntax is a bit wrong. i haven't done flash in a while and dont have it on my computer.
Display posts from previous:   
   Index -> Graphics and Design, Web Design -> Flash MX Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: