Solved

Validation in Macromedia Director

Posted on 1998-01-23
2
311 Views
Last Modified: 2008-03-06
1.How can I validate fields, check that they are numbers for example?

And

2.How can make drop down menus?
0
Comment
Question by:messenger
2 Comments
 

Accepted Solution

by:
pmeier earned 150 total points
ID: 1540767
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
 

Author Comment

by:messenger
ID: 1540768
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Package creation on OS X uses the PackageMaker utility installed as part of the XCode development suite ( on the OSX Client CD).  Packages can be installed as part of the machine build process, or later using Apple Remote Desktop. They are generally…
Steve Jobs once said that Blu-ray is "a bag of hurt". As Macs users well known, things haven’t settled down (at least not from Apple’s perspective). Several years after that comment, Mac OS X still doesn’t support Blu-ray playback, nor has any Mac s…
Users will learn how resize a batch of photos from a single command in Photoshop via Photoshop's Image Processor. Open up an Image you'd like to resize in Adobe Photoshop: Adjust the image size according to your preferences. Image > Adjustments > …
Users will learn how to set proper sequence settings, scale images, paste attributes, add transitions, fades, and music. Open up Final Cut Pro 7 and Create a new Project: Set the Sequence Settings. a) Click File > Easy Setup > Format > Apple ProRe…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question