ActionScript 2.0 :: Loop A Free Moving Background With It?

Nov 24, 2005

I've got this space background image that you can move around with the arrow keys. What I'm trying to accomplish is kind of hard to explain so I'll just give an example...

First, look at the SWF and move the background in any direction. You'll notice that the actual image is pretty small, just barely bigger than the stage itself. I want to make a script that will create duplicates of this image and place those duplicates in the right place so that you will never see the empty white space.

Ok, so say you hold down the right arrow key.. and the image moves left. Once the right edge of the space graphic touches the right edge of the stage, i want a duplicate of the picture placed so that the left edge meets the right edge of the original graphic. Keep holding right, and eventually the original graphic will be pushed off the stage. I'd then like for that graphic to be removed, and for the whole process to repeat itself while moving the picture.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Moving The Background Around?

Oct 22, 2010

I have a flash file using actionscript 3.0 that when the mouse moves left the background moves right to simulate looking left and vise versa with the other directions. My only issue is that acceleration is a new concept to me and I have never worked with it before. I have read some things on it but they don't really answer my full question which is...

How do i made the background move faster the farther my mouse goes and slower the closer my mouse goes (to the middle).

Here is my script:

ActionScript Code:
stop();
var midXup:Number = 310;
var midXdown:Number = 270;

[Code].....

View 6 Replies

IDE :: Moving Background With Mouse

Mar 19, 2010

hi i m new to flash and i want make a site in which the back ground moves with mouse just like URL...

View 1 Replies

Bluring Sprites And A Moving Background?

Sep 30, 2009

i um want to make a sprite flash movie but i cant afford flash cs4 or 8 so i only have mx heh.. >_> i guess im good at animation but im not as good as alvin earth worm or rpg fan but i want to be good as them is there any way to blur like they do in flash mx? it can be easy or hard i'll work as hard as i can to get it right

View 3 Replies

ActionScript 2.0 :: Moving Background With Character?

Sep 12, 2004

what i am trying to do is get the background to move with the characteri checked out a few tutorials.but not enufheres the deal..i have a character that can fly...and when the character goes upward...thebackground moves down to expose sky..then eventually black space with stars...does that make sense?

View 2 Replies

ActionScript 3.0 :: Image Moving In The Background?

Feb 17, 2009

How can I do this: [URL]

I love the image moving in the background. show me where to start or some similar code?

View 1 Replies

ActionScript 2.0 :: Moving Background With Character

Sep 12, 2004

what i am trying to do is get the background to move with the character.i have a character that can fly...and when the character goes upward the background moves down to expose sky..then eventually black space with stars also i want the background to stop..like when the background ends.

View 2 Replies

ActionScript 3.0 :: Continuously Moving Background On A Website?

Aug 12, 2009

How would I go about making clouds continously move across my website as a background?

View 4 Replies

ActionScript 2.0 :: Moving Background With Invisible Buttons?

Jan 12, 2011

I'm somewhat stuck in a project that I have to deliver next Friday. Thing is... I've got to code a webpage like The Killers Band webpage with a panoramic picture moving according to your mouse movements.

I've tried several things already, but I had no success yet. (Everything must be coded in AS2.0, and I'm using Flash CS3 to cover the project).

All I have is the panoramic picture, which I might be able to upload if you ask me to.

Additional info:

I've already converted the background picture into a movie clip symbol. Also, if I ever have to send the picture to anyone, I'll send it as a Private Message, since I can't post links yet.

View 9 Replies

ActionScript 3.0 :: Moving A Background Up When A Button Is Clicked?

Nov 15, 2011

I am currently doing a project that involves animating a background image up/down when buttons are pressed.

1.) It will need to check if a button has been pressed and then animate the background up.

2.) It will also need to check to see what the position of the background is. If it has been animated up already, it will need to be animated down.

3.) Finally it will need to contain if and else statements to animate the background movie clip. If, will animate it to y = 180. else will check the position, if it has been animated up, the background movieclip will be animated down to y = 330

View 4 Replies

ActionScript 2.0 :: Moving Background Navigation On Site

Aug 30, 2005

New to this forum, but was wondering if the moving background on this site [URL] is actionscript or just an animation. It looks very cool. I wanted to use the same effect for a school project I'm working on, I am using MX 2004.

