This content has been marked as final. Show 4 replies
> Any idea why I get the following error?
> "Script Error: Object Expected pTimeOutObj =
> timeOut("canvasTimeOut1").new(pTimeInterval, #tryPaintStroke, me)
Yes, because you're using MX2004 and the timeout object creation syntax
changed. Alter your code to (watch for unintentional line wrapping):
pTimeoutObj = timeout().new("canvasTimeout1", pTimeInterval,
Thank you that did the trick? Do you know if there are a number of behavior scripts that have these same type of errors? Does adobe plan to update these scripts? I appreciate your help!
> Do you know if there are a number of behavior scripts that have these same type of errors? Does adobe plan to update these scripts?
Without wading through all the behaviors that ship with the product, I
can't answer the first question. To the second, I'd think not. There was
considerable engineering effort around the new syntax and transitioning
users, with things like 'the scriptExecutionStyle' and even a MIAW
script searching tool posted on Devnet - you may want to grab yourself a
I wrote the original Paintbox behaviors, but I was not responsible for the modifications made to them in Director 8.5 and later. Changes were required when Director was ported to Mac OS X, as the spinning CD cursor appears on that platform when using the original behaviors.
You can find my updates to these behaviors, complete with a tutorial on how to create a Paint application with multiple undos at http://director-online.com/buildArticle.php?id=1131