How to prevent a component from being dragged out of the stage in Flex 3 -
I think there is a simple solution to this question, just not enough to find it.
Q: How can you prevent a heading window from being pulled from the screen / platform in Flex 3? Is there a way to restrict the title window in the viewing area?
Example: Suppose I have an app that takes 100% of the screen. After this, I create a title window through the popup manager. Then I can click and drag the window on the screen to hold, then release the mouse button. That window is now lost somewhere off-screen
Itemprop = "text">
This is a very old post, but here's another way to do this: Whether you are expanding the components or not, add the following line to the definition of title windows: Go ahead: Import the "doMove (event)" app library Add Import (mx.core.Application;) and Doodle Functions:
Personal Function doMove (Event: Event): Zero {// layout in TW Confidence is appW: Number = Application.application.width; Var aph: number = application application. height; If (this.x + this.width> APPW) {this.x = appW-this.width; } If (this.x <0) {this.x = 0; } If (this. Y + this.height & gt; aph) {this.y = aph- it.height; } If (this. A <0) {this.y = 0; }}
Comments
Post a Comment