This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > June 2005 > Background scroll





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Background scroll
Gerardo Sepulveda

2005-06-17, 4:41 am

How can I do this effect, when you click on a buton the back slid from one side to other side.... you?ll se....

http://www.solisys.com/

Thanks a lot
Peter Blumenthal

2005-06-17, 7:38 am

DON'T cross post - it's counter productive for all. I answered this on
macromedia.flash.


--
-------------------------------
Remove '_spamkiller_' to mail
-------------------------------


EnriqueBlanco

2005-06-24, 7:25 pm

I was researching the same issue and found this. The credit is Justin's, not
mine. Hope it helps...

Not too hard.
A good idea is to make sure your background is at least a bit wider than the
movie stage and forms a seamless tile with itself (probably obvious).


Put the background inside a movie clip first. Duplicate this clip, placing
one copy at position (0,0) and line up the second copy with the right-hand
edge of the first one. Then put these 2 clips inside movie clip (the one in
which it will move), at position (0,0). In this parent clip, place another
layer above the one containing the background clips, and make this a mask
layer which is the size of the stage.


Next, give the clips containing the background image names (how about
'tile1' and 'tile2'?).
Add the following code to a keyframe in frame 2 of the timeline:


tile1._x-=10;
tile2._x-=10;


if (tile1._x<-tile1._width){
tile1._x+=tile1._width;
tile2._x+=tile2._width;



}


gotoAndPlay(1);

The code should probably be optimised a bit. For instance you could store
the clip width in a variable to using the _width property so much.


If you want to download a sample movie, you can get one from
http://www.pipey.com/stuff/mov?ingbg.swf
(http://www.pipey.com/stuff/mov?ingbg.fla for the source file)



"Justin Sampson" <webmas...@sampsonwebdesign.co?m> wrote in message

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews