Just posting a highly simplified version of this issue as proof, definitely not styled nicely . This is just 3 classes. A frame script instantiates the Main class. The Main class instantiates "ExampleOutput" which represents just an input TextField and "ExampleKeyboard" which is a ugly keyboard with all of 3 buttons.
The red button is required to be pressed to Selection.setFocus() on the input element (a weird IDE glitch, this cannot be done until you click on flash itself). After that the left two buttons simply send the letter 'a' or 'b' to the input. I am tracing the values as I go.
Export this using Flash Player 8, the Selection class overall is riding the failboat. It consistently returns the getCarat() at -1, also the selection range methods never return useful information.
Export it with FP9 or FP10 and it works perfectly fine.
Any ideas on this bizarre behavior? I just tried to pay Adobe to explain this with a paid support incident but apparently you cannot get help unless you volume license. This is apparently the last hope for non-volume users.
Multidmedia engineers helped me get around the issue and use a FP9 SWF so it's no longer an issue for me.
Hope this helps anyone else who had to bring out an ancient AS2 FP8 requiring project stuck on inputs.
1 person found this helpful
I think we should post how this is solved:
- well, we trick Flash runtime
- the Flash 8 exported movie just loads Flash 9 (or later) exported movie into itself
and then - k!boom - problem magically solved (we don't know how - but it works)
give me 10-point-er so I'd gain some more power before going next level