Touch Screen Can't Trigger Mouse Down Event Correctly
Mar 12, 2010
I am using it on a Sony vaio l pc (like hp's touchsmarts) in windows 7 the app doesn't need any multi-touch gestures (only single touch clicks and drags) so i am using mouse events
everything is fine (including mouse click and move events) except that a single touch to the screen (with no move) doesn't fire a mouse down. it is fired only after a small move of the finger
outside the app, on my desktop, i see that the small windows 7 cursor jumps immediately to where a finger is placed, meaning this issue isn't a hardware or a windows problem but rather how internally the flash app receives "translated" touch-to-mouse events from the os.
for example, in a windows Solitaire game, a simple touch to the screen immediately highlights the touched card.in my app, a button will change to the down state only if i touch it and also move my finger slightly (click events - down and up - are triggered fine)
shouldn't the MOUSE_DOWN event trigger exactly like how a TOUCH_BEGIN would in the new touchevent class?
View 6 Replies
Similar Posts:
Mar 12, 2010
i have designed a gaming kiosk app in as3i am using it on a Sony vaio l pc (like hp's touchsmarts) in windows 7the app doesn't need any multi-touch gestures (only single touch clicks and drags) so i am using mouse eventseverything is fine (including mouse click and move events) except that a single touch to the screen (with no move) doesn't fire a mouse down. it is fired only after a small move of the fingeroutside the app, on my desktop, i see that the small windows 7 cursor jumps immediately to where a finger is placed, meaning this issue isn't a hardware or a windows problem but rather how internally the flash app receives "translated" touch-to-mouse events from the os.for example, in a windows Solitaire game, a simple touch to the screen immediately highlights the touched card.in my app, a button will change to the down state only if i touch it and also move my finger slightly.
View 8 Replies
Mar 13, 2010
i have designed a gaming kiosk app in as3.i am using it on a Sony vaio l pc (like hp's touchsmarts) in windows 7. the app doesn't need any multi-touch gestures (only single touch clicks and drags) so i am using mouse events. everything is fine (including mouse click and move events) except that a single touch to the screen (with no move) doesn't fire a mouse down. it is fired only after a small move of the finger
outside the app, on my desktop, i see that the small windows 7 cursor jumps immediately to where a finger is placed, meaning this issue isn't a hardware or a windows problem but rather how internally the flash app receives "translated" touch-to-mouse events from the os.for example, in a windows Solitaire game, a simple touch to the screen immediately highlights the touched card.in my app, a button will change to the down state only if i touch it and also move my finger slightly (click events - down and up - are triggered fine).shouldn't the MOUSE_DOWN event trigger exactly like how a TOUCH_BEGIN would in the new touchevent class?
View 3 Replies
Nov 7, 2009
How would one force/trigger a mouse up event (besides lifting finger) in as3?
View 4 Replies
Sep 22, 2010
I build a web site in flex that some time take input. Will this website works on Touch Screen environment(KIOSK).My question is we have to make any change to handle input such as prompt on screen keyboard when input fields are get focused or it will manage my device and OS of system(KIOSK, Touch screen system) itself.
View 2 Replies
Jun 1, 2010
I created a button that has a movieclip in the rollover state. When you rollover the mouse, the movieclip will animate to appear as if the button will scale from a small to a large button even though it is the movieclip that is playing and not the button itself. But I also want to add a keyboard code to play the rollover instead of the mouse. I learned to write actionscript to play different scenes with the code below, but I'm not sure if I can play a button rollover with the same code.
stage.addEventListener(KeyboardEvent.KEY_DOWN, key_pressed);
function key_pressed(event:KeyboardEvent):void {
if (event.charCode==49) {
gotoAndPlay(1,"scene");
}
View 1 Replies
Nov 8, 2010
I would like to know if it is possible to trigger a jquery function to hide something after a Mouse event in flash.
I want this to run when something is clicked in flash:
$("#googframe").click(function() {
$("#googframe").hide();
});
i know how to monitor a click in AS3 but how do i get it to trigger this.
View 3 Replies
Mar 3, 2012
I have a problem and I have potential solution. But I wanted to confirm if there is an easy and simple way to solve my problem.App type:Isometric Game.Problem statement:I am loading images in my flash app and have mouse events attached to them.The images I load are prop images like vehicles, trees, buildings etc., and all of them are transparent.Example: Red ball asset (please ignore the yellow background which I applied to describe the problem)If I click on the actual image area (colored in red), then every thing works perfect.I don't want to trigger mouseevent when I click on empty image part (or transparent area, which I have shown in yellow color)There is one way I know by creating masks in flash. I don't want to do it unless that is the final option left because I load image assets instead of flash assets and I don't want to create a new mask asset for all the assets.There is another method I was going to adopt by using getPixel method of Bitmap.
But there is another problem with this method.I might be able to ignore the click event when I click on the empty part of the asset but if there is some other asset is behind the image in the same location, then I need to process the click event for the occluded image.Well, thinking of solution to this problem takes me to the getObjectsUnderPoint where I can scan the occluded assets
View 2 Replies
Nov 28, 2011
I want to create a touch screen game for TV screen (not for mobile).
View 2 Replies
Mar 5, 2010
We are using CS3 and using actionscript 2.1. We are creating an application for a touch screen device and we must provide a draggable map. I have a map that is much larger than the screen size and I wish to be able to drag the map.Additionally the map needs to contain 'hotspots' which the user can click on and it shows additional information
View 1 Replies
Feb 15, 2011
Firstly, as this app will be running 24/7 I am wondering as to whether I will need to (and if this is possible) to kind of 'flush' the memory to avoid any sort of slow down. There will over a hundred images and many video clips loaded into this app so I'm thinking it may suffer a but under all this? Is there a way to make it streamline and not suck on the pc's resources and memory and to keep any sort of cache empty?Secondly, whenever I have created these sort of apps before I have just copied my projector exe and the corresponding directory of swfs, flvs etc. onto the pc running the app. Is this the best way to go? Or should I be looking into some sort of other method for distribution? Maybe I need to research AIR or FLEX?
View 5 Replies
Jun 25, 2009
how to develop a touch screen application using flash action script. It is a kiosk type application.
View 4 Replies
Jun 30, 2011
I am working on a little android app which i use Flash Builder4.5. what i want to do is when app is loading something, i'd like to disable the touch-screen,or anything similar to that.
View 1 Replies
Jan 6, 2011
i have dynamic coding for a full screen toggle button that needs to be a "double click" button. its for a touch screen. how to allow a double click for a touch screen? from what I know, for touch screens you have to use the MOUSE_DOWN event. but i need to allow for a double click. i tried the DOUBLE_CLICK mouseEvent and set doubleClickEnabled to true but it does now work on the touch screen. here is the code:
fsToggle.doubleClickEnabled = true;
fsToggle.addEventListener(MouseEvent.DOUBLE_CLICK, fullScreenToggle);
}
View 3 Replies
Sep 16, 2010
I have a touch screen computer and I want to make a little flash game for it.
picture this: the game screen will be like
[code ....]
now since its touch screen I can tap the screen and that is like a mouse click.urrent I have it so on a mouse click my hero will move to the mouse click coords.now I want to add a little box in the bottom left that in NOT clickable because I want a shoot button there and I dont want the char to move there so like this
[code ...How can i make a little box like that which will not detect a mouse click?
View 6 Replies
Dec 13, 2011
I recently discovered that the MouseEvents in my Flash animations aren't working on touch screen Android tablets. Is there some extra code that I need to add to make this work? There's an example at [URL]. My other issue is more of a web design issue, but the animations are not placed correctly on the webpage.
View 2 Replies
Jul 25, 2010
When the touch screen is idle for a period of time, for example, let's say half hour, I need to show an animation on the screen while nobody is interacting with it. When someone touches it again, the animation will disappear then the touch screen presention will resume.
View 2 Replies
Nov 18, 2009
It has been awhile since I have worked in flash.Right now I am working on something where I would like a panel to disappear when someone mouses off the stage.stage.addEventListener(Event.MOUSE_LEAVE, leaveHandler); It usually works fine but if I move my mouse really fast it doesn't fire. I have also tried the same thing using a custom invisible button that surounds the perimeter of the stage and I have tried ROLL_OVER and MOUSE_OVERand again, if I do it too fast my event doesn't fire (I am using trace)I can't find anything on the net about this - is this typical of flash that if you move your mouse too fast you break it? Do I need to increase my frame rate (I would really rather not because I have perfectly timed animations - I am at 30 frames per second)
View 1 Replies
Dec 2, 2010
How to trigger a custom jQuery event from Flash, passing some data through event object?
View 2 Replies
Dec 6, 2011
I'm trying to make a vieport in which you can pan by dragging the background image around. Here is what I've done: [URL] Note that I've hidden the mouse cursor and replaced it with 2 custom ones. The problem is, the event attached to the background, which is a touch event, fires even when the mouse is over a sprite/movieclip (the monkey or the stats) that's in front of that background. And the stats isn't even in the gameLayer (where the monkey and the bg and the mouse cursors are). Try to drag the stats around, and see that the background and everything else pans with it (this is unwanted). Also, I need to remove the custom cursor and show the regular cursor whenever the mouse is NOT on the background (i.e. when it's on the monkey or stats or any new sprites I may/will have in the future).
[Code]...
View 1 Replies
Jun 5, 2011
I have a problem that seems easy enough to solve but I'm trying to do it with reusable code, which involves doing something I don't understand yet. I've googled this endlessly and read dozens of articles and I'm still just as lost as when I started. I'm hoping a live human being can help me make sense of it.
I have a movie clip on stage. When this movie clip is pressed, I want it to play a certain frame of another movie clip for as long as it's being touched. (It's a map of the US, that will display each state name as it is pressed.) I COULD write 50 different functions, each to call a different frame of the displayName movie, or I could write my own custom event that would be able to receive from each touch event a string variable to then tell displayName which frame to play. So basically, I have, for example:
[Code]...
View 8 Replies
Aug 23, 2011
I am using flash builder4.5 and creating simple touch event function in pure Action script mobile project. When I run with on desktop running it not works but mouse event works. How can I get this to work with touch event function on desktop running
Here's my Code
package {
import flash.display.Sprite;
import flash.events.TouchEvent;
import flash.text.AntiAliasType;
import flash.text.TextField;
[Code] .....
View 3 Replies
May 12, 2011
I have a class file defined in my package as MyGlobals.as.[code] (I have tried adding/removing "static" and "dynamic" to no effect.)I am trying to call a touch event from the main timeline in this way:myObject.addEventListener(TouchEvent.TOUCH_BEGIN, MyGlobals.myFunctionName);(I have tried removing the class name to no effect.)When I compile I get the error 1046: Type was not found or was not a compile-time constant: TouchEvent. This error occurs on function definitions in the class file.What syntax/concept am I getting wrong? The functions were working fine when I was using constants in the timeline, but I need to be able to reuse these functions over and over again, so I wanted them to be able to take touch event variables so that I didn't have to write a different function for every touch event.I tried googling "error 1046" but I can't find anything useful.
View 3 Replies
Jan 26, 2012
I just started playing around with as3 and I have a function for mouse clicks that draws a shape on each click. However the mouse click event does not appear to work unless I click a movieClip object I placed in the middle of the screen. Is there a way to make the mouse click event recognize when I click anywhere on the screen?
[Code]...
View 2 Replies
Mar 17, 2010
I have made a jigsaw puzzle game, that can be scaled up to have lots of pieces. Now I want to implement it so it can be played by more than one person at a time on a large multi-touch screen. I'm not sure how is best to proceed.
Ive had a look at some development kits and some tutorials and they seem to go into too many gestures etc. I literally only need the capability to move more than one piece at a time. So is it possible for flash to simply deal with this as multiple mouse down events rather than going into multi-touch gestures etc. Or do I need to do it another way?
View 2 Replies
Jun 9, 2009
My client ask me for build some flash application which will be show on his kiosk exhibition. And what I wondering is it any different kind of addEventListener for touch screen interface? Or it is similar like mouse click or double click?
View 4 Replies
Feb 17, 2009
I want browser click the proper characters to trigger an installation,but each time i click them, the IE replys to the path of that exe file.How to correctly trigger the exe file...?
ActionScript Code:
alert_txt.html = true[code]......
View 2 Replies
Jan 12, 2011
I have found a great resource for a fluid flash layout but there is one glitch with the site in that when it loads the content is all pushed up into the top left hand corner, if you then click rescale the browser it then fills the screen correctly but not initially. Here is the site:[URL]
View 2 Replies
Mar 3, 2009
I am loading a movie clip dynamically to the stage where I have a static fullscreen button (Flash component). After clicking the fullscreen button and in Full_Screen mode the static full screen button works without a problem, but the dynamic button event seems not to trigger at all. I wanted to attach a fla file, but mine is way over 300KB.
Here is what the file does: The script loads an external flv and loads cuepoints from an XML which trigger a dynamic button to appear on the stage at a certain time and to disappear after 5 seconds. When clicking the dynamic button the text on the button should change to "You clicked button 1". The problem is this works fine in Normal Stage mode, but in Full_screen mode only the static full screen button works the dynamic button doesn't trigger at all.
Here is the code from the fla:
PHP Code:
import fl.video.*;
import fl.video.FLVPlaybackCaptioning;
import fl.video.FLVPlayback;
import fl.video.MetadataEvent;
import flash.events.Event;
import flash.net.URLLoader;
[Code] .....
View 1 Replies
Mar 2, 2002
i attempted to add some code to call up another pop-up while my flash loads. since then my problem is this: both pages are called up correctly except that they come up full screen. this never happened before. i have specified the W and H variables in my flash script as 400 x 415, which worked fine before. the only thing i changed was adding the extra code at the start of my flash anim, and the pop up title.
View 7 Replies