You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Harbs <ga...@gmail.com> on 2013/02/21 21:20:41 UTC

Bogdan Components [Was: Getting source working in Flash Builder]

Some questions on the components:

1) ProgressBar: It does not seem to have feature parity with the mx version. There does not seem to be a way to specify an indeterminate progress bar. There's no mode property. Am I missing something? There's also no label property. Is the text set by specifying the percentDisplay.text? Will that get overwritten as the progressbar updates?

On Feb 21, 2013, at 2:50 PM, Bogdan DINU wrote:

> Indeed, it's not in the spark namespace yet. Try using direct namespaces.
> 
> On Thu, Feb 21, 2013 at 2:46 PM, Nicholas Kwiatkowski <ni...@spoon.as>wrote:
> 
>> From what I understand, the experimental swc had a different namespace...
>> I don't think it was in spark yet....
>> 
>> -Nick
>> 
>> On Thu, Feb 21, 2013 at 3:31 AM, Harbs <ha...@gmail.com> wrote:
>> 
>>> Yes. I'm talking about experimental.
>>> 
>>> I linked to the 4.9 release and s:Alert and s:ColorPicker were not
>>> available. I'm using the en_US locale. Not sure what to say here…
>>> 
>>> This is all clear as mud to me. I'll play around a bit trying to wrap my
>>> head around this. I'll probably come back with more questions later…
>>> 
>>> On Feb 21, 2013, at 2:45 AM, Frédéric THOMAS wrote:
>>> 
>>>> Harbs,
>>>> 
>>>>> 2) I need the Alert and ColorPicker components that's not in the 4.9
>>> release.
>>>> 
>>>> If you're talking about the ones in the experimental.swc, there are in
>>> the 4.9 but you can use them with en_US only, I re-worked them in the
>>> develop branch, so if you want to use them and even to have an SDK you
>> can
>>> use with IntelliJ, constantly updated, chekout the develop branch, do a
>>> first build, a release, use the makeApacheFlexForFlashBuilder on the
>>> released develop branch itself, not the resulting binaries.
>>>> 
>>>> Like that you can set this fresh SDK as the SDK you use if you want to
>>> make change in the SDK, you'll have only to run the ant target
>>> corresponding to the lib you modified (and the other.locales too) and
>>> you'll be able to test it right away on your sample projects.
>>>> 
>>>> Ask me if I haven't been completly clear.
>>>> 
>>>> -Fred
>>>> 
>>>> -----Message d'origine----- From: Justin Mclean
>>>> Sent: Thursday, February 21, 2013 1:27 AM
>>>> To: dev@flex.apache.org
>>>> Subject: Re: Getting source working in Flash Builder
>>>> 
>>>> Hi,
>>>> 
>>>>> I did use the installer.
>>>> Which would of given you last release 4.9.
>>>> 
>>>>> The issue is that I'm trying to use the source rather than the
>>> distribution for two reasons:
>>>>> 1) I wanted to look into the TLF bugs that were reported.
>>>>> 2) I need the Alert and ColorPicker components that's not in the 4.9
>>> release.
>>>> 
>>>> Make a release build from the source with ant release, copy and
>>> unzip/untar the release and use the script in the IDE directory to make
>> an
>>> SDK usable for Flash Builder or any other IDE.
>>>> 
>>>>> Does the source need to be compiled before it can work?
>>>> Um yes. The source gets compiled in swcs (in the frameworks/lib
>>> directory) that your Flex application uses.
>>>> 
>>>>> I wonder if now would be a good time to try InteliJ IDEA...
>>>> You would still have the package the SDK up, your issue is not unique
>> to
>>> just Flash Builder.
>>>> 
>>>> Hope that helps.
>>>> 
>>>> Justin
>>> 
>>> 
>> 
> 
> 
> 
> -- 
> http://www.badu.ro


Re: Bogdan Components [Was: Getting source working in Flash Builder]

Posted by Harbs <ga...@gmail.com>.
On further digging into Alert, I have a question:

The buttons are created in a createButtons function in Alert.as instead of being part of AlertSkin. I see you allow for setting a button style for styling of the buttons, but that presupposes that all the buttons look the same. If you want to skin the buttons so the Okay button has a check icon and the Cancel button has an x icon (for example), there's no straight-forward way of doing that. Furthermore, createButtons() is a private function instead of protected, so subclassing Alert.as will not help either.

Should the button created be moved to the skin? Or maybe there should be four different styles that can be set for the buttons instead of one and leave everything else as is? Does anyone share my concern here? (I'd be happy to make modifications if others agree with me.)

Harbs

On Feb 22, 2013, at 12:28 PM, Bogdan DINU wrote:

> Hi,
> 
> 1) indeterminate ProgressBar can be made by customizing the skin. You can
> also customize the labelFunction to display whatever you need.
> 2) ColorPicker doesn't allow you to set dataProvider - indeed you can
> extend it to suit your needs (overriding childrenCreated() will allow you
> to set any dataProvider you need).
> 3) Alert has a skin : note that if in your skin messageDisplay is not
> defined, message will not show.
> 
> All the best,
> Bogdan Dinu
> 
> 
> On Fri, Feb 22, 2013 at 10:18 AM, Gavriel Harbater <ga...@gmail.com>wrote:
> 
>> 2) ColorPicker: It does not seem to allow setting the dataProvider or
>> handle anything beyond an Array of color values. Arrays of Objects for
>> named colors is pretty important. If this in fact missing, I guess I'll
>> work at expanding the component…
>> 
>> 3) Alert: Does not show the error message. It looks to me that the problem
>> is here that the messageDisplay is null.
>>            if (messageDisplay) {
>>                messageDisplay.text = _message;
>>            }
>> 
>> On Feb 21, 2013, at 10:20 PM, Harbs wrote:
>> 
>>> Some questions on the components:
>>> 
>>> 1) ProgressBar: It does not seem to have feature parity with the mx
>> version. There does not seem to be a way to specify an indeterminate
>> progress bar. There's no mode property. Am I missing something? There's
>> also no label property. Is the text set by specifying the
>> percentDisplay.text? Will that get overwritten as the progressbar updates?
>> 
>> 
> 
> 
> -- 
> http://www.badu.ro


