I'm not 100% sure, but you might try this:
<script1>
var object1 = objectdefinition();
</script1>
<script2>
document.object1.method1();
</script2>
(with the 'document.' added to "script2" from your original) If you need any further help just ask and I'll do my best.
It's ok to ask...
What is the best way to create a GUI with C++ (or another language in addition to)? Thanks in advance!
It's ok to ask questions, the only bad questions are the ones not asked.
I'm new to both languages(C++ and DirectX), and I was putting the code from the book I got into my compiler. (Not the book actually, but it was from the CD that came with the book, so the code is accurate). The compiler puts up these warnings/errors:
In member function 'BOOL
Warning/passing...
How'd I put Artificial Intelligence into my Tic-Tac-Toe game I'm making. I know that the response from the computer has to be better than randomness, so how do I do that? What's a good way of learning A.I. ?
Hi,
I recently started C++ myself, but I don't have a background in C. I've heard that it's hard to go from C to C++ (you may have to 'unlearn' some things), but if you have that much experience I'm sure you can master C++. I know that there is a good, free (yes good and free!) compiler you...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.