Android :: Know Where The User Touches?
Mar 7, 2012
I'm trying to do that when the user touch (not click with mouse the program runs on androidthe code gets the (position of) touch x and y (like _xmouse but it dosen't work on ndroid)
How can I do it?
View 1 Replies
Similar Posts:
Dec 30, 2011
I have a AS3 Android Application that is playing background music but when the user leaves the application, the music still is playing in the background. Is there a method to call that senses the user leaving the application so that I can turn off my music?
View 2 Replies
Apr 28, 2011
I have a service that uses computer webcam via Flash. Now I'd like to develop an Android optimized version of the service using HTML5 + Flash and then use some HTML5 wrapper to get an app.
I wonder if it's possible to use the same ability of Flash that provides an access to user's phone camera (frontal) on the Android (tablet pcs, smart phones). I know Android supports Flash since 2.2, but I failed to find any information on hardware access.
View 1 Replies
Jun 20, 2011
I am trying to use the Flash + Set the browser to a desktop agent on the Galaxy Tab.
mWebview.getSettings().setUserAgentString("Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.11) Gecko/20101019 Firefox/3.6.11");
mWebview.getSettings().setPluginsEnabled(true);
So the issues is, when the UserAgentString param is enabled, flash player wont load as many websites like Iplayer don't recognise the browser in the WebView.
This may be a bug in the Samsung browser. Anyone have any desktop agents that the WebView will accept whilst enabling flash?
View 1 Replies
Oct 25, 2009
I added attack to my character in the game and he attacks and the enemy dissapears, the problem if I can't get my character to die when he touches the enemy. I got it to work once but what happened was that even if I hit the enemy, as soon as I hit it I got to the game over screen and got stuck on a loop between the gameover screen and the moment I defeat the monster.
View 2 Replies
Dec 7, 2010
I want to find out if the user is currently using more than one finger to draw on the screen.currently, the TouchEvent object doesn't have any property like touchCounts, which tells the number of touches on the screen. it just has a touchPointID, which helps to identify a particular touch.
do i need to handle this on my own ? for eg: in the TOUCH_BEGIN event handler i could see how many different unique touchPointID i have received and update the count myself.
View 1 Replies
Oct 24, 2006
Just like the picture below, I only want the codes execute if the object touches the side of the rectangle, but not the corner, how do I do that?
View 1 Replies
May 26, 2011
I got another problem that I just can't figure out how to solve.
PHP Code:[code]......
When I click Player, player goes to the right in speed 20. When he hits the wall he stops. BUT, he doesnt stop until the registation point hits the wall. Registation point is in the center. But I want him to stop directly when Player touches Wall.And Im gonna have wall around the "map". So i need him to stop if he touchs LeftWall, RightWall and what ever.
View 5 Replies
Jul 5, 2011
I'm currently making a flash game and to insert sound. The sound effect has to play everytime the character touches the coin yet the coin still has to be able to unload. I never used sound before in flash.
View 1 Replies
Jun 7, 2009
I'm making a game using Cs3, and As3, And I need a way to make it so when the character touches a swirly thing it goes to another scene...How do I do that?
View 3 Replies
Nov 17, 2009
I am currently making a platformer game and I want to make a hitTest script that makes a character that touches a few spikes teleports to a position on the map.
[Code]...
View 0 Replies
Jan 25, 2011
i have an AIR android app which i am running on an android device ( samsung TAB ). i want the app to get laid out in landscape mode when the user starts the app holding the device in landscape ( same goes with portrait ).
but the AIR app always gets started in portrait mode irrespective of the way the device is held.
i tried the following ways use stage.deviceorientation (but when the app starts (after the applicationComplete notification ) the value is UNKNOWN) use stage resize event. (this gets triggered at start itself, a manual resize is not required - the values are based on portrait mode though - the width is 600 and height is 1024 (should have been otherway) )
i get correct values when i try changing the orientation of device, only at the startup i see problem with the required values.
View 1 Replies
Oct 28, 2011
I have an as3 built osmf video player swf that we embed on a standard HTML page. When you touch the image the video automatically goes fullscreen and begins playing. Droid and Flash often break after changing back and forth between landscape and portrait while in fullscreen.(by break I mean freeze, where you can hear the video and use the controls, but everything is just a still frozen image, the redrawing fails).Can you lock the fullscreen orientation in html, javascript, or do you have to try to handle it inside the swf?
View 1 Replies
Mar 14, 2012
I working on a project where the client side need to capture video and audio from the camera, use some library (proberly ffmpeg) to convert from mp4 to flv and send it to flash server on realtime,in the other side the client need to get flv and convert it to video type of android on real time. Is it possible to do?
View 2 Replies
Dec 29, 2010
I am porting my flash games on android. I have ported 3 successfully. But the problem with all of them is they are giving very low frame rate near about 7-8. And I have observed 1 thing that frame rate always varies. Sometimes it goes upto 45 and again in next frame it comes to 3-4 and again goes to 15-16.
I am quite confused. Please let me know if anyone is having any idea about this.
View 1 Replies
Apr 14, 2011
I am loading flash SWFs into an android WebView.I want the SWF to be instantly fullscreen and focused.The class name that handles flash is com.adobe.flashplayer.FlashPaintSurface .
Watching the log, when I fullscreen the flash manually, it calls com.adobe.flashplayer.FlashPaintSurface.toggleFullScreen()The first part of my question is, How can i call that method manually for my flash swf? Note that with a webview with a flash embedded, the only way i seem to be able to fullscreen it properly (to have flash's surfaceview fullscreen instead of the flash being displayed over top of the webview view) is by touching the screen with two fingers until an interface pops up at the top of the screen, and doesnt happen reliably.For focus, inside my webview class I call
@Override
protected boolean drawChild (Canvas canvas, View child, long drawingTime) {
if (child.getClass().getName().equals("com.adobe.flashplayer.FlashPaintSurface")) {
[code]...
This doesnt set the focus as I thought it would. Although i assume, if fullscreened properly, the flashpaintsurface should give itself focus. But if if the first part is not doable, i would wonder at least to not have to give focus to the SWF by clicking on it on startup.
View 1 Replies
May 17, 2011
There are samples to show how to access front camera of android devices using android sdk.
View 1 Replies
Jul 20, 2011
I have loading the webview in my Activity. the Web content is having some flash content. when i try to finish the Activity. Its taking too much time. the screen goes to blank screen for little time and resuming to the app.
View 1 Replies
Nov 16, 2011
I can't find this information online or in the documentation, does anyone know what versions of Android and iOS the AIR 3.0 captive runtime is compatible with? I'm assuming there is some restriction there, but short of actually compiling a program and trying it on iPhone for example, which I don't have, how can I tell which OS versions are supported?
I know that you can compile an Adobe AIR 2.7(?) application to target say Android 2.2, but what about the captive runtime with AIR 3.0? Also I don't see anywhere to find out the iOS version restriction with AIR, as you have to pay $100 to Apple to even get the SDK which would allow me to make an iOS project in the first place.
View 2 Replies
Dec 2, 2011
I gone thorough the adobe flash builder video tutorials and did the same thing to create an application for android device, but when i run the application it is showing Sorry dialog box saying that, The application Test1-debug(process air.Test1.debug) has stopped unexpectedly. Please try again. I tried many times but it is not working. Initially i thought no Adobe-AIR in my device, but it is there. I am using Reliance 3G Tab. I don't why it is not working, if anybody know this please reply me.
One more thing, i downloaded one APK (which is designed with adobe flash or flex) file from [URL]..and installed on my android device. When i run that application only blank screen is appearing, but in video they shown, it is working. Why it is happening like this?? Is any problem with my tablet ?? or application ?? or adobe AIR not installed properly on device ?? Like this i am getting too many doubts.
View 1 Replies
Dec 12, 2011
I am trying to load a flash in a webview using the codes below
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.getSettings().setPluginState(WebSettings.PluginState.ON);
mWebView.loadUrl("http://www.adobe.com/software/flash/about/");
but when I import android.webkit.WebSettings.PluginState; eclipse return an error, asking me to search repositories to find it , the minSDK of my app is 7, any ideas?
View 1 Replies
Feb 21, 2012
What is the right way to view .Swf files that plays .Flv videos in Android? The code that I am using right now to enable Flash support in web view is
[Code]....
For the HTML file, I'm using swfObject. The problem is that I can open up the SWF file just fine from third party apps like SWF Player from the market. In addition, I can load up the HTML page from the browser by calling it directly through file:///. However, when I load it up using my webview, I'm stuck with a blank screen.
View 1 Replies
Sep 14, 2010
I want to use Adobe Flash in the development of Android applications. But how do I install flash on the emulator so that I can test my software with flash?
View 5 Replies
Mar 16, 2011
I have implemented an Augmented Reality application on Adobe Air for Android. When I publish my app on the android mobile phone (Nexus One) the 3D models that I have created don't appear on the screen.On flash CS5 it is working fine.I have used Away3DLite engine and I have imported a 3D collada object.I have also tried to publish some projects that I found online and I checked if the the 3D model appears on the screen but it doesn't show it either. how the 3D Models that I have imported in my project using Away3DLite can be visible when I publish the application on the android phone. Some extra stuff be usefull: I'm using GPU rendering.A also using a combination of the following softwares in order to create my AR application:
FLARToolkit
FLARManager
Away3DLite
I have created one 3D Model on 3DS MAX and another one on Maya 2010.
View 1 Replies
Jun 1, 2011
I need to add some animation to the UI of my application. Something similar to the Talking Tom application that is all the rage these days. I am a complete noob to animation, so had the following questions to zero in on a particular platform before I began with any development.
Out of Flash/Rendered Images/OpenGL which one would be the fastest to implement (assuming that I have a graphics designer to do the drawing)? If I was to go with flash, would I still be able to interact with the application or will it be more of a one-way play-and-stop kind of animation? I have looked over a lot of questions on SO about this issue and have not been able to make up my mind.
View 2 Replies
Nov 12, 2011
There are way for:On USB connect to PC (or other flash drive reader) - hook process and allow access only specified files and folder on android (custom store)?
View 1 Replies
Dec 1, 2011
is it possible to record Audio on iOS and Android with Adobe Flex Mobile? I can't find anything about that feature on Adobe's website.
View 1 Replies
Jan 26, 2012
I've recompiled my app with Flex 4.6 / AIR 3.1 and now when I upload to the Android market it says my app is using a "android.permission.BROADCAST_STICKY" permission. In it's simplest terms what is it and can or should I turn it off (it's not in the app descriptor file)?
BTW I used captive runtime for the first time in this upload. Would that have anything to do with it?
View 1 Replies
Mar 12, 2012
I have a problem with Flash builder, I can't find the "Flex mobile project option in the list" How can I install it?
View 1 Replies
Oct 14, 2010
Using AIR for Android, is it possible to call from Flex into an NDK library? If so, how can this be done? I have a large C library that I need to use. I know that I can do this from an Android Java app (through JNI), but I have a large Flex codebase that I'd like to reuse.
View 2 Replies