Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash MX movie in Director MX

Status
Not open for further replies.

rissac

Technical User
May 9, 2003
79
IN
I can't get my flash movie player to work in Director. I've made a flash movie player with action scipt to use in Director so I can control a QT movie. The action script that I have for my button is:

on (release) {
getURL ("event:gStop");
}


This is an example of one button. The others are similar.

In Director I know that you have to create a globe script in order for the flash controller to work. The lingo that I have in Director is:

on gRew
sprite(5).Rewind()
end

on gPlay
sprite(5).Play()
end

on gPause
sprite (5).Pause()
end

on gStop
sprite(5).Stop()
end

With the exception of the Fast Forward (What is the command for FF?)snipt this lingo doesn't seem to work. Can anyone tell me what I'm missing?

 
To call Lingo handler from embedded Flash, use
Code:
Lingo
:
Code:
--
on (release) {
	getURL("Lingo: gStop");
}
--
However, if you want to control QuickTime movie using Flash buttons, your code wouldn't work, as QuickTime movie won't accept commands such as
Code:
stop(), play()
etc. Use
Code:
movieRate
instead:
Code:
--
on gStop
	sprite(5).movieRate = 0
end gStop
--
Code:
movieRate
values are as follows:

0: stop
1: play
-1: reverse play
0.5: slow play
-0.5: reverse slow play
1.5: fast play
-1.5: fast reverse play

(You will need to adjust "in between" figures to get the speed you want. e.g. "1.1" for fast play, etc.)
 
Thank you very much. I didn't realize that the movierate handler is what I would use to control QT movies. The "event" handler like the "lingo" handler also works fine. Thanks once again.

Serge
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top