Loop movie on a single frame with AS2?

Hi, i'm animating a web banner, which is supposed to loop infinite times. The thing is, i learnt to use tweening prototype for my animation, so the entire code is written on a single frame.
Is there a way to loop the entire movie at the end?

Thanks! but I still need help.
Ok, let's say this is the code:
function iniciar (){
//INTRO//
_root.fondo._x=2632;
_root.fondo._y=223;
_root.fondo.tween("_x",-38,25,"easeOutCubic",0.5)
_root.bloqueintro._x=535
_root.bloqueintro._y=226
_root.bloqueintro.tween("_x",-600,1.5,"easeOutCubic",6.5)
_root.opt._x=468
_root.opt._y=-50
_root.opt.tween("_y",146,1.5,"easeOutCubic",1.5)
_root.opt.tween("_x",-270,1.5,"easeOutCubic",6.5)
_root.esp._x=530
_root.esp._y=198
_root.esp._yscale=0
_root.esp.tween("_yscale",100,1,"easeOutBounce",2.5)
_root.esp.tween("_x",-459,1.5,"easeOutCubic",6.5)
_root.de._x=621
_root.de._y=246
_root.de._yscale=0
_root.de.tween("_yscale",100,1,"easeOutBounce",2.5)
_root.de.tween("_x",-368,1.5,"easeOutCubic",6.5)
_root.trab._x=664
_root.trab._y=292
_root.trab._yscale=0
_root.trab.tween("_yscale",100,1,"easeOutBounce",2.5)
_root.trab.tween("_x",-325,1.5,"easeOutCubic",6.5)
//CONECTOR//
_root.conector._x=1659;
_root.conector._y = 244;
_root.conector.tween("_x",-800,1.5,"easeOutCubic",6.5);
_root.conector2._x=-800;
_root.conector2._y = 244;
_root.conector2.tween("_x",1924,1.5,"easeOutCubic",13);
_root.conector3._x=1924;
_root.conector3._y = 244;
_root.conector3.tween("_x",-800,1.5,"easeOutCubic",21);
_root.conector4._x=-800;
_root.conector4._y = 244;
_root.conector4.tween("_x",1924,1.5,"easeOutCubic",27);
iniciar();
So the whole animation is now into a function body. Still, how can i loop that function, if i only have one frame?

Similar Messages

  • Single Frame with Back and Next Jbutton support for Swing

    Hi All,
    I need a help regarding to th JFrame.
    I have to design a tool with Back and next button with a single frame. With Next button action i should move to a new Frame content and with Back button i should back to the previous one.
    How should i proceed?
    Thanks a lot in advance.

    1) That's a Swing question. There a {forum:id=950} forum.
    2) This is a very common need. There is no built-in widget in the JDK, and a lot of custom approaches, including in libraries. Google for "Java Swing wizard"
    3) If you roll your own, the simplest way, as far as the GUI layer goes, is to stuff your panels in a CardLayout, and have your buttons switch the current "card". Very simple: http://download.oracle.com/javase/tutorial/uiswing/layout/card.html
    4) The trick may be in keeping the "business logic" in sync (if for example panel 2 depends on processing info from panel 1). If you're new to java and Swing, make sure you understand objects and references

  • Videos now single frame with audio only

    My 30g video Ipod's videos now show up under music. When I try to watch them they are just a single frame and I get the audio. The videos are fine when viewed with Itunes. How do I get my videos back to normal videos???

    correction: it works fine on my ipod when I have the "TV out" setting set to "off", but I'm only getting audio on my TV when I have the setting "TV out" set to "on." It has worked fine in the past.

  • Put loop of variables into single array with formatting (PHP)

    I have the following loop;
    <?php
    $i=1;
    while($i<=$num_rows)
    $tempquantity = "extra".$i."quantity";
    $tempcomments = "extra".$i."comments";
    $tempname = "extra".$i."name";
    $tempprice = "extra".$i."price";
    $$tempquantity = $_POST['extra' . $i . 'quantity'];
    $$tempcomments = $_POST['extra' . $i . 'comments'];
    $$tempname = $_POST['extra' . $i . 'name'];
    $$tempprice = $_POST['extra' . $i . 'price'];
    print "Extra name: " . $$tempname;
    print "<br />";
    print "Extra price: " . $$tempprice;
    print "<br />";
    print "Quantity required: " . $$tempquantity;
    print "<br />";
    print "Client comments: " . $$tempcomments;
    print "<br /><br />";
      $i++;
    ?>
    Which, since there are 3 rows, outputs the following;
    Extra name: dfvgfddf
    Extra price: 4
    Quantity required: 67
    Client comments: gtfh
    Extra name: wewew
    Extra price: 34
    Quantity required: 45
    Client comments: thtrt
    Extra name: ewewe
    Extra price: 43
    Quantity required: 12
    Client comments: gdfgg
    What I want to be able to do is show the output above in a PHP email body variable, which I think this means that the loop of varaibles needs to be in one single array variable since coding in an email body variable is not allowed. How do I put a loop of variables like this into a single variable, and how to I keep the <br /> tags and names in front of the varaibles ('Extra name:' etc), so it looks as it should in the PHP email body?
    Thanks in advance

    Hi Murray,
    This is the code that sends the email;
    $to = "$renteremail";
    $subject = "Request confirmation";
    $headers = "Content-type: text/html; charset=iso-8859-1\r\n";
    $headers .= "From: website";
    $body = "
    Your reference number is <strong>$rrnumber</strong>.
    <br />
    <br />
    Below is a summary of your request details;
    <br /><br /><strong>Accommodation name</strong>: $accomm_name
    <br /><strong>Accommodation type</strong>: $accomm_type
    <br /><strong>Board-type</strong>: $ptbt
    <br /><strong>Max. capacity</strong>: $ptc
    <br /><strong>Check-in date</strong>: $passdate
    <br /><strong>Number of nights</strong>: $passnights
    <br /><br /><strong>Renter's name</strong>: $rentername
    if (mail($to, $subject, $body, $headers)) {$messagesent = 'yes';}
    So the three loop items with their four respective variables should go at the end of the list of variables above after 'Renters name'.
    I also need to put the variables generated by the loop into a single database feild, so if possible all should go into one variable.
    Thanks

  • Making a video with single frames

    Hi,
    I'd like to make a video with single frames.
    One of my computergames is able to take 25 frames per second (or 30, 40 etc.). The game saves the frames in a folder. For one minute there are over 1000 frames.
    Now I need to know, how I can tell After Effects that every 25 frames are one seconds.
    I just want to make a movie of this game. This will be the easiest way if After Effects can handle with these single frames.
    Is it possible? I will be very happy if some can explain me the way to realise my idea.
    Sincerely,
    RazooN

    Footage Interpretation and preferences for image import.
    Mylenium

  • Export vertical oriented movie single frame - not working

    Using:
    - iMac 20" 2 GHz 4 GB RAM
    - OSX10.5.8
    - iPhoto 8 version 7.1.5 (378)
    - QuickTime Player Pro Version 7.6.9 (1680.8)
    - Preview 4.2 (469.5)
    Here is what I do to export a frame from a move in iPhoto to get a single frame:
    Open and play a video in iPhoto using Quicktime Pro, stoping and selecting a particular frame, pressing Command C, open Preview, select New From Clipboard.
    or
    Open and play a video in iPhoto using Quicktime Pro, stoping and selecting a particular frame, Selecting File Export Move to Picture.
    Both the above work for horizontal oriented movies.
    However, for vertically oriented movies neigther works.
    Movies are taken with:
    - iPhone 3GS
    - Exaxti CG6
    - Insignia NS-DSC7B09
    - Fujifilm Finepix XP20.
    Any solutions/suggestions (except upgrading to the newest iPhoto, Lion, etc. too slow on a 2 GHz iMac)
    Thanks.

    I mentioned in the second part of my initial post that I did also try the export "Movie to Picture" with the same results.
    Strange! That work flow still works on my PPC platform. (Unfortunately, I don't have an Intel platform available with OS 10.5.8 installed for testing.)
    Am I able to have "MPEG Streamclip" open as the default when a movie is double clicked on in iPhoto instead of Quicktime opening the movie?
    Not sure. I don't use iPhoto (prefer Aperture) normally and definitely would not use either for video clip management. Try resetting the double-click external edit switch or reset the "Open With" atribute for the class of movies being edited.
    This actually for a novice user who I suggested take short video clips, pick a frame then copy/paste it into Preview instead of taking stills. Unfortunatly my advice fails when the iPhone photos are taken vertically.
    The problem may be based on a change on the application being use. Like anamorphic videos with contain both pixel dimensions and PAR values, the reoriented videos may contain both true orientation and display orientation information. How the files work may depend on the application being used at the time. I.e., some third-party video/still display apps rely on the original orientation while others use the "rotated" info embedded in the file. And, unfortunately, it appears that Preview does not know what to do, so it does nothing. My guess is this is a bug that needs to be reported in feedback to Apple again and again until until they decide to address and correct the Preview application.

  • Variable speed with single frame

    Hi, I'm animating a PNG file in a FC7 project. The image goes from one side of the screen to the other, and I would like to use the ease controls to smooth the movement, but the program does not allow me to do it in the control + J window. I can do it with a video clip, but not with this single frame animation. Is there a way a can do that?
    Thanks very much for any help.

    There is no speed in a still image.  Instead, use the Basic Motion control to keyframe the movement.  With the clip selected (highlighted in the Timeline and the Canvas window set to Image + Wireframe, right-click on the ending keyframe and choose Ease-In/Ease-Out.  Ifr needed, do the same to the beginning keyframe.  You can adjust the movement's behavior by manipulating the points along the path.  See this for more detail: https://www.google.com/search?client=opera&q=ease-in+ease-out+fcp&sourceid=opera &ie=utf-8&oe=utf-8&channel=suggest&gws_rd=ssl
    Or, create the movement in Motion, which is actually better suited for such tasks.
    -DH

  • Same button on single frame to display/hide movie clip?

    Hi, can a button on a single frame be coded to both display a movie clip on its first click and, after a second click, hide the movie clip?  Thanks

    Yes, assuming you make the movieclip invisible to start with, in the event handler function just use...
    mc_name.visible = !mc_name.visible;

  • Exporting non-looping (single frame) swf file

    I am using a third-party application to create a "page-flipping" version of a book. For quality reasons, I want to export the pages of the document as swf files. When I import the resulting swf files to the application, they flicker at the default frame rate of 24 fps. When I open the swf file in Flash Player, if I hit the "play" button, it flickers as well. If I use the "next frame" and "previous frame" commands, it's apparent that the file has two frames, one with the page content, the other with a blank (white) appearance.
    Is there a way to export the pages as *SINGLE* frame swf files?
    In desperation I've tried to export the pages as .fla files and generate the swf files from Flash, but the layouts are significantly corrupted when I open the fla files in Flash.
    FYI, I'm using InDesign CS6.

    Amy, you tease...go on, what's planned for the next release then?
    Nah, I know you won't tell.
    Michael/Sebastian,
    There are a number of workarounds that are more or less usable. You can place a print button on the page where the chart is located. A user can print to printer or to pdf if she has that functionality. The only issue there is that the whole dashboard screen prints. Depending how just how much you have on a screen that you don't want printed, you may have to reorganise the charts on to their own tabs, for example, which is what I do. I use the whole tab for the chart itself, probably leave a logo on top and bottom and then the whole page prints with my logos and the chart.
    Less elegant but always good value for money: flash image capture. I don't like that and it requires a utility clients side.
    Hope this helps.
    Chris
    Go on Amy...

  • How do I continually loop frames with a 20 second pause in each frame from the same scene without going to the next scene?

    How do I continually loop frames with a 20 second pause in each frame from the same scene without going to the next scene? There are buttons for the other scenes in these frames. The below works well until I am at the last frame in scene one, then it goes to the next scene and plays. How can I make scene one a continually loop.
    stop();
    var timer:Timer = new Timer(20000,0);//<--
    timer.addEventListener(TimerEvent.TIMER, timerHandler);
    timer.start();
    function timerHandler(event:TimerEvent):void {
        this.nextFrame();
        //or if you want to jump e.g 5 frames
        this.gotoAndStop(this.currentFrame+5);
    Thank you for any help.

    For this code to work, you need to empty the first frame and place all the photos a frame ahead. Then, place this code on the first frame. DONE!
    If you need more help, I'll try to answer it the fastest I can.
    Oh, and I could actualy make your photos fade out and fade in as they rotate from frame to frame, it would be awesome. Just tell me if you want me to do it. Good luck
    import flash.display.Scene;
    import flash.events.TimerEvent;
    stop();
    var timer:Timer = new Timer(2000,0);
    timer.addEventListener(TimerEvent.TIMER, timerHandler);
    timer.start();
    function timerHandler(event:TimerEvent):void {
    if (this.currentScene.name == "Scene 1") {
      if (this.currentFrame != this.currentScene.numFrames) {
       this.nextFrame();
      } else {
       this.gotoAndStop(2);
    nextFrame();

  • I have an Iphone 4. I have a video I took with the built in camera. Is there a way I can edit it to isolate a part of the video that I can print a single frame?

    I am looking fo someone who can tell me how to edit a video taken with my Iphone 4 so i can copy/print a single frame from that video rather than the entire video. Thanks in advance

    What you can do is play back the video in the Photos app, then pause it. Tap the screen to make the controls go away. Then you can take a screenshot: Quickly press then release the home and power buttons at the same time.

  • Single frame disappears when compressing with de-interlacing turned on

    I'm having trouble with a single frame - showing a lightning flash - disappearing after compression. I've found I need to turn on de-interlacing in the Inspector to avoid bad problems with the interlacing showing on edges when panning sidewards, but since I've turned de-interlacing on, this one frame disappears.
    I've tried making it a freeze-frame, held for several seconds. I've tried slowly zooming in on the same frame for several seconds. I've tried putting in compression markers all over it. In all cases, the lightning flash is there in Final Cut Pro, but disappears on compression.
    Any suggestions?

    I dont have the answer, but rather a similair problem. If you don't mind I will add it to your blog here so hopefully someone can answer both our problems with one solution.
    I have been compressing the same FCP sequence several times making only small changes to my sequence each time(adding and deleting certain photos per clients request). Now all of a sudden, one on the photos simply does not show up after being compressed. It renders just fine in FCP and exports to Compressor just fine, but after I compress it, when I play it, the two seconds of the sequence that is supposed to show a certain picture, it is just black.

  • Single Frame jumping towards end of output .mov

    I have two sequences output from motion. One 10 seconds and the other 17. At the end of each clip there is a single frame that "jumps" up about 1/8 of the screen.
    Any ideas as to why?

    Are these the same clips you're writing about in Color? If so, it's most likely a media issue since it is unlikely that rendered or exported footage will exhibit a physical artifact from multiple applications unless the media itself is at fault. Is it the last frame or just a frame toward the end? What have you tried to isolate the issue? If you make the sequence longer does thhe jump still occur at the last frame?
    There are only three possible answers: the media is damaged, you've somehow programmed a move, or an inexplicable glitch. The last is highly unlikely and it will move each time you render. If the jumps happen at exactly the same frame each time, it's most likely the source media.
    Would also help tremendously to know what codec you're using and what your source codec is.
    bogiesan

  • How do I export a file to mov? I always get just a single frame.

    I don't work in flash. So excuse my ignorance. I have a flash file that I want to import to After Effects. Everytime I try exporting it only exports a single frame and everytime I publish it I only get an html file. I'm getting fustrated! This should be straight forward!
    Here's the file...
    http://www.mediafire.com/download/k6r6cwdm6tsl6o9/TrixieCS6dd.fla

    is all your animation on the main timeline?  if not, move the animation to the main timeline.
    do you have any movieclips on the main timeline?  (if yes, change them to graphic symbols and retest.)

  • NI USB CAN 8473 write single frame and log all frame of network with read notification on the same port

    Hello,
    I am trying to code an application which:
    - Write sometime (button click) a frame on a CAN network
    - Log all frame of CAN NETWORK
    My hardware is NI USB 8473 (1 port).
    1/ After reading NI help about CAN APIs, I think it is not possible to do "log all CAN frame" with Channel API because I need to install a asynchronous callback to read all message, and this functionality is only present in frame API.
    Anyone can confirm?
    2/ No problem let's use Frame API
    I have tried "CAN Receive with Notification" example delivered with NI-CAN driver, configured on virtual CAN256.
    I start other sample program to generate some frame on virtual CAN257, no problem, everything is working.
    So, i have tried to modify "CAN Receive with Notification" to add write function. I have mixed this source with "Transmit Receive same Port" sample (which works fine alone on CAN256).
    My program is running, but nothing appens when I click on WRITE button.
    I suppose some attribute are not confired, but which one.
    Anyone can help? (source of my modified sample is joined to this post).
    Thanx.
    PS: please note im a newbie with CAN
    Attachments:
    CAN Receive with Notification.zip ‏10 KB

    Hi,
    Thank you for posting your question on National Instruments' Forums.
    I'm a little puzzled by your question.
    If I understood well, you just want to receive every frame reaching the port and sometime write something through the port. Am I correct ?
    You are right when you state that the NI USB 8473 can only work with frame API. However, if the operation you want to make is the one I discribed above, I can't see where you encounter a difficulty.
    Indeed, for such a case, the example you mentionned in your post is perfectly suited. "Transmit Receive same Port" allows you to receive the frames reaching the port and write we needed too.
    I think this example shoudl do the trick.
    Or have you a more specific application in mind ?
    I hope this information will help you.
    Best regards,
    Guillaume H.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> NIDays 2011, le mardi 8 février au CNIT de Paris La Défense

Maybe you are looking for

  • How do I get video clips out of menu button?

    iMovie 9.0.8  iDVD 7.1.2 I have a 90 minute video with 11 chapters.  I found in "edit" menus something called populate drop zones" and clicked it for main page and two sub menu pages.  When trying to burn,  I got the error message "- There seems to b

  • PDF forms in Preview

    Someone emailed me a pdf document to fill in, which I did in Preview.  But when I emailed it back, the recipient got back the blank form.  Am I missing a step somewhere?  When I go back and open the PDF, I still see my edits and additions.

  • In Pages for iPad, I couldn't wrap text(Chinese characters) around the image

    Hi, a question about Pages for iPad. I wrote some words with Chinese characters and then inserted a image from the Camera Roll. The problem is that I couldn't wrap words around the photo. I tried again wrote some words in English and it's ok for wrap

  • Unknown Error (-54) when syncing

    My phone was syncing fine yesterday, nothing has changed. I have never encountered this error before.

  • BADI/Exit help for FI-CFM

    Hello Everyone, How r u guys? I need some help in BADI/User Exit. I am working on FI - CFM. There is a transaction with TCode- TS01 (Create Securities) / TS04 (settle securities). I need a BADI/Exit which gets activated when the user clicks on the sa