Ask a Question related to Macromedia Director Basics, Design and Development.
-
mickeykeenan #1
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
-
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... -
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... -
controlling loaded movies
this is some of the script of my homepage: _root.containerLargeIMG.startDrag() loadMovie(nameLargeImage,_root.mask.containerLargeIMG);... -
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... -
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... -
Rob Dillon #2
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
-
mickeykeenan #3
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
-
Rob Dillon #4
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
-
mickeykeenan #5
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
-
mickeykeenan #6
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
-
Rob Dillon #7
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



Reply With Quote

