ActionScript 2.0 :: Loop Go Back And Start At 0 Again?
May 24, 2010
How do you make a loop go back and start at 0 again?
var mySWF:Array;
var currentSWF:Number = 0;
var myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.load("myXML.xml");
[Code] .....
View 1 Replies
Similar Posts:
Jan 21, 2010
I have used the flash accessibility tab to add index numbers to 19 elements on my page.However, once I reach tab number 19 I cant get it to loop back to tab index number 1.
View 4 Replies
Oct 13, 2010
I am putting together a small slideshow of pictures and it's only about 350 frames. I haven't worked with Flash since version 4.0, so I'm still trying to figure out Adobe's setup. 4.0's setup was so easy when it came to replaying a video once it hit the last keyframe, but I'm so lost in this ActionScript stuff.
How do I get the video to loop back and start playing again automatically?
View 1 Replies
Jan 30, 2012
I have a grid of letters. I want to create the else aspect, where if you don't drop the letter on any square, it'll return to its original position. Issue is I don't declare it's original position, i simply use placement on stage.
View 1 Replies
Dec 2, 2009
I have an instance of the flvPlayBack component on my stage called myVideo a list of links down the lhs is used to pop in the required video.If a user gets say 1/3 of the way into a video and the presses a different link for a different video then: the new video pops up but the seek bar is still some way into the new video there is a pause of around 1 sec the seek bar goes back to the start.I want to speed up the return of the seek bar to the start of the new video.
Here's some code:
Code:
function clickHandler(event:MouseEvent):void {
this.myVideo.alpha=1;
if (linkType !="http"){
[code]....
This might be wrong but do I need to somehow remove the reference to the "old" video before I set the source to the new one?If that's junk - and it probably is ...How can I speed the return of the seek bar to the start of the new video?
View 2 Replies
Sep 28, 2008
how can i drag parts of a pazzle and drop them in the rihgt position? if the posision is wrong i want (the piece) to return back to its start posission.
View 1 Replies
Jun 14, 2009
iam using FLVPlay back control in my project, i need to mute it while running first time automatically. it may thr script or any other option? i got struct up. mute buttton has to be ther, but initially it has to be muter, and video has to play.
View 1 Replies
Oct 5, 2005
I am making a website and am having a very hard time with the actionscripting and external loading involved. I have managed to auto load the background externally but the problem is that once the bgload movie(which is loading externally in main.swf) is loaded, it goes back to start. make the "bgload" movie stop right there after its played once....
View 10 Replies
Nov 24, 2009
I have a toggle to mute and unmute sound in this movie. If sound is on and refresh with SharedObject sound plays again. Also I can toggle between the sound before refresh. The issue: when selecting mute then refresh, the movie plays back muted but the ability to un-mute is no longer available (at least not before another refresh).
Problem: toggle to mute then refresh of browser. Mute is fine but no ability to toggle back to sound.
Code:
var my_snd_obj:Sound = new Sound();
my_snd_obj.start(0,1);
my_snd_obj.attachSound("my_audio");
[Code]....
View 1 Replies
May 18, 2005
I've used kirupa's 'Photo Gallery Using XML and Flash' tutorial & modified to make my gallery, you can view it here: ZedMedia.org by clicking on the photos section in the main page. what i want to do is, instead of reaching the end of all my photos and it stopping, i want it to go back to the beginning image & start all over again. i want the opposite to appen at the start. when the previous_btn is pressed i want it to go to the end of the gallery.
View 3 Replies
Feb 21, 2010
I'm rewinding an FLVPlayer w/AS, but the little triangle on the seekbar doesn't move back to the start. The code I'm using is: videoComponent.stop(); videoComponent.seek(0); videoComponent.playheadTime = 0;
View 1 Replies
Feb 21, 2009
I have a for loop, and I want it to start over if a certain thing happens. Completely start over, not continue(). Is there any command I can use to do this?
View 2 Replies
Mar 16, 2009
I've got a game going where portals are randomly placed across the map every X seconds.However, I can't figure out how to stop the portals from spawning on top of each other. I know how to easily do the collision, and check if they're too close to each other.Pretty much what I do is create the portal object, then randomly assign it X and Y values. Then, I do a for loop that loops through all the portals in the portals array, check THEIR X and Y value, checks to see if they're too close...then what? I can't just go "okay, it's too close" and randomly assign it new X and Y values, otherwise it could be on top of ANOTHER portal.What I'm looking for is something that will check the X and Y values of all the portals, then if it is on top of another portal, it will assign new X/Y values. Then, if these are on top, it will do it again. And again, until it gets the job done!
View 2 Replies
Feb 6, 2011
I'm pulling an xml and using a for loop to create a thumb list. This list is going to be quite long but I only 25 thumbs to be loaded at a time, so that the next 25 is only loaded when a user hits a button. I know how to set up a for loop in a function, but I can't quite figure out how to break up a loop where it would stop and start. I was thinking I would call the function each time a button is pressed and the loop would pick up where it left off with the next 25.
I thought maybe I could substite other variables into the for(); but everything I've tried breaks it. I tried pulling the var i:int = 0; out of the for so the function could set the i, but I guess I'm not clear on exactly how the for loop works.
What I'm doing:
function loadarticleHeadlines():void
{
for (var i:int = 0; i < egarticleXml.articlelist.articleitem.length(); i++)
{
[Code].....
View 1 Replies
Jun 8, 2008
I am using the TweenLite engine and i was wondering how to loop/ start over the animation??
View 3 Replies
Sep 18, 2010
We are developing a video chatting application on flex, it works well on Desktop systems and while running on a laptop the sound is loop backed and becomming a large noise, Please help me to fix the problem.
View 1 Replies
Jun 26, 2007
I have a for loop that attaches a new mc to the stage fills it with info from a database. I should be left with three mc's but not the case. only the last one shows up on the stage. I went thru it with the debugger and it is filling all those movieClips with data but, overwrites them when it goes back to the top of the for loop.
[Code]....
View 4 Replies
Mar 4, 2003
can someone open up this .fla and tell my why they think it isnt working.. theres the wierd little chain thing doesnt start from the right spot and i dunno how to fix that
View 3 Replies
Jan 13, 2010
I'm trying to make my movie loop, but when I enter the following code in the last movie clip (layer) of my swf movie, it only loops back to the first frame of that movie clip (layer).
gotoAnd Play (1);
When I do the code above it doesn't loop back to the beginning of my movie.
What is the proper code for making it loop to the very beginning?
I tried to do the following code, but I got an error message. I'm not sure of the proper syntax for the code.
tli_logo.gotoAndPlay(1);
tli_logo is the name of the very first movie clip (layer) of the swf movie.
I believe that making the last frame of the last movie clip (layer) loop back to the first frame of the first movie clip (layer) will be what I am trying to achieve. Is this the proper way to go about this, or there a better and more proper way to do this. If there is, then please send me the proper syntax AS cs3 code to do it.
View 9 Replies
Oct 8, 2005
i have this code in a for loop:
[Code]...
Why do i get the same value back for every button i click?
View 2 Replies
Nov 3, 2010
If I have a loop to get information back from the database in PHP, like for example:
PHP Code:
$qry = "Select * from memory";
$result = mysql_query($qry);
while($resultset = mysql_fetch_array($result)){
echo $resultset['name']."<br>";
}
I know that I can send a string back to AS2 and read it but I'm not sure how to work with arrays, do I have to save everything to an array and pass the array to AS2 and then have a function in AS2 to output all the elements of the array to the dynamic text box?
View 1 Replies
Jul 16, 2009
I'm trying to get right. Essentially I want the beeping sound to loop infinitely while there are no pauses in the writing of the text, but I want it to stop once the last loop that was going when a pause in the writing started has finished, and then start up again when the pause ends.Now I could just easily set the loop to stop once a pause starts, but then there is the chance of stopping the loop mid-sample and making the pause sound abrupt, and I don't want that to happen.Now please watch the current swf:And please read my script for better understanding
View 7 Replies
Feb 19, 2012
Trying to pass a variable back to the main loop, example of the code is:
savedVar:varType = saveButton.addEventListener(MouseEvent.CLICK, saveFile);
function saveFile(evt:MouseEvent):void
{[code]...
\how would I be able to pass a variable back to the main loop from saveFile if it's nested in the addEventListener function?
View 9 Replies
Nov 28, 2005
I'm trying to animate some leaves that rotate back and forth to simulate leaves blowing in the wind. I got to animate the leaves one way, but i couldn't figure out how to make it loop (go back and forth).Here's the code: on the movie clip named "leaf" witht the following code attached to it:
onClipEvent (load) {
_root.leaf._rotation += -15
}[code].....
View 2 Replies
Apr 2, 2011
I'm trying to make a button that when clicked will make my movie clip go to the next frame, and it works fine only when it gets to the last frame in the movie clip it just stops. How can I make it loop back to the first frame with the same button. I know I can have next/previous buttons but I'm using only one button and need it to change frames on a loop.
Code:
stop();
circleBtn.addEventListener(MouseEvent.CLICK, onNext);
function onNext(evt:MouseEvent){
circle.nextFrame();
}
View 2 Replies
Apr 10, 2010
I have been trying for a while to change this code from Flickr so it would auto start and loop.
Original code
<object width="150" height="150"> <param name="flashvars" value="offsite=true&lang=en-us&page_show_url=%2Fphotos%2F49111858%40N06%2Fsho w%2F&page_show_back_url=%2Fphotos%2F49111858%40N06%2F&user_id=49111858 @N06&jump_to=&autostart=true"></param> <param name="movie" value="http://www.flickr.com/apps/slideshow/show.swf?v=71649"></param> <param name="allowFullScreen" value="true"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com
[code]....
View 2 Replies
Mar 4, 2003
open up this .fla and tell my why they think it isnt working.. theres the wierd little chain thing doesnt start from the right spot and i dunno how to fix that
View 3 Replies
Jul 31, 2007
I want to create some instances of a movieclip thats in my library. [code]This code works. Then I want to startDrag all of them, in the same loop. How to?I'vre tried "k"+i.startDrag(this) but that won't work. Any other good guesses?
View 1 Replies
May 23, 2010
I've got an interesting issue with the actionscript in my file. I've created a slide show with 27 labeled frames - they've been labeled "frame 1", "frame 2", "frame 3", etc... My issue is the first time everything works perfectly, if you hit next or previous. It goes to the correct frame. On the last frame if you click next it should take you back to "frame 1" and basically loop through all the frames again if you keep pressing next. The problem is it goes back to frame 1, and then next doesn't work on this frame. I don't understand what's going on considering the first time around - these frames work perfectly.Here's the code on frame 1:
Actionscript Code:[code]........
View 3 Replies
May 24, 2010
I've got an interesting issue with the actionscript in my file. I've created a slide show with 27 labeled frames - they've been labeled "frame 1", "frame 2", "frame 3", etc... My issue is the first time everything works perfectly, if you hit next or previous. It goes to the correct frame. On the last frame if you click next it should take you back to "frame 1" and basically loop through all the frames again if you keep pressing next. The problem is it goes back to frame 1, and then next doesn't work on this frame. I don't understand what's going on considering the first time around - these frames work perfectly.
Here's the code on frame 1:
ActionScript Code:
stop();
/*Navigation Code */
nextbtn.addEventListener(MouseEvent.MOUSE_DOWN, buttonNextHandler);
[Code].....
View 1 Replies