ActionScript 3.0 :: Globally Disable / Hide Yellow Focusrect Without Affecting Key Listeners?
Dec 17, 2009Does anyonen know how to globally disable/hide the yellow focusrect without affecting key listeners?
View 3 RepliesDoes anyonen know how to globally disable/hide the yellow focusrect without affecting key listeners?
View 3 RepliesHow can I rotate or hide focus rectangle. I am getting a rotated focus rectangle after changing the focus from a rotated text area. See the attached file.
View 1 RepliesI've been trying to figure out how to disable the mouse focus that you see when you tab through a swf file. I'm getting them pop up now and then and the client doesn't want them.I've been trying to work out how to disable focus for the entire movie but I've got nowhere. Is there an easy way to do this?
View 1 RepliesIntelliJ displays yellow markers in the scrollbar on the right for warnings. Is there a way to disable warnings or just the yellow markers in the scrollbar?Follow-up: The file in question is from Adobe Flex SDK 4.1 frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as. I have all inspections disabled. I've also disabled the JavaScript Intention Power Pack plugin. I have Highlighting Level set to None. With all this I still see warnings.
View 2 RepliesI am implementing several listeners in my application, but they seem to slow my XML load function significantly...I would like to disable my listeners until the load is completed.
View 1 RepliesIs possible to disable all the eventlisteners with one single command ? maybe disabling mouse ?
I need to disable them for few seconds without having to disable each one per time
Can I disable all the event listeners for few seconds ?
View 3 RepliesI have an input textfield and some keys listeners on the stage. When typing in the input textfield the key listeners of the stage and loaded swfs get triggered. I've tried different things with focus and stopPropagation but nothing's been working, at least the ways I've been implementing it.So my question is, "How can I make it so that when I am typing into the input textfield, none of the keylisteners get triggered?"
View 2 RepliesWhen writing code sometimes those red error icons pop up on the left side. Most of the time they are on point, but sometimes they are wrong. How can I hide them.
View 2 RepliesIs it possible to change the focusRect color for TextFields that are tab enabled? The project I'm working on doesn't use any flash components and I'd like to be able to modify this color to work within the color pallete provided by the client. I've looked into the InteractiveObject, DisplayObject, and StyleManager classes but nothing jumps out a me as far as being able to modify the base Yellow color.
I would think something like this would work but...
var myTextField:TextField = new TextField();
myTextField.tabEnabled = true;
myTextField.focusRect = true;
myTextField.focusRect.color = 0xFFFF00;
i am getting green color focusRect on input text field. why i am not getting yellow color.
View 0 RepliesI dont know if it is possible, but I need to disable reaction on mouse.
Here is the example. Dont worry about the second snowboard. If mouse remains on the first, movie still replay over and over. How do I stop it?
[URL]
I have two components in my movie,how to write out the code for the listeners.Is it possible to write one listener that listens for changes in both components or do I have to write a separate listener for each? How would this look like written out?
View 1 Repliesim doing an accessible site and i know that objects areaccessible by default. all my buttons were highlighted in yellowwhen tabbing through...then i opened my accessiblity panel to add labels and now theyellow boxes are gone. i've deleted all the additions but still nosign of the yellow boxes.accessibilty is checked for everything, i've gone through thewhole site. nothing seems to be missing. is there some way i canglobally re-set the accessibility settings.
View 5 RepliesCan someone explain why a yellow box sometimes appears when a user clicks a button in a swf? It doesn't happen all of the time and, frankly, it's never been an issue before.
View 1 RepliesI had made a custom Youtube player in Flash CS4 in AS3 with Play/Pause, Mute, Stop, Seekbar and VolumeBar Controls. My problem is "only" with the Seekbar and the VolumeBar. It always shows up a bounded Yellow retangle over the controls when you try to drag it (scrub it) using a mouse which looks really ugly... I have tried every possible ways to remove the tabstop, like tabEnabled, tabIndex , and the like but all in vain. Also I have tried to remove the focus from the stage of the FLVPlayback component, still in vain...
You can see 2 screenshots here... [URL]
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 RepliesI tried using:
btnname._focusrect = false;
It did kill the yellow outline but then I can't navigate using the up/down/right/left key anymore.
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 Repliesthere is a yellow stroke appearing on my Flash buttons sometimes and i really have no idea why..anyone had this before? I didnt put there...and sometimes it appears on random buttons..
View 5 Repliesq) 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].....
I'm using a keyboard event listener to move a sprite around, however, I have to click on the stage before the keys work. I'm even giving focus to the sprite that is supposed to move and telling flash not to use the yellow box. However, the box shows up around the sprite until I click anywhere on the stage.
Code:
public function activate_photo():void {
stage.focus = photoContainer;
[code].....
anyone has any tips about why i have these yellow marked classes in my actions panel?
View 3 RepliesI am using AS 3 Flash CS4, WIndows XP SP3. I am unable to use the Mouse.hide(); method in many of my scripts. If I add Mouse.hide() to a preexisting script, I get the following error; line1 1061: Call to a possibly undefined method hide through a reference with static type Class. If I add Mouse.hide():void; to a preexisting script, I get the following error: line1 Label must be a simple identifier Once this has happened, if I then remove ALL lines of script from the file...but leave the Mouse.hide(); [or Mouse.hide():void;], and also remove all objects from the stage, when I run the file, I still get those same errors.
[CODE]...
How to set the yellow focus rect to a movieclip to enable tab navigation? This is my current code:
mymc.tabEnabled = true
stage.focus = mymc
just wondering how i can add a small explosion like thing when the ball hits the yellow circle, and not just a picture appearing on the hit (game attached, and using adobe Cs5)
View 2 RepliesI have a flash project that involves using glow filters on several mcs all over the site, the problem is, the current way I'm doing it requires me to declare and assign the filter on every MC's container.
Is there a way where I can just declare the glow filter once on the maintime line, and then simply apply the filter on the MCs where needed?
this is what I use for every MC, and it's really tedious and hard to keep track of/change.
Code:
var Glow1:GlowFilter = new GlowFilter();
Glow1.color = 0xFFFFFF;
Glow1.inner = false;
[Code]...
For examples sake, say I have an 'Icon' class. When you set Icon's 'name' variable, it downloads the image (of the given name) from a server/directory.
The problem however, is that even though the name (of the image) is provided, the name of the server, or even the folder containing the image is not.
Of course, I could explicitly define the full name and location of the file to the class, but if I ever decide to change folder structure I would have to go through and find all references to the folder and change it. It also seems wrong to litter all of my parent classes with arbitrary URL's to feed to the Icon class.
The preference of course would be to 'globally request' the image server/directory on instantiation, but in the world of OOP how is this best achieved?
I was just about to have the Icon class dispatch a bubbling event, letting something at the end of the displayList catch the event/request and feed it the information (a String) it was looking for, but it didn't feel right. It feels like dispatchEvent should only be used to Dispatch Events, not request a string...
Also, I've come up to similar situations where I've needed a similar request structure without being an extension of EventDispatcher (such as just a primitive Object). Is there a best practice for both?
[URL].. lines a lot in our files to set up AS Tweens. Is there a way to import these globally on one frame of ActionScript instead of having to put it in AS for every time an MC is being tweened?
View 1 RepliesI have been trying to get this right for a few days now, but I am stumped. This code runs on the first frame of my movie:
Code:
_global.headingText = new Array();
_global.captionText = new Array();
_global.contentText = new Array();
[Code].....