Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Evil Mouse Puddle
Xplode that text
Shockwave Safe Xtras
Macromedia Director 7 Lingo training CD
Tracking save attempts
Removing the stage border
CTRL+B, CTRL+I, CTRL+U
DogEar xtra
Time Since Midnight
Director 8.5 Shockwave Studio: The Complete Reference
MediaMacros Xtras Mall
 

 

 

Behavior Import SWA (Shockwave Audio)

Added on 9/16/1999

 

Compatibilities:
D6_5 D7 D8 PC Script

Required Xtras:
Buddy API

Rating:

Author: MediaMacros (website)

Imports all SWA files in a set directory into Director as cast members.

--Code by Chuck Neal
--Chuck@mediamacros.coc
--Usage - importSWA (castLib name) (full path including )
--Created for PC, may work on Mac, but not tested

on importSWA whichLib, thePath  
  set startMember = the number of members of castLib whichLib
  set Files = baFileList( thePath, "*.swa" )  
  repeat with x = 1 to count(files)    
    new #SWA, member (x + startMember) of castlib whichLib
    --names member by file name and removes extension
    set the name of member (x + StartMember) of castlib whichLib = char 1 to ((the number of chars in getAt(files, x)) - 4) of getAt(files, x)
    set the streamName of member (x + startMember) of castlib whichLib = thePath  & getAt(files, x)    
  end repeat  
end

 


Upload Provided by ABCUpload ASP

Contact

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

Fax - (206) 339-5833

Send e-mail