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
Popup Xtra
DisplayRes
Set PlayBackMode Property of a Animated Gif Cast Member
Light Up Game Controller
Acrobat ActiveX Control
Audio Xtra
Relative Links
Components XObject
List Inspector 1.1 with Tree View
Push Dial-Alphamania
 

 

 

Behavior Check Pixel Depth

Added on 6/8/1999

 

Compatibilities:
D6_5 Mac PC Script

Rating:

Author: MediaMacros (website)

This is a quick utility to check a movie for any castmembers that do not have the correct bit-depth.

--Copyright 1999 Chuck Neal
--chuck@mediamacros.com
--If you find this code helpful, send me an e-mail and let me know.  :-)

on checkDepth whatDepth
  --Checks the pixel depth of all members
  set myList = []
  repeat with x = 1 to the number of castlibs
    repeat with y = 1 to the number of members of castLib x
      set thisMember = member y of castlib x
      if the type of member thisMember = #bitmap then
        if the depth of member thisMember <> whatDepth then
          add myList, the name of member thisMember && the name of castlib x && the depth of member thisMember
        end if
      end if
    end repeat
  end repeat
  repeat with z = 1 to count(myList)
    put getAt(myList, z)
  end repeat
  if count(myList) < 1 then
    put "All Correct"
  end if  
end

 


Contact

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

Send e-mail