|
-
how else to pass a variable in mc2 from mc1?
mc1.somevar = mc2.someothervar;
if the variable doesn't have a var prefix, ie: if its scope isn't restrained to the function's scope, there shouldn't be a problem. You could also in the 1st MCL's onLoadInit give the mc2 variable a value, or even set it there.
That said, there cannot be an onLoadInit without a MCL, specially if you are not loading anything a second time around. So i suggest you follow the above solution.
gparis
-
 Originally Posted by gparis
how else to pass a variable in mc2 from mc1?
mc1.somevar = mc2.someothervar;
if the variable doesn't have a var prefix, ie: if its scope isn't restrained to the function's scope, there shouldn't be a problem. You could also in the 1st MCL's onLoadInit give the mc2 variable a value, or even set it there.
That said, there cannot be an onLoadInit without a MCL, specially if you are not loading anything a second time around. So i suggest you follow the above solution.
gparis
Oh my god... thank you my friend i didn't know this in bold. i have just tried it and it works
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
|