If you use DynamicTextField that you want to use translation string inside SimpleButton.
Syntax error 'Syntax error: expecting semicolon before rightparen' occur.
Please ignore error message. The cause of error is using TextField inside SimpleButton.
If you change the type of object from 'Button' to 'MovieClip'.
It don't show any errors.
I think this is bug of FlashCS5.5.
Solution
(1)Not add textfield to Button.
Creating MovieClip and add textfield and button inside it.
MovieClip1
+-TextField1
+-Button
(2)Using actionscript and setting the translation string to properties of text.
Syntax error 'Syntax error: expecting semicolon before rightparen' occur.
Please ignore error message. The cause of error is using TextField inside SimpleButton.
If you change the type of object from 'Button' to 'MovieClip'.
It don't show any errors.
I think this is bug of FlashCS5.5.
Solution
(1)Not add textfield to Button.
Creating MovieClip and add textfield and button inside it.
MovieClip1
+-TextField1
+-Button
(2)Using actionscript and setting the translation string to properties of text.
No comments:
Post a Comment