Maybe metadata is being removed.

Sent from my LG G3, an AT&T 4G LTE smartphone

------ Original message------
From: Harbs
Date: Sun, Jul 24, 2016 11:02 AM
To: dev;
Subject:Re: [FlexJS] Trick to adding properties?

Related question:

Does the [Inspectable] meta tag work for enumerating acceptable values in 
FlexJS? It looks like it’s not used anywhere.

On Jul 24, 2016, at 8:41 PM, Harbs <harbs.li...@gmail.com> wrote:

> It looks like this discussion fell off of the dev list.
>
> On Jul 24, 2016, at 8:33 PM, Harbs <harbs.li...@gmail.com> wrote:
>
>> Array
>>
>> On Jul 24, 2016, at 8:08 PM, Alex Harui <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> wrote:
>>>
>>>> Never mind. PEBCAK…
>>>>
>>>> On Jul 24, 2016, at 5:52 PM, Alex Harui <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
>>>>
>>>
>>
>

Reply via email to