1086: Syntax error: expecting semicolon before line
Have you ever seen this error, when trying to move your fla from ActionScript 2 to ActionScript 3:
“Location: tempInit, Line 2 Description: 1086: Syntax error: expecting semicolon before line.”
In my case the problem was that I had a movieclip with a Linkage identifier in my ActionScript 2 file that contained space in the name. When I moved to ActionScript 3 all my Linkage identifiers were converted to class names and when I tried to compile my AS3 flash file I got this error above.
So be careful when you name your linkage identifiers. Better use “camel case” instead of using spaces. This will help you move your ActionScript 2 fla file to ActionScript 3 fla file without seeing this error.
If you use a standart timeline animation with a shape tween above a button and you want to call a function that sets the events for the button from a frame – put the call to the function after Read the rest of this entry »
In a comment on my previous post [AS3] Skinning Flash Components I was asked to show how to change the size of the thumb of the Slider component. After some experiments with the component here is the way it can be done:
Today I run into this strange problem while trying to scale a Sprite containing dynamic TextField. As you can see in the flash demo below, when you scale the Sprite the TextField retains its position in the Sprite container.