For years now, I have been skinning my buttons but loading to images onto a page then referencing them within the button as 'Icon' and 'hilite icon'. I then switch between the two images by changing the hilite property depending on whether the button is pressed or not.
This has worked well except suddenly I have two buttons that refuse to behave.
If I read the property, it is set correctly but the image is not the correct one. It is always showing the 'icon' rather than the 'hilite icon'.
In the IDE is works perfectly but on the device, it does not.
It gets weirder. I added a second button to force the hilite of the first button via script
The second button has this script
Code: Select all
set the highlite of button "FirstButton" to true
I manually toggle the first button on then off again and the same second button running the same script works!
This is just nuts. What am I missing here? Is there an object integrity checker or something like that? All suggestions gratefully received.
A further experiment had even weirder results
I added a third button giving it a very simple script.
Code: Select all
on mouseup
set the highlite of me to true
end mouseup
The third button hilited as it should but the first one did not.
I then pressed the third button (setting the already hilited third button) and lo and behold the first button toggled. It is like the screen is not refreshing or something. The screen is unlocked and I am baffled.
In the IDE is works. On the Mac version (standalone) it works. On iOS it does not work (Should I say - it has stopped working)