Flash 10 :: Possible To Not Select Bounding Boxes?

May 31, 2011

I'm trying to animate a simple stick figure just now. I used an inverted triangle shape for the body,which gives a nice width to the shoulders. Unfortunately, flash doesn't seem to realise that it's a triangle. Due to it's stubborn way of drawing a rectangular bounding box around every shape.

This is getting in the way a lot, as there are parts of figure which are clearly not blocked by the torso, but are blocked by it's big square bounding box, which makes it a nightmare to drag the arms and legs around to where I want them

Is there any way to fix this silly behaviour, and have it only select an object when I click on a visible part of it, and not just anywhere in it's bounding box ?

View 5 Replies


Similar Posts:


ActionScript 3.0 :: Populate Dynamic XML / JSON Into Select Boxes?

Jul 11, 2011

Product Listing Application based on dropdown select boxes and data comming from a dynamicly created XML/JSON from a PHP Webservice.

Here's the architecture: 3 Select Boxes (manufacturer, product series, model)

In the first instance selectbox 1 (manufactur) should list all manufacturers

If you select a manufacturer it should update a second selectbox with all relevated product series and update the last selectbox (model) with all relevated models to the matching manufacturer and product series.

Now there allready exsists a webservice where you can return XML Data or a JSON Object with httpd requests like[code]...

View 0 Replies

ActionScript 3.0 :: Make A Bounding Circle Instead Of A Bounding Box?

Nov 1, 2010

Is it possible to make a bounding circle instead of a bounding box?The objects should bounce INSIDE the circle.I have now a bounding box outside the circle, but the objects exceeds the circle at the corners.

I was thinking of making an array of Points on the edge of a circle and when the object is < or > then do something... but that would be a lots of if/else statements.

View 3 Replies

ActionScript 3.0 :: Non-Bounding Box Hittest In Flash

Jun 6, 2009

Is there any simple code that will make a hittest not work of the bounding box in flash, because I've been looking for something for a while now, and can't find anything about how to do that.

View 1 Replies

ActionScript 2.0 :: Random Movement In Flash MX - With Bounding Area

Oct 30, 2011

I followed the random motion tutorial here: [URL] Everything is working fine, but I want it to randomly move everywhere but not go past about an inch from the top. My document is 550w x 400h, and I made that change in the actionscript as it said in the tutorial. I also tried changing it from 550 x 400 to small numbers to maybe trick it into thinking the document is smaller but to no avail. I've been googling for the last couple of hours, but it always comes up with references to flash game coding tutorials, and I have 0 experience with actionscript 2.0 (i've been learning as I've been going, through google. I'm making an animated gift as a birthday present.)

View 5 Replies

ActionScript 3.0 :: Flash - Moving A Bounding Box To A Specific Location (dynamically)?

Sep 15, 2011

Issue: I need to move a rectangle (that has only sides and no fills) to a specific location on the animation, what happens is that if the user enters some info (through HTML form processed by PHP and sent to the movie through FlashVars), this info should then me find the x and y coordinates of a button that should then be overlapped by this said rectangle.Code:

