Flex :: Programmatically Set Focus To HorizontalList So That It Could Receive Key Events?
Oct 26, 2009
look at the code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:creationComplete>
[Code]....
As you see, I try to make my HorizontalList focused when application is loaded. And I actually receive Received focus message in console. But I expected that I would be able to navigate over list elements with arrow keys after setting focus. But that's not the case. They work only after clicking component with mouse. How to make list have focus and respond to arrow keys?
View 2 Replies
Similar Posts:
Apr 19, 2010
I have a base ShapeContainer(UIComponent). I add a uicomponent which has mouse down listener to ShapeContainer. the listener works great. When I add a simple sprite(draw square) on the ShapeContainer, The listener does not work any more. In the code, if I comment below line, The event listener works fine.
[Code]....
View 2 Replies
May 5, 2011
Is there a way that a flex based application (in the browser or AIR) can listen to windows events (or any other OS) when it is not in focus?Lets say that my AIR application is minimized and I want her to be notified when ever new data was copied to the clipboard?
View 1 Replies
Oct 8, 2010
I'm trying to develop a simple mxml Flex application to start Skype from the AIR/Flashplayer runtime. Is it possible to get back events from a native Windows application? In the simple example of Skype, the OS returns control to the Flex app when Skype exits. But what about native applications which have their own event model and wants to communicate with the Flex event model. For example, a Face detection system which shows "Hello" on a Flex app when the camera detects a face. Can this be done in the current Flex framework?
View 1 Replies
Nov 17, 2011
I am trying to write a small piece of Actionscript that gives focus to a TextInput. The reason being, I don't want my user to have to click into the text field to see the cursor and start typing, it should just already be there.
View 1 Replies
Dec 21, 2010
I want to build a simple web 2.0 collaborative website using asp.net MVC2 or Flash and I want to receive events from a web based interface to a desktop AIR application. For e.g, someone makes a comment on a blog post, I want that information to be passed on to a desktop air application showing that a new comment has been made. What would be a good technique to receive asynchronous events?
View 2 Replies
Mar 3, 2011
I'm considering using Adobe Air to write an application for the android marketplace.I was wondering if anyone could tell me what (if any) the limitations are with regard to getting / handling system events.For instance can you pause the app if the user receives a text message?Or detect if they have their music playing and mute your app's sounds?It would seem a real pity if Air cannot do this.
View 1 Replies
Jul 9, 2009
I've got a movieclip on my stage that contains a scrollbar and a few buttons.I have a function that rotates the uses _mc.rotationX=10;After an interval the function uses _mc.rotationX=0;After the movieclip has be rotated back to its original position the scrollbar and buttons no longer receive mouse events.[code]
View 2 Replies
Feb 25, 2010
i want to populate a horizontalList component from a xml file, the width value will be inside the xml file as well with all the data.actually i have this code:
<mx:Model id="epg" source="epg.xml" />
<mx:Component id="customRend">
<mx:Label text="{data.description}" width="{data.width}"/>
[code].....
View 1 Replies
Mar 4, 2010
I'm using a HorizontalList control with an XML file as a data provider. This is how the XML looks:
[Code]...
I tried using an array of objects as a dataprovider. The item renderer works and the horizontallist behaves as I expect it to. However, when I use an xml file, it's empty.... I don't know why it's not working.
View 1 Replies
Oct 9, 2009
I am having some issues when trying to skin the scrollbar on a horizontalList with Degrafa. The scrollbar doesn't show up at all. I checked to see if the scrollbar is supposed to show up without the skinning, and it does.Here is some code:This is where I define the HorizontalList where I want a skinned scrollbar.[code]I am populating the HorizontalList with more items than are viewable, and like I said before the scrollbar shows up when I remove the skinning.
View 1 Replies
Mar 5, 2010
I'd like to remove the rollovercolor of a horizontallist (my component has a background image)I've tried using a css style sheet by setting the "roll-over-color" property to "transparent" But I get a black background >_<
View 1 Replies
Aug 15, 2009
I have a HorizontalList that is resized at runtime. The problem is that the items are not adjusting their height to the height of the HorizontalList. I use an item renderer (vBox) which has its height set to 100%. But the items always stay at their initial size.
View 1 Replies
Dec 29, 2009
I'm trying to remove an eventlistener on (in this specific case) a HorizontalList. The list is initialized with the property itemRollOver="playPreview(event)" I'd like to remove this eventListener by switching state and stating something like: <mx:SetEventHandler target="{horList}" name="itemRollOver" handlerFunction="null" />
This doesn't seem to work. The event is still handled and playPreview(event:ListEvent) is still called. How to properly do this? (I know I can do it in Actionscript, but I specifically want to do it by means of state switching)
View 1 Replies
Oct 28, 2010
TextFiled is not receiving mouseEvents, coz of the sprite on top:
[Code]...
View 3 Replies
May 18, 2011
Just wanted to ask is it possible for a flash app to capture mouse and keyboard events when it loses focus. I've tried putting it in a div container through SWFObject library and than used jquery forward mouse events plugin, but without success. My idea was to capture mouse events (click event) on the body and then transfer it to the flash app
View 2 Replies
Oct 26, 2009
I'm trying to put the text back into a text field on FOCUS_OUT one character at a time. On FOCUS_IN, I want to remove the text one character at a time.
Here's the basic code:
major.text = "ActionScript 3.0";
major.addEventListener(FocusEvent.FOCUS_IN, inFocus);
major.addEventListener(FocusEvent.FOCUS_OUT, outFocus);
function inFocus(event:FocusEvent):void {
major.text="";// want to clear the text one character at a time
} function outFocus(event:FocusEvent):void {
major.text="ActionScript 3.0"; // want to put the text back in one character at a time
}
I attached a fla. that does this in ActionScript 2.0, but I'm trying to do this in ActionScript 3.0.
View 6 Replies
May 12, 2011
I am trying to find out how to continue to receive keyboard input to my app when the app is not focused. For example, if I dock my app to the system tray, is there a way to continue to receive keyboard input to be fed to the app?
View 1 Replies
Jul 6, 2011
I have a spark skinnable component which contains a datagroup with images. The datagroup is scrolled by hovering the mouse over it. Everything works fine except one thing: after I change the datagroup provider, I need to scroll down automatically. The problem is the images are not loaded immediately after I set the provider so (contentHeight - height) does not yet represent the actual maximum scrolling position. Is there an easy way of telling the datagroup to scroll down as its content loads? Because the workaround seems to be not so straightforward. This is the code for scrolling(thumbnailStrip is my datagroup):
[Code]...
View 1 Replies
Aug 13, 2009
I am trying to center itemRenderers in a horizontal list if the number of items in the list is less than the maximum visible number.
View 4 Replies
Oct 17, 2010
I'm using a dateField component (with editable = true) as an itemEditor in a dataGrid. Interestingly, when editing the textInput part of the dateField it doesn't seem to react to an ESC keydown as I would expect, i.e. reload old dateField value and give up focus. This seems to be standard for most other components, but not for as most other components do.
How would you go about implementing such behavior? I can listen to keydown == escape on the TextInput portion, but just realized that I don't know how to tell dateField to give up focus and politely close - in fact I'm not even sure that's the right strategy (maybe I should work at the DataGrid level?
View 1 Replies
Dec 20, 2009
I need to create a workaround for a button issue. I don't know how to have one button created by one class send a click event to another item created in a different class
Therefore, I'd like to place both of my buttons on top of one another, alpha one of them out and have both buttons receive the same click.
View 1 Replies
Feb 2, 2010
i'm able to display xml content on my swf file but how can I send the changed xml file back to my rails Server?
View 2 Replies
Jun 2, 2010
The orange square is the currently selected selected sprite. The sprites are all draws from coordinates that i receive from XML. var sprObject:Sprite = new Sprite();
[Code]...
What I want to do is the following. If I'm currently on the orange square and I use my keyboard direction buttons (up/down/left/right). I want to deselect the current sprite and select the next sprite in the appropriate direction. The problem I'm having is that I cannot get the x and y coordinates of the drawn sprites. If I look in the array, the x and y coordinates of the sprites are all 0. If I can retrieve that I can write an algorithm to determine the next sprite to select.
View 1 Replies
Jun 30, 2011
I've written this piece of code to use a PHP script to send data to Flex.[code]...
If there is no way to use HttpService for this end (i.e. send image files), how can one do it then? I've seen it in an app I worked on so I'm positive it can be done.
View 2 Replies
Apr 21, 2010
Any example of a telnet/chat or other console like FLEX application where you can use the same TextArea as input/ouput area. I've been trying to modify the app at: [URL] but so far, computer says no. All the implementations I've seen use a combination of TextInput and TextArea.
The challenge is that we'll be using this app to telnet into some old routers and we'll need to do a fair amount of copy/pasting. Based on what I've seen, it seems that I would need to point the mouse into the TextInput in order to be able to right click and paste, which is not very sleak.....
View 1 Replies
Aug 20, 2010
I am writing a online game with flex and java server and I have a big problem. In normal case, my game run smoothly but some time the clients can't receive the command from server. I found that if server send message too fast or client is doing something when server send message, the game client can't detect for a new message so my game is freeze. I only tested with 4 clients and I don't know what happen when thousands clients online in the same time. So terrible :(. In the game client, I use one EventDispatcher class to dispatch any command from the server. Do you have any solution to warranty that client must receive any message from server when the connection is still alive or server must know if client received the message or not. I use flex 3 with Socket (binary) and Java QuickServer.
View 1 Replies
Apr 5, 2012
I am having an issue with sockets where the data I'm sending is getting truncated on the client side (Flash/Flex). The data that is sent by my server is full and in tact, but flash does not wait the appropriate amount of time before firing an event saying to read the data. This results in the data not getting fully read and (as such) I can't parse the object out of it after that. We are exploring the possibility of stripping the object into smaller chunks, but the idea is for it to be as lightweight as possible so we would much rather get it to work the way it's supposed to than patch in a temporary solution.I'm not entirely sure if referring to it as the receive 'buffer' is correct, as some computers are able to receive all of the data and others are having it truncated (which means the buffer is adequate but flash isn't waiting the appropriate amount of time to dispatch the event for whatever the reason).
View 1 Replies
Oct 27, 2009
i want to make a simple chat with flex as3 and red5 media server
my idea is that i send from the swf a message to the server and the server sends it to all the swfs (including the one that sent the message)
i just don't know how to to send and receive and how to receive from the server
View 2 Replies
Jan 31, 2012
I am developing application with Adobe Flex on AIR platform. Using native extension for Android, it is possible to send SMS from my Flex application. Would it also be possible to receive SMS with my application (receive Broadcast carrying information about incoming SMS)? More generally, is it possible to receive Android Broadcasts in my Flex application?
View 1 Replies