Solved

Custom "bounding box" for objects.

Posted on 2008-10-20
2
365 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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now