Questions tagged [dispatchevent]
170 questions
0
votes
2 answers
Getting results from dispatchEvent in Flex 3
I have the following custom event:
package com.un.photoManager.events
{
import flash.events.Event;
import mx.collections.ArrayCollection;
public class CreateAlbumFolderEvent extends Event
{
// when creating an album, we need to know which…

Chris
- 85
- 8
0
votes
1 answer
JTextField dispatchEvent Doesn't Work, But Works For TextField
In my program, I wanted to invoke an ActionEvent on a TextField named descField, when the focus is lost. I used dispatchEvent successfully. When I changed the TextField to a JTextField, it doesn't work. I would be grateful for some help (I am an…

user1364337
- 1
- 1
0
votes
2 answers
AS3 dispatchEvent in forEach
I've populated an array.
i need to take each item in that array , perform some calculations on that item push the result to the array then move on to the next item in the array and so on.
The calculations are made in a separate class. Then when the…
0
votes
1 answer
Dispatch event from nested activity to container activity
I have next UI hierarchy:
FragmentActivity > MapFragment (tabhost with one tab and LocalActivityManager) > MapActivity
How do i dispatch Search and Back key pressings from MapActivity to FragmentActivity?

Nik
- 7,114
- 8
- 51
- 75
-1
votes
2 answers
Can dispatchEvent() carry arguments in AS3?
Behold this example:
addEventListener("myEventType", myFunction("argument"));
function myFunction(args:String):Function {
return function(evt:Event):void {
trace(evt.currentTarget, "has", args);
};
}
dispatchEvent(new…
user1869316