AMFPHP

Out of context: Reply #8

  • Started
  • Last post
  • 17 Responses
  • DigitalMan0

    Hi,
    No, not all MySQL data types are not supported as to my experience.
    Everything that comes back from MySQL is a string unless you cast it.
    PHP does this automatically when you need to perform functions on a
    variable (such as math functions, etc). But not when you pass MySQL directly.

    To work around this I have been passing the Data to Flash, then where I know the value is to be used as a Number I wrap it with Number(): i.e.
    var xPos:Number = Number(amfPhpData_x);

View thread