Featured FLA
» Author: Bugra Ozden
» Title: Skatalog v9 - product catalog
» Description: Create your product catalog easly and publish on your website or Create your image gallery, documents list, portfolio. Fully XML Driven
» More by Bugra Ozden
Featured Site
» Posted in the Flash Kit Links section
» Title: Creative DW Image Show PRO
» Description: Creative DW Image Show PRO is a Dreamweaver extension which enables the user to create multimedia presentations. It combines the features of the popular Creative DW Image Show with the ability to add professional text effects to slides (similar to After Effects). The product is very customizable: the user can choose the duration of the transition effects, the slide motion start and end position, zoom and panning type for both images and texts.
There are 4 key terms that are associated with getBounds: xMin, xMax, yMin, and yMax. These 4 are used to determine the boundaries of the object you’re targeting.
In Flash, the center of the Cartesian plane begins in the top left corner, and is reversed, as going right and going downwards is positive. This means the right edge of the square in the diagram is its maximum, left edge it’s minimum, and the same for the top and bottom edges. When we use getBounds, we get these 4 values, and then, if using hitTest, compare them to the object that we want to target. So for example, if I had a 10x10 square, and I placed the square’s center point at: x=45 y=50, then the xMin=40, xMax=50, yMin=45, and yMax=55.