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!

exit director gracefully

Status
Not open for further replies.

MichelleButler

IS-IT--Management
Apr 5, 2002
73
GB
I would like to be able to get director to exit gracefully on a frame playing a flash movie. I would like to be able to go to the frame exit and allow it to play the flash movie until finish, rather than issue the command "halt" on mouse down. Could anybody help!!!

Michelle
 
On your frame script where your flash movie plays put this script in:

on exitFrame
if sprite(1).frame<sprite(1).member.FrameCount then play the frame
else quit
end

Sprite 1 is where flash movie. It plays until the end of the flash movie then quits from Director on that same frame.
 
One small correction:

on exitFrame
  if sprite(1).frame<sprite(1).member.FrameCount then play the frame
  else quit
end if
end

Forget to put the end if in there.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top