A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: fast forward button

  1. #1
    Junior Member
    Join Date
    Dec 2000
    Posts
    8
    Trying to make video controls for flash mc.

    They control the timeline of an mc on a higher level using - goto and play current frame +8.

    They work fine except rather than stopping at the end of the mc timeline it skips back to the beginning of the sequence. Have tried various ways of rectifying this (ie setting variable for _totalframes of target level and trying to make fast forward not excede this number), none of which work.

    any ideas? shouldn't be that difficult but I just can't make it work.

    thanks in advance

  2. #2
    Senior Member
    Join Date
    Apr 2001
    Posts
    165
    You could compare against the totalframes of your mc
    before doing each fastforward:

    frametoplay = mc._currentframe + 8;

    if(frametoplay > mc._totalframes)
    mc.gotoandStop(mc._totalframes);
    else
    mc.gotoAndPlay(frametoplay);

  3. #3
    Junior Member
    Join Date
    Dec 2000
    Posts
    8

    good idea

    thanks for your suggestion but I've solved the problem. _totalframes gives number of frames for all scenes, not just main timeline I was trying to control. Once I had compensated for this it worked.

    I will try your suggested code for future reference.

    will upload code to movies section under name "video style controls" for anyone interested.

    thanks again

    catto

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center