FEEDBACK
...go ahead and read the manual, we won't tell anyone.

Help Topics Matching "(tags:function)"

charToNum

The charToNum function returns and unsigned integer representing the ASCII equivalent value of the character passed to it.

clickLoc

The clickLoc function returns the point on the screen where the user most recently clicked before the handler started executing. The location is determined at the time the message is first sent. The mouse could be elsewhere by the time the message is received. The location point is returned as two integers separated by a comma, representing horizontal and vertical pixel offsets from the upper-left corner of the tile.

length

NOTE: This function is only partially supported at this time. The length function returns the number of characters (including spaces, tabs, and return characters) in the text string passed to it.

random

The random function returns a random integer between 1 and the integer derived from factor or expression, inclusive. Random supports integers up to (2^31)-2.

result

The result function returns an explanatory text string if an immediately preceding close file, convert, create stack, find, go, import paint, export paint, open file, picture, read, or save command was unsuccessful. The result function returns empty of the command executed successfully. The value of the result can also be set by a return statement in a message handler or by an external command. The value of the result is reset by execution of another command and at the end of the handler.

target

The target function returns a string indicating the original recipient of the message. For example, the target function enables you to tell, in a mouseUp handler in a background, whether:
  • the mouse was clicked over a field or button (which either would have had no mouseUp handler or would have passed the message on explicitly); the target would return the button or field ID number.
  • the mouse was clicked outside the area of all button and fields; the target would return the tile ID number.
  • the message was sent directly to the background with the send command; the target would return the background ID number.

You can use the target in place of an object descriptor to determine any of the target's properties: get the short name of the target.

params

The params function returns the entire parameter list, including the message name, passed to the currently executing handler.

atan

The atan function returns the trigonometric arc tangent (inverse tangent) of the number passed to it; that is, the angle whose tangent is equal to the given value. The result is expressed in radians. Radians can be converted to degrees by multiplying by 180 and dividing the result by the value of the constant pi.

average

The average function returns the average of the numbers passed to it.

compound

The compound function is used to compute the present or future value of a compound interest-bearing account. Rate represents the interest rate per period, and periods is the number of periods over which the value is calculated. The formula for compound is: compound(rate,periods) = (1 + rate)^periods.
Listing 1 to 10 of 67 Topics | Go to Page 1 2 3 4 5 6 ...

Latest Blog PostsView All >

Video Demos Of Some Great New Features!

posted on November 09, 2009 by Jake Marsh

With all the hustle and bustle of developing and releasing these latest awesome features, it totally...

TileStack.com Release Delicass v0.8 Has Landed!

posted on November 04, 2009 by Ted

After two months of good development, I'm pleased to announce TileStack version 0.8 "Delicass"...

Made by the genuine people personalities of    Copyright © 2008-2009 - All Rights Reserved