Adobe, if you won't let us type straight into the text object like an application or .EXE
then can we have iOS keyboard events/handlers/messages/properties please
if iOSkeyboard.on = 1 then iOSkeyboard.on = 0 -- closes iOS keyboard and transfers entered text to _movie.keyboardFocusSprite.member.text
TEMP SOLUTION - and this is ugly and embarassing but:
on mouseUp(me) -- a version of this in every button script associated with text entry
newName = member("new name").text
if newName = globalOldName then
alert "Adobe needs you to close the keyboard first"
What I've done is, wherever text input and then OK or Cancel, etc is required, I've hidden the buttons under the pop-up keyboard so it must be closed to hit them. It may be slightly annoying to users but it works. Your classic workaround by design.
I'd stil like Adobe to fix this, though...AND fields please...not to mention MP4 support, etc, etc, whinge, moan...
i have a workaround if you are done with inputting text, then click an other editable text and attach a mouseup event on to that text, something like "click to submit"
Also, sometimes the editable text region enlarges. This seems to happen when the editable text field has some area of it under the pop-up keyboard. The entire text object then shifts up so all of it can be seen. I guess this makes sense but it's really ugly. Also the font renders properly when you're in edit mode and looks thin on the screen otherwise. (You'd think text and fonts would be the easy part for the Director team!)
i have a problem with saving to the iphone.
for example you enter your name in a game, when the game is removed from the iphone's memory and restarted the info is gone......
how to save this permanently in the app?
You need to write the info to file and then read from file when needed. Dir (Ios) supports SetPref() and GetPref(). Ex: You can store the username in a variable and convert to a string using SetPref() Use GetPref() to to read the string and convert it back again. List /property lists are good to use when storing lot of data into a string
thanks for the quick answer : )
but where do a save this file?
You can try with some MouseUp events to test it. The best place to create two events in the movie script so you can call them from everywere
-- Write file here SetPref()
--Read file here GetPref()
Old article of the basic + example file
Thanks piXelSkills !!!
On iOS you can also use onActivateApplication and onDeactivateApplication handlers to setRef()/getRef() when program goes to background or foreground. Create new thread about this if you need more help.
On an other topic........
im trying to create a "wobbling" effect with a bitmap
any idea how to go with this with director?
No, but create a new question in the forum. Maybe someone have an idea.
i will : )