Moving a set number of frames

I'm ashamed I have to ask this, but I can't find the code
anywhere
Instead of
prevFrame();
which only goes back to the previous frame,
I would like to go back THREE frames.
This seems like it should be so easy, but I just can't find
the right command.
Using a frame label is no good, because I don't want to have
to tweak the code around in 50 instances, I just want a back button
that sits there throughout and goes back three frames when you
click it no matter where you are in the timeline.
Any thoughts? it's making me crazy!
Thanks!

I have no screen name,
> I'm ashamed I have to ask this, but I can't find the
code
> anywhere
>
> Instead of
> prevFrame();
> which only goes back to the previous frame,
> I would like to go back THREE frames.
Ah, no shame in that. ;) It may help you, actually, to take
a look at
something called the "MovieClip class" in the ActionScript
2.0 Language
Reference. The word "class" in this context refers to a kind
of "blueprint"
that defines all movie clip objects. In fact, all objects in
ActionScript
are defined by classes, which generally feature one or more
of three
categories: properties (characteristics of the object),
methods (things the
object can do), and events (things the object can react to).
In this case, you'll want to look up methods
(MovieClip.gotoAndStop(),
say) and properties (MovieClip._currentframe). The nice thing
is, class
entries in general contain everything you need to know about
the object in
question. It reduces the need to "hunt and peck" aimlessly
around the Help
docs.
Here, you may want to combine gotoAndStop() with
_currentframe, like
this:
// in a timeline
this.gotoAndStop(this._currentframe - 3);
... where "this" (without quotes) refers to the object or
timeline in which
the code appears. In the main timeline, "this" refers to the
main timeline
(which is a movie clip!); in a movie clip symbol, "this"
refers to that
movie clip symbol instance.
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design."

