Questions tagged [dispatchevent]

170 questions
0
votes
1 answer

dispatchEvent(new MouseEvent(MouseEvent.CLICK)) do not work in as3

Im trying to call a mouse event of MovieClip not by clicking it. I wrote recButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK)); but it does not work here is that part of the code: package { import flash.display.Sprite; import…
Ghazale
  • 5
  • 5
0
votes
0 answers

easeljs cannot dispatch event

I want to dispatch my event,but it doesn't work. this is my code and I've deleted some irrelevant parts . (function(window){ function HeroSelectView(){ …
Metsa
  • 1
  • 2
0
votes
2 answers

Flash-AS3: Calling a function in a Class from another Class (Part 2) via DispatchEvent

Hey this question is in reply to Joel Hooks's comment on an older question of mine (How to call a function in a Class from another Class?) I was able to fix my own problem using a public static var to reference one of my Classes, so in the other…
Leon Gaban
  • 36,509
  • 115
  • 332
  • 529
0
votes
2 answers

Simple flex popup with dispatch event in child and listener in parent not working

Parent.mxml This file is calling the popup class below when the button is clicked.
0
votes
1 answer

Dispatch custom event onto a dynamicaly loaded SWF

in my Main class I dispatch an event that should be recived by a .swf file, I did load earlier (via loaderMax). Unfortunately the eventListener doesnt recive the dispatched event and therefore doesnt do anything. I posted the short version of what…
tschery
  • 153
  • 2
  • 15
0
votes
2 answers

eventDispatcher from a sub class to another class

I have been struggling with the following for a couple of hours now, how do you call a custom class from another class if you do not extend that class for example. I have on my main Base class a timer event,…
0
votes
1 answer

Dispatch Event When Listener Is Added - ActionScript3

Is it possible to dispatch an event from an object when an event listener is added to that same object, without overriding the addEventListener method of that class? I am working on a modularized application in AS3. Several of the modules…
user163757
  • 6,795
  • 9
  • 32
  • 47
0
votes
1 answer

Custom property event in jQuery

I intercept all the click events in my iframe with this code: $(doc.body).on("click", function(e) { if (e.from === undefined) { e.preventDefault(); e.stopPropagation(); interceptEvent(e); } } The interceptEvent(e)…
jenjis
  • 1,077
  • 4
  • 18
  • 30
0
votes
2 answers

dispatchTouchEvent of the surrounding layout to the containing button

I have 5 linearlayouts each which contain a radiobutton and an ImageView and some padding. I'd like the radiobutton to be clicked if the user clicks on any part of the linearlayout in which the radiobutton is contained. In order to get the onpressed…
AndroidPenguin
  • 3,445
  • 2
  • 21
  • 42
0
votes
1 answer

android runnable not being cancelled

i've an app that plots the route between the current user's position and that of a postcode from another activity. It all works well apart from one feature. I've implemented a timer via a handler/runnable mechanism. If the display is not touched for…
turtleboy
  • 8,210
  • 27
  • 100
  • 199
0
votes
1 answer

Manually Dispatching a DocumentEvent for testing UI element validation code

I'm testing a Swing GUI application using the UISpec4J testing framework. I'm testing validation code on a JTextField, but the framework does not support focus-change events, as it runs the application in a headless fashion. The text field has a…
Bassam
  • 585
  • 1
  • 5
  • 10
0
votes
2 answers

How and when to get user's input from address bar in BHO

I'm writing a BHO for IE. I want to get user's input from address bar. The input can be a url or search key word. Beacuse there are other BHOs will change the user's input as a eligible url. I don't need the change and want to get the raw input from…
Nicholas
  • 151
  • 1
  • 1
  • 4
0
votes
1 answer

dispatchEvent not working in piecemaker 2

i have tried to research this issue, but being a flash newbie i struggle to wade through the terminology... i am using the piecemaker 2 slider on the landing page of my BudeStrings Dev Site. the slider contains a total of 5 slides; the first is a…
janimal
  • 41
  • 1
  • 2
0
votes
1 answer

Communicating from Child SWF

I'm struggling with communicating from a child to parent SWF in a project, where the parent is calling a child from within a movieclip. The parent movieclip has this in the actions layer var loader:Loader = new Loader(); var defaultSWF:URLRequest =…
Neilisin
  • 27
  • 10
0
votes
1 answer

AS3 dispatchEvent parent playhead position

I've recently taken on a project which is loading SWFs into the child SWFs which not only is messy but also slow and incomprehensible to debug. Therefore, I'm trying to find the correct procedure to call back and forth between a parent and child…
Neilisin
  • 27
  • 10
1 2 3
11
12