Code:
if (_root.signUp == 1){ // the FlashVar variable flag
var buttoSym= "_root.thumbMain.thumbSymbol.b" + _root.signNumber

[code]......

View 8 Replies

Arrays :: Drawing Boxes With Different Colors Than Adjacent Boxes?

Jul 27, 2011

I'm making a program that draws a grid of boxes and the color of the box must be different to those adjacent to the box. My code compares the current box's color to those to the left and top. If any of them matches, it picks another random number (as the color). For the tiles on the first row/column, I make my grid's array indexes with negative numbers -1 so that it will not match.

What I have:

private function fillArray():void {
grid = new Array();
grid[-1] = new Array(-1,-1,-1,-1,-1); //paddles the grid[-1][0 to 4] with -1
for (var i = 0; i < HEIGHT; i++) {

[code]...

View 1 Replies

Actionscript 3 :: Select The Viewstack Container Id Based On Select Field In ComboBox In Flex?

Jun 23, 2010

I have a comboBox and values like basic and advanced. And viewstack container conatains 2 grids.When i select the base option in Combobox, the first grid has to be selected. select the advanced value in comboBox, the second grid has to be selected.

<mx:ViewStack id="viewstack1" width="95%" height="85%" x="0" y="63" >
<tables:KeyMetricsBasicTable basicArrayDataProvider="{basicArrayResult1}" width="100%" height="100%"/>
<tables:KeyMetricsAdvTable advArrayDataProvider="{advArrayResult1}" width="100%" height="100%"/>
</mx:ViewStack>

View 1 Replies

Flex :: Select All And Select None Button With In The Drop Down Of Combobox?

Dec 6, 2011

Flex 4 Combobox is extended with a Text Input that helps in getting to the item that is searched for.I have created a Check Box as an itemrenderer for this Flex 4 Combobox. I would like to Add a Select All and Select None options in the drop down of the Combobox. I know that i could accomplish by editing the dropdownfactory in case of a Flex 3 Combobox. But in Flex 4 the dropdownfactory doesnt exist.

View 2 Replies

ActionScript 3.0 :: StartDrag And Bounding Box

May 5, 2008

I have noticed when setting a bounding box on a drag object, if you go outside the bounds of the box you have set, the mouse won't let go of the object unless you go back inside the bounds and click on it again. Is there any way to force the stopDrag if you go outside the bounds while dragging? I have tried this bit of code:

[Code]..

View 3 Replies

ActionScript 3.0 :: Webcam Bounding Box?

Jun 9, 2010

I am currently in the middle of creating a project which essentially uses Flash as a type of augmented reality system. The idea behind it is that a webcam input will capture a users hand which is placed on a white pedestal (esstially creating a complete white backbround in contrast to the hand). Create a bounding box around the hand so that objects will only move in the space taken up by the hand.

The problem I am having is wondering which functions i should use to create a bounding box that will select the space that the hand is taking up in the webcam input. I have seen the function GetColorBoundsRect but it only seems to focus on one colour and it seems to be a static function instead of one that will need to constantly create the bounding box if it moves. This isn't just a motion dection but will need to detect the hand even if it isn't moving.

View 0 Replies

ActionScript 3.0 :: Determine Bounding Box Of Semitransparant Png?

Jun 23, 2009

This PNG image is rather large, and only a small portion is filled with pixels. Most of the image is transparant.I want to apply the effect only to the part with pixels, so I'd like to create a boundingbox around that part of the image. I need to know 4 things to do this (the way I see it...): The position of the top-most non-transparant-pixelThe position of the left-most non-transparant-pixelThe postition of the bottom-most non transparant-pixelThe position of the right-most non-transparant-pixel

View 1 Replies

Don't Want Angled Button's Hit Area To Be Bounding Box

Jun 12, 2009

I am trying to create buttons on a 45 degree angle. They are simply text. I have tried drawing different hit areas for the button, but when I publish the swf the hit area for the button is always its bounding box (so there is a huge space in the upper left and lower right corner which activates the button).

View 1 Replies

ActionScript 3.0 :: Change The Bounding Box Of A Symbol?

Dec 17, 2009

I'm trying to do collision detection for my game, but I don't necessarily like the premade methods hitTestObject or hitTestPoint just as they are.  I've been searching all over the place for how to change the bounding box of a symbol, but all I found was how to get its bounding box.  I'm aware of the pixel perfect collision detection code out there, but I'm looking to use bounding boxes for certain classes.
 
Is it possible to change the symbol's bounding box and still have that box recognized by hitTestObject or hitTestPoint?   If not, I might have to write my own colllision detection code.  =/ 

View 2 Replies

Actionscript 3 :: Get The Actual Bounding Box Of A Glyph?

Dec 21, 2009

I like to know is "where, exactly, are you drawing that glyph?" The TextField class provides the methods getBounds and getCharBoundaries, but these methods return rectangles that extend far beyond the actual bounds of the whole text object or the individual character, respectively.

var b:Sprite = new Sprite();
b.graphics.lineStyle(1,0xFF0000);
var r:Rectangle = text.getCharBoundaries(4);

[Code].....

Is there any way to get more precise information about the actual visual bounds of text glyphs in ActionScript?

View 3 Replies

Flex :: Get A Bounding Box For The Current Selection?

Jan 25, 2011

I'd like to do fancy things the selection indicator. How do I get the bounding box for the currently selected characters?

View 2 Replies

ActionScript 2.0 :: Bounding A Randomly Moving MC?

Apr 26, 2010

I am creating a banner with a "moving target", but the target keeps moving under the copy text of the banner, making it illegible.here is my random movement code (Swiped from kirupa if I recall ) :

//special thanks to Suprabeener for the code
function getdistance(x, y, x1, y1) {
var run, rise;

[code].....

View 0 Replies

ActionScript 3.0 :: Bounding Box Onclick On A Movieclip?

Mar 7, 2009

Anyone know of a method whereby when i click on a movieclip on my stage i can create a bounding box which will allow me to click on any corner and re size the box manually......?

View 1 Replies

Flex :: Get The Bounding Box For The Currently Selected Characters?

Jun 24, 2009

I'd like to do fancy things the selection indicator. How do I get the bounding box for the currently selected characters?

View 1 Replies

IDE :: How To Change Bounding Box Size On MovieClip

May 25, 2010

I'm making a simple platformer. I have an array holding what my level looks like and my main character is a horse.... okay it's a unicorn... anyways, Whenever I jump to a platform the hittest is saying that he has landed even though his head or his tail is just over the edge... I'm trying to make it so that only his feet will allow him to land.

View 1 Replies

ActionScript 3.0 :: Bounding Box For Rotated Graphics?

Dec 10, 2010

Quick question which is giving me difficulty, but I'm probably missing something...

How would I create a bounding box for any graphic, which can accommodate the graphic while bring rotated?

Simply making a square with the maximum of width or height doesn't cut it... think for example holding a T..

View 4 Replies

ActionScript 3.0 :: Drawing Bounding Box To A MovieClip?

Nov 6, 2011

I need to draw bounding box surrounding a movieClip with arbitrary registration point with AS3. The movieClip may be of any shape and can have it's registration point anywhere.

View 5 Replies

ActionScript 3.0 :: Externally Loaded SWF: Bounding Box?

Dec 1, 2004

I'm not sure if bounding box is the right term or not.I have loaded an external swf (photoSlider.swf) into my main swf (resume.swf).The issue is that the photoSlider.swf is 420x290.The photoSlider.swf loads in external JPG's from an XML file, and slides them across the stage, but the JPGs extend out past the width of the photoSlider.swf stage. So when I load it into resume.swf, it isn't bounded to the 420x290, it extends out past that.Is there a way to set a bounding box for the swf?

View 2 Replies

ActionScript 3.0 :: Change Shape Of This Rectangular Bounding Box?

Feb 18, 2010

I have a movie clip which contains a circular image, and by default Flash CS4 gives it a rectangular bounding box. This is a problem however because I am using this movie clip as a button, so the rollover area includes the entire rectangular bounding box and not just the circular image. How can I change the shape of this rectangular bounding box?

View 2 Replies

Object Drawing Poorly Aligned Bounding Box?

Oct 6, 2009

Whenever I draw a shape with Object Drawing turned on the blue bounding box that appears whenever it is selected isn't aligned properly to the outer edgers of the shape.  Like this:
 
Admittedly it isn't a major problem it's just a bit irritating especially when people I'm teaching to use Flash ask me why it looks the way it does.
Does anyone else have this problem?

View 11 Replies

Actionscript 3 :: Calculate The Bounding Box Around A Group Of DisplayObjects?

Jan 27, 2010

I have an array of Sprites on stage and want to now the rectangle that bounds them. I could do a loop and check each element's getBounds() but that could be computationally expensive.

View 1 Replies

ActionScript 3.0 :: Pan And Zoom Movieclip - Make A Bounding

May 17, 2010

I'm made a map and I want to zoom in and out. The second thing I want is to make a bounding around my MovieClip.

[Code]...

This is my code so far and I can zoom in and out but I can keep going and going. I want that he stops after 200% or something and when he is 100% you cant zoom out more. Also I want a bounding so I cant move the MovieClip outside his own stage height and width.

View 9 Replies

Actionscript 3.0 :: Display Bounding Box For A MovieClip At Runtime?

Nov 21, 2010

I have been trying to display a bounding box (free transform box) for a MovieClip at runtime whenever I click on it but am completely lost. The reason why I would like to display it is to do transformations on a MovieClip at runtime.

View 2 Replies

ActionScript 2.0 :: ScrollPan - Bounding Box With Mask Over Text

Mar 14, 2004

See the scrollpan with the news on the main page? [URL]. I have tried tons of things, but haven't gotten something I want.. I have made something just now that works like that, except the text doesn't work completely... Basically, I have a bounding box with a mask over the text I want...Code I use (and this is applied to an MC with the whole "container" pan")

Code:
onClipEvent (load) {
diff_y = bound_box._height-scroller._height;
bounds = bound_box.getBounds(this);
top = bounds.yMin+(scroller._height/2);
bottom = bounds.yMax-(scroller._height/2);
function updateScrollbar() {
[Code] .....

My problem is basically I place my content box in the mask and it will start the whole thing at half way... the box will scroll and everything works. it's just that the content starts half way, so half the box will be empty towards the bottom.

View 3 Replies

ActionScript 2.0 :: Text Field Bounding Box Width?

Nov 19, 2005

So i looked around and couldn't find a stright answer on this. How do i set the width of a dynamic text field and add wrapping?

stop();
for (var i=0; i<thisXML; i++) {
_root.createTextField("Text_Field"+i, i, i*250, 0, 0, 0);

[code]......

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved