colouraddition

this is a compilation of things i have figured out at work recently.


PROBLEM:
flash dynamic text field receiving data from xml field returns “undefined” when xml field is left intentionally blank

SOLUTION:
place arbitrary obscure symbol (like ∞) in but do not embed that font symbol into the flash file


PROBLEM:
flash gradient object in graphic disappears or rather the point of origin for gradient shifts when mc (within which graphic group resides) is resized smaller

SOLUTION:
put gradient object into a movieclip and apply corresponding coloured gradient glow filter (inner) to the mc so that gradient is forced onto gradient object irregardless of how the mc (within which gradient object resides) is resized


PROBLEM:
you sliced/substringed (slice/substr) the last digit off a variable and then stuck it together with another string but now your beautiful number won’t parse.

SOLUTION:
multiply the string by 1 to make it boolean (*1)