Knowledge Base
cancel
Showing results for 
Search instead for 
Did you mean: 

When writing script programs, what is the difference between a Numeric Input, Numeric Output and Numeric Public.

Issue

What is the difference between a Numeric Input, Numeric Output and Numeric Public within a script program.

Is using a Numeric Public a less efficient choice (as opposed to using a Numeric Input or Numeric Output) that will generate negative overhead in the AS?

Environment

  • AS
  • Script
  • Numeric
  • Input
  • Output
  • Public

Cause

Want to determine best practices when choosing numeric types during script programming.

Resolution

  • Numeric Input is a read only numeric (from the point of view of the script program) that accepts a binding.
  • Numeric Output is a write only numeric (from the point of view of the script program) that accepts a binding.
  • Numeric Public is both read and write (from the point of view of the script program).  Numeric Public also accepts a binding.
    (A Numeric Public can be bound to both a Graphic and a Value Object to allow overriding of values from a Graphic, Click Here for an example)

When choosing the numeric type in a script program there is no overhead cost difference between using one of these numeric types vs the others.

 

Also check out the Script Programming - Writing the Script Program Quick-Help video on the Exchange.

Tags (1)
Labels (1)
Version history
Revision #:
1 of 1
Last update:
‎2018-09-10 11:36 AM
Updated by: