| Subject: | Re: check void member |
|---|---|
| From: | Mike Blaustein |
| Date: | Tue, 5 Aug 2008 12:52:38 -0700 PDT |
| Newsgroups: | macromedia.director.lingo |
This will work regardless of scriptExecutionStyle. It was written by
Valentin Schmidt on Direct-L. Put it into a #movie script.
on memberExists (tMemRef) --thanks Valentin!
if voidP(tMemRef) then return FALSE
return (tMemRef.number > 0)
end
Once you have it in there, you can check like this:
put memberExists(member("does not exist"))
-- 0
put memberExists(member("does exist"))
-- 1
if memberExists(member("yourMember")) then
-- do something if it exists
else
-- do something if it does not exist
end if
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: playing portions of a QT movie with Director, Sean Wilson |
|---|---|
| Next by Date: | Re: playing portions of a QT movie with Director, adiabatic |
| Previous by Thread: | Re: check void member, McFazstp |
| Next by Thread: | LDMs and updateStage scope, Applied CD |
| Indexes: | [Date] [Thread] [Top] [All Lists] |