PaddingTop excluded by 'MX.Containers"



  • [attachment=20]Hey guys….

    Having a problem with exporting from Flash Builder 4.
    Getting the following error twice:

    The style 'paddingTop' is excluded by type 'mx.containers.Canvas.'

    What can I do to fix this? Screenshot below.

    Thanks,
    David

    [attachment=20]


  • administrators

    The paddingX style is not available for Canvas. Use marginX style for the children instead.
    Ex: paddingTop="5" set on Canvas, delete it and set marginTop="5" on the child you want to have the padding applied to.



  • @'ChatRouletteClone':

    The paddingX style is not available for Canvas. Use marginX style for the children instead.
    Ex: paddingTop="5" set on Canvas, delete it and set marginTop="5" on the child you want to have the padding applied to.

    I had the same problems and i have corrected them by deleting paddingTop="0" because changing it to marginTop="0" only created more errors but when i delete paddingtop="0" i get the following error:

    Description Resource Path Location Type
    1151: A conflict exists with definition _typeRef1 in namespace internal.
    JabberCam_v.mxml
    /JabberCam_4.3.swf.flex/src
    line 4036
    Flex Problem

    This is the complete line:
    internal var _typeRef1:mx.effects.Fade;


Log in to reply