• Home
  • Free Tutorials
  • Free Video Tutorials
Your Ad Here
Adobe Photoshop
Autodesk 3ds Max
CSS
Flash
Help Center Live
iPhone
Joomla
Make Money Online!
Mambo
mIRC
Outlook Express
SEO / SEM
Simple Machine Forum
Target Explorer

XML Image Gallery with Falling Pictures (Snow Effect)

Category : Flash Views : 37218
Version : 8 Rating : 
3.7/5 (64 votes)
  • Currently 3.73/5
  • 1
  • 2
  • 3
  • 4
  • 5
Type : Text Source File: xml-image-gallery-with-falling-pictures.zip
Result: See the result


Previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | Next

onClipEvent(mouseDown) { if ((this.hitTest(_root._xmouse, _root._ymouse, true)) && (!select)) {
If the MC is not selected and the mouse is over it when this event happens we run the code below.

this.swapDepths(_root.getNextHighestDepth());
Bring this MC to the top so we don't have the smaller ones in front of it.

select = true;
Now the MC is selected so set this variable to true.

xTw = new Tween(this, "_x", Regular.easeIn, this._x, 400, 2, true); yTw = new Tween(this, "_y", Regular.easeIn, this._y, 250, 2, true); xSTw = new Tween(this, "_xscale", Regular.easeIn, this._xscale, 100, 2, true); ySTw = new Tween(this, "_yscale", Regular.easeIn, this._yscale, 100, 2, true); alphaTw = new Tween(this, "_alpha", Regular.easeIn, this._alpha, 100, 2, true); rotTw = new Tween(this, "_rotation", Regular.easeIn, this._rotation, 0, 1, true);
Create Tween objects for each property we need to animate: _x, _y, _xscale, _yscale, _alpha and _rotation.
Parameters for the Tween object:
Tween(object, "property", easing effect, start value, end value, second or frames, true=seconds| false=frames);

} else if ((select) && (!(this.hitTest(_root._xmouse, _root._ymouse, true)))) {
Run this code instead if the MC is selected and the mouse is not clicking on it.

select = false;
The MC is not selected anymore.

xTw.yoyo(); yTw.yoyo(); xSTw.yoyo(); ySTw.yoyo(); alphaTw.yoyo(); rotTw.yoyo(); } }
Call the function "yoyo()" of each Tween object to return this MC to its original properties.


del.icio.us digg it Reddit Stumble Upon Technorati

Previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | Next
How to Video Tutorials on software by Helpvids.com

Video tutorial: Forex trading



Sponsors



Advertisement







Your Ad Here

Studio | Advertisement | About Webzo | Contact Webzo | Terms of Use | Free Video Tutorials by Helpivds

Copyright © 2007 NR Concepts Ltd. All rights reserved.