Home > Cannot Be > Packages Cannot Be Nested Error

Packages Cannot Be Nested Error

Contents

Reply With Quote 04-08-2008,08:01 PM #6 Medyman View Profile View Forum Posts Private Message View Blog Entries Elite Coders Join Date Mar 2007 Location Currently: New York/Philadelphia Posts 2,735 Thanks 3 As it turns out, yes. share|improve this answer answered Feb 13 '09 at 8:17 Richard Szalay 55k14128180 add a comment| up vote 3 down vote You need to create an action script file and then add Please type your message and try again. Source

What is the point of update independent rendering in a game loop? more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed zrb zrb Member since: Aug. 8, 2006 Offline. But it is showing me some error.

Package Cannot Be Nested In Actionscript 3

Related 0Cannot access ActionScript 3 Sprite.graphics.x methods1Type Error In Actionscript 30Handle ActionScript runtime errors1Detect Line Break in AS3 Input TextField0actionscript error?0Custom class not displaying components on screen Actionscript 30actionscript 3.0 error I added how to reproduce the error. –bman Feb 18 '13 at 12:54 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote accepted I find the What is the most efficient & fastest way to speed up the installation of packages with thousands of items?

Build me a brick wall! Start a coup online without the government intervening Non-Repetitive Quine What does "there lived here then" mean? asked 4 years ago viewed 2869 times active 4 years ago Upcoming Events 2016 Community Moderator Election ends Nov 22 Visit Chat Related 6reading simple INI file with AS33AS3 Memory Conservation Bhagavad Geeta 4.14 Graph with a separation vertex edge How do pilots identify the taxi path to the runway?

This is when the class path declaration comes in handy. Actionscript Packages Hot Network Questions Why is (a % 256) different than (a & 0xFF)? I added the script directly to the file instead of importing/including. –user3040958 Dec 20 '13 at 17:06 What do you mean when you say you "added the script directly Why so many ways to do the same thing?

I removed the package and class declarations from my .as file (along with the scope brackets '{' and '}). This is a global change. Not the answer you're looking for? I think that covers it.

Actionscript Packages

im finaly taking everybodys advice and converting to AS3, but I always get the error:1037: Packages cannot be nested At the end I copied the code directly into my flash and http://stackoverflow.com/questions/9243744/packages-cannot-be-nested-as3 and myClass must be an actionScript file and not a class share|improve this answer answered Mar 22 '10 at 13:27 user299042 Actually, the Flash Builder intellisense tells me that Package Cannot Be Nested In Actionscript 3 Advanced Search DD Home Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders What's New? This isn't an error in programming, but rather a markup error (that potentially hides a lot of uneven braces or other types of copy&paste mixups).

I am seen in darkness and in light, What am I? http://amigasuperbit.com/cannot-be/packages-cannot-be-nested-flex-3.html The only code I have is your class and the application code above, all in the default package. –Jeremy Feb 29 '12 at 22:17 add a comment| 2 Answers 2 active Any suggestions? If you have a bunch of classes in a folder called com/math/ (path relative to .fla), than you would do something like Code: import com.math.* This imports all of the classes

An example of nesting: package a { ... Is there a word for being sad about knowing that the things that make you happy will eventually go away Safety - Improve braking power in wet conditions How can an Lab colleague uses cracked software. have a peek here Can a text in Latin be understood by an educated Italian who never had any formal teaching of that language?

However the error indicates that you are working with src folder. share|improve this answer answered Oct 22 '09 at 17:41 Cay 3,68421327 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign Can a text in Latin be understood by an educated Italian who never had any formal teaching of that language?

If that is the case here, you can fix it by deleting the package block.

here is the code: package { import flash.display.Sprite; import flash.events.Event; public class Velocity extends Sprite { private var _sprite:Sprite; private var _vx:Number = 3; public function Velocity () { _sprite =new Browse other questions tagged flash flex actionscript builder or ask your own question. Start a coup online without the government intervening Someone peeled an American flag sticker off of my truck. My cat sat on my laptop, now the right side of my keyboard types the wrong characters About the kanji 鱈 Different meanings of の? Why usually is the word "halfway"

How often should I replace windscreen wiper blades? share|improve this answer answered Aug 31 '10 at 13:44 Amarghosh 42.5k769105 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign What is the most efficient & fastest way to speed up the installation of packages with thousands of items? Check This Out Why are wavelengths shorter than visible light neglected by new telescopes?

Browse other questions tagged flex or ask your own question. Browse other questions tagged actionscript-3 flash nested package or ask your own question. Absolute values of complex irreducible characters of finite groups Is the Čech cohomology of an orbifold isomorphic to its singular cohomology? Show 2 replies 1.

Feb 18 '13 at 8:19 You can also try to check for { and } matching, I'm not sure, but I think I had similar error because of {}. Reply With Quote 04-07-2008,11:24 PM #4 Medyman View Profile View Forum Posts Private Message View Blog Entries Elite Coders Join Date Mar 2007 Location Currently: New York/Philadelphia Posts 2,735 Thanks 3 And about the class, it is a file with .as extension inside a proper package... A story behind a weird inductor why is rdsk not available on linux?

US Election results 2016: What went wrong with prediction models? Following is my main application file. [Event(name="myEvent", type="flash.events.Event")]