samedi 25 mars 2017

Actionscript 3 setStyle is not a function

I am trying to style a Flex 4 GridItem using actionscript, I have tried the following:

    height="878" width="1920"
    xmlns:s="library://" xmlns:local="*" creationComplete="addStyles()">


            public var selectedLot:String = "";

            private function addStyles():void
                testBorder.setStyle("borderThickness", "3");

but I get the following error:

setStyle is not a function.

Am I missing something?

The GridItem is inside a repeater.

Aucun commentaire:

Enregistrer un commentaire