Similar Messages

  • It's possible to set the number of frame?

    It is recommand to set the number of channels as low as possible, and it is easy to do. But it is recommended to decrease the number of frames? If yes, how can i do it? It seems to me that the manuals do not mention this aspect.
    Thanks.

    Yes but if it is so why it is recommended to set the numbers of channels as low as possible?
    It is sure that is not possible to to set the number of frame? I remember that long time ago  maybe I find something about how to set the frame's number, but
    it is possible that I'm wrong. 
    Thank you.

  • Address Book/iSync - email addresses moving to phone number fields

    I'm not sure what is causing this, but I'm noticing that email addresses in my cards are moving to phone number fields. I originally thought this had something to do with cards that had no phone number in them, only an email address, but now I"m realizing that's not the case.
    I fixes all cards last night and just a minute ago, when I was in Address Book I noticed some or all of the email addresses had moved again. I reverted to my backup from last night and it fixed things, but I'm wondering what's going to cause those addresses to move again.
    I do use iSync to sync my AB contacts to my Motorola phone (I think I have it set up where it's one way, computer to phone) and I have Entourage that's using my AB contacts to populate its address book.
    Any thoughts about what in my environment is causing this?
    -John

    Thank you for the suggestion. I did this, but noticed that some cards were still messed up. So I reverted back to a clean copy of my address book from last night. Then I went to iSync and synchronized with my Motorola phone. That's when iSync says that it's going to modify over 5% of my contacts in AB (122) at which point I said okay. Problem appears to be that the cards it modifies is random.
    Now to make matters worse, it appears that if I repeat this process over and over (revert, iSync, look through cards), there is no pattern to which cards are changing. I don't even know how to troubleshoot this. I'd love make iSync go one way - computer to phone - so that the phone can never write information to the computer. Is that possible?
    I'm sure this needs to go to a different section...
    -John

  • How to loop an swf a set number of times?

    I need to loop a banner animation a set number of times, then
    get it to gotoandstop on a final frame. I know in the past I could
    use:
    counter++; if (counter<5) { gotoAndPlay (1); }
    At least for the looping part (don't even know yet about the
    stop pon a particular frame part).
    but now in Flash 8 I can't get my test swf to do that using
    this statement. Am I missing something? (Of course, obviously I am
    or I wouldn't be here!)

    This works for me as well, but i don't want it to jump to the
    final still frame. i need mine to loop three times, then plan
    through to the frame i want, stopping there. the frame i want is
    not the final frame in the swf. it is somewhere in the middle.
    does that make sense?

  • Choose a set number of files in a folder?

    Is there a way using AppleScript to choose a set number of files inside a folder?
    I've created an Automator workflow to convert some files (Illustrator to PDF) but the folders contain a large number of files (nearly 500). If I ran the workflow on this amount of files I'm pretty sure it would crash, as the workflow opens the files & then saves them in the other format (so it would open all 500 files).
    So what the workflow does at the moment is ask me to choose the files to convert, I select around 50 & let it convert them & closes the files. It loops, so once it's completed them I it asks again to choose more files to convert etc...
    If I could make it choose a set number of files (via some AppleScript & add this to the workflow) it could open & convert (for example) 50 files, then open & convert the next files. And keep doing this until it completes converting all of them.

    red_menace wrote:
    What happens to the original item after the conversion? Is it moved, or will some method need to be used to keep track of what has already been converted?/Trim Input Items.action.zip
    After the files have been converted they are moved to another folder so that I don't choose them again & again, & so that I know they've been converted.
    So if I used the Trim Input Items action it would choose only 9 items, convert them & then (with the workflow looping) convert another 9 files, & so on & so on. Is that correct? If so that could work for me.
    The Dispense Items Incrementally action could also work for me. If I understand correctly it would convert 1 file at a time & I'd set to loop so it goes through all the items 1 at a time.
    Camelot wrote:
    I don't see the need to select a set number of files in the folder.
    From your description it sounds like you want to process them all anyway, it's just that your existing (manual-select) workflow works by selecting a few at a time.
    What's wrong with the script identifying all files and processing them all in one loop?
    Because my workflow (at the moment) opens all the files at once, & then converts them. So it would open nearly 500 Illustrator files in one go rather then opening a few of them, or opening them 1 at a time. I'm pretty sure it would choke my system opening up 500 files (not particularly small files either).

  • Retiming with same number of frames

    Hi (couldn't find this) - If I want to convert my source video to a new frame rate -- but keep exactly the same number of frames -- what is the best way to do that?
    Do I just set my desired frame rate in the Encoder tab and then set duration to 100% in the Frame controls? Does that give me the just the original frames in the source, but at a different speed?
    Thanks, PH

    OK -- I figured it out!

  • How do i set the time frame of a waveform chart programmatically to be a 30 sec window or a 24 hour window

    i'm using LV7.0 and what i need to do is to be able to set the time frame or range of a waveform chart programmatically before i start taking and plotting data. sometimes this window needs to be 30s wide and sometimes it needs to be 24 hrs wide. (in the first reference, i need the chart to fill up with 30s of historical data then the whole chart scrolls with each new data point). the data acquisition records data at a rate of once per second. i've tried to use the chart properties of XScale.offset, XScale.Range.Minimum and XScale.Range.Maximum but no matter what i do the time-stamp on the x-axis is always "00:00:00 PM" and "MM/DD/YYYY" even though values are seen being plotted on the right side of the chart as expected.
    Attachments:
    BX0265 ShelfLife DAQmx.vi ‏120 KB

    Okay, there seems to be some confusion here -- the X axis values are of type double, but they can be represented in the HH:MMS MMD:YYYY format if you want in which case it interprets the floating point as the number of seconds since 6pm Dec 31, 1903. 
    You can programmatically set this value using the XScale.Minimum and XScale.Maximum properties, but note that if you wire a waveform to the chart after setting these values the t0 parameter will override what you set using the property node for XScale.Minimum.  If instead you leave the t0 parameter empty you can use the XScale.Offset property and wire the same value in that you wire to XScale.Minimum.  Changing the amount you add to XScale.Minmum to obtain what you wire into XScale.Maximum will determine the time window size.
    Doug M
    Applications Engineer
    National Instruments
    For those unfamiliar with NBC's The Office, my icon is NOT a picture of me

  • Number of Frames in Animation?

      Hello! I was just wondering if there was anyway to figure out how many frames you have in an animation? Thank you if someone can tell me.

    You can set the number of frames per second or FPS. Knowing this number, you can figure out how many frames are in your animation
    Ex. 30fps for a 1 minute animation would be
    30 frames x 60 seconds = 1800 frames
    So a five minute animation is
    30 x 60 x 5 = 9000 frames

  • Running a java program a set number of times

    This is a general question. Is it possible to make a java program run only 5 times for the sake of arguement.
    Basically I want to write a program that will give the user some flexibility when it will actually run another Java program, but I only want them to be able to say "not now' for a set number of times. When the last time comes the other program will launch. I was initially thinking of the Do Whilw loop, but this needs to work when the program is restarted.
    Program starts, it has 5 times it will run before it does something else(doesn't really matter now I think). User takes option "Not Now" and the program ends, but warns the user this will run 4 more times before you will need to do something.
    This process will repeat until the user takes the option "Ok install now" or the time limit expires and the install occurs anyway. Can someone point me in the right direction.

    ok I see so it's like one those programs that you download for free on the internet and they give you a set amount times to use it before you have to pay for it. but in this case when the number of times you use it equals 5 (or when the user clicks ok) a different java app will open automatically.
    My first thought would be to Write a Serialized object to disk using objectOutputStream that stores the number of times the application has been opened. and each time the program runs it checks for the serialized object and then you can do something like what I posted before. of course if were worried about security the user could always look for the object and erase it, if so then I guess we would have to come up with another plan of attack
    Hope this helps

  • I am trying to create a simple animated gif in Photoshop. I've set up my frames and want to use the tween to make the transitions less jerky. When I tween between frame 1 and frame 2 the object in frame two goes out of position, appearing in a different p

    I am trying to create a simple animated gif in Photoshop. I've set up my frames and want to use the tween to make the transitions less jerky. When I tween between frame 1 and frame 2 the object in frame two goes out of position, appearing in a different place than where it is on frame 2. Confused!

    Hi Melissa - thanks for your interest. Here's the first frame, the second frame and the tween frame. I don't understand why the tween is changing the position of the object in frame 2, was expecting it to just fade from one frame to the next.

  • Loop though foreach a set number of times

    Hi Guys
    I want to know how I can loop though a foreach loop a set number of times ? I know in a for loop you can set the max number of loops but I don't know how to do it when comes to a foreach loop. Below is the structure of my foreach loop:
    for(Letter letter : letters) {
      //I want to loop though only 50 objects max at a time
    }

    List<Letter> prefix = (letters.size() <= limit) ? letters : letters.subList(0, limit);
    for(Letter letter : prefix) {
    }

  • How do i reduce the number of frames in a UIView animation

    When animating a Uiview... for example the center of a UIImageView.... is there a way to reduce the number of frames that occur during the animation?
    The framerate is too high and making my app slow down significantly... thanks.

    If you do not have an image editor that allows to do that then use one of the online sites to resize images.
    * http://www.shrinkpictures.com/
    * http://www.picresize.com/

  • I set a poster frame in the timeline, but the thmbnail in the menu does not update. Why?

    I have used poster frames correctly in other projects before, also in encore cs6.
    In this project, it's not working.
    haveing had it working before, i'm sure its nothing to do with the OS, or media type, since that was the same in my previous projects. Any other ideas as to common causes?

    I've seen weirdness on this one myself.  Usually changing the poster frame by a frame or two clears it up.
    I've actually gotten into the habit of setting my poster frames before I make the chapter links.  That way it always works.

  • How to set movie poster frame in final cut pro x

    Need some help on the following.
    Objective-using QT 7 or later, Current Compressor, FCP X or any other video editing tool, export a mp4 movie that displays a "poster frame" when the movie is inserted into iBook Author. When started by the user, the movie would begin to play from the first frame of the movie (not the poster frame).
    thx ra

    This sounds like a question for the iBooks Author forum. I think you set the poster frame in that application. How you make the video behave in the iBook is controlled in that application not in the editing application.

  • Moving Transport Set from 9.0.4 to 10.1.2.0.0 environment

    Hi,
    I am moving transport set from 9.0.4 environment to 10.1.2.0.0 environment.
    But when I import it on 10.1.2.0.0 environment I get the compatibility error,
    I am using imp.sh to import. Following error occurs when I try to import:
    Checking for Portal Version Compatibility...
    Error: Source and Target Portals are of different versions
    Cannot proceed with Import
    Could any one let me know, Is there any way to move the transport set from old version to the new one. Apart from upgrading the old one.
    -Santosh

    Santosh,
    No, sorry but there isn't a supported way of doing this.
    Oracle Portal only allows you to use the Portal Export / Import between the same level of patching. Trying possible workarounds will lead you in an unsupported state.
    The only way as you've said is to upgrade your older version to the same level of the newly installed version, ie, bring your 9.0.4 to 10.1.2.0.x.
    Metalink Note:263995.1 - Master Note for OracleAS Portal Export / Import Issues may help you.
    I hope it helps...
    Cheers,
    Pedro.

Maybe you are looking for