Actionscript 3 :: Drag Using Pan Gesture In Flex Android App?
May 2, 2011I'm using flash builder burrito and i'm having a mobile application.Is it possible to drag an UIComponent using pan gesture event?
View 1 RepliesI'm using flash builder burrito and i'm having a mobile application.Is it possible to drag an UIComponent using pan gesture event?
View 1 RepliesI want to implement an flex application using actionscript 3: with the camera and the virture buttons(like a image) in the camera, one can move his hand to pass over the virture button field in order to fire the button. Now my solution is following this way: capture the button field in every frame to get a bitmapdata, and calculate the gray-scale summation of the bitmapdata, if the difference between the two frames is greater than a given value, then fire the button. Actually, it could work, but it is very sensible to the lighting condition of the background, worse, when there are more than one buttons, people often fire the button by mistake.
View 2 RepliesThere are samples to show how to access front camera of android devices using android sdk.
View 1 Repliesis 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 RepliesI'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?
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 RepliesUsing 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 RepliesIs it possible to use Air on android and access the compass? I saw there is some acceleration support[URL]..If it is NOT accessible, would it be possible to do some communication between a native android-app listening for compass update and an air application?
View 2 RepliesActually i have created one dashboard in flex. But now i want to integrate this dashboard or make same dashboard for Android.
How i can achieve this? I want to make dashboard for Android.
I have a problem - How to run AIR (really big desktop application) on my Galaxy Tab 10.1? It's possible convert .air to .apk?
EDIT:
1. I set up a new desktop project (File -> New -> Flex Project)
2. Project name is "simpleTest", Application type is Desktop (runs in Adobe AIR), Flex SDK version 4.6.0 and click to Finish
3. I go to Design mode, then set the width to 500 and height to 250. I add one button by drawing and name it btnOne and make Generate Event Handler
4.Then I go to Project -> Export Release Build (Export as Signed AIR package) -> Next (I apply the certificate) -> Finish
5. I find the project file (...Adobe Flash Builder 4.6simpleTest) and copy simpleTest.air into a new file (simpleTestAPK - which contains my certificate > andCert.p12)
6. I rename "simpleTest.air" to "simpleTest.zip" and from this .zip I unpack just "simpleTest.swf" and "application.xml"
7. I create a "create.txt" containing as follows:
adt -package -target apk-debug -storetype pkcs12 -keystore andCert.p12
myHope.apk application.xml simpleTest.swf
8. I rename "create.txt" to "create.cmd" and launch it (Shift + RMB -> Open cmd here)
9. "myHope.apk" is created
10. I copy this to Galaxy Tab 10.1 (with drag&drop)
11. I launch "myHope.apk" but all I see is blank, white screen, no colors, no buttons, nothing.
I'm creating an app to deploy for iOS and Android and I'd like to give them slightly different filenames (need to add a space so that name displays on two lines on Android). Is there a way for me to define this in the app.xml without having to change it each time I export?
View 1 RepliesI would like to move (right or left according the current view) between 2 views when I move my finger on the mobile screen; for example with Google+ mobile application, in profil section, you can change the view just on move your finger on the screen, and the offset and the moving speed must be checked before change complete view.
View 2 RepliesCurrently I am working on applying a pan gesture on the picture within a scroll pane component to allow the user to browse the whole picture by just touching the picture instead of using the horizontal and vertical scroll. However, it seems to be always moving the whole scroll pane and not the picture inside,below is part of the script,
spImage = new ScrollPane();
spImage.move(-220,-250);
spImage.setSize(440,500);
spImage.source = "Images/"+movieXML.title[_currentMovie].image+".jpg";
[code]....
By using the above script, I can only move the whole scroll pane and not the picture inside, how do i apply pan gesture on the content?
I have searched the internet and i can not find anything,I would like to use the zoom event listener to scale a image but I don't want it to scale from the registration point I want it to scale from where the gesture was made. I thought this would be a common request or even built into the zoom gesture class.
View 7 RepliesI looking into developing an AIR application for carPC's.These pc's all have touchscreens, but usually not multitouch. Also Windows 7 will reconize them as a mouse, not as a touchscreen. Now I know AS 3 supports gestures
View 3 RepliesHas anyone worked on gesture recognition? I want to know how to proceed on comparing two similar gestures. E.g. : If A draws a circle on the screen, B should draw the same and the program should compare both the circles.
View 2 RepliesI am basically developing an application for Android which allow user to zoom in on a certain page and use pan gesture to move around the stage, however, I am just wondering is it possible to replace that pan gesture with touch move input so the user can actually move around the page just using a single touch point?I've tried doing it but the single touch will always overwrite the zoom gesture.Zoom and pan gestures working properly
private function onZoom(event:TransformGestureEvent):void
{
this.scaleX*=event.scaleX;
[code].....
I Have a swipe gesture to next frame event, but i also have a pan gesture event. I fear that the swipe wont cound it will just pan the image, is my theory correct? any guesses?
View 1 RepliesSo I need an open-source Video Gesture actionscript library/api. So we have a web cam... we move a hand and it causes some events...
So i need motion detection for navigation API/Lib
I have made an animation in Flash, that would be ported to the iPhone/iPad; I want the animation to play when you rotate your finger on the screen and to stop immediately when the finger is lifted (Without starting the animation over), When the user would continue rotating their finger, the animation would continue to play.
How would I approach this in ActionScript 3.0?
I need to create an image gallery where the main image is centered, when you click down on it and "swipe" it to the left or right, the next/prev image will be center. It should kind of imitate the feel of the iphone page swipe motion. Here is an image link. Does anyone know any good tutorials or how I can get started with AS3?
View 2 RepliesI got the multitouch touchpoint works, but can't manage to make the multi gesture works
ActionScript Code:
Multitouch.inputMode = MultitouchInputMode.GESTURE;
bigleft.addEventListener(TransformGestureEvent.GESTURE_SWIPE, swipeleft)
bigright.addEventListener(TransformGestureEvent.GESTURE_SWIPE, swiperight)
upon swiping at the same time, it does nothing but when it's one after another it works.
anyone know workaround for this?
Want to make an Image gallery that responds to a swipe gesture. Found some tutorials but they were a bit vague. Someone an idea where I can find some good ones? How to test this on a windows pc? I do not have a certificate (I know that there are some illegal cert. on the internet), just want it to test it on a simulator?
View 1 RepliesFail to control my timeline with the gesture swipe; I have tried but without any success. ive created frame labels at every 20 frame as a navigation points and some motion tween between each 20 frames.
View 0 Repliesi 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.
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 RepliesI 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 RepliesI 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.
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.
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