tween action support individual radius values for each edge?

  • Hi,

    the tween action itself can basically only tween numbers, not texts that contains several numbers, but you could use a special action that 'parses' the roundedge parameter into separate values and then tweens them and rebuilds the roundedge parameter each time using the update callback of the tween action.

    Here helper actions for this case (they work only when using all 4 roundedge parameters):

    and here an usage example (could be used for the textfield roundedge or container bgroundedge setting):

    Code
    bgroundedge="50 50 50 50"
    onover="tween_roundedge(bgroundedge, 0 200 0 200, 0.5, linear);"
    onout="tween_roundedge(bgroundedge, 50 50 50 50, 0.5, linear);"

    Best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!