I seem to recall that I had this issue a while back. Turned out that
when the .as file started with a capital letter, it treated it as a
class, but when it started with a lower case letter it was fine.

I just did a simple test and this doesn't appear to always be the
case, so there must have been other contributing factors. But if yours
starts with a capital, it's worth a pop.

Jake

On 16/02/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Are you working on a LAN?
I had the same issue here, the cause was that my computer clock were
different from the network computer clock. When I moved the files to my
HD it worked out.



Muzak wrote:
> I've seen this happen when the include .as file had the same name as the fla 
it's included in.
> Just a thought..
>
> regards,
> Muzak
>
> ----- Original Message -----
> From: "Mike Mountain" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
> Sent: Friday, February 16, 2007 12:58 PM
> Subject: [Flashcoders] Flash IDE thinks standard #include ".as" file is 
aclass file
>
>
> I've been working on an as file for some time - it's used as an
> #include, it isn't a class (although it's part of a project which has
> classes), just a means for me to tidy away some pretty rudimentary
> timeline code from designers. Everything was working fine but now the
> IDE won't validate the code - even though there's nothing wrong with it
> - it keeps spitting out errors:
> "ActionScript 2.0 class scripts may only define class or interface
> constructs."
> Blah
> Copy the code into a brand new as file, click the tick, works fine -
> save it out with a filename, click the tick, breaks.
> I've deleted my ASO files and still no joy - even if I comment out all
> the code it still bloody complains.
> Anyhow, anyone shed any light on this? - Or how to fix it, I think it
> start when I put some imports in the file by mistake.
> Cheers
> M
>
>
>
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to