01 November 2005

ActionScript and SVN (Syntax error line 1)

Written by Richard Leggett ( Contact the author of this post )
Published on November 1st, 2005 @ 03:20:20 pm, using 144 words, 346 views
Categories: Flash

Just a quick note for people experiencing this same problem in frustration. After updating files using Subversion you might encounter an error like this in the Flash IDE:

**Error** C:\some_folder\trunk\src\as\com\domain\project\SomeClass.as: Line 1: Syntax error.
     import com.domain.AnyClassHere;
Total ActionScript Errors: 1 	 Reported Errors: 1

This isn't the same problem as you can encounter when working with AS files over a network (where deleting ASO files and adjusting your clock will fix it), this is caused by Subversion changing the encoding of the file. To fix it I usually open the file in Notepad2, and choose File > Encoding > UTF8. (Note: Do not pick UTF8 with Signature.) You can of course pick ANSI, too.

No doubt people have had and solved this problem many a time, but I'm just adding to the aggregator for anyone searching in future.

Comments, Pingbacks:

Comment from: Adult Friend Finder
I agree with post. Good post. seeking adult friend finder ads.
PermalinkPermalink 29/01/06 @ 04:08
Comment from: Dik
PermalinkPermalink 11/02/06 @ 12:03

Comments are closed for this post.

About

Richard Leggett is an RIA and Web Developer, co-founder of Ubrae Ltd. He is co-author of Foundation Flash Applications for Mobile Devices (Friends of ED), an Adobe Community Expert and speaker at industry conferences and user groups.



January 2009
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Categories

Miscellany

XML Feeds

Information

Contact the admin  /   b2evo template by Two18 Media