View 4 Replies

Creating A Background Which Moves In The Direction That Cursor Is Moving?

Sep 8, 2009

so i have a project where i will be making a website. I will be using flash to make it interactive and visually appealing. I found a website with a really cool entrance page,please view it he mouse moves, the background looks like its moving.

View 3 Replies

Web Development :: Build A Website With A Moving Video As A Background?

May 26, 2010

Trying to build a website where the background of the site is a video and then there would be an actual html page laid on top of it.

View 4 Replies

ActionScript 3.0 :: Moving Background Based Mouse Movement (Parallax)

Dec 2, 2009

I found this AS2 tutorial online but I'd like to achieve this in AS3. I tried transcribing but the setProperty is throwing me off.

[Code]...

View 7 Replies

ActionScript 3 :: Music Playing Repeatedly In Background While Moving Between Frames

Feb 13, 2011

I developed a website using flash with Actionscript 3. I included a music as a background for the website and the music will loaded when the site loaded. But the problem that when I click buttons to move between pages(frames) then go and click button_01 the music will play again so I will have music playing more than one time in the background and the sound_btn will not work any more so even I click sound_btn the music will not stop. The code I'm using is listed down. What I should modify to not allow the music play more than one time in the background while moving from one page(frame) to another.

stop();
//number that is redefined when the pause button is hit
var pausePoint:Number = 0.00;
//a true or false value that is used to check whether the sound is currently playing
var isPlaying:Boolean;
[Code] .....

View 1 Replies

ActionScript 3.0 :: Control 9 Different Background Images With 2 Smooth Moving Sliderbars

Apr 12, 2010

I am trying to figure out how I can control 9 different background images with 2 smooth moving sliderbars in three steps with actionscript.

Scenario:

slider 1, step 1 + slider 2, step 1 = picture 1
slider 1, step 1 + slider 2, step 2 = picture 2
slider 1, step 1 + slider 2, step 3 = picture 3
slider 1, step 2 + slider 2, step 1 = picture 4....

View 2 Replies

Actionscript 2.0 :: Moving Mc's In A Loop?

Sep 14, 2009

what to know how to move the x value of menuButton. The rest of the code is working fine

Code: Select all   var currentX:Number = _level0["menuButton"+i]._x;
//next button try to move left (not working)
_level0.attachMovie("next", "nextButton"+i, _level0.getNextHighestDepth());
var btnxt = _level0["nextButton"+i];

[Code].....

View 5 Replies

ActionScript 3.0 :: Moving MovieClip And Completing Loop

Apr 2, 2010

For some reason the x++ loop to move clip doesn't work. There must be an easy fault.
cX=iButton[i].x;
while (cX>iX) {
iButton[i].x=cX;
cX--
}

It should move a thing smoothly, as I understand it, but it doesn't. It completes the while and then shows the iButton at iX, completing the loop without showing a thing meanwhile. I even put a 1000-count for{} loop to slow it down, but it just delayed the final outcome. I also tried to move the moving to a separate function, and into a package. (It's these menus I want to slow down.)

View 3 Replies

ActionScript 2.0 :: Make Mc Moving Across The Page In A Loop?

Apr 16, 2011

I am trying to make a simulation of a blood moving in an artery and I want blood cells to continuously be moving across the stage ( so that there are no gaps in between one loop and the other) when i click the start button.I thought about doing a setinterval loop but it just overwrites the previous set of generated mcs? This is the code on my button

