Solved

Custom "bounding box" for objects.

Posted on 2008-10-20
2
368 Views
Last Modified: 2013-11-11
Hello,
Currently I am using Focusrect as a "bounding box" for my objects that are on stage.

I would like to create a custom "bounding box" for my objects,
but I can't find any information on the creation of a custom box.

Please,
Where can I find an example of this?
Thanks.
0
Comment
Question by:quetzali
2 Comments
 
LVL 11

Accepted Solution

by:
ugeb earned 500 total points
ID: 22764960
Hi,

What do you mean by "custom box"?  The bounding box is set by the extents of the object so you can't change that.    If you want to associate a custom rectangle to a movie clip, you can use a Rect which is what a bounding box is.

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/geom/Rectangle.html#Rectangle()

You could probably add it as a dynamic property to a movieclip.


0
 
LVL 39

Expert Comment

by:blue-genie
ID: 22766064
i agree i don't think you can change it.
if you really really are anti the rectangle you'd have to specify actual x and y bounds and that would be a nightmare.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question