Categories
Featured jobs
» More ActionScript, Flash and Flex jobs.
» Advertise a job for free
Our network
Advertisement

 »  Home  »  Tutorials  »  Flash  »  Beginner  »  Continuously Looping Background

Continuously Looping Background

By Roy Haryanto | Published 09/9/2005 | Beginner | Rating:
Roy Haryanto
This user is yet to take control of their account and provide a biography. If you are the author of this article, please contact us via support AT actionscript DOT org. 

View all articles by Roy Haryanto
Page 1 of 2
Written by: Roy Haryanto
Difficulty Level: begining
Requirements: Flash 4

Download FLA
Part 1



Have you ever wanted to create a continuously looping background so that it seems the foreground object is in perpetual motion?

This tutorial will explain clearly how easy it is to achieve that. After reading this tutorial some expert users of Flash will comment that we can save trouble by using actionscript. Well I did not say we can't but this tutorial is meant for beginners, targetting those who only realised the existence of Macromedia Flash a few days ago.

So without further ado, let us start the tutorial.

The first step is to add 30 frames to the layer. This can be done by clicking on the first frame of the layer and press F5 until there are 30 frames.

The next step is to import the graphic object which is going to be used as the background.

File > import
Select the backgound image (in this case sky.jpg)
Then click Open.

By now you should have picture of a sky in the centre.



Duplicate the Image
We need to duplicate the picture so that it fills up the screen.

Click on Ctrl+C to copy the image into clipboard and Ctrl+V (3 times) to add 3 more pictures of the sky. If you only see 1 copy of the image it likely that the 4 images are on top of each other. Drag one image to each of the 4 corners and try to align them so that the overall image looks continuous.



We have to duplicate this combined image and align the copy beside the original.
Edit > Select All, Ctrl+C to copy the combined image and Ctrl+V to paste it onto the screen.
Again, the images should be aligned next to each other to form a long continuous rectangular image.


Spread The Word / Bookmark this content

Clesto Digg it! Reddit Furl del.icio.us Spurl Yahoo!

Related Articles
Comments



Search Entire Site
Add to Google
Advertisements
Article Options
Latest New Articles
Set up a simple IIS Server for Flash
by Peter McBride

Day 1 at FITC Toronto 2008
by Anthony Pace

Simple reflection effect with AS2
by Jean André Mas

ActionScript.org Meets Josh Tynjala (aka dr_zeus)
by ActionScript.org Staff

Rapidly Create Online Flash Movies to Help Users Market, Sell and Support Software and Hardware
by Sabrina F

mailing list
Enter your email address:
mailing list
Subscribe Unsubscribe
© 2000-2007 actionscript.org! All Rights Reserved.
Read our Privacy Statement and Terms of Use...
Our dedicated server is hosted and managed by WebScorpion Webhosting.