• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 317
  • Last Modified:

Validation in Macromedia Director

1.How can I validate fields, check that they are numbers for example?

And

2.How can make drop down menus?
0
messenger
Asked:
messenger
1 Solution
 
pmeierCommented:
1.Try the following code :

 put value(field "rich") into u
 if not voidp(u) and not listp(u) then put "It is a number"

 You might want to consider using integerp(u) which determines whether u is an integer returning a boolean variable.
 Alternatively you could evaluate the ASCII code for each character using chartonum(char 1 of u)

2.System dropdown menus in Director can be formed using the Installmenu 1 command, where field 1 is laid out along the following lines.

menu : file
save | saveme
open | openme


the first section is the text displayed in the menu, the second the handler or command to be executed when selected.
0
 
messengerAuthor Commented:
Cheers Mr Meier. Appreciate it.  I've actually already worked (1) using ASCII but can I make a field act as a drop down menu.
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now