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

Wait until flash is done playing 2

Status
Not open for further replies.

Cartier

Technical User
Jan 16, 2003
32
0
0
BA
I want to make flash play until it's done and then move to another frame. I know how to do that with video :

on exitFrame me
if sprite(1).movieRate=0 then
go to the frame+1
else
go to the frame
end if
end

But how to do it with flash?
 
You can use
Code:
frameCount
to determine the number of frames in the Flash movie, and
Code:
frame
to determine the current frame of the Flash movie. Therefore:
Code:
on exitFrame me
	if sprite(1).frame < sprite(1).member.frameCount then
		go the frame
	else
		go the frame + 1
	end if
end
 
This worked perfectly! You got a star from me. Thanks!
 
hi, if you have open source (fla) you can put an action on last frame of flash(something like this):

getURL(&quot;kraj&quot;);


in director on flash object put a behaviour with next code:
global muzikagornja
global muzikadonja

on getURL me, stringFromFlash
go the frame+1
end


Or you can try this (without intervention in flash), put the swf on stage (for example on sprite no 5), with behaviour code:

on enterFrame
if not sprite(5).playing then
go the frame+1
end if
end

 
Thank u very much Moreplovce! By the way, did u have truble with Croatian fonts, since i do, only few fonts have special caracters, and its not basic fonts, like Arial or something. :)))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top