iOS touch events & wck

Post about the Flash World Construction Kit and the Alchemy port of Box2D.
trappedinabox
Posts: 2
Joined: Tue Dec 27, 2011 11:23 am

iOS touch events & wck

Postby trappedinabox » Thu Jan 12, 2012 3:35 pm

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 141 times

Return to “WCK”



Who is online

Users browsing this forum: No registered users and 2 guests