Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
zlibXtra
ADOxtra for Shockwave Multiuser Server
Scroll Sprite by MouseLoc Behavior
27 Sum Game-Score Field
Set CommonPlayer properties for Director 2004
Inverse cosine
MIAW communication
KK
Diffusion Effect - Imaging Lingo
RGB to CMYK
MediaMacros Xtras Mall
 

 

 

Behavior Wait For Frame Ready

Added on 5/30/2000

 

Compatibilities:
behavior D7 D8 Mac PC Shockwave

This item has not yet been rated

Author: KumarK

Waits until Frame is ready before proceding in Shockwave

----Wait For Frame Ready
-- Written for Director 8 --
-- Kumar.K, kumark@icode.com---
-- Custom Properties --
Property theFrame,MyAction


-- Get Behavior Parameters --
on getPropertyDescriptionList
  if the currentspritenum <> 0 then exit
  set description = [:]
  addProp description, #themember, [#format:#Intager, #comment: "Wait For
Which Frame?",#default:2]
  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 Frame contents to be" & RETURN &
  "Downloaded before Proceeding Next." & RETURN & RETURN &
  "Parameters" & RETURN &
  "* Frame to be downloaded." & RETURN &
  "* Action after the Frame Downloaded."
end

-- Events --
on exitframe
  if frameReady(theFrame) 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  

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail