How i can create reusable component which contains assets in Flash CS5
        Posted  
        
            by 
                Creotiv
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Creotiv
        
        
        
        Published on 2011-02-26T12:49:32Z
        Indexed on 
            2011/02/27
            7:24 UTC
        
        
        Read the original article
        Hit count: 278
        
I need to create slideshow for gallery. And one thing that i don't know is how to create reusable components. For example i want to create 3 components ImageLoader, Dock(that consist drom ImageLoaders) and SlideShow(that consists from Dock and ImageLoaders).
ImageLoader it is a container which loads image and while it loading showing some animation. Dock it is a container wich have few of ImageLoaders, it used to create Dock of thumbs images to chose. SlideShow it is a container wich have few of ImageLoaders, it used to preload images to ImageLoaders and the change them on mouse click.
I need that all of this components was accessible fom action script, so i can create new instances of them.
Example code:
im1 = new ImageLoader('../im1s.jpg');
im2 = new ImageLoader('../im2s.jpg');
dock = new Dock(new Array(im1,im2));
ss = new SlideSHow(new Array(im1,im2),dock);
ss.init();
Will be greatfull for help.
P.S. I new in Flash
© Stack Overflow or respective owner