Is it posable to do this as a card script
Eric Chatonet
eric.chatonet at sosmartsoftware.com
Fri Dec 16 14:21:42 EST 2005
Hi Liam,
I'm glad you know you must :-)
That's the first step...
Try to follow the example of Scott's abacus:
Name your players <something1>, <something2>, etc.
And in the card's script, refer to your players as following:
on dragEnter
if word 1 of the target <> "player" then exit dragEnter
-----
put last char of the short name of the target into tCurPlayer
<domystuff>
end dragEnter
----------------------------------------
on dragDrop
if there is a folder tfile then
beep
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 (the short name of the target) to dragData
end dragDrop
Best Regards from Paris,
Eric Chatonet
------------------------------------------------------------------------
----------------------
http://www.sosmartsoftware.com/ eric.chatonet at sosmartsoftware.com/
Le 16 déc. 05 à 20:02, liamlambert a écrit :
> yes I know I must that is why I asked but how do I refer to each
> player
More information about the use-livecode
mailing list