Looping Background Sound
Hi all,
I wonder if anyone can help me. i am new to flash and actionscript and i am working on an online portfolio site. I am trying to add a background music loop but have read (for about 2 hours) of all sorts of ways to do this - but I cannot get any of them to work - could anyone tell me the best way to do this?
Thanks
Steve
ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 11-17-2005, 10:48 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Looping Sound And Looping Animation Sync
I'm working on a navagation interface for a new site, and I'm running into a few issues.
1) when you click on a button, it activiates an MC. within that MC, the first frame is the initial "off" state, and clicking on a button triggers the rest of the clip to play, from frame 2. I have a sound that starts in frame 2, and I set up an animation of a VU meter that is supposed to be synced very closely to the music. In the last frame of the MC is an action, gotoandplay, that sends it back to frame 2. The idea here is that once the button is pressed, the music loops and the animation loops with it.
When I test the movie, do a publish preview, or view the swf file in the flash player, the animation seems to be synced to the music for the first few times it loops, but then the animation drifts ahead of the music, getting progressively further out of sync with each loop. The other real problem here, is that when viewing the swf in any web browser, the animation is immediately behind the music, and seems to be running much slower than it should.
you can see the swf here:
http://www.lsrdigital.com/flash/index.html
Does anyone have any ideas about how to get this to work the way I am trying to get it to?
the .fla file is here if you want to look at it as well:
http://www.lsrdigital.com/flash/LSR.fla
2) The other problem I'm having is that the stage is set to be 680 pixels wide, and the graphic that fills the background is 680 pixels wide, BUT Flash MX publishes the movie at only 679 pixels wide! You can see the line of white pixels on the right side of the movie here:
http://www.lsrdigital.com/flash/index.html
I've double checked the html file and the table cell holding the movie element is 680 pixels wide. You can also tell that Flash is cutting off the last column of pixels because the background image is visibly just missing the edge to the right of the screws.
Any ideas on that one?
Looping Background
Hey! i'm having trouble looping my background. i read a turtorial at actionscript, and it gave me an example with clouds in the background. But, for my web site i want a pickture of my (example) my street with a puddle in it. and when i do everything like the turtorial says it still won't work. The only thing i didn't do with my image is duplicate into 4 picks because i didn't want mine to so 4 boxes of the same pickture. Does anyone know how do loop the bacground with just 1 pickture. This web site is a great example. http://www.barneys.com/enter.html . Tat's basically what i want, one pickture looping over and over agian. And text on the front ( but i already know how to do that) Does anyone know what i did wrong, or mabey how they can help me? Or some simple action script i could use?
Thanks.
Looping Background
Hey! i'm having trouble looping my background. i read a turtorial at actionscript, and it gave me an example with clouds in the background. But, for my web site i want a pickture of my (example) my street with a puddle in it. and when i do everything like the turtorial says it still won't work. The only thing i didn't do with my image is duplicate into 4 picks because i didn't want mine to so 4 boxes of the same pickture. Does anyone know how do loop the bacground with just 1 pickture. This web site is a great example. http://www.barneys.com/enter.html . Tat's basically what i want, one pickture looping over and over agian. And text on the front ( but i already know how to do that) Does anyone know what i did wrong, or mabey how they can help me? Or some simple action script i could use?
Thanks.
Looping Background...
Hi, I'm a n00b to flash MX...
Basically, here's my question...
I have 23 layers of scrolling tex that I want to be the "background" for my flash movie...
Since it took forever just to make 17 seconds of this, and I need about a minutes worth, is there any way I can just make it repeat exactly what it had been doing while I add different things to the foreground?
I tried simply copying and pasting in the timeline, but apparently you can't do that.
Is there any way to do this (if possible w/out actions/coding, just by menus, I'm a n00b)?
Looping Background Using AS
Flash version: Flash MX 2004 Professional
I want to be able to make a movieclip duplicate itself when the edge of the MC meets the stage border.
I have a movieclip moving itself at 9 pixels per frame, but when it reaches the end of the MC, it just moves off. I have tried, but can't get it to duplicate to make a continuously looping background, nor can I give it the illusion of looping...
Any help you could give me on this matter will be really appreciated
Oh, and please don't mention tweening. I'm working with variables.
Looping Background
Hi, I am a newbie here so please forgive me. I am trying to loop a back ground image of some sky & clouds moving right to left. I don't want to use a tween because it is really jumpy and nasty. I have dabbled with this actionscript:
sky_mc.onEnterFrame = function(){
sky_mc._x -=2;
}
The transition is really smooth - However the blooming thing just vanishes of the canvas as you would expect. How can I keep a continuous loop going. PLEASE HELP!
Thanks
Looping Background
Hey all. I am trying to have a looping background (via short quicktime movie) in my website. I just put it into flash and it auto loops just fine. What my question is, is should this background be a separte Scene that is refered to in another SWF or the same SWF, also how would I go about doing this then?
What is confusing me is that this movie takes 343 frames to cycle, so I am not sure how to create a website that has a max of 6 pages with this long looping background.
Also, this background does not have to sync with page transitions so it is it's own body.
Thank you for any help, apologies if this is not the proper sub-forum for this kind of question.
Looping Background
I tested and got this working (From tutorials in this site)
http://www.actionscripts.org/tutoria...nd/index.shtml
Problem I have is I want to greate a reeeaaall smooth scrolling.
(I tried to set the timeline for 468 frames (That is the size of the image I am using, but still I can see it jumping, one pixel at a time)
How do I create smooth scrolling? with a script?
I am complete newbie with flash bear that in mind.
(Using Flash MX 6)
Thanks
Looping Background
i want to make a flash with a looping background, example "look at the attach" i want it to keep looping as it goes on....
Looping Background
can anyone direct me to a tutorial that tells me how to make a looping background with mx 2004. for instance: a car driving as the backrground continually loops.
Looping Background
Hi,
I'am new to the forums and I know absolutely nothing about Flash, (well pretty much nothing, just started learning).
Anyway, Im making a Flash portfolio site, and one thing that I'm stuck on is the background. Basically I want bubbles to move to the top of the page, with varying sizes and speeds. What would be the best way to go about this? - Animate the bubbles myself?, create a random script??, the thing is, i'm not very good at programming, I know some basics in Director but thats about it. (with all the maths, and logics, and algorythms...!!!! MY HEAD IS GONNA EXPLODE!!)
So anyway, help would be greatly appreciated, I will upload a design I have made, so you can gain a better understanding of what the hell I'am on about.
Thanks alot (expect lots more questions from me in the very near future )
Looping A Background
just wondering how i get a background to loop over and over again with out having a monstrous amount of motiontweeing
anyhelp would be appreciated
peace
E1kO
Looping Background
Hi,
I'am new to the forums and I know absolutely nothing about Flash, (well pretty much nothing, just started learning).
Anyway, Im making a Flash portfolio site, and one thing that I'm stuck on is the background. Basically I want bubbles to move to the top of the page, with varying sizes and speeds. What would be the best way to go about this? - Animate the bubbles myself?, create a random script??, the thing is, i'm not very good at programming, I know some basics in Director but thats about it. (with all the maths, and logics, and algorythms...!!!! MY HEAD IS GONNA EXPLODE!!)
So anyway, help would be greatly appreciated, I will upload a design I have made, so you can gain a better understanding of what the hell I'am on about.
Thanks alot (expect lots more questions from me in the very near future )
Continous Looping Background
Hi guys, right I am sure that there isnt much scripting involved in this one but i would like to know how you continously have a image passing by for a background, e.g i have seen some of your guys footers, like clouds or a strip of buildings that are seamlessly looped in the background.
hope you understand what iam on about somtimes i ramble,
Cheers
G man
Continuous Looping Background
I am trying to get a continuous loop happening for a background image - I have seen an example of this on the site http://www.2advanced.com
Can this be done by simply animating it? I suspect that there would be some actionscripting here i.e duplicate movieClip or something.
Any info - much appreciated - thanx in advance - .
Looping A Background Image
HI, hopefully someone might be able to help me out.
I am trying to get a background on a movie to constantly loop. Scenario > Letterboix with grass, etc _ I want to have clouds moving behind the letterbox constantly. But i can't seem to do it. Want to make it look the sky is moving across the screen really quickly.
Thanks for u help
Looping Background Tutorial
im looking fora looping background tutorial, when i say looping background i mean like loony Toons background thing where the character looks like hes moving againsts a moving background that just goes over and over
Looping Background Tutorial
im looking fora looping background tutorial, when i say looping background i mean like loony Toons background thing where the character looks like hes moving againsts a moving background that just goes over and over
Continuous Looping Background
Hi people,
I'm working on an animation, but it won't loop properly..I wanted to make a continuous
looping background wich is random..I attached the file.
Does anyone know how to solve this or where I can find a good tutorial for this?
thanks,
greetz
Scrolling/looping Background
I am a complete newbie jumping in at the deep end here so if this is unbelievably obvious don't hesitate to not mention it
I want to have an image scrolling across the screen (sounds easy) but it needs to be continual e.g the image (it is a cloud cover image) scrolls across the screen horizontally and as the end of the image comes across it must loop the first part of the image next to it to keep it continual?
Make sense? If it doesn't please PM me and help me out!
Thanking you all with milk and biscuits.
Continuously Looping Background?
There's a tutorial: http://www.flashkit.com/tutorials/Ge...-199/index.php
On how to do one... which basically just says to take a really long image and motion tween it, but he also says this:
" After reading this tutorial some expert users of Flash will comment that we can save trouble by using actionscript. "
Could someone tell me how to do this using actionscript instead? THanks.
Looping Background Movie
Hi i am having trouble with having a looping background movie clip on the bottom layer of my flash project. I have it on the bottom layer in the first frame, above it i have some menus fading in and it seems as though once it gets to this scene, it just plays the movie clip over and over and never goes to the 2nd frame of my scene. Is there anyway to have a looping background movie clip inside of flash 8?
Thank you in advance,
Tyler
[CS3] A NON-looping Panoramic Background
I am working on a flash movie that scrolls a background movieclip as the user moves their mouse to the left or right, and I have used code snippets from various tutorials to accomplish this, because my knowledge of actionscript is somewhat limited. What I have is a smooth accelerating/decelerating effect and not a simple movement, but the original code has duplicated the movieclip and made the necessary adjustments as for a continuously looping background. I have managed to trim and edit the code to use just a single instance of the clip, but now I need the movieclip to stop when it reaches the leftmost and rightmost bounds of the stage. I know this should be easier than creating a looping, scrolling background, (probably only a line or two of code) but I need help in creating just that function. Perhaps something that involves the movieclip's ._x and when it reaches a certain value, to stop the timeline. Ideas or code would be greatly appreciated.
Continuously Looping Background
I've been trying to find a script for a "Continuously Looping Background". I would like to create a "cloudy sky" background, similar to http://thekillersmusic.com/
I hope someone can help, thanks, peace
desolve.com.au
Continuous Looping Background
Hi people,
I'm working on an animation, but it won't loop properly..I wanted to make a continuous looping background wich is random..I attached the file.
Does anyone know how to solve this or where I can find a good tutorial for this?
thanks,
greetz
Creating A Looping Background
Hello everyone, theres a tutorial out there which I'm sort of trying to do:
http://www.cbtcafe.com/flash/continu...nggraphic.html
but I want to do the same with images instead in horizontal order, so they line back to back without seeing any gaps at the end of the motion tween. Can anyone help me? Thanks.
Looping Background Slideshow
I have a website I have to make for a client and they want to have this middle section scroll in an infinite loop (http://pigseldesign.com/cravings.jpg). It's only 6 photos, but I don't know how to approach the slideshow. I would probably size it to only be 800 px wide just to accomodate some user's resolutions, and then have two white gradients going from clear to white on both sides...so if a user has a wider screen the slideshow will be in the middle and any extra space to left and right will be white. Any hints on how to make this slideshow?
Making A Looping Background Smooth?
Hello everyone,
I have created a looping background using a mask box, and I have a graphic symbol of a ski in a motion tween.
When the end of the clip is reached, its kinda jerky when it restarts.
How can I make the transition from end to start smooth????
so when it loops you can't notice that it's a loop.
Thanks
Jean
(MX) Looping A Free Moving Background With AS?
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.
Ok... so I'd like that to be in effect for all directions. This way I can have an infinate star field. Can anyone help me out?
Volume Control For Looping Background Music
hope someone can help me... i am desperately trying to work out how to control the volume of my looping background music. i have only been been able to find volume controls which also have play, pause & stop.
if anyone knows how to create a horizontal volume slider could u please let me know?
thanking u!
Creating A Looping Background For Simple Game
hello
I have been trying to create a simple looping background of a road - so a car will be placed on top and give the ilusion it is moving on it...
The problem is: I was able to follow the instructions from http://www.jimmcneill.com/loopdemo2.html and it works fine, however, it only works as seen on the link if I publish to HTML... but I need to do the same and publish in Flash...
What am I missing ?
I am quite new to Flash, so I apologize if the question is silly...
I have been struggling to make it work for a few days now and don't seem to find useful info on this problem anywhere...
Any help is REALLY appreciated !
Ariane
Looping 1-framed Animated Actionscripted Background (starry)
I was very surprised this wasnt asked before O.O i did my search
Anyway heres my question - what would be the most efficient way (trying not to compromise on all the other things going on at the same time (this is just an animated background, a game plays on the higher lvl, i just want this under it)
To have a star-field background, where stars float up randomly from top to bottom and with random sizes and positions.
I know this much: make a single star. check.
Make the background layer. check.
Code:
for (N=0; N<=22; N++) {
_root.attachMovie("Star", "cell"+N, 0);
_root["cell"+N]._x = Random(550);
_root["cell"+N]._y = 0;
_root["cell"+N]._xscale = Random(5);
_root["cell"+N]._yscale = Random(5);
_root["cell"+N+speed] = Random(5);
Next N
^Places 22 stars. (i think). Check.
I then need a script that runs in between "placements" of the stars, and makes them float down. (with the randomized speed).
I'm just having logical problems with "where to place the codes" Because there arent actual "subroutines" i can access on... Time values, maybe? like every 2 seconds it makes new / deletes old / and moves the stars that are currently out? or is there a better way.
In other words, i tried to phrase my question to get the most "alternative methods" to achieve what i want. (In case you havent guessed, i am demonically contributing to the already hellish amounts of SHMUP's online... (its a good exercise - no flame plox))
IN OTHER WORDS - its just a randomized starfield running on 1 frame completely actionscript made (excepting the background solid color + the star movieclip. should be very small in size.)
ACTUALLY: EVEN BETTER WAY: a script that constantly checks up on values / movieclips and then executes stuff on them - but while still leaving enough space in between "check ups" so that the other layers can keep "doing their thing"
Looping Sound Using Sound Object...
Hi i have the following AS code:
ActionScript Code:
var song_sound:Sound = new Sound();
song_sound.attachSound("background_music");
btnSoundOn.onRelease = function() {
song_sound.start();
};
btnSoundOff.onRelease = function() {
song_sound.stop();
};
At the moment on clicking sound on, it plays the track once, is there a way i can make it loop continuously?
Movie Sound And Background Sound Problem
I’m facing one problem. In my flash file have one background music and have one external movie ( flv ). I want when I click movie button then movie will load and background sound will stop and when I click close in movie then background sound will play again. *** remember movie file is external SWF file and I’ll put one button in that movie swf file call close.
And another one.. when movie running then if I click any other button then content come but movie sound play… this is not right .. caz when we click other button should be movie sound stop and background sound will playing
help me pls...
Sound Looping Over Each Other?
my site at http://www.kadlac.com ......I am using a loadMovieNum command to load the sound controls, and the sound control level loads the soundtrack layer containing the sound loop. My question is, it seems to loop over each other like every 3 sec or so? What could be causung this? Thanks in advance!
Looping Sound
i run a nightlife web site and find that people sometimes browse the site upwards of 45 mins. in designing my new site, i have a loop which i play 99 times
sndBack.start(0,99);
and while doing other things, this loop will stop eventually. is there a way i can keep the loop going forever? maybe loading it externally or changing my code somehow.
thank you
Sound Looping
i want to now how to make a sound loop as i have made a play and a stop button and when i press play it only plays the song once, i'm using flash mx
Sound Looping.HELP
OK this is my problem.
If you look at my code below that I attached to
a bottun it works fine,but I'm trying to set
offset becouse when my sound plays every time it loops
I have brake (or space,or pause what ever you call it) before it plays again.
What do I do to make my looping go smooth
so it looks like one long song.
(If I listen in Cakewalk sound loops fine,no brake)
PLEASE HELP.
Thnx
PAUL DJ MAX
on (release) {
stopAllSounds ();
mixSound1=new Sound(this);
mixSound1.attachSound("mix1");
mixSound1.setVolume(100);
mixSound1.start(0.065,9999);
}
Looping Sound?
Does anybody know how to just loop a backgroung soung.I thought u could do it in the properties but u cant. Pleae help.
Thanks
Looping Sound
I'm loading external mp3's which are embedded into swf's - when I load movie to play the sound the looping of it has a small gap in the sound, only a fraction of a second , but enough to make it sound bad. I've tried other ways of doing this but they all seem to fail in terms of looping the sound seemlessly. We've tested the sound files in pro tools and they loop perfectly. please help.....cheers.
Sound Looping Help
ok im working on this http://www.masterfuldesign.com/index2.htm for the opening page to my site. Now it still needs some work and am gonna change some of the sounds the letters make when rolled over. But I want the last 3 letters to loop the sound file when clicked. And turn off the sound when clicked again. Whats the best way to do that. Right now I just have them so when rolled over they play the file not even looped.
Thanks
MIKE
Looping Sound
looping sound ....how do i loop a sound file continuosly ......?
anyone know
Sound Looping
Ok Does any one know how to loop sound in flash mx forever. like is there some sybole or somthin you put in the how many loops thing in the properties inspecter.
Looping Sound
I'm struggling with making a series of buttons that loop different sound.....
i have a loop in the background we'll call it A
and when you hit button1
i want "A" to stop and "B" to begin.
but "B" will play until another button is pressed
How would i script this?
thanks
toondude
Looping A Sound.
Hi guys, im wanting to be able to allow a user to pick up an object, and move it. While its moving i want it to make a sound - but the problem is the sound only plays once, and i want it to loop (ie when the user shakes a maracca it loops a shake sound, and when they stop moving it, the sound stops.
Heres my current code
on (press) {
_root.sounds.sound1.play();
this.startDrag(true);
}
on (release) {
this.stopDrag();
}
this plays a moive with said sound in it when the user clicks on the object.
Any ideas chaps?
Thanks, matt
|