dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Control every mc on one timeline.

  1. #1
    Junior Member
    Join Date
    Feb 2001
    Posts
    8
    Hello,

    is there a possibility to control every mc on a timeline ?

    My Problem is, that i have a presentation with several independent mc on the main timeline, and i want to insert buttons where the viewer can jump 20 Frames ahead and 20 back. But when I realize this with
    on release
    goto and play(_currentframe+20)
    ....

    , the only thing which happens is that t jumps on the main tmeline and the mc starts and this point from the beginning.

    Please help me..

    regards
    s.schacht

    sorry for my awful english


  2. #2
    Junior Member
    Join Date
    Mar 2000
    Posts
    6
    if your movie is on its own layer it shouldn't start again whether or not the main timeline gos forwards or backwards - as long as there is no keyframe in the movie layer it should just play independantly

  3. #3
    Angkor-What? Gekke_Hollander's Avatar
    Join Date
    Jun 2000
    Location
    Netherlands
    Posts
    234

    just maybe!

    Hey there,

    I'm not sure I understand your question but I'll answer anyway. What I'd try is this;

    In the first frame of the movie you insert the MCs. (and ofcourse anything else you would like to insert but use different layers for anything else than the MCs) Do not add keyframes in the layer with the MCs!!!! Make your movie stop at the second frame. (just think of it that this frame is your first frame) When u press a button here that will jump +20 frames it will do so and if you haven't inserted any kerframes in the layer with the MCs it shouldn't restart the MCs. When u push a button that jumps -20 frames it will go to the second frame (remember this is the so called first frame) where there is no keyframe in the MC layer. I think this should work.

    Hope you understand what I'm trying to explain...
    Gekke_Hollander

  4. #4
    Senior Member
    Join Date
    Aug 2000
    Posts
    2,235
    If you are trying to get the mc to move on 20 frames you need tell target;

    Begin tell target ("/mc")
    Go to and Play (_currentframe+20)
    End tell target

    ~mgb

  5. #5
    Junior Member
    Join Date
    Feb 2001
    Posts
    8
    I try to get all mc on one timeline move 20 frames on. Like a forward button on a vcr. But Im not able to name all mc with tell target. There about 20 mc in the timeline.

    regards
    s.schacht

  6. #6
    Angkor-What? Gekke_Hollander's Avatar
    Join Date
    Jun 2000
    Location
    Netherlands
    Posts
    234

    Unhappy hmmm

    Ok the situation becomes more clear now;

    Ok what u want to do is this;

    Give ur 20 MCs instance names ( 1, 2, 3, etc)
    Then in the button;

    On (Release)
    Set Variable: "x" = "1"
    Loop While (x < 20)
    Begin Tell Target (x)
    Go to and Stop (_currentframe + 20)
    End Tell Target
    Set Variable: "x" = x + 1
    End Loop
    End On

    Try this...

    Gekke_Hollander

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