is there a way to put a command into an gloabl variable?
I'm asking so it would be some easier to test some thing while working on in in windows.
So i heave these line added to the stack script:
Code: Select all
if the environment is "mobile" then
put "engine" into gHome
else put "documents" into gHome
if the environment is "mobile" then
put "mobilePlaySoundOnChannel" into gPlayer
else put "play"into gPlayer
Code: Select all
gPlayer specialFolderPath (gHome) &("/audio/") & ("1.wav"), "current", "now"
Livecode don't like it , and says there is no handler
but it's a global
is there any way to do something like this?
Saves a lot of time then to upload it every time to my android phone, because now it could work on windows(test) and on Android (finnaly it should be android)
thanks for any ideas on this.
sphere