Home > Cannot Be > Packages Cannot Be Nested Flex Problem

Packages Cannot Be Nested Flex Problem

Contents

share|improve this answer answered Feb 13 '09 at 9:50 user56950 211 add a comment| up vote 0 down vote If you are using Flash, put that code in a file named 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. Story where dome is erected freezing people in time - one person gets trapped outside I changed one method signature and now have over 25,000 errors. In the src directory I have websiteATAA.mxml, with the following line. In the src directory I have a com directory and a scripts subdirectory, where I have the following have a peek at this web-site

What is the CORRECT way define packages in Flex Builder and create classes inside of them? Powered by vBulletin Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation This is the MXML equivalent of an import in ActionScript - you should see one for "mx" there already. internet

Package Cannot Be Nested In Actionscript 3

Reply With Quote Quick Navigation Actionscript 3.0 (incl. A guy scammed me, but he gave me a bank account number & routing number. You can not post a blank message.

What now? Flex/AIR) Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Flash Help Newbies & General flash questions Flash for Mobile Devices ActionScript 2.0 Actionscript 3.0 (incl. The time now is 06:26 AM. If you have 20 projects each using the same class, it's not the best idea to copy the same class into 20 different folders.

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. Actionscript Packages magento 2: How to use the order by and limit clause in sql query River Crossing Puzzle About the kanji 鱈 On 1941 Dec 7, could Japan have destroyed the Panama package { import flash.display.Sprite; import flash.text.TextField; import flash.text.TextFieldType; public class TextField_alwaysShowSelection extends Sprite { public function TextField_alwaysShowSelection() { var label1:TextField = createTextField(0, 20, 200, 20); label1.text = "This text is selected."; Go Here I read somewhere that the "

If that is the case here, you can fix it by deleting the package block. All rights reserved. If you are going to do this, don't forget that your class must extend Sprite/MovieClip. Any help would be greatly appreciated.

Actionscript Packages

All Rights Reserved. | Powered by Help | Terms of Use | Privacy Policy and Cookies (UPDATED) | Forum Help | Tips for AskingJive Software Version: 8.0.3.0 , revision: 20160218075410.6eafe9c.release_8.0.3.x A http://stackoverflow.com/questions/2489044/how-to-address-packages-cannot-be-nested-error There's a bit more info on this here:http://www.flexafterdark.com/docs/MXML-Namespaces Like Show 0 Likes(0) Actions Go to original post Actions More Like This Retrieving data ... Package Cannot Be Nested In Actionscript 3 But it is showing me some error. Legend Correct Answers - 10 points © 2016 Adobe Systems Incorporated.

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 Check This Out Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode April 28th,03:59 AM #1 1037: Packages cannot be Just import the class as you would in java. Can an object *immediately* start moving at a high velocity?

Start a coup online without the government intervening Different meanings of の? How do I deal with my current employer not respecting my decision to leave? Wrong way on a bike lane? Skip navigationSign in0Search forums onlySearch forums onlyCancelForums HomeNewsPeopleProduct Menu beginsAdobe Creative CloudDownloading, Installing, Setting UpAdobe Flash PlayerAcrobat ReaderAdobe PhotoshopAdobe Photoshop LightroomAdobe Photoshop ElementsAdobe Dreamweaver Adobe MuseAdobe Animate CCAdobe Premiere ProAdobe After http://amigasuperbit.com/cannot-be/packages-cannot-be-nested-flex-3.html Please turn JavaScript back on and reload this page.

Java works in a similar same way.One solution would be to replace your standard Flex button with an instance of MyButton eg:In order to use MyButton in your Are you sure that's the entire file? Does Intel sell CPUs in ribbons?

Like Show 0 Likes(0) Actions 3.

Advanced Search Forum Flash ActionScript 3 Problems with "Packages cannot be nested" Results 1 to 4 of 4 Thread: Problems with "Packages cannot be nested" Thread Tools Show Printable Version Copyright 2006 - 2014, JustSkins.com 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders What's New? If you want to use a package, you can put the class into an .as file and then use that class as the Document class for the .fla.

try cleaning your code. After getting your suggestion to work, I did some more digging, so I could understand why I was confused. Would we find alien music meaningful? have a peek here This is a global change.

Following is my main application file. [Event(name="myEvent", type="flash.events.Event")]

What do I do?