-
29 Jan 2013 9:02 AM #1
Unanswered: Integrating Sencha Animator with Sencha Touch (Events)
Unanswered: Integrating Sencha Animator with Sencha Touch (Events)
I've got a (very) basic animation in Sencha Animator, and I wanted to efficiently implement it in Sencha Touch as a snazzy button. I was able to get the animation into my project by dropping it into a component as an iFrame:
This works! But I want to use this animation as a button, listening to events on it (really only a touch event) and triggering behavior from it. What's the most effective way of doing this?HTML Code:{ html: '<iframe src="resources/html/index.html"></iframe>', width: 115,},
Thanks!
Kyle
-
29 Jan 2013 9:08 AM #2
Might have figured it out. In my iFrame, I added:
If you set up a global function at the higher level, you can access that. So you can probably drill into the Ext component framework in a more responsible way then having a global function. I'm going to play around with that.window.addEventListener('click', function() { window.parent.handleButtonPress();})
-
29 Jan 2013 9:33 AM #3
Eh, scratch that. Events work as expected in the browser, but (like so many things) the behavior is different on the device. Any other tips?


Reply With Quote