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
Large Integer and Base Conversion Integer Parent Script
Farbflash.de
Vdig Xtra for Windows by Abstract Plane
Increase/ Decrease ViewScale Property of a Flash Member
AX Icons
Flash sending messages to Director
Color Picker
Text2Graphic Pro
Delete one or more items
Text Services API v2.2
 

 

 

Behavior Swipe Cast Members

Added on 6/8/1999

 

Compatibilities:
D6_5 Mac PC Script

This item has not yet been rated

Author: MediaMacros (website)

Extracst cast members from a DCR

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

on swipeCast  
  repeat with thisWind = 1 to count(the windowList)
    set wind to getAt(the windowList, thisWind)
    tell wind to set numberOfCasts to the number of castlibs
    repeat with i = 1 to numberOfCasts      
      tell wind to set mems to the number of members of castlib i
      repeat with thisMem = 1 to mems
        tell wind to set x to the media of member thisMem of castlib i
        tell wind to set xType to the type of member thisMem of castlib i
        tell wind to set xName to the name of member thisMem of castlib i
        if xType <> #empty then          
          set newMem to new(xType)          
          set the media of member newMem to x
          set the name of member newMem to xName
        end if
      end repeat      
    end repeat
end repeat
end

 


Contact

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

Send e-mail