| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Senior Member
Join Date: May 2005
Location: San Francisco
Posts: 730
|
you will notice if you place this code into your flash as panel and click the auto format button it outputs an error I have went ahead and formatted it as close as I believe but also leaving the end unformatted for testing purposes. Why is it doing this?
ActionScript Code:
Last edited by tsj4; 08-01-2007 at 10:50 PM.. |
|
|
|
|
|
#2 |
|
Super Moderator
Join Date: Jan 2002
Location: Centreville, VA
Posts: 24,878
|
Flash MX 2004 auto formats just fine... and Flash 8 auto formats just fine as well...
You have an extra ';' at the last if block that says 'if (preload) {;' which you might want to delete...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer http://CyanBlue.FlashVacuum.com http://www.FlashVacuum.com http://tutorials.FlashVacuum.com Do NOT PM, Email or Call me... Your question belongs right in this forum...
|
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: May 2005
Location: San Francisco
Posts: 730
|
I am using cs3 and selected an AS2.0 File and it is placing those semi-colons after open and closed curly brackets. I noticed that also and tried removing them in case that was causing the error but still breaks on auto format. When I test a movie is does not output errors though.
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: May 2005
Location: San Francisco
Posts: 730
|
this is the error I am getting.
![]() |
|
|
|
|
|
#5 |
|
Super Moderator
Join Date: Jan 2002
Location: Centreville, VA
Posts: 24,878
|
Well... I don't use CS3, so I cannot verify, but senocular says you should not use Auto Format in CS3, period... So, don't use it...
![]() http://www.senocular.com/?id=1.398 I have moved your question to Flash 9 forum...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer http://CyanBlue.FlashVacuum.com http://www.FlashVacuum.com http://tutorials.FlashVacuum.com Do NOT PM, Email or Call me... Your question belongs right in this forum...
|
|
|
|
|
|
#6 |
|
Senior Member
Join Date: May 2005
Location: San Francisco
Posts: 730
|
well that definitely clears it up then. To bad the code I inherited from another developer was not properly formatted.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| one template, many looks? | subquark | ActionScript 1.0 (and below) | 1161 | 09-03-2009 04:45 PM |
| Auto formatting script... | rach236 | Other Flash General Questions | 7 | 07-26-2006 10:11 PM |
| [Flash 8] AS code for several frames in frame 1. | tjonmage | ActionScript 2.0 | 3 | 12-01-2005 03:45 AM |
| Code File Size: Huge! | cabbage | ActionScript 2.0 | 1 | 09-01-2004 05:43 AM |
| Code formatting instructions | pixelwit | General Chat | 27 | 03-06-2004 08:02 PM |