bump
Offline
what do you need? it looks like you got everything.
Offline
thats not what i mean. i would like to know how to declare a variable in one method, and use it in another method
Offline
declare it as global.
Offline
hello12345678910 wrote:
what do you need? it looks like you got everything.
no, I don't have the ask dialog code
Offline
DialogBoxMorph inform: INFO title: 'NEWS"'
EDIT: Ask Dialog? OK:
ScratchPrompterMorph lastAnswer: (StringDialog ask: 'Question')
Last edited by hello12345678910 (2011-07-25 11:29:46)
Offline
hello12345678910 wrote:
DialogBoxMorph inform: INFO title: 'NEWS"'
EDIT: Ask Dialog? OK:
ScratchPrompterMorph lastAnswer: (StringDialog ask: 'Question')
here is the code i am using:
newsurlchange: t1 |t2| t2 -> ScratchPrompterMorph lastAnswer: (StringDialog ask: 'Enter in the new url:') url_t1
and it doesn't work! Can you tell me how to fix that
It supposed to ask you the new url and then set url to the answer
Offline
bump
Offline
i think its t2_ScratchPrompterMorph not how you have it.
And what is url? whatever it is you need to set it to t1 before you prompt the dialog.
Offline
hello12345678910 wrote:
i think its t2_ScratchPrompterMorph not how you have it.
And what is url? whatever it is you need to set it to t1 before you prompt the dialog.
Then, can you give me the code for it? url is a instanceVariable
Offline
bumpy?
Offline
Bump
Offline
Mods, Please Close This Topic-i Already Finished This Part In My Mod, Match
Offline