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 ?
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]...
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.
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.
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.)
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
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++) {
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.
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.
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:
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.
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
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).
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. =/
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?
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;
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......?
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.
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.
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?
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?
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?
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.
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.
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.
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")
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.