ActionScript 3.0 :: Multi-Touch Events Passing Through Objects?

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


Similar Posts:


ActionScript 3.0 :: Flash To Simply Deal With As Multiple Mouse Down Events Rather Than Going Into Multi-touch Gestures

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

Actionscript 3 :: Iphone - Touch Events Vs Mouse Click Events?

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

ActionScript 3.0 :: Multi Touch Textfield?

Dec 19, 2010

I'm doing some application on the multitouch, everything is working fine, everything can be rotate, expand (pinch) but only one problem...all my text field disappear when I rotate it... but somehow the textfield will reappear when I rotate it back to its original angle (180 degree)...

can anyone tell me what to do so that my textfield will not disappear when I rotate it?

View 1 Replies

ActionScript 3.0 :: Make Multi-touch In IPhone App?

Jan 21, 2011

I'm new to these forums and just have a question that I can't seem to find the answer to.I'm building an app for a project that requires the use of mutli-touch, not neccesarily gestures butore like triggering two seperate events on differant parts of the screen at the same time.To be more specific, say i have one movie-clip that triggers an event by a mouseOver listener and anotherthat triggers an event by a mouseDown listener, is it possible to have these events trigger simultaneously when theuser places a finger on each movie clip at the same time?

View 10 Replies

Android :: Multi Touch And Adobe AIR For Mobile?

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

ActionScript 3.0 :: Capture MacBook And Air Multi Touch Scroll?

Jan 31, 2009

Does anyone know if the Flash Player / actionscript can capture MacBook and Air multi touch Scroll (two fingers) or any other multi touch user interactions?

View 4 Replies

Zoom Flash Multi-touch On Windows 7 / Configurable?

Oct 29, 2009

I'm testing a Flash application in Windows 7 that uses the mouse wheel to perform a zoom. When I do a standard pinch gesture the app properly zooms in or out, so I'm guessing that somewhere the gesture is getting converted to mouse wheels. The only problem is that the zooming is really slow.

View 1 Replies

ActionScript 3.0 :: Touch Events Still Not Registering?

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

Professional :: Test Touch Events In SWF File?

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

ActionScript 3.0 :: Touch Events Don't Work On An Actual Device

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

Flash :: Iphone - Packager For IOS And Touch Events Don't Work

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

Iphone :: One Frontend For IPhone/iPad, Android And Multi-Touch Displays?

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

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

ActionScript 3.0 :: Test If Two Objects Touch Each Other?

Jul 3, 2010

I'm trying to create a game and I need to test if two objects touch each other. the problem is, that the hitTestObject fires before the two MCs actually touch... This is worse if one of them's rotation has been changed. How can I overcome this and get a better hit test? Is there some sort of ready class that deals with this?

View 3 Replies

Actionscript 3 :: Make Sound Only Play Once When Objects Touch?

Feb 25, 2011

I have a griddle_mc, bacon_mc, and BaconCooking.wav. I want to play the wav when the bacon is moved onto the griddle. If I move the bacon until it just touches the griddle the wav plays fine, but if I continue to drag the bacon_mc across the griddle the wav becomes loud and distorted, almost like it's playing multiple instances of the wav at the same time.

private function __handleSliceDown($evt:MouseEvent):void {
slice1_mc.startDrag(true);
}

[code].....

View 2 Replies

ActionScript 3.0 :: Control Mouse Click Events In A Multi-dimensional Array?

Jun 13, 2011

I have a question regarding the use of mouse clicks events in a multi-dimensional array (or a "2D" array as we refer to them in Java and C++).
 
Background
 
I have an array of objects each with a corresponding mouse click event. Each object is stored at a location ranging from [0][0] to [5][8] (hence a 9 x 6 grid) and has the specific column and row number associated with it as well (i.e. tile [2][4] has a row number of 2 and a column number of 4, even though it is on the third row, fifth column). Upon each mouse click, the tile that is selected is stored in a temporary array. The array is cleared if a tile is clicked that does not share a column or row value equal to, minus or plus 1 with the currently targeted tile (i.e. clicking tile [1][1] will clear the array if there aren't any tiles stored that have the row/column number

[0][0], [0][1], [0][2],
[1][0], [1][1], [1][2],
[2][0], [2][1], [2][2]

or any contiguous column/row with another tile stored in the array, meaning that the newly clicked tile only needs to be sharing a border with one of the tiles in the temp array but not necessarily with the last tile stored).
 
Question
 
What is a clean, tidy way of programming this in AS3? Here are a couple portions of my code (although the mouse click event isn't finished/working correctly):

[Code]....

View 14 Replies

Multi-stage Objects From InDesign

May 13, 2011

I have exported a page from InDesign to FLA that contains an InDesign multi-state object (MSO) and when I bring it into Flash and export as a SWF, the MSP just cycles through all the contained images. There's an Adobe KB that states that this is a known issue and that ActionScript can be used to stop the MSO from cycling. Does anyone know the ActionScript used to stop this?

View 1 Replies

ActionScript 2.0 :: Resize Multi Objects Through Loop & Incrementing Variable?

Jan 5, 2009

if i wanted to modify the xy size properties of several pieces of media through a looping function and an incrementing variable how could i do it? resize multi objects through loop & incrementing variable

View 1 Replies

ActionScript 3.0 :: Depth Control On Isometric Grid With Multi Tiled Objects

Mar 29, 2011

i am creating a isometric game looks something like farm ville and city ville..i almost done everything. but but problem is only with sorting depth. find the attached .fla. this code is working in certain situations but not every time.

View 1 Replies

ActionScript 3.0 :: Passing Events Out Of A Class?

Apr 28, 2009

So I've created a custom class which makes use of a Sound object. The Sound object loads a sound from a URL, and I attach and event listener to it to see it when it finishes loading i.e. Event.Complete

MY question is this: how do I receive this event outside of the class? For instance, I want to be able to create an instance of my class somewhere else, load a sound and attach an event listener to my custom class that listens for the event thrown by the sound. Understandably, I don't want to make the sound object a public variable.

View 3 Replies

ActionScript 3.0 :: Passing Events Through Hotspots?

Jan 13, 2010

I have two hotspots, one partially overlapping the other. The top one is set to listen for MouseEvent.ROLL_OVER. The bottom one is set to listen for MouseEvent.CLICK.Both work correctly in the non-overlapping area and I can get one or the other to work in the overlapping area by changing the order of the layers but I can't figure out how to get a click in the overlapping area to get through to the lower hotspot, the top one always captures the mouse event. I tried playing with the parameters for the 'addEventListener', 'useCapture' and 'priority', with no success.I am now trying to use'getObjectsUnderPoint()'  but so far can't figure out how to make that work either.

View 3 Replies

ActionScript 3.0 :: Passing Time Events To Java Object?

Jun 27, 2009

I am working on an flash application that requires that all user interaction are stored in a database. The application will have thousands of lessons and needs to keep track of how long each user views lessons and scenes with in the lessons.

I would like to come up with a good solution on how to accomplish this with out having to send a call to a serve side object every few seconds. I could store the data in an as3 object and pass it when the user finishes a scene or exits out of a scene. However this would not work when a user just closes the browser. Maybe I could tie in some JavaScript.

View 0 Replies

Media Server :: Application Sharing (passing Events Over Network)

Mar 3, 2010

I wan't to share the application over the network using as3 with FMS in such a way that events performed on application on one PC should also reflect on all the connected PCs. for example if I shared a notepad, the task performed by me on that notepad should be reflected to all the connected users and vice-versa, like remote desktop works.

View 2 Replies

ActionScript 3.0 :: Animate Objects On Screen On Certain Events?

Oct 22, 2010

I want to make the clown dance when he catches a hat (I have a tween for that) who otherwise will be simply standing, Basically I need to animate objects on certain events and then stop, I see so many game makers doing that, I know nothing about it, tried a lot on my own but with no success

View 3 Replies

ActionScript 3.0 :: Events Reaching 'hidden' Objects

Aug 13, 2009

I've made a class which dispatches a string in order to switch languages on a site that I'm working on these days.The objects that should listen for this event type (let's call them targetobjects) are located inside some objects that are located in some objects (3 levels).[code]model to reach the targetobjects I have to make an addEventListener and handler function on the stage, the grandpa object and the father object.Could it be a way to make the targetobjects listen for the LanguageEvent.LANG_CHANGED by themselves?

View 3 Replies

ActionScript 3.0 :: Passing Objects Into Flash From JS?

May 12, 2011

Can you pass an Object into flash from a button click instead of a String?

View 2 Replies

ActionScript 3.0 :: Passing 2 Objects When Saving XML?

Mar 23, 2009

I am using PHP to save an AS3-generated XML document to my server. This works absolutely fine. Now, I'd like to be able top pass a filename along with my URLRequest under which the file would be saved.

When doing this in HTML it would be pretty easy and I would simply POST 2 seperate values, but how to do this in AS3?

View 2 Replies

AS3 :: Dispatch Events To Objects Not Related On The Display List?

Nov 18, 2009

So, events bubble up the display list. That's great if that's what you want. But what if you have objects on the stage that are not related that need to listen for events from each other? A simplified example:

var objA = new ObjA;
addChild(objA);
var objB = new ObjB;

[Code]....

Object B can listen for events dispatched by object C. But I also need object A to listen for events dispatched by object C. Also, these objects are created in different classes so I can't hard code references to each other.

View 3 Replies

ActionScript 3.0 :: Making Mouse Events Ignore Objects?

Apr 1, 2010

How can I make a mouse event ignore, or skip over another object? Say I have a small Sprite on a Large sprite, I want it to act as if the small sprite isn't there, and pass the mouse events directly through to the larger sprite behind it. I've been searching for this for a while and have tried various things but no avail.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved