Forums

Remove Ad
Reply  Post New Thread
 
Thread Tools
Old 2nd July 2009   #1 (permalink)
Forum Junior
 
 
Level: 9
Level up: 39%
Activity: 0%
Posts: 386
Status: Offline
Thumbsup Icon Flash Tutorial: Scrolling Background

Make sure you have the program MACROMEDIA FLASH version 7 or higher

1.) Open Flash

2.) Select NEW FLASH DOCUMENT

3.) Create or Upload your background image and convert to movie clip.

4.) Click the drop arrow and select EXPORT FOR ACTIONSCRIPT and EXPORT IN FIRST FRAME
-Then put it where you want on the stage

5.) (after object is created) Go to FILE>NEW>ACTIONSCRIPT FILE

6.) paste the code below into that spot.

class Background extends MovieClip
{
function onEnterFrame()
{
_x -= 50;
if(_x < -2110)
{
_x = 0;
}
}
}



7.) Save the document as class.as in the same folder your SWF is in
(example: Class- Background I wold save it as Background.as)

8.) Save the SWF in the same folder as the actionscript

TEST MOIVE to check if works

if anyone needs a tutorial/question, please notify me and I will try to help/asses the problem/help/tutorial/
Reply With Quote
Old 2nd July 2009   #2 (permalink)
Forum Junior
 
 
Level: 9
Level up: 39%
Activity: 0%
Posts: 386
Status: Offline
Default Re: Flash Tutorial: Scrolling Background

If you see any other flash tutorials like this one and were made by me: They all go to the same game
Reply With Quote
Old 3rd July 2009   #3 (permalink)
Forum Junior
 
 
Posts: 68
Status: Offline
Default Re: Flash Tutorial: Scrolling Background

very cool
Reply With Quote
Old 13th July 2009   #4 (permalink)
Forum Junior
 
 
Level: 9
Level up: 39%
Activity: 0%
Posts: 386
Status: Offline
Default Re: Flash Tutorial: Scrolling Background

If you want the screen to scoll down like Guitar Hero ,then replace the code above with the new code below.

class Background extends MovieClip
{
function onEnterFrame()
{
_y -= 50;
if(_y < -2110)
{
_y = 0;
}
}
}
__________________
If need anything that deals with computers (tutorials, games, websites, sigs, faqs, anything with a pc/mac) let me know and I will try to help you.
Reply With Quote
Old 22nd August 2009   #5 (permalink)
Forum Junior
 
 
Level: 9
Level up: 39%
Activity: 0%
Posts: 386
Status: Offline
Default Re: Flash Tutorial: Scrolling Background

Bump
__________________
If need anything that deals with computers (tutorials, games, websites, sigs, faqs, anything with a pc/mac) let me know and I will try to help you.
Reply With Quote
Old 23rd September 2009   #6 (permalink)
Forum Junior
 
 
Level: 9
Level up: 39%
Activity: 0%
Posts: 386
Status: Offline
Default Re: Flash Tutorial: Scrolling Background

*bump
__________________
If need anything that deals with computers (tutorials, games, websites, sigs, faqs, anything with a pc/mac) let me know and I will try to help you.
Reply With Quote
Old 1 Week Ago   #7 (permalink)
Forum Junior
 
 
Level: 9
Level up: 39%
Activity: 0%
Posts: 386
Status: Offline
Default Re: Flash Tutorial: Scrolling Background

*bump
__________________
If need anything that deals with computers (tutorials, games, websites, sigs, faqs, anything with a pc/mac) let me know and I will try to help you.
Reply With Quote

Reply  Post New Thread

Thread Tools

Forum Jump


All times are GMT -8. The time now is 12:48 PM.
To change your timezone, use 'Edit Options' under the 'Settings' menu.




Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0