LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 


Prev Previous Post   Next Post Next
  #1  
Old 08-06-2007, 12:13 AM
Scottae's Avatar
Scottae Scottae is offline
God Moderator
 
Join Date: Oct 2003
Location: United States
Posts: 6,532
Rep Power: 16
Scottae is on a distinguished road
Angry Package is unexpected

I have a Test.fla with the document class set to Test. I have a Test.as file in the same directory as Test.fla which looks like this:

Actionscript:
import flash.display.*;

package {
	
	public class Test extends MovieClip {
		
		public function Test() {
			trace("Hello World!");
		}
	}
}

Simple Hello World test with AS 3.0..........should work right?! WRONG!!!!

Quote:
1083: Syntax error: package is unexpected.
I only made this test because I was trying to convert some old projects to AS 3.0 and I get this error. This shouldn't be happening as far as I can tell. Is there something I'm overlooking or am I dumb?
__________________
Our greatest glory is not in never falling but in rising everytime we fall. - Confucius

Blog | Shared Items
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find my own package BitB Flash CS3 / Flash 9 4 01-20-2008 11:42 AM
Unexpected File Format (when opening a file created on a MAC with a PC or vise versa) shdwsclan Flash MX 1 11-30-2004 02:51 PM
Unexpected File Format integra Flash MX 1 10-18-2004 06:39 AM
Any student package price for Macromedia MX products in Singapore? grooovylim FSUG 3 11-04-2002 12:12 PM
Swift 3D stand alone package and line/curve reduction? dv8 3D Computer Graphics 0 09-22-2001 02:44 AM




All times are GMT. The time now is 06:25 AM.