Solved

Validation in Macromedia Director

Posted on 1998-01-23
2
309 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
A lot of new and distinct gadgets are making their appearance every other day. The latest gadget that has wooed the attention of all gadget lovers and non gadget lovers alike is the Smartwatch. This tiny gadget is capable of offering live access to …
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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now