It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Flash Forum

Can someone take a look and advise

Moderator: Phate

Can someone take a look and advise

Postby bgspoonz on Sun Jan 28, 2007 1:14 am

Can someone take a look at this flash, and tell me if there is an app/prog that does this or would it be easier to create by hand.
I'm sure for you guys it is extremely simple... It is how the gallery is being shown using flash.
The part I would like to know how to and what to use to do is the part where the mouse-over moves the image in the background... is there simple FLASH code for this, or do I need to trial & error with FLASH8 or even Dreamweaver?

click on any an image in the gallery...
http://www.xara.com/gallery/
bgspoonz
 
Posts: 5
Joined: Sun Jan 28, 2007 1:03 am

Postby flabbyrabbit on Mon Feb 19, 2007 10:55 am

It should be very easy to create this effect in flash not that i have tried it yet, iwll try it out soon. My idea is to have the image in the background as a movie clip called say 'background', and do the same for the thumbnail image. Making the background really big so its alot bigger than the size of the movie Then add some sort of code like:

Code: Select all
//In the RollOver code of the tumbnail image
_root.background._x = _root._xmouse*10
_root.background._y = _root._ymouse*10
//Mess around with the figure on the end
//This will change how much the background image moves


Then mask out the rest of the background image so that it just moves around in side the mask just showing the bit you want, if you understand sorry if that was abit messy. If this does not work just mess around and im sure the answer will be simple enough. Btw can you please post the code if you do work it out, thankyou

Flabby Rabbit
Jogos Gaming
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Postby bgspoonz on Mon Feb 19, 2007 4:50 pm

cool.. will try
bgspoonz
 
Posts: 5
Joined: Sun Jan 28, 2007 1:03 am

Postby flabbyrabbit on Tue Feb 20, 2007 11:59 am

I had a look at this last night and after thinking about it some more it will be alot harder than i first imagined. You will have to take into account the ratio of the two sizes of the pictures to find out how much to move the big one in the background. Also you will have to take into account where the litle one is on the stage. Apart from these problems the code i sujested makes the background pic move the wrong way, i am working on a sample code for you which will actually work.

Sorry for the inconvenience,
Flabby Rabbit
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Postby bgspoonz on Tue Feb 20, 2007 4:46 pm

much thanks!! Yea, i kinda figured that the difference in pic sizes large/thumbs may not 'show/move' right UNLESS the code somehow can compensate for various image sizes... but what if ALL thumbs were a set size, and the code said something like with mouseover the thumb, move original image x%.
That way no matter how large/small the big image is, percentage wise a 10% move is a 10% move... if u understand what i mean. Like no matter what size the large image is... if it takes 10 steps/paces to go from absolute left to absolute right (10%)... then it wouldn't matter what size the image is... 10 is 10.
bgspoonz
 
Posts: 5
Joined: Sun Jan 28, 2007 1:03 am

Postby flabbyrabbit on Tue Feb 20, 2007 8:04 pm

It was easier than expected :) but i think this example will only work for this dimension of picture. Saying this it would be quite easy to change it using some constants or getting dimension of the pictures through some simple code.

Heres the zip file: Picture Viewer.zip

Hope this works for you,
Flabby Rabbit
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Postby bgspoonz on Wed Feb 21, 2007 12:37 am

^ says its not a good archive...
bgspoonz
 
Posts: 5
Joined: Sun Jan 28, 2007 1:03 am

Postby flabbyrabbit on Thu Feb 22, 2007 1:45 pm

Well hmmm, which version of flash you got?? Ill redo it and try again..whats ur email adress ill just email it you might work then.

Flabby Rabbit
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Postby bgspoonz on Fri Feb 23, 2007 12:21 am

thanks... it's bgproject01@yahoo.com
bgspoonz
 
Posts: 5
Joined: Sun Jan 28, 2007 1:03 am


Who is online

Users browsing this forum: No registered users and 0 guests