RE: Missing formal parameter

2005-12-19 Thread Thomas Higgins
> See, Tom? I knew it wouldn't be long before I had another js > question. Sheesh... j/k > Say I declare a global variable called gData in a movie script written > in Lingo syntax. I want to access gData in a behavior written in js > syntax. > > Is it declared at the beginning of the js

RE: Missing formal parameter

2005-12-16 Thread Mendelsohn, Michael
See, Tom? I knew it wouldn't be long before I had another js question. Say I declare a global variable called gData in a movie script written in Lingo syntax. I want to access gData in a behavior written in js syntax. Is it declared at the beginning of the js behavior? _global.gData And how wo

RE: Missing formal parameter

2005-12-16 Thread Thomas Higgins
> One thing I'd like to suggest, is that in the script window, the > js syntax doesn't seem to auto-indent when, in my case, I actually > get it correct. Believe me, I realize the pain induced by the level of auto-formatting for JS in the Script window (or rather the lack thereof). The only auto-f

RE: Missing formal parameter

2005-12-16 Thread Mendelsohn, Michael
Thanks, Tom, it makes sense. I never imagined you could emulate public and private variables within a behavior that simply. It has sunk in, but getting it to stick in my brain is a different story... Going forward, I may have more questions on js syntax. A recent project I just completed made e

RE: Missing formal parameter

2005-12-16 Thread Thomas Higgins
Michael, > I think I mostly understood that. But, I don't understand: > you *don't* have to declare your script's properties at the > beginning of a js script? Here is an example behavior: function beginSprite () { this.pMember = sprite(this.spriteNum).member; this.pText = this.pMember.te

RE: Missing formal parameter

2005-12-16 Thread Mendelsohn, Michael
Thanks for the response Tom. Score one for Adobe customer service. :-) I think I mostly understood that. But, I don't understand: you *don't* have to declare your script's properties at the beginning of a js script? And how do you distinguish between declaring a global and a property at the beg

RE: Missing formal parameter

2005-12-16 Thread Thomas Higgins
Michael, > I'm taking a stab at converting my lingo scripts to javascript > syntax. I started with a very easy one. My question is why does > on beginSprite(me) NOT translate to function beginSprite(this){}. > That returns an error of missing formal parameter, and funct

Missing formal parameter

2005-12-16 Thread Mendelsohn, Michael
Hi Adobe friends... I'm taking a stab at converting my lingo scripts to javascript syntax. I started with a very easy one. My question is why does on beginSprite(me) NOT translate to function beginSprite(this){}. That returns an error of missing formal parameter, and function beginS