flashcomponentsslideshowflash-cs5

How can I create a reusable component which contains assets in Flash CS5


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 consists from 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 which has a few ImageLoaders, it used to create Dock of thumbs images to chose.
SlideShow it is a container which have few of ImageLoaders, it is used to preload images to ImageLoaders and the change them on mouse click.

I need that all of this components was accessible form 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();

P.S. I am new in Flash


Solution

  • I found the answer on my question. Here is tutorial for creating reusable components in flash: See here