|
From: W. Locke Morgan on 30 Sep 2005 14:54 How do I check if a member of a certain name exists? Using lingo of course.
From: Mike Blaustein on 30 Sep 2005 15:02 repeat with i=1 to the lastChannel if member(i).name = "someName" then alert "woop woop that name exists" end if end repeat
From: Word of Mouth Productions on 30 Sep 2005 15:27 You might want to try if member (3).type = #empty then In Director MX you could have used a member name whether it existed or not. In MX2004, the highly improved version, you'll get a syntax error if you use a member name that doesn't exist. I know I've seen a way around this but I can't quite remember it. Certainly, using the loop method is quite inefficient especially if you have multiple casts. Craig -- Craig Wollman Word of Mouth Productions phone 212 928 9581 fax 212 928 9582 159-00 Riverside Drive West #5H-70 NY, NY 10032 www.wordofmouthpros.com "Mike Blaustein" <mblaustein(a)gmail.com> wrote in message news:dhk23p$a44$1(a)forums.macromedia.com... > repeat with i=1 to the lastChannel > if member(i).name = "someName" then > alert "woop woop that name exists" > end if > end repeat
From: Sean Wilson on 30 Sep 2005 15:49 > How do I check if a member of a certain name exists? Using lingo of course. If you're using MX 2004: put voidP( member("doesn't exist") )
From: Word of Mouth Productions on 30 Sep 2005 16:45 Somehow I new you'd have the answer for 2004, Sean -- Craig Wollman Word of Mouth Productions phone 212 928 9581 fax 212 928 9582 159-00 Riverside Drive West #5H-70 NY, NY 10032 www.wordofmouthpros.com "Sean Wilson" <webforumsuser(a)macromedia.com> wrote in message news:dhk4sc$duv$1(a)forums.macromedia.com... >> How do I check if a member of a certain name exists? Using lingo of >> course. > > If you're using MX 2004: > put voidP( member("doesn't exist") )
|
Next
|
Last
Pages: 1 2 Prev: Flash/Director Integrated Application Next: Creating an interactive bedroom design |