Is there any short cut key for importing the class if I try to create an instance of any class . Like -
If I am using PopUpManager. , then if I am not entering the import package manually it will show
an error but we can't click on that error and directly expecting an import of the required package.
this should happen automatically if you are using Flash Builder/Flex Builder or an eclipsed based IDE. What IDE are you using?
I am using Flex Builder 4 IDE but I am getting an error red block circle in the left corner , so that won't give me any option to click over it and fulfill the requirement.
If your press CRTL-Space after the name of the class, Flasg Builder should insert the class import automatically. When you're using code complete to write the class name, Flash Builder completes the name and inserts the import statement. If the class name is already complete, pressing the shortcut will just insert the import statement.