on (release) {
var years:Number = 80;
function generatePlatelet (){

[code]......

View 2 Replies

IDE :: Looping Background, And How To Stop A Loop

Aug 28, 2009

again fixed, now all i need to know is how to pause the background, and then have it continue playing when the "aim" animation is finished.

heres the AS2.0 of the actions: // set counter
counter = 0;
fire_button.onRelease = function(){

[code].....

View 4 Replies

Flash8 :: Looping Background And How To Stop A Loop

Aug 28, 2009

ive created a character loop for two characters that are in a walk cycle. when a button is pressed both characters change animation, now ONE of the characters is doing what i want it to, which is, change from walk to aim, then back to walk. but the other character is going from one animation to the second, and then just continuing to loop the second animation.

[Code]...

View 4 Replies

ActionScript 2.0 :: Loop A Flv In The Background Of Flash Movie?

Apr 26, 2010

I need to loop an flv in the background of my flash movie. I don't normally work with video a lot so I don't know much beyond using the general video player and customizing skins. Everything I'm looking at is either for a standalone player or using AS3. I'm on CS3 using AS 2.

View 1 Replies

ActionScript 2.0 :: Get A Loop Repeating As Background Noise?

Mar 13, 2007

I am trying to get a loop repeating as background noise I have implemented this within an MC on maintime line.

Code:

myLoop = new Sound;
myLoop.setVolume(80);
myLoop.attachSound("final");
myLoop.start(0 ,99);
var pos:Number;/////user interface below

By me starting loop at 0, playing back 99 shouldnt that loop it endlessly? However it stops after first play.

View 2 Replies

IDE :: How To Make Cloud Background Continuous Loop

Mar 25, 2009

I am making a cloud background continuously loop using actionscript, however the image cuts itself off. I was following the tutorial at: [URL]. I attached a picture of what it looks like. Here's my code(very similar to above websites code)

Code:
animator = createEmptyMovieClip('animator',1);
bg_1 = animator.attachMovie('cloudsMC','bg_1',1);
bg_2 = animator.attachMovie('cloudsMC','bg_2',2);
bg_1._x = -bg_1._width/2;
bg_2._x = bg_2._width/2;
[Code] .....

This code is all in a movieclip named bg_mc. The width of cloudsMC is 1500 px. Why the image cuts off as it scrolls to the left?

View 1 Replies

ActionScript 2.0 :: Make The Background Image Move Opposite The Cursor To Make It Seem Like The Camera Is Moving?

Mar 5, 2006

I need to make the background image move opposite the cursor to make it seem like the camera is moving.[URL]

View 1 Replies

Flash 9 :: Slow Moving Of A Flash Application From Background To Foreground

Oct 23, 2008

I have created a Flash application running in a browser (Firefox 3 on Windows XP). When I move this application from foreground to background and (after some time) viceversa, I notice a considerable slowdown, i.e. for about thirty seconds the application becomes unusable.

My swf is very small (~200 KB), but this swf creates *many* buttons and *many* other graphical widget (with statical images), so the RAM occupied is considerable (~150 MB).

I initially assumed that was caused by the swap mechanism of the operating system or of the browser. This was *not* true, and it was confirmed by the fact that, by default, Mozilla Firefox prevent Windows from swapping out memory when the program is minimized (see config.trim_on_minimize option). Nothing has changed even disabling the paging system of Windows.[code]...

View 0 Replies

ActionScript 3.0 :: Making Beat Em Up - Character Stop Moving If The Attack Is Pressed And Once It Is Released Start Moving Again?

Nov 2, 2010

im currently making an "AS3 beat em up" ala streets of rage or double dragon.Currently i have my character moving and a few animations done and i am trying to figure out how to make attacks work.I have some "basic" animation for his attack, but im not sure how to get it to work correctley.What happens is, if you press control (the attack button) whilst the character is walking he just keeps moving and is stopped on the attack frame.I want the character to stop moving if the attack is pressed and once it is released start moving again.

hero.gotoAndStop('still');
var left:Boolean = false;
var right:Boolean = false;[code].......

View 2 Replies

ActionScript 1/2 :: Associate Buttons With A Moving Moving Clip?

Jan 30, 2012

what i have is a tween on a movie clip of a popcorn kernel on one layer and a tween on a button on another layer to follow the movie clip. i want to be able to roll over the kernel and make it "pop". i changed my over on the button to popped corn (this works) but i want it to stay popped for the rest of the tween.

View 11 Replies

ActionScript 2.0 :: Moving Scene By Moving A Mouse Over Them?

Apr 22, 2007

I want to know how i can moving my scene by moving a mouse over them.

to understand what i want exactly ckeck this link :- [URL]

View 1 Replies

Javascript :: Video With Transparent Background On Page Above Image Background?

May 2, 2010

I want to embed some video into my HTML page. As background I want to use big picture. And above it I want to insert loop video with (i.e.) walking man.So, can I embed video (without flash and any player controls) in page?Can I decode video with transparent background? Is there any codecs which support transparent background (alpha-channel)?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved