Controlling quicktime movies

Ask a Question related to Macromedia Director Basics, Design and Development.

  1. #1

    Default Controlling quicktime movies

    Hi,
    I am really new to Director so this may seem like a daft question. Is it
    possible to have a quicktime movie as a cast member but to only play bits of it
    on the stage? Consder the following. I ask this because I would like to have 4
    buttons that each play a different part of the quicktime movie when clicked. I
    don't want the whole movie to appear on the stage, only each of the sections
    identified by the buttons.



    mickeykeenan Guest

  2. Similar Questions and Discussions

    1. controlling outside movies
      I have a button in one movie and I need it to tell another movie (that's in another HTML frame) to play specific frame number. Can some one help me...
    2. Movies controlling movies!
      I need to know if it is possible to control a movie from another movie - let me explain. On the main screen I have four movies which are acting as...
    3. controlling loaded movies
      this is some of the script of my homepage: _root.containerLargeIMG.startDrag() loadMovie(nameLargeImage,_root.mask.containerLargeIMG);...
    4. Controlling Quicktime
      Hi, could someone please tell me the lingo code for controlling quicktime video. I need to play, stop, pause, rewind, fastforward etc. example...
    5. Controlling different SWF Movies
      Sup guys, I'm pretty new to Flash and all the actionscripts, and I just found out I was in trouble. Actually, I have already posted a message...
  3. #2

    Default Re: Controlling quicktime movies

    Yes, you can do that. Use the movieTime property to control how much
    and what is displayed at any point in your movie.

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon Guest

  4. #3

    Default Re: Controlling quicktime movies

    Hi Rob,
    Where can I see an example of this. Imagine for a moment that the QT movie was called 'Learning' and it was 200 ticks long. What should be in the script of each button?

    Mickey
    mickeykeenan Guest

  5. #4

    Default Re: Controlling quicktime movies

    Hi Mickey,

    I don't know of a ready reference for exactly what you want to do. 200
    ticks isn't very long, that's just over 3 seconds. How about 2000
    ticks?

    You could build something like this:

    --------
    property thisSprite
    property DV sprite
    property thisStartTime
    property thisStopTime
    property playMe

    on getPropertyDescriptionList
    myPropList = [#DVSprite:[#comment:"enter the sprite number for the DV
    sprite:",#format:#integer,#default:4],#thisStartTime:[#comment:"enter
    the starting time for this video segment in
    ticks:",#format:#integer,#default:""],#thisStopTime:[#comment:"enter
    the ending time for this video segment in
    ticks:",#format:#integer,#default:""] ]
    return myPropList
    end

    on beginSprite me
    thisSprite = me.spriteNum
    sprite(DVSprite).movieTime = thisStartTime
    sprite(DVSprite).movieRate = 0
    playMe = 0
    end

    on mouseUp me
    if sprite(DVSprite).movieRate = 0 then
    sprite(DVSprite).movieRate = 1
    playMe = 1
    end if
    end

    on prepareFrame me
    if playMe then
    if sprite(DVSprite).movieTime > thisStopTime then
    sprite(DVSprite).movieRate = 0
    playMe = 0
    end if
    end if
    end
    -----------

    that's off the top of my head, so it may creak a bit. You tell the
    button sprite which sprite to run, it will preset the dv to the
    starting time and, when clicked, will let the dv play to the ending
    time.

    This button needs to work alone. If you want to a bunch of buttons at
    the same location, then you'll have to adapt.

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon Guest

  6. #5

    Default Re: Controlling quicktime movies

    Hi Rob,
    Gee that looks really complicated. My only previous scripting came from
    Hypercard, and even then it was pretty basic. At lest I knew where to put the
    script. Now I can't seem to make sense of how scripting is organised. I have a
    long long way to go. At the risk of annoying you, are you saying that I simply
    put the QT movie on the stage, add a button and insert your script into the
    button? If yes, then how will I be prompted to specificy my start time and end
    time? Also, when you say this works only for 1 button does that mean I can't
    just duplicate the button and use the new one to specify different start and
    end time?

    Mickey

    mickeykeenan Guest

  7. #6

    Default Re: Controlling quicktime movies

    Rob,
    After my previous response to you I thought I would try your script in the
    manner I outlined. However, I got an error saying that a comma was needed.
    After some time trying to 'guess' where the comma should be I have given up. I
    had hoped to be able to build upon your script and get back to you.

    Mickey

    mickeykeenan Guest

  8. #7

    Default Re: Controlling quicktime movies

    The comma problem is most likely from a broken line. If you are
    copying and pasting that code, you will probably have to go into the
    script window and clean up any line wrap issues.

    The getPropertyDescription function is the most problematic. It is also
    the function that will open a window during authoring to let you set
    the sprite number for the digital video sprite and set the start and
    stop times.

    The way that this is written, it will take command of the dv sprite, so
    if you wanted to have more than one simultaneous control button, you
    would have to change the code.

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139