Import all the classes in a particular package by using the wildcard operator (*) trailing the package name
package { import com.example.shapes.*; public class PackagesTest { public function PackagesTest() { var r:Rectangle = new Rectangle(); 10 + DEFAULT_SIZE; testShapes(); } } } package com.example.shapes { public const DEFAULT_SIZE:int = 256; } package com.example.shapes { public class Rectangle { // define Rectangle here. } }