Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Play different Movies For Different Game Levels
Add to the back list
Slider behaviour v2.2
base64 encode/decode v1.2
Dialogs - Tell Me Something
Game protector
RegistryReader
Date Master
dvd.duck
Password Field
 

 

 

Behavior Put stream percentage

Added on 2/15/2000

 

Compatibilities:
behavior D7 D8 Mac PC Shockwave

This item has not yet been rated

Author: Macromedia (website)

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

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail