Box2D Forums

It is currently Wed Jul 30, 2014 2:13 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: iOS touch events & wck
PostPosted: Thu Jan 12, 2012 3:35 pm 
Offline

Joined: Tue Dec 27, 2011 11:23 am
Posts: 2
Hello All

I am having an issue with touch and drag events with wck under flash CS5.5

I haven't been doing anything too advanced, pretty much set up a project like this: http://gotoandlearn.com/play.php?id=135

I have a .BodyShape that I want to be able to drag around and have it bounce of walls when released. When I publish to FLash Player all works ok - I am able to drag the .BodyShape with the mouse. When I publish with air for iOS (inCS5.5) and test on my iPad, it's not so ok. On being touched the .BodyShape initially jumps away from the point of touch by a varying distance, it can then be dragged as normal.

I'm not sure why this is happening. It seems like wck is seeing the asset as larger than it is and shifting the registration point for the touch from the centre of the asset.

I guess I might be be missing something to make it properly handle touch events?

I have attached the project file and link to a video of what is going on: http://vimeo.com/34978769

Any ideas greatly appreciated as I am a bit stuck at the moment!


Attachments:
wck_Box2D_iOS touch.fla.zip [171.61 KiB]
Downloaded 111 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group