Solved

Custom "bounding box" for objects.

Posted on 2008-10-20
2
374 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
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.

739 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