-
What is wrong with this function
function basement(number) {
if (_root.text_basement == "") {
with (_root.build.walkout) {
gotoAndStop("");
}
}
}
basement("8’ BURIED BSMT w/ SINGLE AREAWAY || 9’ BURIED BSMT w/ SINGLE AREAWAY"," KR-AREA-1");
Thanks for any help.
54
Last edited by profilin; 11-18-2002 at 10:22 PM.
-
There are several problems with your function.
1. The parameter is called "number", which is a reserved word.
2. You aren't using the function parameter inside the function.
3. You're calling the function with two parameters.
Last edited by robertpenner; 11-18-2002 at 09:59 PM.
-
Thanks for the response. I will figure out something. Its a learning process for me.
54
-
what about something like this?
function basement() {
(_root.text_basement == "");
}
basement("8’ BURIED BSMT w/ SINGLE AREAWAY");
with (_root.build.walkout) {
gotoAndStop("KR-Area-1");
}
-
I'm not sure what you're trying to do, but it looks like you're not clear on how function parameters and function calls work.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|