Import all the classes in a particular package by using the wildcard operator (*) trailing the package name : Package : Language Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Language » Package »

 

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.
    }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Language
» Package