AS3 disable two fingers tap response - actionscript-3

My AIR Desktop project is currently using
Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
to allow multiple user to interact with it.
But when I published the project and tested on the touchscreen (Chinese touch frame for windows, no driver), It had this weird two fingers tap effect happened in this video. https://www.youtube.com/watch?v=j9Kbnngs4sc
which I don't want it.
I tried created another simple file using GESTURE mode instead and this weird effect has gone. But I need to use TOUCH_POINT mode.
The question is: how to detect or disable two fingers tap it in as3 TOUCH_POINT mode.
Thank you in advance,
Pucka

Related

Weird flash player glitch (12.0.0.41) in Chrome only

Very recently, after the latest Chrome update which includes Adobe Flash Player Version: 12.0.0.41, a flash app that's been running smoothly for years has begun to "hiccup" during one particular function.
Normal behavior - User logs in to app. App grabs some xml files then draws a calendar onscreen.
Hiccup behavior - User logs in to app. App grabs the xml files but feezes before executing the loadComplete function (according to trace). By freezes, I mean the little load spinner remains onscreen but stops spinning and the calendar doesn't appear onscreen.
Interesting/maddening notes - The mouse cursor responds as if the calendar has been drawn (arrow changes to pointer when mouse passes over an invisible calendar day) but according to my trace log the loadComplete and showCal functions haven't fired.
ALSO, any call to a function unfreezes the glitch (e.g. clicking an invisible calendar day, mousingOver a control button, etc. Anything that triggers a function.) and bam! everything's there and the trace log completes as it should.
As stated, this glitch only occurs in Chrome with the latest Flash Player update (12,0,0,41).
Installing the mozilla version of the flash player debugger (12,0,0,43) and instructing chrome to use it instead fixes the glitch, but using it in chrome opens up a whole new can of worms when it comes to flash player glitches (as is to be expected).
Maybe there's nothing I can do and it's just a fault with the latest Chrome flash player build, OR...
There's something fundamentally wrong with my code and Chrome's latest flash player is the only plugin that glitches on my "wrong" code?
I'll happily include some code snippets if someone is convinced my code is the problem but am leaving them off for now since this question is enormous. (you're a trooper for sticking with it)
I'm hoping someone else has experienced this or can at least explain it/fix it. Thanks in advance.
I'm seeing very similar symptoms on an application I work on Frankenscarf. All workarounds have been ineffective thus far. I can confirm it is specific to 12.0.0.41 Pepper Flash. I think you might need to wait for google to fix the lasted release...
I am also having problems with Flash 12.0.0.41 on YouTube, videos very laggy and dropping frames all the time even making the video stutter on 320p. I have disabled Chromes built in Flash player though Chrome://plugins, installed Chrome 11.7.700.260 and now have the videos running smoothly even at 1440p. Hopefully they will sort out the bugs soon.
I wasn't able to edit my original post...
UPDATE: I managed to get a workaround going. I set up a periodic timer (triggering every 500ms), that calls invalidateDisplayList() in my largest container. It is horrible, but it works....

Flash video doesn't show up for unknown reason

I created a flash "intro" (ponicawater.com). On my computer and on my sister's computer it works perfectly, but I receive some messages from people, trying to load the website unsuccessfully. Some of them see a little flash player icon in the top left corner, other see only the first frame, but it's inactive. What could be the reason for this happening and how to fix it?
I see 4 water bottles that move up when you mouse over them.
I think anyone trying to solve this problem needs more details.
What browser & OS did this happen on? Do they even have a current version of Flash Player installed?
I suspect they may be using an out-of-date Flash Player.

as3: why cursor won't hide?

I've tried everything... it won't hide.
Obviously tried Mouse.hide()
tried different player versions (10.2, 10.3, 11)
tried Mouse.hide() everytime there is a mouse event on the stage
tried compiling to swf, projector, debug player...
I'm on Mac OS Lion, and I suspect this is the problem, but I'm not sure. As I can't try on another machine. Never had this problem until I upgraded to Lion and CS5.5 at the same time.
I'm out of ideas...
I'm compiling with Flash IDE CS5.5 version 11.5.1.
Any idea is appreciated.
TIA
Update: in fact the only way to hide the cursor is to switch to another application and then come back to the flash projector.
Try setting your wmode option to window when embedding the swf.
So I came back to this problem after some time and the solution in my particular case was this.
Mouse.show();
Mouse.hide();
It works with the projector player 11.1 in Mac Os 10.7.3.
This bug still exists but I've run across a workaround. This problem only shows up if the application is set up to start in full screen.
Without fullscreen mode on Flash Player the cursor will go away with
Mouse.hide();
Then in Flash Player, select Full Screen from the menu.
Sometimes it takes a couple of times.
In a pinch, this was a very useful discovery, although it is by no means an acceptable workaround for all occasions.
I'm using Flash Player 14 on OSX

SWFUpload alternatives

I've developed a system that uses SWFUpload to easily allow the user to upload multiple files with a progress bar showing them the upload progress. It all works fine in my development environment, but is failing for some users in the wild with the Flash movie not loading. I can see the Flash movie is there, if I right click it a window appears saying Movie not loaded... (Then on the next line) About Adobe Flash Player 10...
So far I've not been able to determine what was causing the failure.
Are there any other alternatives to SWFUpload that will allow for:
Upload progress bar
Allow multiple uploads
Alternatively, any ideas on the cause of the SWFUpload issue?
Here are a few:
http://valums.com/ajax-upload/ (No flash required)
http://www.uploadify.com/ (jQuery)
http://digitarald.de/project/fancyupload/3-0/showcase/photoqueue/ (mootools)

AS3: How to get fullscreen and keyboard input?

Since flash doesn't allow keyboard input while in fullscreen mode I'm wondering if there is a workaround to that?
I have a flash that is going to run fullscreen in a browser and needs different kinds of keyboard input. I have read something about AIR, but I don't fully understand it and would like another way if thats even possible.
Anybody knows?
public function setFullScreen():void
{
this.width = Capabilities.screenResolutionX;
this.height = Capabilities.screenResolutionY;
this.stage.align = StageAlign.TOP_LEFT;
this.stage.scaleMode = StageScaleMode.NO_SCALE;
this.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
}
Use the FULL_SCREEN_INTERACTIVE
This is now possible in Flash Player 11.3+
Simply compile your application to support a minimum version of 11.3.0 and it will work if you use:
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
in your html you must put:
<param name="allowFullScreenInteractive" value="true" />
you will see a prompt when you enter full screen:
you can see an example on this official adobe blog:
http://www.leebrimelow.com/wp-content/uploads/2012/04/overlay.gif
It is not possible to get input key with fullscreen mode within the browser.
Air is only for desktop application so if your application have to work into the browser no Air for you.
If you have to get input into fullscreen mode you can try to make a virtual keyboard (an example) and user will use the mouse to press the keyboard key.
It actually is possible in Flash 10, but only for a few keys. See this page:
Understanding the security changes in Flash Player 10
Flash Player 9 does not allow keyboard
input when displaying content in
full-screen mode. Flash Player 10
changes this, allowing for a limited
number of keys to be usable in
full-screen mode. These include Tab,
the Spacebar, and the (up, down, left,
right) arrow keys.
Another option is to just use the browser's built-in fullscreen capability. All major browsers offer it as far as I know (IE, Firefox, Chrome, etc). Usually it's under View->Fullscreen, hotkey F11. Depending on the browser it will either give you the entire screen, or maybe leave a small bar across the top/bottom. Then you simply need to make your flash application expand to fill the entire HTML page.
Patrick is right. Due to security risks, your going to have a tough time getting your goal met. Adobe AIR is your best solution and will be easy to achieve in your state.
Here is a great video to get your started from Lee Brimelow. http://theflashblog.com/?p=403 (Building AIR Applications in Flash CS3)
Since AIR applications are built right in Flash or Flex, all you will need to do is configure how your application compiles, and you have yourself a Adobe AIR application capable of utilizing the keyboard while running as a cross platform desktop application.
Ahh, AIR is not for browsers? Too bad. Seems like I won't be able to get everything I wish for :p I have functions for the most important things without the keyboard functions, but I would really like them all of course.
I'll look into Silverlight then and see if thats an option.
Thanks guys! :)