Home > As3 Error > As3 Error Package Cannot Be Nested

As3 Error Package Cannot Be Nested

Unless I missed something in that I need to assign a "class path" The class path should only be declared if you want to use the same classes across multiple projects. up vote 0 down vote favorite I got the complie error "Packages cannot be nested". The timeline code you use is wrapped up in a class automatically by the Flash IDE, so that's why it claims that you have nested packages. “Who were you, Krilnon, and Just make sure the FLA and the AS file are both in the same directory. my review here

By the way, the correct option would be using that .as file as Document Class. A story. 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 Team Up! http://stackoverflow.com/questions/545124/actionscript-3-error-1037-packages-cannot-be-nested

My girlfriend has mentioned disowning her 14 y/o transgender daughter Ordering a list of strings Should an elected official feel obligated to vote on an issue based on the majority opinion Results 1 to 5 of 5 Thread: [RESOLVED] nested package error question Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid You may have to register before you can post: click the register link above to proceed.

Register Help Remember Me? In Flash CS3, you have to specify different paths for AS 2.0 classes and AS 3.0 classes. Results 1 to 6 of 6 Thread: packages cannot be nested error (1037) Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search 03-25-2008,05:14 AM #1 evan All Rights Reserved. | Powered by Help | Terms of Use | Privacy Policy and Cookies (UPDATED) | Forum Help | Tips for AskingJive Software Version: , revision: 20160218075410.6eafe9c.release_8.0.3.x Skip

You need to do one of the two. What is the difference between touch file and > file? Natural construction How to handle spending money for extended trip to Europe without credit card? http://stackoverflow.com/questions/30843681/packages-cannot-be-nested-an-error-in-flash-cs6 Many of the code samples in class format can still be used in keyframe code, but you have to rewrite them in terms other than a class structure.

I have the same book and was trying to use the same code to load a html into the text field and got the same error, etc. Send Private Message Browse All Posts (502) Block Forum Stats Member Level 13 Blank Slate Response to "1037: Packages cannot be nested" 2009-11-06 17:37:06 Reply I thought the same thing Team Up! The generally accepted way to just import one AS file in an OOP design/application, is to declare it as the Document class (tutorial).

  1. I help millions of people every day, but am taken for granted by all but one How to update vim plugins with pathogen package manager Does the existence of Prawn weapons
  2. Browse other questions tagged flash actionscript-3 flex flex3 or ask your own question.
  3. It appears to be an issue many others have come across so I thought I would explain in more detail how to solve this problem.
  4. As it turns out, yes.
  5. The other option would be to declare script.as as your Document class.
  6. Hot Network Questions Train carriages in the Czech Republic Can one circumstance give both Advantage and Disadvantage?
  7. Looking for "turn to dust" alternative as a single word Is this safe to display MySQL query error in webpage if something went wrong?
  8. Please turn JavaScript back on and reload this page.
  9. Newgrounds.com — Everything, By Everyone.
  10. 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 actionscript-3 flash nested package or ask your own question. Looking for "turn to dust" alternative as a single word What to tell to a rejected candidate? What is the problem ? Can Infrared Thermometer (IR Gun) be used to measure the ambient room temperature?

To learn how to continue using your existing account on the new forums, check out this thread. this page Hopefully this will solve the problem. Render Frames as opposed to AVI? However the error indicates that you are working with src folder.

Powered by vBulletin Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. Yes, thanks for bringing this up. asked 4 years ago viewed 2850 times active 3 years ago Related 6reading simple INI file with AS33AS3 Memory Conservation (Loaders/BitmapDatas/Bitmaps/Sprites)19As3 - How to clear an array efficiently?3how to embed pure get redirected here Any suggestions?

Not the answer you're looking for? Probably your stage contains another AS-linked class instance, and that file has a nested packages issue. Flex/AIR) Flash 8 and older Online Video General Help Scripting & Backend HTML/CSS/Javascript Application Design and Architecture Games Sounds and Music Standalone & Applications 3D Macintosh XML Math and Physics Design

Were slings used for throwing hand grenades?

Reply With Quote May 1st, 2007,06:14 PM #2 Krilnon View Profile View Forum Posts Visit Homepage 10,065 posts ≈ ≠ = You should use: Code: import galleryManager; The include directive essentially include "galleryManager.as" The inside of the class looks like package { import flash.display.MovieClip; public class galleryManager extends MovieClip { public function galleryManager(){ }}} I'm not sure what I'm doing wrong. To start viewing messages, select the forum that you want to visit from the selection below. Ordering a list of strings Can drained water from potted plants be used again to water another house plant?

Ordering a list of strings Why is this compiled function 50x slower? Now I know my ABCs, won't you come and golf with me? So if you only use 1 out of 20 classes in that folder, it will only compile the relevant class. http://dis-lb.net/as3-error/as3-error-package-is-unexpected.php I got a compile error for the AutoResizableADG class, saying that 'myEvent' was an undefined property, is this your problem?

Reply With Quote 04-02-2008,03:34 AM #2 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 if you are in flashdevelop, you can delete the myPackge reference, test the project again, and when it says the next error, undo the change and it will accept it. An example of nesting: package a { ... A number of the current 3rd party ActionScript books -- and, as you pointed out, most of the sample code in the docs -- is written in the form of class

Technical term to denote opposite of dependency injection? If so, it's possible that the file you created (depending on the IDE you're using) automatically created a package for you and when you pasted the code you added a second Portal Community Forums Chat Calendar Artist News Rankings Downloads Wiki Feeds About Feeds Wall Artist Login / Sign Up Upload Your Creations! UPDATE: A timeline code is declared as being inside a package, so if you are trying to add a package ...{...} block to a timeline, you will get this very error.

Is it the same setup as attaching an AS 2.0 .as file? ~calmchess~ Reply With Quote 05-28-2007,07:38 PM #4 calmchess View Profile View Forum Posts Visit Homepage Senior Member Join Date Do you mean that you copied/pasted code? i.e src/(default-package) // ActionScript file package // Line where it is showing error. { import flash.display.DisplayObject; import flash.events.MouseEvent; import flash.text.TextLineMetrics; import mx.controls.AdvancedDataGrid; import mx.controls.Alert; import mx.controls.listClasses.IDropInListItemRenderer; import mx.core.IUIComponent; import mx.core.UIComponent; public Games Latest Greatest Popular Under Judgment Submit Yours!

Each time someone abuses hittest, God kills a kitten. Send Private Message Browse All Posts (3,661) Block Forum Stats Member Level 24 Melancholy Response to "1037: Packages cannot be nested" 2009-11-06 17:34:41 Reply thats like kinda...