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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Synchronizing Flash movies?

Status
Not open for further replies.

amos2

Programmer
Jan 24, 2009
3
NG
When I import a flash movie, how can I synchronize it. I mean, that excaly after it is finished something else will start. I heard it is something with Cue points. What are they? and how can I create them?

thanks,
 
ok, I don't remember the EXACT code to do, but in director you will need a handler for external events

on evalscript vExternalRequest
....place logic code here
end

then in your flash you need to pass out a command, I think its via the FSCommand but I could be wrong (I'm not much of a flash user), could be via a getURL but try FSCommand first.

Now the way I do this is my evalscript code is this (code may not be 100% correct)

on evalscript vExternalRequest
do vExternalResuest
end

then the FSCommand from flash may be something like
go to frame 10
sprite(20).visible = false
or any other single line of code. I also use calls to other handlers for example
MoveToFrame("framename")
and have a handler called MoveToFrame.

hope this all helps a bit.
 
I think, if I understand what you want to do, i.e. pause the Director movie until the Flash file finishes, use this:

on exitFrame
if sprite(1).frame < sprite(1).member.frameCount then
go to the frame
end if
end on

Where sprite(1) is your imported flash .swf.

If I remember right, cue points are used only with Quicktime digital video, which you can only insert into a video file on a Mac. Is this right, anybody?

Hope this helps.:)

TomK.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top