|
|
|
Put stream percentage
Added on 2/15/2000
|
From Technote #8249 at Macromedia.com
-- get stream status of the movie
property pMovieUrl
on beginSprite me
pMovieUrl = the moviePath & the movieName
end
on exitFrame
checkStatus
go to the frame
end
on checkStatus me
statList = getStreamStatus(pMovieUrl)
if (statList.state <> "Complete") then
if (statList.bytesSoFar > 0) then
percentDone = (statList.bytesSoFar * 100) / statList.bytesTotal
put percentDone
end if
else
go to the frame + 1
end if
end checkStatus me
|
|