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!

How do I exit a Flash movie but keep my Director movie running?

Status
Not open for further replies.

richvalve

Programmer
Mar 2, 2001
20
GB
Hello

I have done an animation in Flash, and have put it into Director. (I created it this way cause Flash is faster and easier to use for such things than Director)

All I want is for at the end of the anim, the user to be able to click on a logo (or whatever) and this will close the Flash animation altogether. So now I am back in just Director.

Hope this is all clear!

Many thanks in advance

Richard
 
Director is frames based, just move to a frame that doesn't
have your flash animation on it.

And its best to put your flash movie on one frame and just use a script like this

on exitframe
go to the frame
end

then when the user click
on mouseup
go to the frame +1
end



 
I like to keep the Director Movies little, therefore I use the following "Frame Script" to watch the Flash movie and then continue on when finished:

on exitFrame me

--This code watches the Flash Movie playing in Sprite
--channel 1 and waits (loops)
--until it has finished playing.
if sprite(1).frame < sprite(1).member.frameCount then
go to the frame
end if

end

Just replace the sprite number with the actual number of the Flash Sprite in your movie.

Then, to keep Director &quot;looping&quot; on one specific frame I simply use an infinite loop (until a certain condition is met, like the person clicks on something which then loads the next director movie). To keep it &quot;looping&quot; use this:

on exitFrame me
go the frame --infinite loop
end

Hope this helps,
Colin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top