Solved

Custom "bounding box" for objects.

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
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…

840 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