Re: Bogdan Components [Was: Getting source working in Flash Builder]

Posted by Harbs <ga...@gmail.com>.
On Feb 22, 2013, at 12:28 PM, Bogdan DINU wrote:

> Hi,
> 
> 1) indeterminate ProgressBar can be made by customizing the skin. You can
> also customize the labelFunction to display whatever you need.

Hmm. But there's no easy way to change the mode. I think I'll modify the class and create a JIRA ticket when I'm done. If anyone like my modifications they can pull it into the main component. I think a convenience label setter would be nice.

> 2) ColorPicker doesn't allow you to set dataProvider - indeed you can
> extend it to suit your needs (overriding childrenCreated() will allow you
> to set any dataProvider you need).

Okay. Ditto on the above.

> 3) Alert has a skin : note that if in your skin messageDisplay is not
> defined, message will not show.

Further investigation indicates that the problem was with my setup. The styles did not assign the AlertSkin. It was using PanelSkin…

> All the best,
> Bogdan Dinu
> 
> 
> On Fri, Feb 22, 2013 at 10:18 AM, Gavriel Harbater <ga...@gmail.com>wrote:
> 
>> 2) ColorPicker: It does not seem to allow setting the dataProvider or
>> handle anything beyond an Array of color values. Arrays of Objects for
>> named colors is pretty important. If this in fact missing, I guess I'll
>> work at expanding the component…
>> 
>> 3) Alert: Does not show the error message. It looks to me that the problem
>> is here that the messageDisplay is null.
>>            if (messageDisplay) {
>>                messageDisplay.text = _message;
>>            }
>> 
>> On Feb 21, 2013, at 10:20 PM, Harbs wrote:
>> 
>>> Some questions on the components:
>>> 
>>> 1) ProgressBar: It does not seem to have feature parity with the mx
>> version. There does not seem to be a way to specify an indeterminate
>> progress bar. There's no mode property. Am I missing something? There's
>> also no label property. Is the text set by specifying the
>> percentDisplay.text? Will that get overwritten as the progressbar updates?
>> 
>> 
> 
> 
> -- 
> http://www.badu.ro


Re: Bogdan Components [Was: Getting source working in Flash Builder]

Posted by Bogdan DINU <fl...@gmail.com>.
Hi,

1) indeterminate ProgressBar can be made by customizing the skin. You can
also customize the labelFunction to display whatever you need.
2) ColorPicker doesn't allow you to set dataProvider - indeed you can
extend it to suit your needs (overriding childrenCreated() will allow you
to set any dataProvider you need).
3) Alert has a skin : note that if in your skin messageDisplay is not
defined, message will not show.

All the best,
Bogdan Dinu


On Fri, Feb 22, 2013 at 10:18 AM, Gavriel Harbater <ga...@gmail.com>wrote:

> 2) ColorPicker: It does not seem to allow setting the dataProvider or
> handle anything beyond an Array of color values. Arrays of Objects for
> named colors is pretty important. If this in fact missing, I guess I'll
> work at expanding the component…
>
> 3) Alert: Does not show the error message. It looks to me that the problem
> is here that the messageDisplay is null.
>             if (messageDisplay) {
>                 messageDisplay.text = _message;
>             }
>
> On Feb 21, 2013, at 10:20 PM, Harbs wrote:
>
> > Some questions on the components:
> >
> > 1) ProgressBar: It does not seem to have feature parity with the mx
> version. There does not seem to be a way to specify an indeterminate
> progress bar. There's no mode property. Am I missing something? There's
> also no label property. Is the text set by specifying the
> percentDisplay.text? Will that get overwritten as the progressbar updates?
>
>


-- 
http://www.badu.ro

Re: Bogdan Components [Was: Getting source working in Flash Builder]

Posted by Gavriel Harbater <ga...@gmail.com>.
2) ColorPicker: It does not seem to allow setting the dataProvider or handle anything beyond an Array of color values. Arrays of Objects for named colors is pretty important. If this in fact missing, I guess I'll work at expanding the component…

3) Alert: Does not show the error message. It looks to me that the problem is here that the messageDisplay is null.
            if (messageDisplay) {
                messageDisplay.text = _message;
            }

On Feb 21, 2013, at 10:20 PM, Harbs wrote:

> Some questions on the components:
> 
> 1) ProgressBar: It does not seem to have feature parity with the mx version. There does not seem to be a way to specify an indeterminate progress bar. There's no mode property. Am I missing something? There's also no label property. Is the text set by specifying the percentDisplay.text? Will that get overwritten as the progressbar updates?