Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Looping



Hello there. I'm sure all your old forum members hate newbs like me coming and asking all these questions...

I just got into flash, because I'm taking an intro to web design class here in college. I'm going to use a intro movie, and when it's done playing I just want it to show a picture with a link to enter my webpage. I've already got my movie with the animations, and music, and all that. I'm just unsure of how I can add the end part. Thanks!



FlashKit > Flash Help > Flash Newbies
Posted on: 11-10-2005, 10:02 AM


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 External Mp3 Not Looping Perfectly
Hi there

I have a looping external mp3 file playing in the background of my flash (Flash MX 2004) movie.

Unfortunately it does not loop perfectly even though I know the mp3 file loops perfectly in sound editing programs.

There seems to be a slight delay.

Here is my code

function Play_Background_Audio() {
myMusic.loadSound(audioFile,true);

myMusic.onSoundComplete = function() {
myMusic.loadSound(audioFile,true);
};

};

audioFile = "home.mp3";
myMusic = new Sound(myMusicMc);
Play_Background_Audio();

Any help would be much appreciated.

Thanks

Paul

Looping & Non-looping Components In Same Movie
I'm new to using Flash MX, and would be grateful if someone could give me some advice for this animation I'm trying to do.

I'm making a banner for a website that is being designed by someone else. The background consists of four photos that fade in and out continuously (I think "looping" is the correct term) as soon as the animation (movie?) opens up. That part wasn't too hard!

However, the client wants a name (in white text) to gradually fade in on top of the looping background, and stay visible and static for as long as the looping animation plays. As well, after the white name fades in and becomes static, she needs another name (in gold text) to gradually appear and start fading in and out below it.

So the sequence is:
- Looping background begins to play.
- The name (in white text) gradually fades in (say at around frame 50) and stays visible (alpha at 100%) while the background is looping.
- Around frame 100 a second name (in gold text) fades in and then starts fading in and out continuously in synch with the looping background.

I can't figure out how to do this. Do I need multiple time lines? Or triggers in various frames? Or different scenes?

I have a sinking feeling that I'm going to have to use Actionscript for this, and although I'm perfectly willing to learn, I haven't a clue where to start. Could anyone help, please?

Music Looping And Looping And.....
Hi all, thanks for taking a look at this.
I have made an Audio off/on button which I have added to the main scene, it has 2 frames, first one with the stop(); script and the second frame with
stop();
stopAllSounds();
but when i am navagating through the main scene the music loops onto itself till u end up with a god awful noise.

Help?!!



btw, I am using flash MX

LOOPING MC.....
Hey Guys,

I was wondering what the actionscript was to loop a MC..

for example i have a MC half way through my flash movie and wanting to loop it 3 times...

If anyone can help me out it would be a great help

Cheers
mdesign

Looping ?
Hello evry one, first time here

I hope i am in the good section

I am really unable to figure out how to do looping action

What i'm am trying to do is a scrolling text field that begin to scroll with a button mouse over and stop scrolling at mouse out or at maxscroll

can anyone help me??????????6
pleeeease

HELP On LOOPING
Hey Thanks for Readin this,

Im done making my 1st flash item and it displays fine in the test view but when I upload it and test it on the REAL internet, as soon as it's done it starts all over. How do i prevent this from happening? Thanks
CJ

Looping...
I want to be able to loop only a certain object within my movie. I want everything else to remain static while a couple words fade in and out. Thanx for the help.

Chase

Looping
I am useing swish. I wont to stop the looping. I unchecked the loop ,but in the browser it's still looping. This is what I have done. [I made a line ,I used the move effect Y postion - move up by 123 ,and x angle - rotate ccw by 180. this is good for me ,but I can not stop the loop. can you help.


Thank You
leecs2northrock.bm

Looping
Does or anyone did have a problem with looping? I turned off the loop and saved it then when I tried it in my browser(ie 5) it would keep looping.... any quick suggestions or is this a bug with swish?

Thank in advance...

Looping
Ok, Obviously since I am in here I must be pretty new at this so just bare with me because I have a few questions.
1. How can I make a movie clip in one layer loop continously without looping the rest of the movie?

2. Why is it that when I preview my site in a browser everything is so much bigger? Do I have to make my movie that small to get it to fit in a browser?

3. What is the standard size width for a web browser? The height I'm not concerned with because the user can scroll down?

4. And last (for now) Is there any way to make a standard type frame using Flash 5? Just so that I might keep things seperated on my page.

Thank you

Brian.

Looping
I have an animation consisting of a few seperate movie clips.
I need it to loop 3 or 4 times and I want to do it using actionscript. Does anybody know how?

Looping
I'm trying to get some understanding here.

amount = 10;
while (amount>0) {
duplicateMovieClip("mc", "mc"+counter, amount);
amount = amount-1;
}
stop();

Why would you need to take away 1 (or whatever) from amount??
If I don't have that command, flash crashes.

Please, help me.

Thanks

Looping A MC
I have a Movie and I want it to play to frame 18 then loop back to frame 16, eight (8) times

Is this possible If you could give me some insight I feel very dumb right now, (it seem that it would be really easy to do but I can't do it?)

Looping
How do I prevent my flash from looping?

Also I tried making my flash automatically jump to my url but it does not work. I right clicked in my last frame and chose action - go to URL - am I missing something?

Looping Through Different MCs?
Hi everyone. I'm trying to make a movie clip that acts the following way, and I'm pretty stuck:

I'd like the movie clip, call it BigMovie, to play over and over again. Each time it plays, I'd like BigMovie to take another MC, call it MiniMovie_1, from the Library and play an instance of that. However, once BigMovie finishes and loops back to its beginning, I want it to grab the next MC, called MiniMovie_2, and play that instead of MiniMovie_1.

I have around a dozen MiniMovies, all labeled 1 thru 12, and I'd like to have them all play in order each time BigMovie loops around.

I've been trying to use attachMovie but I don't think I'm using it correctly because none of the movies are getting grabbed and played. Any advice? Thanks in advance.

Looping
how to make a loop from 1 to 30 then back to 1, loop and loop

Keeps Looping
Hello all
Alright, I got this button..... hehe, and I make sure that "Loop" is not checked...... but when I view it in my browser, it still loops..... while there... I go to "Control" on top, and notice that Loop is checked... Is it a default in my Flash Player? If so... how do I fix it? And if not, lol, how do I fix THAT???

Any help would be great

Sad

Looping
Hi,
Whats the script to loop a movie 3 times?

Looping
I just made a movie in flash. It's very complicated with lots of layers. I wanted to know how to make a button so users can click to replay the whole movie if they wanted to...That's it.

Looping For A Min?
Hi people...

I have a movie which is 600 frames long and takes 20 seconds.

I need this part to run for 1 min. I dont want to stretch the time line.

When the min is up I want it to go to the next scene.

Is there some sort of action script to say loop for (x) amount of secs then move on?

Cheers Ears

mullz

Looping By AS
how can i do a loop by ActionScript? I used this tutorial. I wanted my sound to appear at the beginning without pressing key button- i made it by using action mySound.play(); in the first frame, but i don't ktow how to loop it now, i don't want it to be played only once, cause it's very short!!!

pls help!

Looping?
I know this is kinda basic but how do i loop a tween in 1 layer

Looping An Mp3 In AC
I am using this code to automatically load an mp3. So how do I tell it to loop the sound several times?

mySound = new Sound();
mySound.loadSound("deep piano.mp3",true);

Looping
Okay...I'm an idiot....I want to loop the url of our company at the bottom of a Flash presentation (done with Flash 4). For the life of me I can't remember how I did this.

I want the url to continue scrolling throughout the entire presentation?

Thanks in advance,

Looping..
how do i loop a sound??

Looping
I need my movie clip to loop only three times. How can I do it?
I'm not so close to work with vars in actionscript, so, I would appreciate any help. Tanx!

Looping 4x
hi all

i just want an mc so it plays 4x then goes to a different frame?

so for example:
i have an mc on frame one and another on frame two in the main timeline.
in frame one i have a frog that croaks, this is a 30fr animation. so what i want is the frog to croak 4 times then i want to jump to an mc in frame 2 of the main timeline. i have looked for a simple looping tut but cant find any.

Looping
I dont know if this is possible but i heard something about something called sprites, they say they are objects that loop and loop...

how can i do them?

Help With Looping
I want to play all the songs in an array.
how do i get this to loop through each time song ends. the onsoundcomplete function increments my array but how do i get it to start playing again until its gone through the whole array?

//creates my song array
songs = new Array();
songs[0]="none.mp3";
songs[1]="home.mp3";
songs[2]="celebration.mp3";
songs[3]="roots.mp3";
//my variable to increment
i=1
//creates and loads my streaming mp3
mysound = new Sound();
mysound.loadSound( songs[i], true);

//scales my progress bar
progressBar.onEnterFrame=function(){
total=mysound.duration
soFar=mysound.position
loaded=soFar/total*100
progressBar._xscale=(loaded);
}

//increment the song number by 1
mysound.onSoundComplete = function() {
i++
}

Looping
What's the best way to loop your .swf film?

-Xion-

Looping
hi people
I have a movie clip with four frames, and have applied
onClipEvent (mouseDown) {
nextFrame();
}
to the clip, but I'm wondering how to make the movie loop, so that instead of it ending once it reaches frame 4, the next click will take you back to frame 1.
As you can tell - I'm very new with falsh and action script, and would really appreciate any help - as simple as possible!

thanks for reading

Looping
Hi, no preamble about this being a stupid question, that goes without saying. But I am extremely new at flash animation, and need some serious help. If this subject has already been covered in the forums, a URL link would provide help as well. Anyway, here goes:

I have a flash movie which is very simple. Since I still dont know a thing about movie clips, scenes, etc., it's just a bunch of separate layers on one timeline.

The basic run of the file is : the logo for the company fades in on the left, this should happen once. The address for the company fades in next to it, this should happen once. Then a box appears next to it, a "picture frame" of sorts, this should happen once.

Now, here is what I need help with. a series of 4 pictures appears in sequence in the "picture frame". THIS ACTION of the four pictures fading into and out of each other, this is what I wish to loop. The other stuff I dont want to loop.

I tried inserting an action layer, and doing a stop action, but that stops the whole movie and doesnt allow for the part of the movie that I want to loop, to loop.

What can I do? Please, I IMPLORE you, keep in mind I am an idiot when it comes to Flash, so an answer of "convert the pictures to a movie clip. Period. End of Discussion" will have me scratching my head. I want to get better at this program, but I'm trying to start from the basics. Sorry if this was a lousy description of the problem.

Thanks for any help provided!!

Looping
How do you set a loop action, where after 3 loops your movie stops?

Can you show me how to set this action?

Thank You

Looping Through An Mc
How would i loop through an mc and for every frame pull out a button and place it in the film??
I know you have to you use for (i = 1; i<11; ++i) { but I dont know what goes inbetween to go through each frame any help is greatly appreciated.

Not LOOPING ***PLEASE HELP*****
Hey guys....i have created a banner in flash, i have hooked it up to my database...now the only problem is that i would like my movie to never stop displaying my information in the database. But as soon as it gets to the last item it displays nothing .....i did make a loop but once there is nothing left to display in the database it only displays the picture.....now how can i make it so that it never stops displaying my information?

Thanks guys....appreciate it!

Karyn

Not LOOPING ***please Help***
Hey guys....i have created a banner in flash, i have hooked it up to my database...now the only problem is that i would like my movie to never stop displaying my information in the database. But as soon as it gets to the last item it displays nothing .....i did make a loop but once there is nothing left to display in the database it only displays the picture.....now how can i make it so that it never stops displaying my information?

Thanks guys....appreciate it!

Karyn

No Looping
ok..maybe i have missed it somewhere, but i have tried everywhere to get my swf to NOT loop. i have found numerous tutorials on how to make transitions. however, they all really make my head hurt. i guess primarily because they are never really explained in a way that i understand.

i am trying to load a swf into my main site, and i want it to only play once. i dont want it to loop. i figured that would be the easiest way to do a transition. it would simply start out, cover up what was there, than finish showing the new info.

i found an option that gave me the choice to loop, how many times, etc in the properties, however, it didnt work...

help me please, as i dont have much hair left to pull out

thanx

Looping A Mc While Key Down
i have a movie clip that i want to loop when the up key is held down and stop when its not help down, it plays through once and then pauses untill u let go and press the up key again, how can i make it keep going while the up key is down??? in the first frame of the movie clip i have :
if (!key.isDown(Key.UP)){
gotoAndStop(1);
}
and in the last i have:
gotoAndPlay(1);

in the main timeline on the movie clip i have:
onClipEvent (keyDown) {
if (key.isDown(Key.UP)) {
_root.road.playing = true;
_root.road = gotoAndPlay(2);
}else{ _root.road.playing = false;}
}
any help would be great

Looping
can anyone tell me what im doing wrong??

currentThumb.onRollOver = currentThumb.onDragOver = function(){
this._alpha = 40;

}
currentThumb.onRollOut = currentThumb.onDragOut = function(){
while (alpha < 100){
a+=1;
this._alpha = a;
}
}

what im trying to do:
onrollOver alpha changes to 30%. onrollOut alpha changes from 30% to 100% in steps (ie fading in effect). please help

Looping
I know--dumb question, but I can't figure out how to get my swish file to loop. I'm sure there are 5,000 people who can answer this question, so thanks ahead of time.

Hannah

Looping
how do i get the whole flash movie to only play once because everytime i play it, it goes on a loop. thnx

Looping
how do i get the whole flash movie to only play once because everytime i play it, it goes on a loop. thnx

Looping MP3
How can I make repeting sound without stoping in flash?
thanks////

XML Looping Help
Hey all,

I'm on to the next problem! I'm wondering if anyone could give some idea/tutorial/link or something that would steer me in the right direction! I have a node fading in and out, but when it fades out I want it to loop to the next picture/output to display.

eg.
promo1 displays, after it fades out I want promos2 to fade in and out! And so on, etc.

For my dynamic output I have:
output = xmlDoc_xml.firstChild.childNodes[0].childNodes[0].firstChild;


Which needs to be something like:
output = xmlDoc_xml.firstChild.childNodes[n].childNodes[0].firstChild;

So, that I may loop through childNodes[n] and retrieve the firstChild, as long as a firstChild exists.


Code:
load_xml = new XML();
load_xml.ignoreWhite = true;
load_xml.onLoad = function(success) {
if (success) {
process(load_xml);
} else {
trace("Something is wrong, we're not opening!");
}
};
//Load up the XML file into Flash
load_xml.load('images.xml');
//---Function that will be called when xml loads succesfully
//xmlDoc_xml is now a reference to the XML object where our information is stored
item_arr = new Array("img", "startdate", "enddate", "url");
function process(xmlDoc_xml) {
for (var n = 0; n<xmlDoc_xml.firstChild.childNodes.length; n++) {
if (xmlDoc_xml.firstChild.childNodes[n].nodeName == "promo") {
for (var i = 0; i<xmlDoc_xml.firstChild.childNodes[n].childNodes.length; i++) {
if (xmlDoc_xml.firstChild.childNodes[n].childNodes[i].nodeName == item_arr[i]) {
trace(xmlDoc_xml.firstChild.childNodes[n].childNodes[i].firstChild.nodeValue);
}
}
trace("Is it working "+xmlDoc_xml.firstChild.childNodes[0].childNodes[0].firstChild);
output = xmlDoc_xml.firstChild.childNodes[0].childNodes[0].firstChild;
}
//trace("Come to poppa " +xmlDoc_xml.firstChild.childNodes[n].childNodes[0].childNodes.length);
}
}
MovieClip.prototype.fade = function(endAlpha, speed) {
trace("called11");
if (this._alpha>endAlpha) {
speed *= -1;
}
this.onEnterFrame = function() {
if (Math.abs(endAlpha-this._alpha)>Math.abs(speed)) {
this._alpha += speed;
} else {
this.onEnterFrame = undefined;
myInterval = setInterval(beginFadeOut, time());
this._alpha = endAlpha;
}
};
};
MovieClip.prototype.fadeIn = function(begalpha, speed) {
trace("called22");
this._alpha = 0;
if (this._alpha<begalpha) {
speed *= -1;
}
this.onEnterFrame = function() {
if (Math.abs(begalpha-this._alpha)>Math.abs(speed)) {
this._alpha -= speed;
} else {
this._alpha = begalpha;
}
};
};
mc.fade(0, 7);
function beginFadeOut() {
clearInterval(myInterval);
mc.fadeIn(100, 7);
}
function time() {
sec = ((30/5)*1000);
trace("seconds called");
return sec;
}
I am attaching a zip file, that is similar/shorter to what I am doing.

When it fades out I need another to fade in!

Appreciation in advance!

cbs

Looping An .swf In Another .swf?
I know there is probably a very simple answer to this question, but I can't seem to find it by searching the site.

I have created a menu for my website that has multiple images that fade in and out beneath where the menu buttons lie. The menu lies at the bottom of the page leaving the upper section of the site to view the different menu items. At the same I want the user to be able to click on a menu button and have a new movie load while keeping the images underneath the menu to continue to fade in and out.

Essentially, I want the menu .swf to loop throughout the entire website, while the user is still able to load other movies by clicking the menu buttons. What is the best way to make this happen? Should I be using movie files instead? If someone can point me towards a tutorial that would be fine as well.

Thanks in advance for any help.
nico

Looping
ok what I have is a text effect that goes with a sound and after the whole clip is finished it fades away real dark where you can hardly see it. What it is, its a thunder sound and the text flashes like lightning with the sound. I want it after it is done to go to different points in the clip to replay. If any one can help thanks.

Looping
My movie automatically loops. How do I set it so it won't?

Looping
hi. i need help with looping. i am working on a banner ad and i want to make it loop 3 times. i know this is fairly simple. please help. i know nothing about actionscripting so please be specific with your instructions.

thanks,

Why Are My Swf's Looping?
I have been taking mpg videos and converting them to flash, but when I uncheck loop in publish settings it still loops. Does anyone know why?

Thanks in advance,
Adam

Copyright © 2005-08 www.BigResource.com, All rights reserved