Paint Behavior
i trying create simple cavas draw on using paintbox behaviors. these steps:
1. new movie
2. ctrl5 open paint image .bmp
3. draw rectangle using rectangle tool
4. drag rectangle stage
5. drage canvas behavior library on top of rectangle
6. hit play
7. click inside of rectangle draw , error.
i did not change script, have newest update of director, , think have followed instructions. idea why following error?
"script error: object expected ptimeoutobj = timeout("canvastimeout1").new(ptimeinterval, #trypaintstroke, me)
me.paintstroke()"
1. new movie
2. ctrl5 open paint image .bmp
3. draw rectangle using rectangle tool
4. drag rectangle stage
5. drage canvas behavior library on top of rectangle
6. hit play
7. click inside of rectangle draw , error.
i did not change script, have newest update of director, , think have followed instructions. idea why following error?
"script error: object expected ptimeoutobj = timeout("canvastimeout1").new(ptimeinterval, #trypaintstroke, me)
me.paintstroke()"
> idea why following error?
>
> "script error: object expected ptimeoutobj =
> timeout("canvastimeout1").new(ptimeinterval, #trypaintstroke, me)
> me.paintstroke()"
yes, because you're using mx2004 , timeout object creation syntax
changed. alter code (watch unintentional line wrapping):
ptimeoutobj = timeout().new("canvastimeout1", ptimeinterval,
#trypaintstroke, me)
>
> "script error: object expected ptimeoutobj =
> timeout("canvastimeout1").new(ptimeinterval, #trypaintstroke, me)
> me.paintstroke()"
yes, because you're using mx2004 , timeout object creation syntax
changed. alter code (watch unintentional line wrapping):
ptimeoutobj = timeout().new("canvastimeout1", ptimeinterval,
#trypaintstroke, me)
More discussions in Director Basics
adobe
Comments
Post a Comment