I'm not at my computer to check, but I think Chart Example uses the SolidColor and SolidColorStroke in MXML. Is that what you are trying to do?
Peter > On Jul 24, 2016, at 7:43 PM, Alex Harui <aha...@adobe.com> wrote: > > Looks like there were a couple of problems: > > > 1. ViewDataBinding was commented out of SkinsView.mxml. > 2. DeferredBindingsHandler wasn't doing the right thing. > > I pushed changes for #2 to the develop branch. Sync them over to svg-rename > and it should work. > > -Alex > > From: Harbs <harbs.li...@gmail.com<mailto:harbs.li...@gmail.com>> > Date: Sunday, July 24, 2016 at 12:01 PM > To: Alex Harui <aha...@adobe.com<mailto:aha...@adobe.com>> > Cc: "dev@flex.apache.org<mailto:dev@flex.apache.org>" > <dev@flex.apache.org<mailto:dev@flex.apache.org>> > Subject: Re: [FlexJS] Trick to adding properties? > > Take a look at FlexJSTest_SVG. > > I just committed a change to illustrate the point. (to the svg-rename branch) > > On Jul 24, 2016, at 9:35 PM, Alex Harui > <aha...@adobe.com<mailto:aha...@adobe.com>> wrote: > > I'd have to debug a test case. > > Sent from my LG G3, an AT&T 4G LTE smartphone > > ------ Original message------ > From: Harbs > Date: Sun, Jul 24, 2016 10:41 AM > To: dev; > Subject:Re: [FlexJS] Trick to adding properties? > > It looks like this discussion fell off of the dev list. > >> On Jul 24, 2016, at 8:33 PM, Harbs >> <harbs.li...@gmail.com<mailto:harbs.li...@gmail.com>> wrote: >> >> Array >> >>> On Jul 24, 2016, at 8:08 PM, Alex Harui >>> <aha...@adobe.com<mailto:aha...@adobe.com>> wrote: >>> >>> What data type is linedash? >>> >>> Sent from my LG G3, an AT&T 4G LTE smartphone >>> >>> ------ Original message------ >>> From: Harbs >>> Date: Sun, Jul 24, 2016 8:40 AM >>> To: Alex Harui; >>> Subject:Re: [FlexJS] Trick to adding properties? >>> >>> Well, sort of. >>> >>> Simple assignments seem to work, but an array assignment is not working for >>> me. >>> >>> Here’s what I’m doing in the MXML: >>> <js:Rect id="fill_over" width="100" height="30" includeIn="over"> >>> <js:stroke> >>> <js:SolidColorStroke alpha="1.0" color="#000000" lineDash="{dashArray}" >>> weight="5" lineJoin="round"/> >>> </js:stroke> >>> <js:fill> >>> <js:SolidColor color="#48C9B0" alpha="1.0" /> >>> </js:fill> >>> </js:Rect> >>> And I’m assigning dashArray as a private variable in the main script block: >>> [Bindable]private var dashArray:Array = [2,4,6,8]; >>> >>> The lineJoin is working, but the array never gets assigned. >>> >>> I’m also not sure how states work. It looks like the state object is >>> undefined when there is another state active. >>> >>> This does not work: >>> private function >>> handleMouseOver(event:org.apache.flex.events.MouseEvent):void >>> { >>> fill_over.stroke.lineDash = dashArray; >>> currentState = "over"; >>> } >>> But this (sort of) does: >>> private function >>> handleMouseOver(event:org.apache.flex.events.MouseEvent):void >>> { >>> currentState = "over"; >>> fill_over.stroke.lineDash = dashArray; >>> } >>> The first hover does not set the lineDash (makes sense considering it’s >>> being set after the state is changed), but subsequent hovers look correct. >>> >>> What’s the right way of going about this? >>> >>>> On Jul 24, 2016, at 5:58 PM, Harbs >>>> <harbs.li...@gmail.com<mailto:harbs.li...@gmail.com>> wrote: >>>> >>>> Never mind. PEBCAK… >>>> >>>>> On Jul 24, 2016, at 5:52 PM, Alex Harui >>>>> <aha...@adobe.com<mailto:aha...@adobe.com>> wrote: >>>>> >>>>> Compile into a swc. Put swc in correct folder. Restart flash builder? >>>>> >>>>> Sent from my LG G3, an AT&T 4G LTE smartphone >>>>> >>>>> ------ Original message------ >>>>> From: Harbs >>>>> Date: Sun, Jul 24, 2016 7:49 AM >>>>> To: dev; >>>>> Subject:[FlexJS] Trick to adding properties? >>>>> >>>>> I’m trying to add properties to SolidColorStroke, and I’d like the >>>>> properties to be assignable in MXML. It looks to me like I did everything >>>>> correctly, but when I try to assign the properties in MXML, I get a "This >>>>> attribute is unexpected. It will be ignored.” error. >>>>> >>>>> Am I missing a step? Do I need to change something other than the class >>>>> file? >>>>> >>>>> Harbs >