Mouse scrollable gallery

This is a discussion on "Mouse scrollable gallery" within the Flash & Multimedia Forum section. This forum, and the thread "Mouse scrollable gallery are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 28th, 2006, 19:41
Junior Member
Join Date: Nov 2006
Location: London,England
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to itorch
Mouse scrollable gallery

I am trying to make a cursor scrollable gallery of say 5 or 6 photos. the only thing i have found so far is a horizontal and vertical scrollable photo. the photo is one big photo. i was thinking of making a large photo out of my 6 smaller photos but i only want the scroller to be horizontal. any ideas?[code][//variable for the image instance path (symbol: reef_graphic, instance: img)
varimg = _root.img
//variable for the background instance path (symbol: background, instance: bgd)
varbgd = _root.bgd
//speed of the mouse scroll (between 0 and 1)
v=0.2
//mouse position
mousex = varbgd._xmouse;
mousey = varbgd._ymouse;
//image position
imgx = getProperty(varimg, _x);
imgy = getProperty(varimg, _y);
//distance fom the center to the left, right, top and bottom side
left = getProperty(varimg,_width) / 2
right = (getProperty(varimg,_width) / (-2)) + (getProperty(varbgd,_width))
top = getProperty(varimg,_height) / 2
bottom = (getProperty(varimg,_height) / (-2)) + (getProperty(varbgd,_height))
//scrolling of the image
setProperty (varimg, _x, (imgx+(mousex*v)));
setProperty (varimg, _y, (imgy+(mousey*v)));
//stop the image on the horizontal side
//left
if (getProperty(varimg, _x) >= left) {
if (mousex > 0) {
mousex = 0
setProperty(varimg, _x, left); }
else if (mousex < 0) {
mousex = varbgd._xmouse ;
setProperty (varimg, _x, (imgx+(mousex*v))); }
}
//right
if (getProperty(varimg, _x) <= right) {
if (mousex < 0) {
mousex = 0
setProperty(varimg, _x, right); }
else if (mousex > 0) {
mousex = varbgd._xmouse ;
setProperty (varimg, _x, (imgx+(mousex*v))); }
}
//stop the image on the vertical side
//top
if (getProperty(varimg, _y) >= top) {
if (mousey > 0) {
mousey = 0 ;
setProperty(varimg, _y, top); }
else if (mousey < 0) {
mousey = varbgd._ymouse;
setProperty(varimg, _y, (imgy+(mousey*v)));}
}
//bottom
if (getProperty(varimg, _y) <= bottom) {
if (mousey < 0) {
mousey = 0 ;
setProperty (varimg, _y , bottom); }
else if (mousey >0) {
mousey = varbgd._ymouse;
setProperty(varimg, _y,(imgy+(mousey*v)));}
}

//can be deleted, usefull for adjust your image
set ("_level0" , imgx);
set ("_level0:mx" , mousex);
set("_level0:y", imgy);
set ("_level0:my", mousey);/CODE]
Reply With Quote

  #2 (permalink)  
Old Nov 30th, 2006, 16:50
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: Mouse scrollable gallery

Please post this within the code brackets...as some of your code is getting replaced with smiles...thanks!!
Reply With Quote
Reply

Tags
flash, gallery

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Created Flash Photo Gallery in PhotoShop. How can I put this Gallery INSIDE a page?? BlackReef Flash & Multimedia Forum 3 Dec 13th, 2007 18:30
Scrollable Table? Prof Web Page Design 6 Nov 7th, 2006 00:37
Scrollable Text Box mirracle4 Web Page Design 3 Jul 12th, 2006 10:28
Scrollable Div Help needed hardybabe Web Page Design 7 Jul 10th, 2006 14:50


All times are GMT. The time now is 05:47.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43