Actionscript 3 :: Distinguish Between Two Imports With The Same Name?
Mar 22, 2011
I have two ArrayUtil classes I need to access from the same class - they each come from external libraries and have different code, so I can't just combine them.
How do I disambiguate them in the code?
I tried doing com.adobe.utils.ArrayUtil inline, and leaving the existing import, but that resulted in an undefined property com error.
My current project imports the following on the root time line
[Code]...
I then have a series of movieclips in my library that get loaded in as required at run time using addChild. In each of these movieclips I am having to use the same import commands or I get an error. Is there a way of me changing my code in some way so I only need to use the imports once in the main time line?
I often use the shortcut for Organize imports (CMD - SHIFT - O) in Flash Builder. Some times Flash Builder just removes all my imports (not the SDK) and I have to add them manually. Anyone else who have had this problem?
need a logia something like to paint some Objects: simply put some MCs. When the Mcs (are out of the Box range) and neat its easy to colour. see the Zip files attached:
Please see: paint_Non_Overlaping_MC_Works.fla paint_Non_Overlaping_MC_Works.swf When the Movie clips are overlapping or one placed above the other MC the objects are hard to paint. It Recognizes the Obeject as One, the Imported png converted to a MC. Please see: paint_Overlaping_MC_Not_Works.fla paint_Overlaping_MC_Not_Works.swf
Is there a possibility to make this work, like to make the MC Highlight on Mouse over and distinguish the objects when Overlapping? That's to say to colour the MCs when overlapping? What initially came to my mind is when mouse over the MC's to highlight so that we can drop the colour on it. In the ZIp file contains all the as2 codes.
Say you have a document class, and a customMenu class. If they import some of the same classes, would it be less overhead if everything was in the document class? Thus imports only happen one time?
I've been working on a project for some time now in flash develop and it's come time to clean it up. While I was working on it I re sorted code into different classes without removing the imports in the existing classes. Now I know I probably have a ton of unused imports in classes I was wondering if their was an easy way to find these and remove them. At the moment the only way I can think is comment them out one by one until the app chucks a spaz?
The amxmlc compiler source-path variable points to:
libs/
I need it because I have to subclass Class1 in Class3. That pushes me to put all the classes into packages that look as weird as this:
package ClassX.src { /* ... */ }
So in practice it looks like that:
package Class3.src { import Class1.src.Class1; // I prefer direct imports public class Class3 extends Class1 { /* ... */ } }
Is there a way to keep the files/folders structure and get rid of src in the package name. Changing the files structure or direct pointing compiler into base-class directory in not an option.
Normally when I have lets say two sorts of Events, the MouseEvent and the TouchEvent, what I then do is import flash.events.*; Would it save space/performance/whatever to specificly import the needed events?
I'm working with a large Actionscript project, and every file needs to have it's imports organized. I noticed that you can achieve this easily in the Java version of eclipse, but that doesn't seem to work in Flash Builder. Is there a simple way to organise imports for the entire project?
I'm trying out the Flex Builder 3 Plugin for Eclipse, and it doesn't seem to have quick fix or automatic imports. I use those two features a lot with Java and FDT. I've been googling, but all I've found is some plugin that someone wrote for Flex Builder 2, and no other mentions. Is Flex Builder supposed to have these features?
I am looking to create a flash gallery which imports images from a mysql datbase and links associated to the image which will also be in the databae . The idea is to show the user in a carousel style the last picture added to the database at the front and if that or any other picture within the carousel is clicked another swf will load.Using php will do I just don't know where to start.
Let's say Class A has the flash.events.Event imported. Now let's say Class B extends Class A. Why in the hell do i need to import flash.events.Event in Class B? It makes no sens at all to me.