• Home
  • Free Tutorials
  • Free Video Tutorials

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

Scrolling Image Gallery

Category : Flash Views : 151993
Version : 8 Rating : 
2.8/5 (192 votes)
  • Currently 2.81/5
  • 1
  • 2
  • 3
  • 4
  • 5
Type : Text Source File: scrolling-image-gallery.zip
Result: See the result


Previous | 1 | 2 | 3 | 4 | Next

Code Explanation

function showBig(obj, path) { point = new Object(); point.x = obj._x; point.y = obj._y; localToGlobal(point);
Translate the coordinates of the "obj" to global coordinates.

_root.attachMovie("big_image", "bigImg", 33, {_x: point.x, _y: point.y});
Attach the movie.
Inside the curly braces in the forth parameter you can set any property belonging to the Movie Clip you just attached, so I set the _x and _y coordinates there.

_root.bigImg.path = path;
Set the variable path inside the bigImg Movie Clip.

btn1.onRollOver = function() { //call function showBig(this, "1.jpg"); }
Call "showBig(obj, path)" when the user moves the mouse over the button.

That's all for Scrolling Image Gallery. Hope this tutorial will help you dig down more about Flash Actionscript and you will have more understanding about it. Happy coding!

More cool tech articles from other blogs.

Place your ad here
Loading...


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

Sponsors





Error: unable to get links from server. Please make sure that your site supports either file_get_contents() or the cURL library.
Studio | Advertisement | About Webzo | Contact Webzo | Terms of Use | Free Video Tutorials by Helpivds

Copyright © 2007 NR Concepts Ltd. All rights reserved.