The buttons in my app respond normally when I test the swf file. When I test the ipa file on my iPad the buttons dont visually change when touched although the app functions correctly when the buttons are touched. A test app with just one button displays the correct up/over/down states on the iPad. I have not added any code to alter the normal button display state behavior.but apparently I've done something that effects it.
Im using CS5.5 and the iPad is updated to iOS 5. I'm using common library buttons and depending on Flash/AIR to handle single touchEvents as equivalent to mouseEvents. Any suggestions as to why button states might not display normally in iOS would be very much appreciated. MB
Could you please open a new bug report about this issue at bugbase.adobe.com? Please include sample media, code, project or app to help us reproduce the problem. Finally, once the bug has been added, would you mind posting back with the URL so that others affected can add their votes and comments?
Adobe Flash Runtime team
The bug report number is 3013850. Is it really a bug if there is an error in my code that is ignored by the emulator but fails in iOS?
Edit Nov 13: not AS3 code related. The problem occurs if I publish my FLA with a default Class and test on iPad.
I have updated the program/app several times and tested it again. In each case the buttons still work normally when I publish with AIR for IOS and test the SWF. The buttons do not change visual state when I test the app on an iPad. The same problem occurs when I test the app on an iPad 2. The app is ready to upload to Apple so I really need to find a solution. Has anyone else experienced a similar problem with button states not showing properly? MB
After a lot more testing I determined that Buttons do not display their state on the iPad if there is a Slider component present (from the standard component library) - even if it is positioned off Stage. For testing, create a FLA with a standard Button and Slider. When I test it on the iPad the Button does not display the Down state. If the Slider is removed it works fine.
A secondary problem is that there is no direct Touch equivalent for MouseOver and MouseOut in iOS (or on any tablet). So the Button must have a distinct MouseDown state.to test. For details see Apple Safari Developer Library - Handling Events.
As a workaround I intend to create my own Slider (or switch to Flex!). The standard Slider is not designed for the iPad. MB
Europe, Middle East and Africa