ActionScript 3.0 :: Remove The Yellow Border Around The Sprite Container?
Oct 28, 2010
q) One problem I still have. How do I remove this awful yellow border around the sprite container in AS3
private function checkNumber(e:Event=null):void{
trace("Globalvars.vars.noLoaded" + Globalvars.vars.noLoaded);
if(Globalvars.vars.noLoaded>=15){
[code].....
View 1 Replies
Similar Posts:
May 20, 2011
I've got a stack of images.Those images are all added to a sprite container:
var container:Sprite = new Sprite();
container.addChild(img);//added in a loop
addChild(container);
Later, when I iterate through the container to remove the images I say:
for(var i:int=0;i<container.numChildren;i++)
{
var currImg:Sprite = container.getChildAt(i) as Sprite;[code].....
Only a part of the images are removed. If I trace container.numChildren I get the correct number of images to be removed.
View 4 Replies
Aug 22, 2008
Is there any way to disable the yellow border (focusrect) that appears around buttons when tabbing through them or at least make it more eye pleasing?
View 4 Replies
Aug 8, 2011
Is there a way to remove the yellow rectangle that appears on objects when the Tab key is pressed. This mostly applies to MovieClips that are Simple Buttons.
View 5 Replies
Feb 11, 2010
I want to add a border around my mask. I don't know if I can add the border directly to the mask or if I need to create something new and position it. I imagine if the border was part of the mask it wouldnt show up? Anyway I added lineStyle to my roomMask and I get this error that doesn't make any sense to me:1061: Call to a possibly undefined method lineStyle through a reference with static type flash.display:Sprite.
ActionScript Code:
//create a mask to cover the room container
//to hide the floor outside edges
[code]......
View 1 Replies
Jul 22, 2011
Using Flex 4 AIR, what is the maximum widtha and height I can set for line and the bordercontainer?
bc:borderContainer = new borderContainer();
bc.width = 80000;
bc.height = 80000;
View 1 Replies
May 22, 2009
I'm having an issue trying to automatically create a Sprite border for movieclips generated by an xml file.
Here is my loop function :
Code:
function callThumbs():void {
for (var i:Number = 0; i < my_total; i++) {
var thumb_url = my_images[i].@THUMB;
[Code]....
All the pictures from the xml file do load, they all have the glowfilter effect but only the first one has border..
View 2 Replies
May 12, 2011
I have a project where I display content from an array. I also need to display ratings- which is between 1- 5 stars, works fine with correct alternate shading for each line- however, when I mouse-over, the skinnable countainer in the itemrenderer(named cont) still retains the original color it had for that row. As we are using fxg graphics, we have a a skinnable container box containing the ratings with one shade, that lies just within the larger table - with row color having changed on mouse-over. Screenshot attached- you can see the thin patch of blue between the ratings box(dark grey) and the highlighed row on mouseover...
I was told to shift from Datagrid to List to resolve this and for better performance- seems like a biggish task which I messed up.As an easier alternative, was looking to I would like to either
a) get the skinnable container color to disappear, so I see single color in a row on mouseover
b) disable the color change on mouseover for the grid rows, so this issue is avoided .The datagrid is very straighforward as below
<mx:DataGrid id="experimentgrid" fontSize="{12}" fontWeight="bold" color="#006837" styleName="dataGridStyle" rowHeight="{15}" borderVisible="false" showHeaders="false" x="[code]...
View 2 Replies
May 24, 2011
I have a BorderContainer with some instances of spark Line. I need to select this lines by clicking on this. But adding event mouse click listener fails. ASdoc [URL] says that line have only activate and deactivate events. Any best way to detect whether line clicked (use another line class?). I think that catching of clicks in the bordercontainer is bad solution.
View 2 Replies
Dec 15, 2011
I try to create a function to change border property of border container.To do that I create a function for each border container on my MXML.But I'd to code better and to do a generic function.Today my function is:
protected function bcContact_mouseOverHandler(event:MouseEvent):void
{
// TODO Auto-generated method stub
bcContact.setStyle("borderVisible",true);
[code]....
bcContact is one border container Id.I try to replace bcContact by this but it doesn't work.
View 2 Replies
Jan 10, 2012
I am working on a project where I want to add a click listener to the root DisplayObjectContainer, which, if the user clicks on a UIComponent, will add a red border to whatever the user clicked on. Currently, my code to do so looks something like this:[code]Unfortunately, nothing actually happens. The UI component the user clicks on remains distinctly un-bordered. I've tested event.target and am reasonably sure that it does actually point to the UI Component the user clicked on; I also used Alerts to make sure that the if statement was actually executing fully.
View 1 Replies
Jul 1, 2010
I have this [code]...
And It seems to work but this is creating a new rect. Which I do not want.
And I have tried ColorTransform, and that changes everything, even the border, which is not what I wanted. And I am not able to colortransform and then set the border color.
So how can I change the color of a sprite without changing the border color?
View 1 Replies
Sep 6, 2011
In my experiment memory usage keeps growing a little (more, and more RAM usage after GC) when I use repeatedly:
Code:
removeChild(picContainer);
addChild(picContainer);
[code].....
View 5 Replies
Apr 5, 2011
My basic requirement is to draw a circle inside a BorderContainer with the layout set to BasicLayout.I run this method in the CREATION_COMPLETE event of the BorderContainer object.[code]I know I must be missing something VERY basic here. Can I just draw like this OR should I draw in some other event? I know that I can create a Ellipse object and easily add it to the border container but I would like to know how I can do this using the graphics object.
View 3 Replies
Oct 22, 2010
I'm trying to make a little program. It works right now by drawing the top shape to the dark gray area, where it then copies itself and changes color. The new shape can be re-dragged as well. What I want to do now is add a dynamic border when I click on the new object, I want the box to adjust to an appropriate size. And on mouse release I want the selection border to disappear on the new shape. I want the selection border to be dashed much like you find in many of Adobe's programs, if at all possible.
Attached is my .fla file
View 1 Replies
Apr 17, 2011
according the documentation borderThickness is an applicable style, but when I try to set it to anything (would prefer '0') it says "The style 'borderThickness' is excluded by type 'mx.controls.DateField'."I could style the background color to be the same as the background, but I have an image behind so this will not work.
View 1 Replies
May 31, 2010
Is their any way to make the Button border disappear in Flex 3? I tried this
Code:
Button {
skin: ClassReference(null);
[code].....
View 0 Replies
Aug 19, 2007
does anyone know how to remove that 'box' that appears everytime.I enter my online flash content. It simply gets on my nervs to click it once for activation and then start using my flash!
View 1 Replies
Mar 22, 2008
I'm working in ActionScript 3 and, yet again, I'm starting to regret trying to use components as it seems I always run into a brick wall when using them : (
I have a TextArea component instantiated and added to the display list programmatically via ActionScript 3 code (not AS2, which is all I could find reference to on the net about this).
How to disable the border so it doesn't show around the TextArea component? I've tried a bunch of things, like for example:
myTextArea.setStyle("border", "false");
and
myTextArea.setStyle("borderStyle", "none");
View 11 Replies
May 15, 2009
How do you remove the border & shadow from a scrollpane?I've tried to edit the component parts (after reading that it's a filter applied) but I can't find the component that needs edited.I've also tried setStyle for shadowColor and borderColor but that isn't making any difference.
View 1 Replies
Jun 25, 2009
With the Flex 3 SDK you simply needed to set the borderThickness style to 0, or set borderStyle to none. With the Flex 4 SDK ad the Spark theme, this has no effect.
View 5 Replies
Aug 10, 2010
I am embedding swf object into my html document, but its showing border on top and left of swf object, how to remove it? Same result on all browsers. If I increase the dimensions of swf object then border start appearing on all sides. I don't want the border at all.
View 1 Replies
Nov 3, 2008
I am stuck in a strange problem, can anyone suggest what I amdoing wrong here: the TextArea component didn't show in thedisplay:
var text:TextArea = new TextArea();
text.height = 500;
text.width = 200;
[code].....
View 2 Replies
Apr 4, 2007
Am I missing something or it is just flash? Well I have a PlayerVideo which extends Sprite and have 3 children:1. flash.media.Video2. flash.display.Sprite as PlayPause button3. flash.display.Sprite as MuteUnmute buttonThe thing is that when I have video attached to PlayerVideo, button mouse events are not working, when not Sprite buttons are working okHave anybody ever had something similar ? Mybee some workaround?I have tried wrap with MovieClips and Sprites, but it is the same effect,
View 2 Replies
Apr 2, 2012
In the first button i am not able to remove the dark border from the button. I want exactly like 2nd button.
I am using the following CSS for button:
fillAlphas: 1, 1, 1, 1;
fillColors: #FCB913, #FC8613, #D4652D, #B34A2A;
themeColor: #FABA0A;
[Code].....
View 2 Replies
Apr 5, 2011
I have decided to embed FLV movie files into my HTML page that I have rendered from After Effects.
I have noticed that there is a black 1px bottom border on my FLV movie on my webpage. The FLV fits perfect on the space I have left on my webpage and border is 0 everywhere. I have checked the After Effects original file and there is no accidental space or background errors that might be causing it.how to remove the black bottom border?
View 2 Replies
Aug 15, 2010
how to remove the border of a togglebuttonbar button, with keeping the theme color??
i want to put the style in css file
View 2 Replies
Jan 14, 2010
I am trying to get an image object from one sprite container and adding it to another sprite container. But when I use GetChildAt for this, it will remove the object from the parent sprite and place it inside the other.
Code: sprContainer1.addChildAt(sprContainer2.getChildAt( 1),0);
Problem is when I run this code sprContainer2.numChildren is getting reduced by 1, which seems that this code removes a child from sprcontainer2.
View 2 Replies
Feb 27, 2011
I know this might seem like such an easy issue and I can't understand why I cant figure it out but none the less I can't and I've just about given up. Here's the issue:
I have a sprite container which is supposed to hold a bunch of thumbnails to videos. I am able to populate the container with all the videos and the whole works but obviously if I add a bunch of videos its going to exceed the size of the flash document so I need to add a UIScrollBar (which I did) now the scrollbars target is set to the container but isnt allowing me to scroll and if im correct this is because the container doesnt have a set height. So Im trying to set the height of this container but the second I try setting the height or even width all my thumbnails I used to be able to see are gone! It's as if the size is being set to 0 when its not I've even tried to set it to a specified size just to test and nothing.
[Code]...
View 1 Replies
Jul 21, 2011
I have stuck a bitmap into a display object container (Sprite). On a given mouse event (i.e. mouse click), I would like to display the x and y coordinates of the bitmap. However, I've realized upon clicking on the bitmap, the event is only recognizing the higher level Sprite container. I suspect this could be attributed to the simple fact that bitmaps are not InteractiveObjects.If it's I have attached the code. I am loading a master image and cloning it to produce a thumbnail image (bitmap). Mouse events with the container holding the master image recognize the image itself while the container holding the thumbnail only recognizes the Sprite container.
Code:
var ldr1:Loader=new Loader();
var url1:URLRequest=new URLRequest("PhotoGallery0/picture0.jpg");
[code].....
View 9 Replies