打印

请教,这个网页中的flash是怎么做出来的?

本主题由 moonjeep 于 2008-5-21 11:28 移动
请教,这个网页中的flash是怎么做出来的?

前天在看到的这个网页,感觉效果异常华丽。。。。

请赐教。
http://www.pavilionhotel.com/front/webBrowse!main.action
可以用组件实现
网上有FLASH的图片切换组件
已经上传:http://www.lucifinil.com/tool/FLASH图片切换组件.ZIP

[ 本帖最后由 Lucifinil 于 2008-5-21 13:13 编辑 ]
拾囬羽翼
上面的组件效果真的很不错,但是进阶用法是英文的,有哪位朋友看的懂翻译一下吗,谢谢

進階用法 (using the API)

The component API is pretty straight forward and works much like the properties in the Component Inspector, but you can set them at runtime. They are:

* setEffectSpeed()
* setEffectType()
* setImageArray()
* setNumberAffected()
* setTileWidth()
* setTileHeight()
* getNextImage()
* getPreviousImage()

setEffectSpeed(n:Number):Void - This method is used to set the speed at which a tile is removed from the stage during the transition. It takes in any number greater than 1 and returns nothing.

setEffectType(s:String):Void - This method sets the type of transition effect that you want. Valid types are "pourTiles", "erodeTiles", "shatterTiles", "zoomTopToBottom", "zoomBottomToTop", "zoomRandom", "fadeTopToBottom", "fadeBottomToTop", "fadeRandom", "blurTopToBottom", "blurBottomToTop", "blurRandom", and "random"

setImageArray(a:Array):Void - This method takes in an array of strings identifying a list of images that exist in the library. This list will be used (in order) to display transitions between images.

setNumberAffected(n:Number):Void - This method sets the number of tiles that will be triggered to be removed during any given frame. It takes in any whole number greater than 0.

setTileWidth(n:Number):Void -This method takes in any number to set the tile width.

setTileHeight(n:Number):Void - This method takes in any number to set the tile height.

getNextImage():Void - This method will trigger the component to load the next image in the image array and transition the old image off the stage with the chosen effect. If the image currently displayed is the last image in the array, then the component will start back at the beginning of the array.

getPreviousImage():Void - This method will trigger the component to load the previous image in the image array and transition the old image off the stage with the chosen effect. If the image currently displayed is the first image in the array, then the component will draw from the end of the array.
H3工作室承接网站外包,http://www.lushan.org
不是吧?这个?...
我的小站.
http://www.natty84.cn

TOP

还在为头像烦恼?还在为不能关注好友动态烦忧?快来蓝色理想家园吧!