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
Free Sounds
Toggle ActionsEnabled Property of a Flash Member
Simple Radio Button Group
List display, export
Button - De-Xploding behaviour
Dr.Explain - help file tool
Increase/ Decrease Digital Video Volume
Multiple Monitors with Director
Protected Code
Saving Data in Shockwave
 

 

 

Behavior Wait For Media Ready

Added on 5/30/2000

 

Compatibilities:
behavior D7 D8 Mac PC Shockwave

This item has not yet been rated

Author: KumarK

Waits until Media is ready before proceding in Shockwave

----Wait For Media Ready
-- Written for Director 8 --
-- Kumar.K, kumark@icode.com---
-- Custom Properties --

Property themember,MyAction


-- Get Behavior Parameters --
on getPropertyDescriptionList
  if the currentspritenum <> 0 then exit  
  set description = [:]
  addProp description, #themember, [#format:#Member, #comment: "Wait For
Which Member?",#default:member(1)]
  addProp description, #MyAction, [#format:#String, #comment: "What Next?",

  #range:["Go NextFrame", "Go NextMarker"],#default:"Go NextFrame"]
  return description
end

-- Get Behavior description --
on getBehaviorDescription
  return "This Behavior waits for the Media to be" & RETURN &
  "Downloaded before Proceeding Next." & RETURN & RETURN &
  "Parameters" & RETURN &
  "* Media to be downloaded." & RETURN &
  "* Action after the media Downloaded."
end

-- Events --
on exitframe
  if member(themember).mediaReady = TRUE then
    case MyAction of
      "Go NextFrame":   Go the frame+1
      "Go NextMarker":  Go Next
    end case  
  else
    go the frame    
  end if
end

-- Can be attached to only Frame Scripts --
on isOKToAttach (me, aSpriteType, aSpriteNum)
  case aSpriteType of
    #graphic:
      return False
    #script:
      return True
  end case
end isOKToAttach  

 


Contact

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

Send e-mail