Solved

Custom "bounding box" for objects.

Posted on 2008-10-20
2
373 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
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.

756 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