If you import an image into your stack it becomes 'part' of your stack...
You added an image area and then chose a file to display within the image area... When you run your stack in the simulator it does not know where that image is. You must copy the image that you wish to use into the 'app'. Do this by adding your image to the stack you wish to run in the simulator through the copy files pane... 'file > standalone settings'..
Then when you open the card
Code: Select all
on preOpenCard
set the filename of image 1 to specialfolderpath("engine") & "/world.jpg"
end preOpenCard
As for the kkeyboard hiding/showing.. set the focusable (traversalON) in the property inspector to 'off'.. In the script of the field place the following :-
Code: Select all
on mouseDown
set the traversalOn of me to true
focus on me
end mouseDown
The keyboard will appear when you 'click/touch' the field.
in the card script... place the following to take the focus away from the field and the keyboard will hide...
Code: Select all
on mouseDown
set the traversalOn of fld 1 to false
end mouseDown