Mobgui Switch
Moderators: LCNeil, heatherlaine, kevinmiller, elanorb
Mobgui Switch
I want to use the mobgui switch to turn on when an image is place into a graphic. Also, I want to clear the image once the switch is turned off.
Re: Mobgui Switch
Hi Mark,
The following documentation should help you get up and running with mobGui switches-
http://mobgui.com/doc.php?docId=7
The command that you should look for is the “switchSet” command.
You should be able to set this to set the switch to “On” when there is an Image available
You would then use the “switched” message to do something when the user presses the switch.
Kind Regards
Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
LiveCode – Realize fast, compile-free coding
--
The following documentation should help you get up and running with mobGui switches-
http://mobgui.com/doc.php?docId=7
The command that you should look for is the “switchSet” command.
You should be able to set this to set the switch to “On” when there is an Image available
You would then use the “switched” message to do something when the user presses the switch.
Kind Regards
Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
LiveCode – Realize fast, compile-free coding
--
Re: Mobgui Switch
This is the Script I am trying to us to put the switch to on. What am I doing wrong?
Code: Select all
On switchSet
set switch "snooze 1" to "on" when there is an image in graphic "video 1"
end switchSet
Re: Mobgui Switch
Hi Mark,
Graphics cannot contain images and in the examples I have sent, I am only setting the rect of a graphic object (the last image) to the rect of a graphic.
I am using a graphic simply as a visual placeholder for the location that I want the image object to go.
When you import an image (e.g. mobilePickPhoto “library”) it creates a new “image object” on your stack.
Instead of checking if there is an image in the graphic area, it would be easier to use the image object method explained here-
http://forums.runrev.com/viewtopic.php?f=73&t=18287
Kind Regards
Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
LiveCode – Realize fast, compile-free coding
--
Graphics cannot contain images and in the examples I have sent, I am only setting the rect of a graphic object (the last image) to the rect of a graphic.
I am using a graphic simply as a visual placeholder for the location that I want the image object to go.
When you import an image (e.g. mobilePickPhoto “library”) it creates a new “image object” on your stack.
Instead of checking if there is an image in the graphic area, it would be easier to use the image object method explained here-
http://forums.runrev.com/viewtopic.php?f=73&t=18287
Kind Regards
Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
LiveCode – Realize fast, compile-free coding
--
Re: Mobgui Switch
I have read the documentation on the mobgui website about switches. I am still not clear on how to set the switch to "on" when an image is in the graphic. Also, I want to the graphic from the image when the switch is turned to "off".
Re: Mobgui Switch
Hi Mark,
I will go over this in todays webinar
Kind Regards
Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
LiveCode – Realize fast, compile-free coding
—
I will go over this in todays webinar
Kind Regards
Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
LiveCode – Realize fast, compile-free coding
—