http://www.flash-db.com/Tutorials/simplegallery/gallery.swf
你看到的这个是用flash8做的。在flash—db里,还有个用flash7做的。我没有发!
原来文章地址:
http://www.flash-db.com/Tutorials/simplegallery/
下面是说明:
Something important: you can load this gallery in your own movie, since is totally isolated and will not break the workflow, just remember that the main movie should be published in AS2. The textfile you use as the source (example included) have this fields:
img -- name of the file
delay --time (in milliseconds) for the image to be show (important ! to respect the duration Tweening effect, not a delay inferior of 2700 milliseconds)
cant -- (important field) the numbers of images present
Image Files
Images File can be in different folders, just set the path.
Parameters you can set inside the fla:
Imagewidth, ImageHeight : the ImageGallery use a mask just set this property to a specific value and you the image will be crop inside a mask width and height properties.
Duration is the parameter of the Tweening Effect.
About the classes used
funcGallery: have a static function to draw a rectangle
fotogallery: here it have the controller to show one image, preload the other and tween to alpha the loaded image
composer: a extended class of MovieClip class to create TextField and update it.
throw_error: a static function to show loading errors
StageMain: a main function to start the application and call the different classes
mathNum: a static function to have a switcher between two elements
LoaderVars: a class who encapsulate the loadVars event to connect to one URL and return into an array.
Gdispatcher: class from Grant Skinner, a usefull broadcast of dynamics events objects
Download the source files for the first version
[url=]http://www.flash-db.com/Tutorials/simplegallery/galleryflashDB_V3.zip[/url]
点击下载此文件(读取txt文件)
点击下载此文件(读取xml文件)