Is it posable to do this as a card script

liamlambert liamlambert at mac.com
Fri Dec 16 12:18:44 EST 2005


I am building stack for cueing quicktime movies to a projector I want  
a number of  thumbnail players showing that you drag and drop  
the .mov into and when you click the thumbnail player it lodes the  
movie into the main player  stack . I have this working with the  
script below in each thumbnail player. I was wondering if  there is a  
way to use this script as a card script rather than in each player.

on dragEnter
   if the short name of the target = "player1" then set the  
acceptDrop to true
    end dragEnter

on dragDrop

   if there is a folder tfile then
     answer "This is a folder files only !"
     exit dragdrop
   end if
   put the dragdata into fld "addOne" ---file path
   add 1 to fld "track" --this is for later script so I know how meny  
tracks there are
   set itemDel to slash
   put item - 1 of dragdata into fld "Cue1"---fld with name of movie
   set the filename of player "player1" to dragData
end dragDrop
on mouseUp
   lock screen
   get fld "addOne"----get file path
   put it into tmov1
   if the hilite button "loop1" is true then set the looping of  
player "main" stack "projector" to true
   else set the looping of player "main" stack "projector" to false  
---set looping to true or false
   get fld "cardNO" --I use two cards so I can have quicktime effects  
between movie changes
   put it into tcardNo
   if tcardNo = 1 then go to card "2" stack "projector"
   else if tcardNo = 2 then go to card "1" stack "projector"
   set the filename of player "main" stack projector to tmov1

end mouseUp

Liam Lambert
liamlambert at mac.com
IRELAND





More information about the use-livecode mailing list