ActionScript 3.0 :: Flash Loses Focus - How To Regain It

Sep 15, 2009

i have this problem. ive made this simple animated menu for a webpage, buttons do stuff on ROLL_OVER, and everything is great, but when menu is scrolled of screen and then goes back it loses focus and ROLL_OVER doesnt work until i click anywhere on my menu gotta finish this quick or they might want their money back

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Finding Out When A TextField Has Focus And When It Loses Focus?

Jul 13, 2009

Does anyone know how to do this in AS3?

View 3 Replies

Flex :: Flash Sprite Loses Focus On MOUSE_DOWN Event

Jan 15, 2011

My Sprite class keeps losing focus when I click with the mouse - specifically after the MOUSE_DOWN event (before the click is complete).

I have set mouseEnabled to false on the children, no change. I added a listener for FOCUS_OUT and noticed that the FocusEvent.relatedObject property is NULL, which is confusing me - doesn't that mean there is no new focus target, the focus is just getting lost?

The exact sequence of events I get, by tracing them, as I click:

[FocusEvent type="focusOut" bubbles=true cancelable=false eventPhase=2 relatedObject=null shiftKey=false keyCode=0]
[MouseEvent type="mouseDown" bubbles=true cancelable=false eventPhase=2 localX=355

[Code]....

View 2 Replies

ActionScript 2.0 :: Hitting TAB Loses Focus To The Browser?

Jun 8, 2010

Creating a flash project where I need to hit TAB in order for the playhead to go forward a frame. Then I need the user to hit a letter (for example hit 'a') to move forward again. Hitting the above keys is working,

As soon as the user hits TAB, flash seems to lose focus to the browser, and the user has to click on the swf on the screen before they can proceed.

View 0 Replies

ActionScript 3.0 :: RemoveChild Problem When Window Loses Focus?

Mar 21, 2011

I am unable to replicate this issue in Flash - only in a browser window. It appears that if I lose focus of that window for a period of time or scroll down the page where the embedded flash isn't visible, when I scroll back up or return to the window, the event timers appear to play catch-up.The timed "removeChild" commands do not run and leave remnants on the stage. I do not get any errors however, and everything else seems to continue running as normal.

ActionScript Code:
// XML File:
<?xml version="1.0" encoding="utf-8"?>

[code]....

View 0 Replies

Flex :: FocusOut Event Trigerred When Apllication Loses Focus?

Sep 16, 2010

I have done an ovveride of the standard TextInput component In this component I have :

addEventListener( FocusEvent.FOCUS_OUT, handleFocusOut ); My method is trigerred when the field loose focus for another field (nice)Problem : It is trigerred alose when the whole flex application lose focus (when my field has the current focus inside my form)

View 2 Replies

Flex :: Custom TextInput Component Loses Focus But Still Contains Cursor?

Oct 29, 2011

I have a custom TextInput that listens for the FocusEvent.FOCUS_IN and FocusEvent.FOCUS_OUT events:

textDisplay.addEventListener(FocusEvent.FOCUS_IN, onFocusInHandler);
textDisplay.addEventListener(FocusEvent.FOCUS_OUT, onFocusOutHandler);

My onFocusInHandler function basically removes a "promptview" that tells the user to type in a value, with the onFocusOutHandler doing the opposite.

For example, if the TextInput text was backspaced to a blank value and the user clicks out of the TextInput box, it would show a "Please enter a value" light-gray prompt in the TextInput.

This works fine until the user clicks our custom "Clear" button. The clear button sets the text to "", and I can tell the FocusEvent.FOCUS_OUT is received because the prompt text is set to visible (its not being set anywhere else). The problem is, the cursor remains in the box as if it still has focus, so if the user immediately starts typing, both the prompt text "Please enter a value" and the user-entered text appears over the gray text, which looks pretty ugly and unreadable.

Why does the TextInput receive the FocusEvent.FOCUS_OUT event if it's not actually losing focus?

View 1 Replies

ActionScript 3.0 :: Timer Lagging When Browser Window Loses Focus?

Sep 12, 2009

I have this SWF that is pulling videos from YouTube through their API. Everything is working nicely until I go to another browser tab or cause the window the SWF is in to lose focus otherwise (largely by using any program aside from the browser). When I return to the tab/window that the browser is playing in, if I have been away for anything over like 20 seconds, the time text that indicates where the play head is plays catchup jumping over 3-5 seconds at a time. While the video is not making these jumps, what is happening is that any buttons for controlling the video become unresponsive until the time text actually has caught up with the current position in the video play head. Thereafter all functioning for my other buttons (play/pause, full screen toggle, and sharing) returns to normal. I am using a Timer that calls every millisecond.

View 1 Replies

Flash :: Swf Quicker Loses Sound When Exporting?

Feb 21, 2012

I am using SWF Quicker to edit a flash swf file, but whenever I export it, all the sound is gone. Even if I export it without making any modifications, all the sound disappears. I have tried using different versions of ActionScript (1.0, 2.0, 3.0) and different Flash Player formats, but every time there is no sound

View 1 Replies

Flash :: Javascript - Loses Communication When Moved Inside Dom

Sep 2, 2010

Code inside Actionscript:

[Code]...

Actionscript is calling javascript functions from inside just fine, but javascript is not. What is the problem? How to rebind startupload function?

View 2 Replies

Javascript :: Isolating Flash Inside A Lightbox Loses Any Buffering Done Prior?

Mar 11, 2012

I made a very minimal javascript bookmarklet (~1 KB minified) that lets me play videos inside a distraction-free lightbox. In my script, I clone the <embed> element containing the movie and wrap a lightbox div around it, so even in those cases where the "Turn Lights Off" chrome extension fails, mine works. Only problem is that since I clone the <embed>, I lose any buffering I had done previously. This is a major turnoff as I'm on a slow connection and I don't always remember to load the bookmarklet before hitting play — the UX is downright horrible.Is there a way to improve the script so I can isolate the <embed> in a lightbox without losing any buffering done prior?

Here's my bookmarklet code (you can try it out on this site)— puts an icon next to any <embed> element on the page that you can click to isolate that <embed> inside a distraction-free lightbox:

javascript:(function(){
var isolated = false, smallestVideo=300, videoElements=document.getElementsByTagName('embed'), activate_style='width:16px; height:16px; position:relative; cursor:pointer; left:-23px;

[code]....

View 1 Replies

ActionScript 3.0 :: What The Focus 2 - Automatic-focus - Clicking To Be Able To Detect Key Input

Mar 8, 2011

[Code]...

when i have this line active(the red one) it gives me automatic focus, so no clicking to be able to detect key input so i got that going for me which is nice BUT when i have it active(not commented out) i get this big yellow line which goes away when i click it(seeBelow)

View 1 Replies

ActionScript 3.0 :: TLF Focus - Set The Keyboard Focus For A TLFTextField And Cursor?

Sep 14, 2010

can I set the keyboard focus for a TLFTextField? I tried stage.focus = myTLF but there is no cursor...

View 2 Replies

ActionScript 3.0 :: Keyboard Focus Not The Same As Focus?

Mar 16, 2009

I have a TextField called textField on the first frame of the main timeline, and this simple code.

Code:
import flash.events.KeyboardEvent;
import flash.events.FocusEvent;

[code]......

View 2 Replies

C# :: ASP .NET Loses Session Between Pages

Apr 20, 2011

I encountered a weird error, I lose sessions when moving between pages.

I lose Sessions because i use Flash (swf) menu to navigate between pages.

So when i navigate to a page using the Flash menu, I lose the session.

It doesn't let me answer my own question so here is the answer:

Thx for answering, but the problam wasn't the flash..

I just found out that the session was opened on http://WebSite.com/ And the flash was redirecting to http://www.WebSite.com/

So the session losts between domains, and not between pages because of flash :) I just made all my site use the www domain .

View 3 Replies

IDE :: Png Loses Transparency When Published As Swf?

Dec 22, 2008

I'm working on a project where I want to use a transparent png, and when authoring in Flash CS3 (using actionscript 2.0) the png image appears transparent just as it should. However when I test it the .swf file loses the transparency entirely. The png image was saved for web from photoshop as png-24.

View 1 Replies

Text Loses Style When Published?

Jul 10, 2009

I have a project that consists of 11 invisible buttons laid over a map of a building; when the user mouses over a "room," the name of the room appears. The building map is on an angle so I rotated and skewed the button text to match the map. All the text looks fine within each button symbol, but when published 4 or 5 of them lose their skew...the rotation seems to still be intact.

View 1 Replies

ActionScript 3.0 :: Loaded Swf Loses Its References?

Nov 6, 2010

I'm trying to get some things done but run once in a while, well at least, into some issues.Here is one:

I have an swf that is an image viewer/browser that has references on same level, an ImageProperties.xml and some folders full of small jpeg tiles.I actually have a few of these, each in its own folder.Above these folders I have another swf that is the main one, and I am loading from there the other ones with the code pasted at end of this post.

This works if I replace the URLRequest by just the name of the swf to load and I put the main swf with the loader function and the loaded one at same level. But if I leave URLRequest going one level deep "16/xxx.swf" and have the loader swf one level up then it loads the viewer but doesn't show the image.

[Code]...

View 6 Replies

ActionScript 2.0 :: SWF Loses All Interactivity When Loaded

Nov 9, 2004

My interactive .SWF that is called loses all interactivity when loaded, however, the .SWF works perfectly on its own. The .SWF that is called basically has 4 buttons that moves a set of 4 images 50 pix to left so it can be viewed when button is pressed.

View 1 Replies

IDE :: Disabled TextInput Loses TextFormat?

Mar 20, 2009

I have TextInput with formatting applied. I want the TextInput disabled after the user enters an answer. But disabling the field causes the formatting to disappear. Is there a way to maintain text formatting and still disable the input

Code:
import fl.controls.TextInput;
var myTextInput:TextInput = new TextInput();

[code]......

View 4 Replies

Dynamic Text Loses Format

Nov 5, 2009

I'm having some serious problems with my dynamic text fields. The case is, I format the dynamic text fields to have character spacing and line spacing both equal to 1. Everything seems fine in the SWF when the text is actually typed INTO the dynamic text field, but when I make it fetch text from Actionscript or an external XML file Flash player renders the text as if it had 0 character spacing and 0 line spacing.

View 1 Replies

ActionScript 2.0 :: .SWF Loses ALL Interactivity When Loaded?

Nov 9, 2004

my interactive .SWF that is called loses all interactivity when loaded, however, the .SWF works perfectly on its own. The .SWF that is called basically has 4 buttons that moves a set of 4 images 50 pix to left so it can be viewed when button is pressed.

View 1 Replies

ActionScript 3.0 :: XMLSocket Loses Connection After 3 Seconds?

Oct 29, 2009

am getting now really crazy over this.I wrote a shockwave application that connects to a server (this one I wrote in PHP) via XMLSockets. My problem now is that exactly after 3 seconds the client disconnects automatically from the server.Maybe some of you could review my code to give me a hint where the problem is located - note that I use ExternalInterface and call the functions with JavaScript.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="setup();">

[code]......

View 3 Replies

Professional :: Roll Over Button Loses Some Of The Letters?

Feb 13, 2010

I included two images attached to this post to explain.I have a few buttons on my webpage that lose part of the letter when I roll over them. I am using a glow effect when I roll over the buttons and the buttons were not "broken apart" before I made them buttons, I dont know if that makes a difference.

[Code]...

View 5 Replies

ActionScript 3.0 :: External Swf Loses All Instance Names?

Aug 10, 2009

I load an external swf with some buttons into another swf.Now the buttons have lost their original instance names. A trace reveals their new names to be "button1", "button2", etcetera. If I run the external swf on its own, the same trace displays the original instance names.

View 7 Replies

ActionScript 3.0 :: Loading SWF File In XML - Loses Location?

Nov 24, 2009

So I have a .swf file that loads in xml and such. Now I want to have a flash file load that into it, but when I do the loaded .swf loses the location of its files to load?

So.
File A - the loader
File B - load swf
File C - load swf xml file

All sit in the same folder
if I open file B, it reads file C no problem
if I open A that loads in B, it loses location of C and it dont load the xml? I am on access network files.

View 0 Replies

ActionScript 2.0 :: Picture Loses Quality On Fullscreen?

Jan 2, 2010

using fscommand("fullscreen","true") in flash 8 I make my window switch to fullscreen mode, the problem is when in fullscreen mode some picture in the stage actually is trying to get bigger so it gets pretty ugly and loses quality, I want to make my whole window fullscreen but I want my images keep their sizes and not resize,what should I do?

View 1 Replies

ActionScript 3.0 :: Why Menu Loses Dynamic Positioning

Jan 10, 2011

I am dynamically centering my menu movieclip using the code

Code:
top_menu.y = 0;
top_menu.x = top_menuXPos / 2;

[code].....

View 1 Replies

ActionScript 1/2 :: Orderform Loses Values On Extended Timeline

Apr 27, 2009

I am trying to create an orderform - only 5 products in it the outcome works nice but I want to check if an email address is correct and than I loose the values.The form is made in 5 frames.The first should say how to pay the second to fill in the order the third to fill in the adresss and email details than a process to check the email in PHP and when correct it should say - order send correct and when incorrect it should go back to frame 3 the outcome is in frame 2 were its hidden underneath -  to 4 in the timeline but when I hit the sendbutton and it does the check the values are not there any more.[code]

View 7 Replies

Professional :: Font (Typography) Loses Alignment While Exporting FLA

Oct 25, 2010

When I export the *. FLA was created in a machine different from mine. Every time I get a *. fla of a client in my machine and I export the fonts (typography) loses its alignment and distorts the original creation. Remembering that I have the *. FLA and fonts (typography) the original client.

View 2 Replies







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