ActionScript 3.0 :: Flash Touch Events Slowing Display In Air Android?
Apr 4, 2011
I'm still having some problems understanding these touch events...or maybe something else..can anyone enlighten me as to what i'm doing wrong in this code?? Only left as1&2 to go to 3 recently so I'm sure I have bad habits and misconceptions but. In the IDE i have a button on the stage called: "touchBtn" and a textfield called "timer"
the problem i have is that if i touch the button fast / lots, the display rate really slows down...I know this is down to something I'm doing totally wrong but not sure what..
[Code]...
View 2 Replies
Similar Posts:
Jan 11, 2012
Just wanted to ask if there is any advantage for either using mouse click event or touch tap events, when writing apps for mobiles or tablets (for the iphone especially)?
I know that both of them should work fine, but in term of performance, is anyone better? Are there any things I should be aware of when choosing either?
By the way am using actionscript3 to implement the app.
View 3 Replies
Jul 12, 2011
I am trying Flash CS5 for ios development, but TouchEvents don't works on my ipod. My ipod is jailbroken. The code I try is here:
[Code]...
View 1 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 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 2, 2012
I am developing a game for Android using Adobe AIR 3.0, also i am using Samsung Galaxy S2 to test my game, and is running pretty well with decent 30 fps.to control the game-play, i am using virtual joystick and some button on screen (e.g. to throw weapon, jump etc). however it seems that multitouch is not working fine, if i press one button and and in the same time if i down another button. first one stops working. here is the code snippet which defines multitouch behavior -
[code]...
for jump button, virtual joystick etc - i am using TouchEvent.TOUCH_BEGIN event.
View 2 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
Aug 28, 2011
I changed them all to mouse events (I was told mouse events would still work on an iPad) and without doing anything else (just changing them to mouse events) the app started to function in testing. But then I transferred it to my iPad and it didn't work. At all. It didn't do anything.
[Code]...
View 1 Replies
May 7, 2011
I am trying to write a simple program, just to practice, that will use touch events for an iPad. I don't have a developer account and so am testing the app on my computer. However, it does nothing. Clicking the mouse on the movie clip does nothing. I even copy and pasted someone else's code so that I was sure it wasn't because I got my syntax wrong. Nothing. Is there a way to test touch events on a computer, or do I have to compile the app and send it to an iPad everytime I want to test the app? Is there no AIR simulator that will simulate touch events using a mouse, as there is with XCode?
View 4 Replies
Jun 10, 2011
I have a (semi) functioning prototype of an app and am trying to test it on an iPad.But when I export and install the ipa on my iPad through iTunes and Launch, most of the functionality is gone. In fact, all that happens is my buttons light up. Nothing does anything else.
Player: AIR for iOS
Script: Actionscript 3.0
Included .swf, .xml, and all relevant .as class files
Published using quick publish for device testing
And that's it. I opened the .ipa in iTunes and synced. And nothing works.
View 12 Replies
Jan 18, 2011
I wrote a code for handling google maps in a multi touch table. On the map itself, I have a sort of button that, if touched, makes a tool bar show up. On the bar I have a slider and a button, both of them activated by touch events. My problem here is that when I touch objects on the bar, the touch event pass through the bar and it is fired also on the map below, making my map move. Uff, this is very annoying.
View 1 Replies
Apr 3, 2011
I am developing a game for the Android platform using flash cs5 and AS3.
problem: the game will run at 24-29 fps until I call a movieClip that has frame by frame animation, then it will drop to 10-14 FPS. It looks perfect on my PC and does not lose frames until I move it to my Evo for testing. I have tested on an Epic also and I do not lose Frames which leads me to believe that it is the pixil population in the evo that is causing the problem but I have tried everything I can think of to not make it so intense on the graphics but same results every time.
It's a 20 frame animation and my FPS in flash is set to 24
What I have tried:
png's on each frame |
gif's on each frame |
[Code]....
View 1 Replies
Sep 6, 2010
I have built a multi-touch application which is based on a Java EE backend and combined with BlazeDS to a Adobe Flex frontend. The application runs on a DIY-Multi-Touch which I built. Now I want to use another solution. The Adobe Flex frontend (with a multitouch library) and the BlazeDS adapter should be replaced by a solution which covers iPhone/iPad, Android and commercial Multi-Touch displays.
The problem is the iPad/iPhone, there is no Flash Player runtime (not the jail-breaked ones), but the application should be runnable also on those devices. So Adobe Flex and a Java frontend (no JVM on the iPhone/iPad) is not possible anymore. At first, starting the developing of the application it was not neccessary, to run it on Apples mobile devices, but this changed So, what can I do, using HTML5? So I can use it for Android and iPhone/iPad. But I also want to make it possible to use it on a commercial multi-touch-display and normal display with a mouse (I only have gestures for one finger, the 2-finger gestures are not neccessary). Are there any frameworks that allow this? Because I do not want to create several frontends (App for iPhone/iPad on Objective-C and a Adobe Flex for all other devices), it would be great if I can build a frontend for all devices.
View 2 Replies
Mar 3, 2011
I'm considering using Adobe Air to write an application for the android marketplace.I was wondering if anyone could tell me what (if any) the limitations are with regard to getting / handling system events.For instance can you pause the app if the user receives a text message?Or detect if they have their music playing and mute your app's sounds?It would seem a real pity if Air cannot do this.
View 1 Replies
Sep 3, 2011
I want to handle the mouseevents for all the sprites on the stage including the one those are hidden behind (or overlapped or occluded) and the main condition is that I want to handle the occluded sprite (that hidden behind other sprite). example, say I have sprite1 and sprite2 on stage and I want to start drag whenever i click on the sprite and stop drag after another click.
This can be done easily, but the problem and my main requirement is that if I drag the sprite1 and drop it exactly on top of the sprite2 then sprite2 will be hidden behind the sprite1 I wont be able to drag the sprite2 without moving the sprite1 first. if you have played zynga's empires and allais game on facebook, it is handled seperatly, it is how it works in that game, the mouse event is triggered on the sprite behind the overlapping sprite, if you have two sprites overlapping one sprite than the mouse event is triggered on the sprite which is last and not the one in front irrespective of whether there is only one sprite overlapping or two or three and this happens to irregular shaped sprites (not just rectangles)
View 1 Replies
Dec 13, 2011
my application uses a webView to display flash webpage. And there is a inner button which direct other url. I want to click the button then go to the system browser. But it doesn't work in Android 3.2 tablet.So I override the shouldOverrideUrlLoading method, :
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
// TODO Auto-generated method stub
[code].....
View 1 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
Aug 31, 2011
I am currently developing an application in the latest version of FlashBuilder and I cant seem to find out how I can incorporate AdMob ads or any other Ads into my application.There seen to be a few tutorials online focused on Flash however im not sure how to get those to work in the Flex environment.
View 2 Replies
Feb 7, 2012
What is the best way to display a large amount of text (5000-10000 words) in a Flex mobile app?
I have been loading text in through an xml file using itemrenderer. It works totally fine when I run the application on my PC but when I load it onto my Android phone it crashes. Looks like my phone can only handle loading in about 3000 words using this method without crashing.
Anyone have a suggestion? Also, HTML isn't going to work for me. I want the text built into the application, which is why I have been trying to use the xml file.
View 1 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
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
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
Jan 27, 2012
the selection indicator isn't shown at the text input fieldis there any solution for this problem ?i am using flash builder 4.5 + flex in Android mobile Application
View 2 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
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
Nov 24, 2009
I have a gallery flash that loads a pictures from xml. The pic slides on from the right. When btnNext is clicked it slides off to the left and the next pic slides on from the right. There is also a btnBack which slides on the previous pic. There are around 200 pictures.
I have now spent weeks on and off trying to figure out why it slows down and starts to chug! I figured out, with the help of individuals on this forum, how to remove the pictures when they are off stage. It definitely helped but its not yet resolved.
This flash is quite processor intensive with the amount of graphics. But the thing is, when the flash start off it goes fine but after so many pictures it starts to chug. Which seems to me that there is somehting it is not GCing or something of the sort!
[Code]...
View 2 Replies