Questions tagged [dispatchevent]

170 questions
0
votes
0 answers

Dispatching click event on anchor in timeout stops following link after 1000 ms

Here is the plunkr: https://plnkr.co/edit/zhWBY7G0ALnM8dBSZ5nm?p=preview If you change that 1001 to 1000, the dispatch will work as expected - the link will be followed. The event handler always gets invoked as expected. It's just the default…
jhodara
  • 84
  • 2
  • 10
0
votes
1 answer

AS3 The ways to dispatchEvent

I was wondering the difference between these two dispatchEvent method... //1. eventObj:YouTubeSearchEvent = new YouTubeSearchEvent(YouTubeSearchEvent.CHANGE_VIDEO_READY); eventObj.videoId = theOneVideoId; …
FlyingCat
  • 14,036
  • 36
  • 119
  • 198
0
votes
0 answers

Dispatch key event back to the previous activity

I have a edit-text on one of my activity in which the user has to enter an already given text. After the user enters 5 characters, a new activity is called which displays a transparent screen on the top of the current screen. I want the user to…
Lalit Agarwal
  • 173
  • 4
  • 14
0
votes
1 answer

Flex dispatchEvent to exit an ItemEditor

I have an ItemEditor with a ComboxBox. To improve user experience, I would like to exit the ItemEditor each time the user select a value in the combobox. So he doesn't have to click outside the cell to validate his choice. I did this, but it is not…
0
votes
1 answer

flex 4: swfloader as2 game, can i catch a customevent that was sent using mx.events.EventDispatcher?

I'm building a flex 4 container for action script 2 flash applications. I use component to load the game. I know that i can catch events or even custom events from an action script 3 application. working example for action script 3…
ufk
  • 30,912
  • 70
  • 235
  • 386
0
votes
3 answers

multiple dispatchEvent calls on a JButton

I have a customized JButton in a Java Swing application. it changes it appearances according to mouse event. MouseEvent.MOUSE_ENTERED - will trigger the hover image for the button. MouseEvent.MOUSE_PRESSED - will trigger the pressed…
uzil24
  • 156
  • 4
  • 13
0
votes
2 answers

Having a dispatchEvent triggered on an object how can I find out how to listen to it and where the event is dispatched?

I have some code build by someone else and I am trying to alter some form values when an event is dispatched Here is the line of code _instance.dispatchEvent ( "ADD_ROW", { 'container' : $li, 'value' : data } ); What I can't seem to do on a global…
orbitory
  • 1,090
  • 5
  • 16
  • 40
0
votes
0 answers

ActionScript 3.0 - Dispatch event class to class

I'm working in Action Script 3.0 and I have a question in DispatchEvent class. following code is standalone class. I want to dispatch event to 'main' class and 'sub' class when event occured. I'm stuck on this issue. please help me. package com { …
Glossy Bean
  • 50
  • 1
  • 7
0
votes
1 answer

AS3 Dispatch event not working

I'm really confused here. I get the code to work flawlessly and then went back and tried something and now it won't work. I can't seem to figure out when now and I'm starting to be really frustrated as a result. I also don't seem to get any errors…
0
votes
2 answers

Updating external Flex components from an action

I'm new to Flex and am having trouble understanding Events. I think Events are what I want to use for my situation. I have 2 components, addUser.mxml and listUsers.mxml. I access these from a ViewStack in my main application. When I load…
Scott
  • 21
  • 2
0
votes
1 answer

AS3 dispatchEvent not working on class

i created this event class: package com.site { import flash.events.Event; public class clientEvent extends Event { public static const connectionSucceeded: String = "connectionSucceeded"; public var prams: Object; …
Razdom
  • 13
  • 2
0
votes
1 answer

Java Passing ActionEvents to parent component

firstly apologies if the title is brief, I've thought it over but can't come up with a summary short enough for my question. I have a JPanel class which consists of JButtons. I have my main Swing application class, which has Swing components, AS…
Arthur
  • 595
  • 1
  • 7
  • 17
0
votes
1 answer

Simulate a keyboard key pressed with dispatchevent of keypress

Can someone help me with this code. I am trying to simulate a keyboard input for a web page without specifically specifying the control to send it to. I am trying to do so through createEvent and dispatchEvent. but when I receive the actual…
user3396975
  • 1
  • 1
  • 1
0
votes
1 answer

ActionScript 3 - accessing variable on root not working

I have a variable (String) frame 1 scene 1 called 'test'. I also have a movieclip called 'pointerMC'. Inside pointerMC, I have another movieclip called handMC. Inside handMC, I want to dispatch an event like so: root.dispatchEvent(new…
user2817200
  • 1,097
  • 2
  • 18
  • 38
0
votes
1 answer

AS3 conditional dispatchEvent?

Is it possible to target a mouseEvent via a dispatchEvent in AS3 whilst controlling the conditions withing the Method? I'm able to work out how to target the Method but wondered if it's possible to simulate a click with showing==n being active at…
esadude
  • 37
  • 1
  • 10