[flexcoders] Re: Converting RGB to Hex color

2009-09-29 Thread reflexactions
Well depends on what you call 'RGB Format'.

If you mean you have 3 seperate string values between 0-255, then no it doesn't 
do that, but that is a really trivial one line function to write (convert to 
int and shift and add) and I don't find it strange at all that flex doesn't 
have that built in as I think it would be more normal to hold such values 
externally as hex strings rather than RGB strings.

On the other hand if you mean you have a 24Bit number then that doesnt need any 
real conversion does it.

FYI normally you declare color variables as uint in flex, you can also use 
Number but don't use int, as althougth it can theoretically hold a 24Bit value 
flex gets upset with the signed bit.

--- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
>
> Yeah, that's the one I was thinking of; not RGB to hex though.  I claim 
> temporary brain death. :)
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "reflexactions"  wrote:
> >
> > 
> > StyleManager.getColorName(...)
> > 
> > Does what you ask for below.
> > 
> > --- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
> > >
> > > Never mind, I'm just way off-base on this one.
> > > 
> > > -TH
> > > 
> > > --- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
> > > >
> > > > Isn't there a utility that converts CSS strings like "#ff" to 
> > > > 0xff?  Or "white" to 0xf?
> > > > 
> > > > -TH
> > > > 
> > > > --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> > > > >
> > > > > 
> > > > > I have to admit I'm confused by the question.  What is the type of 
> > > > > the variable holding the RGB value?  If it is a uint, the 
> > > > > toString(16) should be the hex representation.
> > > > > 
> > > > > 
> > > > > Alex Harui
> > > > > Flex SDK Developer
> > > > > Adobe Systems Inc.
> > > > > Blog: http://blogs.adobe.com/aharui
> > > > > 
> > > > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
> > > > > On Behalf Of Chet Haase
> > > > > Sent: Tuesday, September 29, 2009 4:35 PM
> > > > > To: flexcoders@yahoogroups.com
> > > > > Subject: RE: [flexcoders] Re: Converting RGB to Hex color
> > > > > 
> > > > > 
> > > > > 
> > > > > Nope: HSBColor is a utility class for dealing with colors represented 
> > > > > in the HSB (Hue, Saturation, and Balance) color space. It will help 
> > > > > you convert between RGB and HSB colors, but will not help you with 
> > > > > RGB to hex string conversions.
> > > > > 
> > > > > Chet.
> > > > > 
> > > > > 
> > > > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
> > > > > On Behalf Of turbo_vb
> > > > > Sent: Tuesday, September 29, 2009 1:35 PM
> > > > > To: flexcoders@yahoogroups.com
> > > > > Subject: [flexcoders] Re: Converting RGB to Hex color
> > > > > 
> > > > > 
> > > > > 
> > > > > There's a utility in the sdk to convert rgb string to uint. For Flex4 
> > > > > it's mx.utils.HSBColor.
> > > > > 
> > > > > -TH
> > > > > 
> > > > > --- In 
> > > > > flexcoders@yahoogroups.com, Greg 
> > > > > Hess  wrote:
> > > > > >
> > > > > > Hi All,
> > > > > >
> > > > > > I am trying to externalize our effect styles to css. However, when I
> > > > > > read in the color values getStyle() they come in RGB format and
> > > > > > GlowFilter needs Hex. I have found lots of posts of people writing
> > > > > > rgbToHex conversion function but I find it strange that this is not
> > > > > > available in the Flex SDK.
> > > > > >
> > > > > > What is the best way to do such conversions.
> > > > > >
> > > > > > Any help much appreciated,
> > > > > >
> > > > > > Greg
> > > > > >
> > > > >
> > > >
> > >
> >
>




[flexcoders] Re: Converting RGB to Hex color

2009-09-29 Thread turbo_vb
Yeah, that's the one I was thinking of; not RGB to hex though.  I claim 
temporary brain death. :)

-TH

--- In flexcoders@yahoogroups.com, "reflexactions"  wrote:
>
> 
> StyleManager.getColorName(...)
> 
> Does what you ask for below.
> 
> --- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
> >
> > Never mind, I'm just way off-base on this one.
> > 
> > -TH
> > 
> > --- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
> > >
> > > Isn't there a utility that converts CSS strings like "#ff" to 
> > > 0xff?  Or "white" to 0xf?
> > > 
> > > -TH
> > > 
> > > --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> > > >
> > > > 
> > > > I have to admit I'm confused by the question.  What is the type of the 
> > > > variable holding the RGB value?  If it is a uint, the toString(16) 
> > > > should be the hex representation.
> > > > 
> > > > 
> > > > Alex Harui
> > > > Flex SDK Developer
> > > > Adobe Systems Inc.
> > > > Blog: http://blogs.adobe.com/aharui
> > > > 
> > > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> > > > Behalf Of Chet Haase
> > > > Sent: Tuesday, September 29, 2009 4:35 PM
> > > > To: flexcoders@yahoogroups.com
> > > > Subject: RE: [flexcoders] Re: Converting RGB to Hex color
> > > > 
> > > > 
> > > > 
> > > > Nope: HSBColor is a utility class for dealing with colors represented 
> > > > in the HSB (Hue, Saturation, and Balance) color space. It will help you 
> > > > convert between RGB and HSB colors, but will not help you with RGB to 
> > > > hex string conversions.
> > > > 
> > > > Chet.
> > > > 
> > > > 
> > > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> > > > Behalf Of turbo_vb
> > > > Sent: Tuesday, September 29, 2009 1:35 PM
> > > > To: flexcoders@yahoogroups.com
> > > > Subject: [flexcoders] Re: Converting RGB to Hex color
> > > > 
> > > > 
> > > > 
> > > > There's a utility in the sdk to convert rgb string to uint. For Flex4 
> > > > it's mx.utils.HSBColor.
> > > > 
> > > > -TH
> > > > 
> > > > --- In flexcoders@yahoogroups.com, 
> > > > Greg Hess  wrote:
> > > > >
> > > > > Hi All,
> > > > >
> > > > > I am trying to externalize our effect styles to css. However, when I
> > > > > read in the color values getStyle() they come in RGB format and
> > > > > GlowFilter needs Hex. I have found lots of posts of people writing
> > > > > rgbToHex conversion function but I find it strange that this is not
> > > > > available in the Flex SDK.
> > > > >
> > > > > What is the best way to do such conversions.
> > > > >
> > > > > Any help much appreciated,
> > > > >
> > > > > Greg
> > > > >
> > > >
> > >
> >
>




Re: [flexcoders] PDF in AIR application

2009-09-29 Thread Krunal Panchal
Hi,

Try with AlivePDF. I think you will get your answer.
 
Regards,



Krunal Panchal  





From: markgoldin_2000 
To: flexcoders@yahoogroups.com
Sent: Friday, 25 September, 2009 20:40:27
Subject: [flexcoders] PDF in AIR application

  
I have a few questions about viewing/printing PDF content from an AIR 
application.
1. Can Adobe PDF Reader be replaced with another PDF Viewer?
2. If not, what kind of Reader automation is available while developing an AIR 
application? For example, can I intercept a click on the Print button? Or can I 
have pagination when a PDF file is loaded?
3. Any other alternatives to show/print digital content created on the server 
to use in Flex/AIR applications?

Thanks in advance.





  

[flexcoders] Re: Converting RGB to Hex color

2009-09-29 Thread reflexactions

StyleManager.getColorName(...)

Does what you ask for below.

--- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
>
> Never mind, I'm just way off-base on this one.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
> >
> > Isn't there a utility that converts CSS strings like "#ff" to 0xff? 
> >  Or "white" to 0xf?
> > 
> > -TH
> > 
> > --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> > >
> > > 
> > > I have to admit I'm confused by the question.  What is the type of the 
> > > variable holding the RGB value?  If it is a uint, the toString(16) should 
> > > be the hex representation.
> > > 
> > > 
> > > Alex Harui
> > > Flex SDK Developer
> > > Adobe Systems Inc.
> > > Blog: http://blogs.adobe.com/aharui
> > > 
> > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> > > Behalf Of Chet Haase
> > > Sent: Tuesday, September 29, 2009 4:35 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: RE: [flexcoders] Re: Converting RGB to Hex color
> > > 
> > > 
> > > 
> > > Nope: HSBColor is a utility class for dealing with colors represented in 
> > > the HSB (Hue, Saturation, and Balance) color space. It will help you 
> > > convert between RGB and HSB colors, but will not help you with RGB to hex 
> > > string conversions.
> > > 
> > > Chet.
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> > > Behalf Of turbo_vb
> > > Sent: Tuesday, September 29, 2009 1:35 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Re: Converting RGB to Hex color
> > > 
> > > 
> > > 
> > > There's a utility in the sdk to convert rgb string to uint. For Flex4 
> > > it's mx.utils.HSBColor.
> > > 
> > > -TH
> > > 
> > > --- In flexcoders@yahoogroups.com, 
> > > Greg Hess  wrote:
> > > >
> > > > Hi All,
> > > >
> > > > I am trying to externalize our effect styles to css. However, when I
> > > > read in the color values getStyle() they come in RGB format and
> > > > GlowFilter needs Hex. I have found lots of posts of people writing
> > > > rgbToHex conversion function but I find it strange that this is not
> > > > available in the Flex SDK.
> > > >
> > > > What is the best way to do such conversions.
> > > >
> > > > Any help much appreciated,
> > > >
> > > > Greg
> > > >
> > >
> >
>




Re: [flexcoders] TitleWindow Popup Question(s)

2009-09-29 Thread Dave Cates
Hmmm...why not dispatch an event from the title window back to the parent?

Then in the parent launch whatever function you need to once it captures the
event from the titlewindow.

That way you also retain the controller/view relationship between them ;)


From: Angelo Anolin 
Reply-To: 
Date: Tue, 29 Sep 2009 17:01:01 -0700 (PDT)
To: 
Subject: Re: [flexcoders] TitleWindow Popup Question(s)

 
 
 

Hi Dave,
 
This is what I was doing previously.  I agree with you that the titlewindow
popup should have quite a minimal set of codes in it.

What puzzles me though is that I am unable to make a web service call from
within the Popup window itself.  Is it not possible for the popup window to
make a backend (.NET) web service call?
 
Thanks.


From: Dave Cates 
To: flexcoders@yahoogroups.com
Sent: Tuesday, 29 September, 2009 16:00:10
Subject: Re: [flexcoders] TitleWindow Popup Question(s)

  
Hi,

I¹d reference a public set function within the title window itself. Works
good for us since we use an MVC model and so don¹t really want too much code
within the TitleWindow view itself.

Regarding the title itself. I do this by assigning a Bindable variable to
the title in the main header of the title window.

Then I can update the title by simply assigning values to that variable
whenever I like.

Hope that helps.

Dave.



From: Angelo Anolin 
Reply-To: 
Date: Tue, 29 Sep 2009 00:55:35 -0700 (PDT)
To: 
Subject: [flexcoders] TitleWindow Popup Question(s)

 
 
 

Hi FlexCoders,
 
Just a little TitleWindow popup question.
 
I want a function to be executed everytime my popup title window component
is displayed.  How do I achieve this?
 
I tried in the title window using the initialize property like:
http://www.adobe. com/2006/ mxml
 " initialize="RunEveryPop( );" >
 
but my function RunEveryPop only executes the first time the popup is
displayed. Subsequent popups would not trigger the said function.
 
I know I can declare a public function in the title window and simply call
this function from the calling main application, but I am wondering if this
is a good or recommended way in achieving this?
 
Also, another question...
 
How do I reference the title of the TitleWindow from within itself? Like for
example:
 
private function getTitleWindowTitle () :void
{
 Alert.show(Titlewin dow.Title) ;
 // I Should be able to display the Title of the title window in an alert
message.
}
 
Advice and inputs would be highly appreciated.
 
Thanks.,

 
  





 
  


> 



Re: [flexcoders] TitleWindow Popup Question(s)

2009-09-29 Thread Angelo Anolin
Hi Dave,

This is what I was doing previously.  I agree with you that the titlewindow 
popup should have quite a minimal set of codes in it.

What puzzles me though is that I am unable to make a web service call from 
within the Popup window itself.  Is it not possible for the popup window to 
make a backend (.NET) web service call?

Thanks.





From: Dave Cates 
To: flexcoders@yahoogroups.com
Sent: Tuesday, 29 September, 2009 16:00:10
Subject: Re: [flexcoders] TitleWindow Popup Question(s)

  
Hi,

I’d reference a public set function within the title window itself. Works good 
for us since we use an MVC model and so don’t really want too much code within 
the TitleWindow view itself.

Regarding the title itself. I do this by assigning a Bindable variable to the 
title in the main header of the title window.

Then I can update the title by simply assigning values to that variable 
whenever I like.

Hope that helps.

Dave.


Hi FlexCoders,
 
Just a little TitleWindow popup question.
 
I want a function to be executed everytime my popup title window component is 
displayed.  How do I achieve this?
 
I tried in the title window using the initialize property like:
http://www.adobe. com/2006/ mxml" 
initialize="RunEveryPop( );" >
 
but my function RunEveryPop only executes the first time the popup is 
displayed. Subsequent popups would not trigger the said function.
 
I know I can declare a public function in the title window and simply call this 
function from the calling main application, but I am wondering if this is a 
good or recommended way in achieving this?
 
Also, another question...
 
How do I reference the title of the TitleWindow from within itself? Like for 
example:
 
private function getTitleWindowTitle () :void
{
 Alert.show(Titlewin dow.Title) ;
 // I Should be able to display the Title of the title window in an alert 
message.
}
 
Advice and inputs would be highly appreciated.
 
Thanks.,

 
  





From: Angelo Anolin 
Reply-To: 
Date: Tue, 29 Sep 2009 00:55:35 -0700 (PDT)
To: 
Subject: [flexcoders] TitleWindow Popup Question(s)

 
 
 





  

[flexcoders] Re: Converting RGB to Hex color

2009-09-29 Thread turbo_vb
Never mind, I'm just way off-base on this one.

-TH

--- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
>
> Isn't there a utility that converts CSS strings like "#ff" to 0xff?  
> Or "white" to 0xf?
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> >
> > 
> > I have to admit I'm confused by the question.  What is the type of the 
> > variable holding the RGB value?  If it is a uint, the toString(16) should 
> > be the hex representation.
> > 
> > 
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.
> > Blog: http://blogs.adobe.com/aharui
> > 
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> > Behalf Of Chet Haase
> > Sent: Tuesday, September 29, 2009 4:35 PM
> > To: flexcoders@yahoogroups.com
> > Subject: RE: [flexcoders] Re: Converting RGB to Hex color
> > 
> > 
> > 
> > Nope: HSBColor is a utility class for dealing with colors represented in 
> > the HSB (Hue, Saturation, and Balance) color space. It will help you 
> > convert between RGB and HSB colors, but will not help you with RGB to hex 
> > string conversions.
> > 
> > Chet.
> > 
> > 
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> > Behalf Of turbo_vb
> > Sent: Tuesday, September 29, 2009 1:35 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Converting RGB to Hex color
> > 
> > 
> > 
> > There's a utility in the sdk to convert rgb string to uint. For Flex4 it's 
> > mx.utils.HSBColor.
> > 
> > -TH
> > 
> > --- In flexcoders@yahoogroups.com, 
> > Greg Hess  wrote:
> > >
> > > Hi All,
> > >
> > > I am trying to externalize our effect styles to css. However, when I
> > > read in the color values getStyle() they come in RGB format and
> > > GlowFilter needs Hex. I have found lots of posts of people writing
> > > rgbToHex conversion function but I find it strange that this is not
> > > available in the Flex SDK.
> > >
> > > What is the best way to do such conversions.
> > >
> > > Any help much appreciated,
> > >
> > > Greg
> > >
> >
>




Re: [flexcoders] Re: TitleWindow Popup Question(s)

2009-09-29 Thread Angelo Anolin
hi Vito,

Thanks a lot. This surely does work. The reason why my initialize events were 
not firing is that I declared the popup window in an application scope 
variable, so basically, it has alread been instantiated and not re-instantiated 
when I make the call.

Another question though.

I think the TitleWindow when it is a popup window does not seem to be able to 
make web service calls.  I wonder why. After changing all the codes, I am 
trying to retrieve a data from a web service from this popup TitleWindow but 
nothing seems to happen.

Suggestions highly appreciated. Thanks.

 




From: cuttenv 
To: flexcoders@yahoogroups.com
Sent: Tuesday, 29 September, 2009 17:27:01
Subject: [flexcoders] Re: TitleWindow Popup Question(s)

  
Hey there,
I'm not sure how you are creating your popup but I would recommend you do it 
like this.
var popper:TestPopUp = new TestPopUp();
PopUpManager. addPopUp( popper,this) ;
PopUpManager. centerPopUp( popper);

Where TestPopUp is your TitleWindow Component. Then your creationComplete and 
Initialize events will fire every time because you are creating a new reference.

You can reference the title of the title window inside it's self by calling 
this.title.

//This code would go inside the TestPopUp.mxml which extends TitleWindow in my 
example
> private function getTitleWindowTitle () :void
> {
> Alert.show(this. title);
> // I Should be able to display the Title of the title window in an alert 
> message.
> }

Hope that helps,
-Vito

--- In flexcod...@yahoogro ups.com, Angelo Anolin  wrote:
>
> Hi FlexCoders,
> 
> Just a little TitleWindow popup question.
> 
> I want a function to be executed everytime my popup title window component is 
> displayed.  How do I achieve this?
> 
> I tried in the title window using the initialize property like:
> http://www.adobe. com/2006/ mxml" initialize=" 
> RunEveryPop( );" >
> 
> but my function RunEveryPop only executes the first time the popup is 
> displayed. Subsequent popups would not trigger the said function.
> 
> I know I can declare a public function in the title window and simply call 
> this function from the calling main application, but I am wondering if this 
> is a good or recommended way in achieving this?
> 
> Also, another question...
> 
> How do I reference the title of the TitleWindow from within itself? Like for 
> example:
> 
> private function getTitleWindowTitle () :void
> {
>  Alert.show(Titlewin dow.Title) ;
>  // I Should be able to display the Title of the title window in an alert 
> message.
> }
> 
> Advice and inputs would be highly appreciated.
> 
> Thanks.,
>





  

[flexcoders] Re: Converting RGB to Hex color

2009-09-29 Thread turbo_vb
Isn't there a utility that converts CSS strings like "#ff" to 0xff?  Or 
"white" to 0xf?

-TH

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> 
> I have to admit I'm confused by the question.  What is the type of the 
> variable holding the RGB value?  If it is a uint, the toString(16) should be 
> the hex representation.
> 
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of Chet Haase
> Sent: Tuesday, September 29, 2009 4:35 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Re: Converting RGB to Hex color
> 
> 
> 
> Nope: HSBColor is a utility class for dealing with colors represented in the 
> HSB (Hue, Saturation, and Balance) color space. It will help you convert 
> between RGB and HSB colors, but will not help you with RGB to hex string 
> conversions.
> 
> Chet.
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of turbo_vb
> Sent: Tuesday, September 29, 2009 1:35 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Converting RGB to Hex color
> 
> 
> 
> There's a utility in the sdk to convert rgb string to uint. For Flex4 it's 
> mx.utils.HSBColor.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, Greg 
> Hess  wrote:
> >
> > Hi All,
> >
> > I am trying to externalize our effect styles to css. However, when I
> > read in the color values getStyle() they come in RGB format and
> > GlowFilter needs Hex. I have found lots of posts of people writing
> > rgbToHex conversion function but I find it strange that this is not
> > available in the Flex SDK.
> >
> > What is the best way to do such conversions.
> >
> > Any help much appreciated,
> >
> > Greg
> >
>




[flexcoders] Re: Converting RGB to Hex color

2009-09-29 Thread turbo_vb
Yep, you're right Chet, thanks. 

-TH

--- In flexcoders@yahoogroups.com, Chet Haase  wrote:
>
> 
> Nope: HSBColor is a utility class for dealing with colors represented in the 
> HSB (Hue, Saturation, and Balance) color space. It will help you convert 
> between RGB and HSB colors, but will not help you with RGB to hex string 
> conversions.
> 
> Chet.
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of turbo_vb
> Sent: Tuesday, September 29, 2009 1:35 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Converting RGB to Hex color
> 
> 
> 
> There's a utility in the sdk to convert rgb string to uint. For Flex4 it's 
> mx.utils.HSBColor.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, Greg 
> Hess  wrote:
> >
> > Hi All,
> >
> > I am trying to externalize our effect styles to css. However, when I
> > read in the color values getStyle() they come in RGB format and
> > GlowFilter needs Hex. I have found lots of posts of people writing
> > rgbToHex conversion function but I find it strange that this is not
> > available in the Flex SDK.
> >
> > What is the best way to do such conversions.
> >
> > Any help much appreciated,
> >
> > Greg
> >
>




RE: [flexcoders] Re: Converting RGB to Hex color

2009-09-29 Thread Alex Harui

I have to admit I'm confused by the question.  What is the type of the variable 
holding the RGB value?  If it is a uint, the toString(16) should be the hex 
representation.


Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Chet Haase
Sent: Tuesday, September 29, 2009 4:35 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Converting RGB to Hex color



Nope: HSBColor is a utility class for dealing with colors represented in the 
HSB (Hue, Saturation, and Balance) color space. It will help you convert 
between RGB and HSB colors, but will not help you with RGB to hex string 
conversions.

Chet.


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of turbo_vb
Sent: Tuesday, September 29, 2009 1:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Converting RGB to Hex color



There's a utility in the sdk to convert rgb string to uint. For Flex4 it's 
mx.utils.HSBColor.

-TH

--- In flexcoders@yahoogroups.com, Greg 
Hess  wrote:
>
> Hi All,
>
> I am trying to externalize our effect styles to css. However, when I
> read in the color values getStyle() they come in RGB format and
> GlowFilter needs Hex. I have found lots of posts of people writing
> rgbToHex conversion function but I find it strange that this is not
> available in the Flex SDK.
>
> What is the best way to do such conversions.
>
> Any help much appreciated,
>
> Greg
>



RE: [flexcoders] Re: Converting RGB to Hex color

2009-09-29 Thread Chet Haase

Nope: HSBColor is a utility class for dealing with colors represented in the 
HSB (Hue, Saturation, and Balance) color space. It will help you convert 
between RGB and HSB colors, but will not help you with RGB to hex string 
conversions.

Chet.


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of turbo_vb
Sent: Tuesday, September 29, 2009 1:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Converting RGB to Hex color



There's a utility in the sdk to convert rgb string to uint. For Flex4 it's 
mx.utils.HSBColor.

-TH

--- In flexcoders@yahoogroups.com, Greg 
Hess  wrote:
>
> Hi All,
>
> I am trying to externalize our effect styles to css. However, when I
> read in the color values getStyle() they come in RGB format and
> GlowFilter needs Hex. I have found lots of posts of people writing
> rgbToHex conversion function but I find it strange that this is not
> available in the Flex SDK.
>
> What is the best way to do such conversions.
>
> Any help much appreciated,
>
> Greg
>



RE: [flexcoders] In HBox, how to align text base lines in labels with different font sizes Flex 3

2009-09-29 Thread Alex Harui
Here's a quick hack:

  
  
  
  
  
  

--BaselineLabel.as--
package
{
import mx.controls.Label;

public class BaselineLabel extends Label
{
override protected function updateDisplayList(w:Number, h:Number):void {
super.updateDisplayList(w,h);
if (parent)
y = parent.height - baselinePosition;
}
}
}

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Tracy
Sent: Tuesday, September 29, 2009 2:00 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] In HBox, how to align text base lines in labels with 
different font sizes Flex 3



I am building a component in (Flex 3.3) that has to display an HBox of labels 
with various font sizes, with their baselines aligned.

I can do it by trial and error padding, but wonder if there is a way to do it 
with programatically.

Label reserves space below the baseline, I guess for character descenders. 
How/can I calculate what this is for a given font size?

If this was an absolute positioned container, I could use constraints, but then 
I would have to manually lay out everything horizontally.

I have looked into the Text Metrics classes but they are pretty complex. I 
could use some suggestions. An efffective google search string would be valued 
as well!

Tracy



[flexcoders] Re: How do I determing If I'm running an Air app vs. Flex app?

2009-09-29 Thread reflexactions
--- In flexcoders@yahoogroups.com, "luvfotography"  wrote:
>
> Hi, 
> What's the simplest way to test (in actionscript) if
> I'm running Air vs. Flex?
> thanks,
>
isAir = (Capabilities.playerType == "Desktop");



[flexcoders] Re: AIR from a Flex ActionScript Project?

2009-09-29 Thread Michael
John,

You can convert your Flex project to an AIR application pretty easily.  There's 
three basic steps involved:

1) Your application should be declared as inheriting from WindowedApplication, 
rather than Application in your main myapp.mxml file.

http://www.adobe.com/2006/mxml"; xmlns="*">





2) Create an AIR app descriptor file. Here's an example.  Name it myapp-app.xml 
and place in the same folder as your main myapp.mxml file. 


http://ns.adobe.com/air/application/1.5.1";>
com.myapp.tester
0.1
tester
FlexUnit Test Runner

tester.swf
true
standard
false
1024
768



There is detailed documentation on the AIR app descriptor format on the Adobe 
site:

http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7ff1.html

3) Use the AIR MXML compiler (amxmlc rather than mxmlc) in your build scripts.  
If you're using Flex Builder, you can add an AIR Project Builder to your in the 
Project Properties > Builders pane.

That should be enough to get you started.  Good luck.

Michael Portuesi


--- In flexcoders@yahoogroups.com, John McCormack  wrote:
>
> Is there any easy way to publish a Flex ActionScript Project as an AIR file.
> This project, by its nature, has no mxml tags.
> 
> John
>




Re: [flexcoders] TitleWindow Popup Question(s)

2009-09-29 Thread Dave Cates
Hi,

I¹d reference a public set function within the title window itself. Works
good for us since we use an MVC model and so don¹t really want too much code
within the TitleWindow view itself.

Regarding the title itself. I do this by assigning a Bindable variable to
the title in the main header of the title window.

Then I can update the title by simply assigning values to that variable
whenever I like.

Hope that helps.

Dave.



From: Angelo Anolin 
Reply-To: 
Date: Tue, 29 Sep 2009 00:55:35 -0700 (PDT)
To: 
Subject: [flexcoders] TitleWindow Popup Question(s)

 
 
 

Hi FlexCoders,
 
Just a little TitleWindow popup question.
 
I want a function to be executed everytime my popup title window component
is displayed.  How do I achieve this?
 
I tried in the title window using the initialize property like:
http://www.adobe.com/2006/mxml";
initialize="RunEveryPop();" >
 
but my function RunEveryPop only executes the first time the popup is
displayed. Subsequent popups would not trigger the said function.
 
I know I can declare a public function in the title window and simply call
this function from the calling main application, but I am wondering if this
is a good or recommended way in achieving this?
 
Also, another question...
 
How do I reference the title of the TitleWindow from within itself? Like for
example:
 
private function getTitleWindowTitle() :void
{
 Alert.show(Titlewindow.Title);
 // I Should be able to display the Title of the title window in an alert
message.
}
 
Advice and inputs would be highly appreciated.
 
Thanks.,

 
  


>> 



Re: [flexcoders] How do I determing If I'm running an Air app vs. Flex app?

2009-09-29 Thread Dave Cates
Erwhat do you mean exactly???

If the app uses/needs a browser, it¹s just a Flash/Flex based app. If it
executes/runs on the desktop it¹s an Air app. That¹s the only real
difference.

Does that help?

From: luvfotography 
Reply-To: 
Date: Mon, 28 Sep 2009 21:30:17 -
To: 
Subject: [flexcoders] How do I determing If I'm running an Air app vs. Flex
app?

 
 
 

Hi, 
What's the simplest way to test (in actionscript) if
I'm running Air vs. Flex?
thanks,

  


>> 



[flexcoders] date chooser in date field showing strange nulls

2009-09-29 Thread wren_

Hi All
I am using a normal dateField:


when you select the date chooser it looks like such:
http://www.nabble.com/file/p25670657/Untitled-1.jpg 

I could avesworn that this was working.
How des flex initially determine what the date and time is? Where does it
get these values.. why is there @#...@! Nulls?!

Thanks
-- 
View this message in context: 
http://www.nabble.com/date-chooser-in-date-field-showing-strange-nulls-tp25670657p25670657.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Mac OSX and Flex builder

2009-09-29 Thread Nate Beck
I'm fairly certain it's Adobe Update Manager.

And for those who aren't aware, the Rosetta we're talking about here is an
OS X thing: http://www.apple.com/rosetta/... not Rosetta Stone Language
training software.


On Tue, Sep 29, 2009 at 1:50 AM, Sam Lai  wrote:

>
>
> 2009/9/29 cuttenv >:
>
> > Anyone know what aum.flexbuilder.osx and why it needs rosetta?? :)
>
> Extremely random guess, I don't have a Mac around - but aum might be
> Adobe Update Manager?
>
>  
>



-- 

Cheers,
Nate

http://blog.natebeck.net


[flexcoders] Re: Add a parameter in Html

2009-09-29 Thread Tracy
I didn't say there "could not", I said there "will not". I debated putting in 
acaveat there, but decided it would not help the original poster at this stage.


Tracy


--- In flexcoders@yahoogroups.com, Jeffry Houser  wrote:
>
> 
>  Why couldn't there be a link to a Flex Application? 
>  Do this: www.mydomain.com/myapp.swf and it is perfectly valid, although 
> uncommon. 
> 
> Tracy wrote:
> >  
> >
> > First, be careful with your language. There will NOT be an html link 
> > to a flex application.
> >
> > There will be a link to an html page which hosts the Flex application 
> > within the Flash player instantiated via an object/embed tag.
> >
> > You will need javascript to read the querystring parameters and send 
> > them to the Flex app using flashvars.
> >
> > This is quite simple, only a couple lines of javascript. I have posted 
> > a full example before, you will find it if you search.
> >
> > Within Flex, you can access the passed in values via the 
> > Application.application.parameters object.
> >
> > Tracy
> >
> > --- In flexcoders@yahoogroups.com 
> > , "Christophe" 
> >  wrote:
> > >
> > > Hello,
> > >
> > > How to add a parameter for a flex application. This parameter is 
> > indicated in the html link to the flex application.
> > >
> > > Thank you,
> > > Christophe,
> > >
> >
> > 
> 
> -- 
> Jeffry Houser, Technical Entrepreneur
> Adobe Community Expert: http://tinyurl.com/684b5h
> http://www.twitter.com/reboog711  | Phone: 203-379-0773
> --
> Easy to use Interface Components for Flex Developers
> http://www.flextras.com?c=104
> --
> http://www.theflexshow.com
> http://www.jeffryhouser.com
> --
> Part of the DotComIt Brain Trust
>




[flexcoders] In HBox, how to align text base lines in labels with different font sizes Flex 3

2009-09-29 Thread Tracy
I am building a component in (Flex 3.3) that has to display an HBox of labels 
with various font sizes, with their baselines aligned.

I can do it by trial and error padding, but wonder if there is a way to do it 
with programatically.

Label reserves space below the baseline, I guess for character descenders.  
How/can I calculate what this is for a given font size?

If this was an absolute positioned container, I could use constraints, but then 
I would have to manually lay out everything horizontally.

I have looked into the Text Metrics classes but they are pretty complex.  I 
could use some suggestions.  An efffective google search string would be valued 
as well!



Tracy



Re: [flexcoders] Re: Add a parameter in Html

2009-09-29 Thread Jeffry Houser


Why couldn't there be a link to a Flex Application? 
Do this: www.mydomain.com/myapp.swf and it is perfectly valid, although 
uncommon. 


Tracy wrote:
 

First, be careful with your language. There will NOT be an html link 
to a flex application.


There will be a link to an html page which hosts the Flex application 
within the Flash player instantiated via an object/embed tag.


You will need javascript to read the querystring parameters and send 
them to the Flex app using flashvars.


This is quite simple, only a couple lines of javascript. I have posted 
a full example before, you will find it if you search.


Within Flex, you can access the passed in values via the 
Application.application.parameters object.


Tracy

--- In flexcoders@yahoogroups.com 
, "Christophe" 
 wrote:

>
> Hello,
>
> How to add a parameter for a flex application. This parameter is 
indicated in the html link to the flex application.

>
> Thank you,
> Christophe,
>




--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



Re: [flexcoders] Flash is weak because it can't handle proper status codes in AS

2009-09-29 Thread DannyT
I actually raised this at FOTB, whilst no one had a definitive answer it's
possible the cause of this stems from the Browser Plugin APIs available for
the Flash Player to leverage. FP relies on the browser for it's REST
implmentation (AIR offers full support apparently) and as such can only get
at what the plugin api offers.

However, this isn't necessarily STILL the case but could have been in older
browsers. No one I spoke to had the answer for sure so I'd still be very
interested in a more precise explanation.

2009/9/29 djhatrick 

>
>
> Sorry, I am tired to explaining why this doesn't work to our REST api
> programmers, and it's been years and still no solution It's so annoying,
> because it makes programming very difficult... Standards are out there for a
> reason! Will somebody raise their hand ask the teams why this still isn't
> addressed at adobe max next week for me, please?
>
> Maybe somebody at Adobe should get off their ass and prioritize this issue
> with browser vendors?
>
> Pissed and frustrated, again and again
> Patrick
>
>  
>



-- 
http://danny-t.co.uk


[flexcoders] Re: Add a parameter in Html

2009-09-29 Thread Tracy
First, be careful with your language.  There will NOT be an html link to a flex 
application.

There will be a link to an html page which hosts the Flex application within 
the Flash player instantiated via an object/embed tag.

You will need javascript to read the querystring parameters and send them to 
the Flex app using flashvars.

This is quite simple, only a couple lines of javascript.  I have posted a full 
example before, you will find it if you search.

Within Flex, you can access the passed in values via the 
Application.application.parameters object.

Tracy

--- In flexcoders@yahoogroups.com, "Christophe"  
wrote:
>
> Hello, 
> 
> How to add a parameter for a flex application. This parameter is indicated in 
> the html link to the flex application.
> 
> Thank you,
> Christophe,
>




[flexcoders] Re: Show/Hide a tab

2009-09-29 Thread Tracy
I think you will find it easier to use a Tabbar and a ViewStack instead.

Drive the TabBar with a dataProvider of its own, built from whatever logic you 
need.  Have that dataProvider contain the index of the matching view in the 
ViewStack.

this way, only the allowed tabs will be visible and only the associated content 
will be accessible.

Much simpler than adding and removing children all the time.

Tracy

--- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
>
> Have to use addChild() and removeChild() forTabs.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "Christophe"  wrote:
> >
> > Hello, 
> > 
> > How to hide a Tab in a TabNavigator. I have try visible=false, but it does 
> > not work.
> > 
> > Thank you,
> > Christophe
> >
>




[flexcoders] Re: About Flex Life Cycle

2009-09-29 Thread thelordsince1984
Thanks for the reply Alex.

So when the application has loaded in its entirely, the timeline is stopped at 
frame 2, isn't true? So what happens if you are in frame 2 and the user fires a 
general event that renders a circle in the screen? If is possible, can you give 
a little example about the logic operation?

thanks again,
Best regards.


--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> The timeline is stopped at frame 2, just like it was at frame1 when we were 
> waiting for frame2.
> 
> Where the timeline is, is mostly independent from the player's frames.  The 
> player is "playing" frames at the frame rate (or as fast as possible if a 
> frame takes longer than the frame rate).  Which frame it plays depends on 
> which timeline frame is the current frame and whether it has been "played" or 
> not.  If the current frame has been "played" (meaning, it has already 
> executed the framescripts for that timeline frame) the player is just 
> dispatching enterFrame events and rendering any changes.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of thelordsince1984
> Sent: Tuesday, September 29, 2009 11:37 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] About Flex Life Cycle
> 
> 
> 
> A Flex swf application has two frames: the first one contains the 
> SystemManager, the Preloader (and others things); the second one contains the 
> framework and the application code.
> 
> When the app starts "Frame 1" loads the SystemManger tha stops the excution. 
> Then when the app is finished loading, "Frame 2" starts.
> 
> So, when the application is running, is the "Frame 2" cycling over the app's 
> life cycle?
> 
> thanks in advance
>




[flexcoders] Re: Converting RGB to Hex color

2009-09-29 Thread turbo_vb
There's a utility in the sdk to convert rgb string to uint.  For Flex4 it's 
mx.utils.HSBColor.

-TH

--- In flexcoders@yahoogroups.com, Greg Hess  wrote:
>
> Hi All,
> 
> I am trying to externalize our effect styles to css. However, when I
> read in the color values getStyle() they come in RGB format and
> GlowFilter needs Hex. I have found lots of posts of people writing
> rgbToHex conversion function but I find it strange that this is not
> available in the Flex SDK.
> 
> What is the best way to do such conversions.
> 
> Any help much appreciated,
> 
> Greg
>




[flexcoders] Re: Show/Hide a tab

2009-09-29 Thread turbo_vb
Have to use addChild() and removeChild() forTabs.

-TH

--- In flexcoders@yahoogroups.com, "Christophe"  
wrote:
>
> Hello, 
> 
> How to hide a Tab in a TabNavigator. I have try visible=false, but it does 
> not work.
> 
> Thank you,
> Christophe
>




[flexcoders] Show/Hide a tab

2009-09-29 Thread Christophe
Hello, 

How to hide a Tab in a TabNavigator. I have try visible=false, but it does not 
work.

Thank you,
Christophe



[flexcoders] Add a parameter in Html

2009-09-29 Thread Christophe
Hello, 

How to add a parameter for a flex application. This parameter is indicated in 
the html link to the flex application.

Thank you,
Christophe, 




[flexcoders] Re: Ant Task to Build Air Package

2009-09-29 Thread seanmcmonahan
SUCCESS!!  Thanks so much!  This worked perfectly for me.



--- In flexcoders@yahoogroups.com, "Jim Hayes"  wrote:
>
> I have this :
>  
> 
>  
>  
>  
>  
>  
>   
>   
>   
>   
>  
> So it looks like I'm using -keypass as well as -storepass , with the
> same password.
>  
> No idea why! I built this script over a year ago, so have completely
> forgotten the whys and wherefores, but it's still working for me without
> asking for any passwords.
> Hope that helps.
>  
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of seanmcmonahan
> Sent: 28 September 2009 20:18
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Ant Task to Build Air Package
>  
>   
> I'm working on an Ant build script to build and package my Air
> application. So far it works pretty well except I cannot get the script
> to use the password for the signing certificate.
> 
> ADT is invoked like this:
> 
>  jar="${ADT.JAR}"
> fork="true"
> failonerror="true">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> When I run the script from Flex Builder everything works fine until, I
> presume, it gets to the storepass. If I run this build from the
> Termninal on Mac OS I can manually type in the password when the build
> script gets to the storepass and then the script will complete the
> build.
> 
> So my build script mostly works, anyone have any thoughts on how to get
> it to entirely work? Ideally I'd like to be able to run the script from
> Flex Builder, but using the Terminal or Command Prompt is fine as well,
> I just don't want to have to type the password in for the certificate.
> 
> Thanks!
> 
> 
> __
> This communication is from Primal Pictures Ltd., a company registered in 
> England and Wales with registration No. 02622298 and registered office: 4th 
> Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. 
> VAT registration No. 648874577.
> 
> This e-mail is confidential and may be privileged. It may be read, copied and 
> used only by the intended recipient. If you have received it in error, please 
> contact the sender immediately by return e-mail or by telephoning +44(0)20 
> 7637 1010. Please then delete the e-mail and do not disclose its contents to 
> any person.
> This email has been scanned for Primal Pictures by the MessageLabs Email 
> Security System.
> __
>




[flexcoders] Converting RGB to Hex color

2009-09-29 Thread Greg Hess
Hi All,

I am trying to externalize our effect styles to css. However, when I
read in the color values getStyle() they come in RGB format and
GlowFilter needs Hex. I have found lots of posts of people writing
rgbToHex conversion function but I find it strange that this is not
available in the Flex SDK.

What is the best way to do such conversions.

Any help much appreciated,

Greg


RE: [flexcoders] About Flex Life Cycle

2009-09-29 Thread Alex Harui
The timeline is stopped at frame 2, just like it was at frame1 when we were 
waiting for frame2.

Where the timeline is, is mostly independent from the player's frames.  The 
player is "playing" frames at the frame rate (or as fast as possible if a frame 
takes longer than the frame rate).  Which frame it plays depends on which 
timeline frame is the current frame and whether it has been "played" or not.  
If the current frame has been "played" (meaning, it has already executed the 
framescripts for that timeline frame) the player is just dispatching enterFrame 
events and rendering any changes.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of thelordsince1984
Sent: Tuesday, September 29, 2009 11:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] About Flex Life Cycle



A Flex swf application has two frames: the first one contains the 
SystemManager, the Preloader (and others things); the second one contains the 
framework and the application code.

When the app starts "Frame 1" loads the SystemManger tha stops the excution. 
Then when the app is finished loading, "Frame 2" starts.

So, when the application is running, is the "Frame 2" cycling over the app's 
life cycle?

thanks in advance



RE: [flexcoders] Re: Inconsistencies between Halo/Spark mixed controls?

2009-09-29 Thread Peter DeHaan
Sorry, it will depend on which version of the Flex SDK you are using.
I was testing on a very recent nightly/internal version (4.0.0.10640).

http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4

Peter


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Slackware
Sent: Tuesday, September 29, 2009 12:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Inconsistencies between Halo/Spark mixed controls?



Thanks for all your responses!

contentBackgroundAlpha seems like doesn't work for mx:TextArea.

--- In flexcoders@yahoogroups.com, Peter 
DeHaan  wrote:
>
> Try setting the contentBackgroundColor and contentBackgroundAlpha styles 
> instead in Flex 4:
>
>  text="The quick brown fox jumps over the lazy dog"
> contentBackgroundAlpha="0.1"
> contentBackgroundColor="blue"
> horizontalCenter="0" verticalCenter="0" />
>
>
> Peter
>
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On 
> Behalf Of Slackware
> Sent: Tuesday, September 29, 2009 8:25 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Inconsistencies between Halo/Spark mixed controls?
>
>
>
> For example, using a mx:TextArea in a project using FLEX4. background in
> TextArea should be transparent (backgroundAlpha="0"), but is not
> working.
> Code:
> 
>  xmlns:fx="http://ns.adobe.com/mxml/2009";
> xmlns:s="library://ns.adobe.com/flex/spark"
> xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024"
> minHeight="768">
> 
> 
>
> 2)Same example using FLEX3.04. Works as expected.
> Code:
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute" minWidth="1024" minHeight="768">
>  backgroundAlpha="0" height="181" width="459"/>
>
> 
>
> Any idea?
>



[flexcoders] Crafting a unique solution to handle status codes other than 200

2009-09-29 Thread djhatrick
So we're getting ready for our first release of this massive flex app, and 
we've just switched to SSL for our auth... Since we have this new central auth 
server, our API developers want to use status codes for results.  So, I am at 
the juncture, again for the 5th time in my dev career how am I going to get 
around that http status code crap again!

---

Is it possible to trap these responses in the browser with a javascript and 
return them into flashplayer through external interfface?  Is that possible, 
does anybody have any suggestions on how to handle tokens on this one? I am 
using HTTP delegates for my service calls with IRespnder.  How would I return 
the token?  Is that possible?

http://code.google.com/p/as3httpclientlib/

Might be a good alternative to http, but can it it be used with delegates and 
IResponder?

If you have had some success with this and don't mind helping another 
developer, while the blame game happens and nobody can figure out how to fix 
this paralyzing issue to us flash developers... please advise.

Thanks,
Patrick

(as I delete my hastily terse comment on FlexCoders and try to come up with a 
workable solution)





[flexcoders] Re: Inconsistencies between Halo/Spark mixed controls?

2009-09-29 Thread Slackware
Thanks for all your responses!

contentBackgroundAlpha seems like doesn't work for mx:TextArea.


--- In flexcoders@yahoogroups.com, Peter DeHaan  wrote:
>
> Try setting the contentBackgroundColor and contentBackgroundAlpha styles 
> instead in Flex 4:
> 
>  text="The quick brown fox jumps over the lazy dog"
> contentBackgroundAlpha="0.1"
> contentBackgroundColor="blue"
> horizontalCenter="0" verticalCenter="0" />
> 
> 
> Peter
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of Slackware
> Sent: Tuesday, September 29, 2009 8:25 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Inconsistencies between Halo/Spark mixed controls?
> 
> 
> 
> For example, using a mx:TextArea in a project using FLEX4. background in
> TextArea should be transparent (backgroundAlpha="0"), but is not
> working.
> Code:
> 
>  xmlns:fx="http://ns.adobe.com/mxml/2009";
> xmlns:s="library://ns.adobe.com/flex/spark"
> xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024"
> minHeight="768">
> 
> 
> 
> 2)Same example using FLEX3.04. Works as expected.
> Code:
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute" minWidth="1024" minHeight="768">
>  backgroundAlpha="0" height="181" width="459"/>
> 
> 
> 
> Any idea?
>




[flexcoders] Flash is weak because it can't handle proper status codes in AS

2009-09-29 Thread djhatrick
Sorry, I am tired to explaining why this doesn't work to our REST api 
programmers, and it's been years and still no solution It's so annoying, 
because it makes programming very difficult... Standards are out there for a 
reason!  Will somebody raise their hand ask the teams why this still isn't 
addressed at adobe max next week for me, please?

Maybe somebody at Adobe should get off their ass and prioritize this issue with 
browser vendors?

Pissed and frustrated, again and again
Patrick



[flexcoders] About Flex Life Cycle

2009-09-29 Thread thelordsince1984
A Flex swf application has two frames: the first one contains the 
SystemManager, the Preloader (and others things); the second one contains the 
framework and the application code.

When the app starts "Frame 1" loads the SystemManger tha stops the excution. 
Then when the app is finished loading, "Frame 2" starts.

So, when the application is running, is the "Frame 2" cycling over the app's 
life cycle?

thanks in advance





[flexcoders] FB3 Plug-In Migration

2009-09-29 Thread Richard Rodseth
I have a new computer (Mac running Snow Leopard) to set up, and after
struggling with Eclipe Galileo/Flashbuilder for a while, I decided to just
bring over my previous installation. I copied the Eclipse folder and the FB3
folder and updated the .link file in the Eclipse folder accordingly. But FB
doesn't seem to load. Anything other setting I need to update or clear?

I use Subversive, and would be willing to switch to a fresh install of the
standalone Flexbuilder if I can find good instructions for installing
Subversive.

Thanks.


RE: [flexcoders] Inconsistencies between Halo/Spark mixed controls?

2009-09-29 Thread Peter DeHaan
Try setting the contentBackgroundColor and contentBackgroundAlpha styles 
instead in Flex 4:




Peter


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Slackware
Sent: Tuesday, September 29, 2009 8:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Inconsistencies between Halo/Spark mixed controls?



For example, using a mx:TextArea in a project using FLEX4. background in
TextArea should be transparent (backgroundAlpha="0"), but is not
working.
Code:

http://ns.adobe.com/mxml/2009";
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024"
minHeight="768">



2)Same example using FLEX3.04. Works as expected.
Code:

http://www.adobe.com/2006/mxml";
layout="absolute" minWidth="1024" minHeight="768">




Any idea?



RE: [flexcoders] Any "Stable Enough" Flex 4 Nightly build around?

2009-09-29 Thread Peter DeHaan
Aldo,

I haven't heard of that issue before. If you could come up with a simple test 
case showing the behavior and file the bug at http://bugs.adobe.com/flex/ 
somebody on the Flex SDK team can take a look.

In the meantime, I can try and play around with that today and see if I can see 
the same issues.

Thanks,
Peter


RE: [flexcoders] Inconsistencies between Halo/Spark mixed controls?

2009-09-29 Thread Alex Harui
If you are using the default theme, the Spark skins for mx components do not 
respond to many styles if any.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Slackware
Sent: Tuesday, September 29, 2009 8:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Inconsistencies between Halo/Spark mixed controls?



For example, using a mx:TextArea in a project using FLEX4. background in
TextArea should be transparent (backgroundAlpha="0"), but is not
working.
Code:

http://ns.adobe.com/mxml/2009";
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024"
minHeight="768">



2)Same example using FLEX3.04. Works as expected.
Code:

http://www.adobe.com/2006/mxml";
layout="absolute" minWidth="1024" minHeight="768">




Any idea?



[flexcoders] FlexBuilder's gutter is broken

2009-09-29 Thread dfalling
The gutter of my install of FlexBuilder doesn't scroll.  The text beside it 
scrolls on, but the line numbers and any notations (breakpoints, errors, etc.) 
stay in the same place.  Oddly, it only does this when it's on my secondary 
monitor.  On my primary monitor, it works fine.  This is the standalone 
FlexBuilder, not the plugin.  Anyone know how to fix this?



[flexcoders] Inconsistencies between Halo/Spark mixed controls?

2009-09-29 Thread Slackware
For example, using a mx:TextArea in a project using FLEX4. background in
TextArea should be transparent (backgroundAlpha="0"), but is not
working.
Code:

http://ns.adobe.com/mxml/2009";
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024"
minHeight="768">
   


2)Same example using FLEX3.04. Works as expected.
Code:

http://www.adobe.com/2006/mxml";
layout="absolute" minWidth="1024" minHeight="768">
   




Any idea?



[flexcoders] Re: title Window added to the sytemManager breaks tabIndex

2009-09-29 Thread djhatrick
--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Try using PopUpManager.  It will install a focusManager for the popup for you.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.

Alex,

You put me in the right direction. I  made my own pop-up manager to support a 
3d transition... i added 1 line of code to handle tabIndexing

value being the displayObject that I was displaying...


var focusManager:FocusManager   = new FocusManager(value as 
IFocusManagerContainer,value);


Thanks,
Patrick


> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of djhatrick
> Sent: Tuesday, September 01, 2009 10:00 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] title Window added to the sytemManager breaks tabIndex
> 
> 
> 
> I can't seem to tab through my form with
> 
> Application.application.systemManager.addChild(value)
> 
> Any suggestions how to re-implement this functionality?
> 
> Thanks,
> Patrick
>




[flexcoders] Re: How to resize image to fill area and clip

2009-09-29 Thread droponrcll
--- In flexcoders@yahoogroups.com, Greg Hess  wrote:
>
> Hi All,
> 
> I have a content area that I need to fill with a user supplied
> graphic. The graphic may be any aspect ratio and I want to scale the
> image to the content area and maintain aspect ratio however, instead
> of producing "white" space where the aspect ratio could not be
> achieved(Standard behavior of the Image class) I would like to clip
> the image. The area will always be filled entirely, the aspect ratio
> will be maintained but the image may be clipped.
> 
> Does anyone know how I can do this?
> 
> Any help much appreciated.

This is a snippet from Flash, not Flex, but it might point you in the right 
direction:

var loader:Loader = Loader(e.target.loader);
//measure the content
var lw:int = loader.width;
var lh:int = loader.height;
var finishedWidth:int;
var finishedHeight:int;

/*  Check to see which dimension of the image is 
closer to the same thumbnail dimension.  We'll
scale that one and crop the other.  */
if ( Math.abs(thumbwidth - lw) < Math.abs(thumbheight - lh) ) {
//scale horizontally
scaledX = true;
trace ('scaled x');
} else {
//scale vertically
scaledX = false;
trace('scaled y');
}
scaleFactor = calculateScale(lw, lh, scaledX);
trace('scalefactor', scaleFactor);
//calculate what the dimensions will be after scale applied
finishedWidth = Math.ceil(scaleFactor * lw);
finishedHeight = Math.ceil(scaleFactor * lh);
/*  In most cases, that will work, but in some cases that
gets it wrong.  Check for this and fix it   */
if (finishedWidth < thumbwidth || finishedHeight < thumbheight) 
{
trace(scaleFactor * lw, scaleFactor * lh);
scaleFactor = calculateScale(lw, lh, !scaledX);
//recalculate finished dimensions
finishedWidth = Math.ceil(scaleFactor * lw);
finishedHeight = Math.ceil(scaleFactor * lh);
}
trace(loader.height*scaleFactor, loader.width*scaleFactor);
var matrix:Matrix = new Matrix();
matrix.createBox(scaleFactor, scaleFactor);
//make a scaled copy of the content
var scaledBitmap:BitmapData = new BitmapData(finishedWidth, 
finishedHeight, false);

scaledBitmap.draw(loader.content, matrix, null, null, null, 
true);
//crop the bitmap
//this is a slice out of the middle of the image
var rect:Rectangle = new 
Rectangle(Math.floor((finishedWidth-thumbwidth)/2),
 
Math.floor((finishedHeight-thumbheight)/2),
 
Math.ceil((finishedWidth +thumbwidth)/2),
 
Math.ceil((finishedHeight+thumbheight)/2));
trace(Math.floor((finishedWidth-thumbwidth)/2),
 Math.floor((finishedHeight-thumbheight)/2),
 Math.ceil((finishedWidth +thumbwidth)/2),
 Math.ceil((finishedHeight+thumbheight)/2));
trace('width', finishedWidth, 'height', finishedHeight);
//move it into the corner
var point:Point = new 
Point(Math.floor((finishedWidth-thumbwidth)/2)*-1, 
Math.floor((finishedHeight-thumbheight)/2) * -1);
var croppedBitmap:BitmapData = new BitmapData(finishedWidth, 
finishedHeight, false);
croppedBitmap.copyPixels(scaledBitmap, rect, point);

var image:Bitmap = new Bitmap(croppedBitmap);
addChild(image);
imageLoadCount++;
actualLoadCount++;
image.x = (thumbwidth+10) * (actualLoadCount);
image.y = 200;

HTH;

Amy



Re: [flexcoders] Re: Trying to convince people to develop with Flex

2009-09-29 Thread Mark Lapasa
Wow, that's a great case study / story about Flex.

valdhor wrote:
>  
>
> Perhaps you could do it in your own time?
>
> When I first started my job here (A large Multi-National) I was tasked 
> with creating a front end UI to replace an unwieldy PHP/Perl system. 
> They wanted it redone with JavaScript/AJAX. I had completed the first 
> part of this in six months but there were multiple different code 
> bases (For multiple browsers) and the code to do it would kill IE6 
> (The enterprise standard).
>
> I decided I would develop the same UI in Flex at home and give myself 
> a chance to learn on a real project. I completed the project in less 
> than two months. Once I showed my boss what could be done in less time 
> and with a single code base for all browsers, we scrapped the original 
> idea and moved forward with the full migration into Flex.
>
> If you can't/won't take this route, maybe the Adobe Dashboard 
> Application can show a small sampling of what can be done with Flex 
> (http://examples.adobe.com/flex3/devnet/dashboard/main.html 
> )
>
> HTH
>
> Steve
>
> --- In flexcoders@yahoogroups.com 
> , Steven loe  
> wrote:
> >
> > While I agree that building out something would be great. That's
> > probably not possible right now. I think they don't have enough
> > awareness of Flex to know what it could do for them. I think if they
> > could see a couple of slick data viz apps, they'd suddenly "get it". I
> > was hoping that a few flexcoders might have data viz apps they'd like
> > to show off.
> >
> > Thanks very much.
> >
> > On Sep 19, 2009, at 10:32 AM, Angelo Anolin 
> > wrote:
> >
> > > I believe the best way to do this is to port (convert) one of your
> > > slow, dull and hard to maintain application and show how the same
> > > could be done in Flex, albeit much better.
> > >
> > > Manager would only see the value of a development platform if they
> > > know that their business bottom line is improved, which is in this
> > > case a better application that they utilize.
> > >
> > > Angelo
> > >
> > > From: Schnurgle Schnurgle 
> > > To: flexcoders@yahoogroups.com 
> > > Sent: Saturday, 19 September, 2009 12:39:56
> > > Subject: [flexcoders] Trying to convince people to develop with Flex
> > >
> > >
> > > I'd like to get some people that I work with excited about
> > > developing RIAs with Flex. We currently do data visualization with
> > > fusion charts. I'd like to show folks here Flex apps that go beyond
> > > what fusion charts can do. I've googled a bunch but I've not found
> > > much. Also, any links to flex business apps that would help make the
> > > case that we could be offering amazing user experiences if we were
> > > to build with Flex would be great ammo.
> > >
> > > Thank you very much for any help with this.
> > > sh
> > >
> > >
> > >
> > >
> >
>
> 



Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



Re: [flexcoders] A Potential Beginner

2009-09-29 Thread primo411
Hi Julie ! Nice to see motivated people :)

>From my little experience, I'd say focusing on a technology is not the smart
approach. The standards always change, and they change very fast in the web
field. Silverlight and Flex are just concurrent technologies to do basically
the same thing: Rich Internet Applications. If you want to create yourself a
background in RIAs, you should just play with available technos and
understand by yourself with Flex is better in some cases or not.

So, to answer your question with my approach: Yes, I think there are lots of
things to do with RIAs ;)

2009/9/29 Snoopy 

>
>
> Hi Everyone,
>
> I hope this is the correct place to post this question. I like web
> development and currently deciding which track to take (Linux\PHP,
> Windows\.NET, or the more creative Adobe\ActionScript\Flex). I am leaning
> towards the more creative given my background in music.
>
> My question for you folks is this: What's it like in the real world doing
> ActionScript\Flex for a living? Are there a lot of jobs in it? What's the
> typical job like? Do you have to be a fantastic designer? What does the
> future look like for this field?
>
> Thanks a Bunch!
> Julie
> 13 years and running IT Support Specialist
>
>  
>


[flexcoders] A Potential Beginner

2009-09-29 Thread Snoopy
Hi Everyone,

I hope this is the correct place to post this question.  I like web development 
and currently deciding which track to take (Linux\PHP, Windows\.NET, or the 
more creative Adobe\ActionScript\Flex).  I am leaning towards the more creative 
given my background in music.

My question for you folks is this: What's it like in the real world doing 
ActionScript\Flex for a living?  Are there a lot of jobs in it?  What's the 
typical job like? Do you have to be a fantastic designer?  What does the future 
look like for this field?

Thanks a Bunch!
Julie
13 years and running IT Support Specialist



[flexcoders] reg-sudoku in flex

2009-09-29 Thread venkatesh-
hi every one,
i am venkatesh.i need to develop a sudoku application in flex.how should i 
create a sudoku in flex? which component should i use, grid container or 
something else?
please help me...
thanks.



[flexcoders] Tree populating via Blaze DS and update via JMS

2009-09-29 Thread randier

I have a tree which populates data from database using RemoteObject (Blaze DS
flex remoting). 
My tree populates on demand since it is dynamic tree and depth is infinite.
Adding more to it my customer want that selected node or whichever node &
leaf is visible in tree should update in case there is any update from Java
application, which will be publishing to ActiveMQ.

I scratched my head and I was not able to figure out how to do it.
I like to know what do I publish from the Java application, the complete
object, which build tree, and how to read it from consumer.
I have done other JMS and flex solution before but updating tree is
something which need some expert.

Thanks
-- 
View this message in context: 
http://www.nabble.com/Tree-populating-via-Blaze-DS-and-update-via-JMS-tp25655940p25655940.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] mx:Consumer doesn't subscribe to JMS-Grails

2009-09-29 Thread randier

I am creating a very simple flex application where I have one button on click
on which consumer subscribe to a JMS topic which is published via Grails
application to ActiveMQ.
I am not what causing a problem but I whenever I click th button in flex I
get to know the consumer is not subscribed to topic.
Below is the mxml code:

http://www.adobe.com/2006/mxml"; layout="absolute"
 >










Here is services-config.xml














javax.jms.ObjectMessage
   
ConnectionFactory
   
activejmsmqcontopic
NON_PERSISTENT
DEFAULT_PRIORITY
AUTO_ACKNOWLEDGE
false


Context.PROVIDER_URL
tcp://localhost:61616


Context.INITIAL_CONTEXT_FACTORY
   
org.apache.activemq.jndi.ActiveMQInitialContextFactory


topic.activejmsmqcontopic
activejmsmqcontopic























   

   





http://{server.name}:{server.port}/{context.root}/messagebroker/amf";
class="flex.messaging.endpoints.AMFEndpoint"/>

true
4







[BlazeDS] 
false
false
false
false


Endpoint.*
Service.*
Configuration







I have JMS & Flex plugins installed in grails application.
I can see the topic in ActiveMQ console which is published via Grails
application.


Any help is really appericated, but it is quite urgent.

Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/mx%3AConsumer-doesn%27t-subscribe-to-JMS-Grails-tp25605182p25605182.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] need Flexbox sourcecode

2009-09-29 Thread praveen_gandi2005
hello frnds, i need a flexbox sourcecode urgently. I will be very thankful if 
someone provides me the code. Thank you



Re: [flexcoders] AutoComplete ComboBox

2009-09-29 Thread Jeffry Houser


Thanks for checking us out then.  Can you provide me with a 
reproducible case? 

When I type some gibberish so that nothing is selected and use the tab 
key to lose focus, the first item is not selected.  If I do so in debug 
mode, the selectedIndex still stays at -1 and the selectedItem is null. 

If you want the typeAheadText to clear itself out when the user tabs 
away from the control and if nothing was selected, you can listen to the 
focusOut event and do something like this


public function onFocusOut():void{
if(ACCB.selectedIndex == -1){
 ACCB.autoCompleteSetTypeAheadText('');
}
}

Does that help?

yogesh patel wrote:
 


I am using Flextras AutoCompleteComboBox

--- On *Tue, 29/9/09, Jeffry Houser //* wrote:


From: Jeffry Houser 
Subject: Re: [flexcoders] AutoComplete ComboBox
To: flexcoders@yahoogroups.com
Date: Tuesday, 29 September, 2009, 11:47 AM

 



 What component are you using?

 The Flextras AutoCompleteComboBo x should not be doing that, and
I cannot replicate the functionality.  I'm unaware of any other
AutoCompleteComboBo xes built in Flex. 


 More info here: http://www.flextras .com/?event=
ProductHome&ProductID=10

yogesh patel wrote:

 


Hi,
 I have "AutoComplete ComboBox" with dataprovider
"ICollectionView" ,when i type some junk text in this component
which is not in the dataprovider and press TAB then the first
element gets selected,how can i varify that the typed text is not
in the dataprovider and give message like "text is not avaliable".


Thanks & Regards,
Yogesh Patel


Send free SMS to your Friends on Mobile from your Yahoo!
Messenger. Download Now! http://messenger. yahoo.com/ download. php



-- 
Jeffry Houser, Technical Entrepreneur

Adobe Community Expert: http://tinyurl. com/684b5h
http://www.twitter. com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras .com?c=104
--
http://www.theflexs how.com
http://www.jeffryho user.com
--
Part of the DotComIt Brain Trust


Send free SMS to your Friends on Mobile from your Yahoo! Messenger. 
Download Now! http://messenger.yahoo.com/download.php





--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



Re: [flexcoders] Ant Task to Build Air Package

2009-09-29 Thread Ian Thomas

works for me.

Which does much the same thing.

Are you sure your ${STOREPASS} property is correct/has valid data?

Ian

On Mon, Sep 28, 2009 at 8:18 PM, seanmcmonahan  wrote:

>
>
> I'm working on an Ant build script to build and package my Air application.
> So far it works pretty well except I cannot get the script to use the
> password for the signing certificate.
>
> ADT is invoked like this:
>
>  jar="${ADT.JAR}"
> fork="true"
> failonerror="true">
>
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
>
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
>
> When I run the script from Flex Builder everything works fine until, I
> presume, it gets to the storepass. If I run this build from the Termninal on
> Mac OS I can manually type in the password when the build script gets to the
> storepass and then the script will complete the build.
>
> So my build script mostly works, anyone have any thoughts on how to get it
> to entirely work? Ideally I'd like to be able to run the script from Flex
> Builder, but using the Terminal or Command Prompt is fine as well, I just
> don't want to have to type the password in for the certificate.
>
> Thanks!
>
>  
>


Re: [flexcoders] AutoComplete ComboBox

2009-09-29 Thread yogesh patel
I am using  Flextras AutoCompleteComboBox 

--- On Tue, 29/9/09, Jeffry Houser  wrote:

From: Jeffry Houser 
Subject: Re: [flexcoders] AutoComplete ComboBox
To: flexcoders@yahoogroups.com
Date: Tuesday, 29 September, 2009, 11:47 AM






 





  





 What component are you using?



 The Flextras AutoCompleteComboBo x should not be doing that, and I
cannot replicate the functionality.  I'm unaware of any other
AutoCompleteComboBo xes built in Flex.  



 More info here:
http://www.flextras .com/?event= ProductHome&ProductID=10 



yogesh patel wrote:
 

  
  
  

  
Hi,

 I have "AutoComplete ComboBox" with dataprovider
"ICollectionView" ,when i type some junk text in this component
which is not in the dataprovider and press TAB then the first element
gets selected,how can i varify that the typed text is not in the
dataprovider and give message like "text is not avaliable".





Thanks & Regards,

Yogesh Patel


  

  
  

Send free SMS to your Friends on Mobile from your Yahoo! Messenger.
Download Now! http://messenger. yahoo.com/ download. php
  
 


-- 
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl. com/684b5h
http://www.twitter. com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras .com?c=104
--
http://www.theflexs how.com
http://www.jeffryho user.com
--
Part of the DotComIt Brain Trust



 

  




 
















Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger.yahoo.com/download.php

RE: [flexcoders] Ant Task to Build Air Package

2009-09-29 Thread Jim Hayes
I have this :
 

 
 
 
 
 
  
  
  
  
 
So it looks like I'm using -keypass as well as -storepass , with the
same password.
 
No idea why! I built this script over a year ago, so have completely
forgotten the whys and wherefores, but it's still working for me without
asking for any passwords.
Hope that helps.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of seanmcmonahan
Sent: 28 September 2009 20:18
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Ant Task to Build Air Package
 
  
I'm working on an Ant build script to build and package my Air
application. So far it works pretty well except I cannot get the script
to use the password for the signing certificate.

ADT is invoked like this:

























When I run the script from Flex Builder everything works fine until, I
presume, it gets to the storepass. If I run this build from the
Termninal on Mac OS I can manually type in the password when the build
script gets to the storepass and then the script will complete the
build.

So my build script mostly works, anyone have any thoughts on how to get
it to entirely work? Ideally I'd like to be able to run the script from
Flex Builder, but using the Terminal or Command Prompt is fine as well,
I just don't want to have to type the password in for the certificate.

Thanks!


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

Re: [flexcoders] AutoComplete ComboBox

2009-09-29 Thread Jeffry Houser


What component are you using?

The Flextras AutoCompleteComboBox should not be doing that, and I 
cannot replicate the functionality.  I'm unaware of any other 
AutoCompleteComboBoxes built in Flex. 


More info here: http://www.flextras.com/?event=ProductHome&ProductID=10

yogesh patel wrote:
 


Hi,
 I have "AutoComplete ComboBox" with dataprovider 
"ICollectionView",when i type some junk text in this component which 
is not in the dataprovider and press TAB then the first element gets 
selected,how can i varify that the typed text is not in the 
dataprovider and give message like "text is not avaliable".



Thanks & Regards,
Yogesh Patel


Send free SMS to your Friends on Mobile from your Yahoo! Messenger. 
Download Now! http://messenger.yahoo.com/download.php





--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



[flexcoders] AutoComplete ComboBox

2009-09-29 Thread yogesh patel
Hi,
 I have "AutoComplete ComboBox" with dataprovider 
"ICollectionView",when i type some junk text in this component which is not in 
the dataprovider and press TAB then the first element gets selected,how can i 
varify that the typed text is not in the dataprovider and give message like 
"text is not avaliable".


Thanks & Regards,
Yogesh Patel


Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger.yahoo.com/download.php

[flexcoders] AIR from a Flex ActionScript Project?

2009-09-29 Thread John McCormack
Is there any easy way to publish a Flex ActionScript Project as an AIR file.
This project, by its nature, has no mxml tags.

John



[flexcoders] Re: How do I determing If I'm running an Air app vs. Flex app?

2009-09-29 Thread cuttenv
--- In flexcoders@yahoogroups.com, "cuttenv"  wrote:
>
> --- In flexcoders@yahoogroups.com, "luvfotography"  wrote:
> >
> > Hi, 
> > What's the simplest way to test (in actionscript) if
> > I'm running Air vs. Flex?
> > thanks,
> >
> Hey you need the adobe integrated run time to run an air app. Flex runs in 
> the browser on the flash player.
> 
> So if you are running the app in the browser then that's flash if it's on the 
> desktop that's air :)
>
(in actionscript)  I totally didn't read that part! lol



[flexcoders] Re: TitleWindow Popup Question(s)

2009-09-29 Thread cuttenv
Hey there,
I'm not sure how you are creating your popup but I would recommend you do it 
like this.
var popper:TestPopUp = new TestPopUp();
PopUpManager.addPopUp(popper,this);
PopUpManager.centerPopUp(popper);

Where TestPopUp is your TitleWindow Component. Then your creationComplete and 
Initialize events will fire every time because you are creating a new reference.

You can reference the title of the title window inside it's self by calling 
this.title.

//This code would go inside the TestPopUp.mxml which extends TitleWindow in my 
example
> private function getTitleWindowTitle() :void
> {
>  Alert.show(this.title);
>  // I Should be able to display the Title of the title window in an alert 
> message.
> }

Hope that helps,
-Vito

--- In flexcoders@yahoogroups.com, Angelo Anolin  wrote:
>
> Hi FlexCoders,
> 
> Just a little TitleWindow popup question.
> 
> I want a function to be executed everytime my popup title window component is 
> displayed.  How do I achieve this?
> 
> I tried in the title window using the initialize property like:
> http://www.adobe.com/2006/mxml"; 
> initialize="RunEveryPop();" >
> 
> but my function RunEveryPop only executes the first time the popup is 
> displayed. Subsequent popups would not trigger the said function.
> 
> I know I can declare a public function in the title window and simply call 
> this function from the calling main application, but I am wondering if this 
> is a good or recommended way in achieving this?
> 
> Also, another question...
> 
> How do I reference the title of the TitleWindow from within itself? Like for 
> example:
> 
> private function getTitleWindowTitle() :void
> {
>  Alert.show(Titlewindow.Title);
>  // I Should be able to display the Title of the title window in an alert 
> message.
> }
> 
> Advice and inputs would be highly appreciated.
> 
> Thanks.,
>




Re: [flexcoders] Mac OSX and Flex builder

2009-09-29 Thread Sam Lai
2009/9/29 cuttenv :
> Anyone know what aum.flexbuilder.osx and why it needs rosetta?? :)

Extremely random guess, I don't have a Mac around - but aum might be
Adobe Update Manager?


[flexcoders] Re: How do I determing If I'm running an Air app vs. Flex app?

2009-09-29 Thread cuttenv
--- In flexcoders@yahoogroups.com, "luvfotography"  wrote:
>
> Hi, 
> What's the simplest way to test (in actionscript) if
> I'm running Air vs. Flex?
> thanks,
>
Hey you need the adobe integrated run time to run an air app. Flex runs in the 
browser on the flash player.

So if you are running the app in the browser then that's flash if it's on the 
desktop that's air :)



[flexcoders] Mac OSX and Flex builder

2009-09-29 Thread cuttenv
Anyone know what aum.flexbuilder.osx and why it needs rosetta?? :)



Re: [flexcoders] How do I find the event that occurs directly after Event.RENDER

2009-09-29 Thread dorkie dork from dorktown
thank you

On Mon, Sep 28, 2009 at 6:45 PM, Alex Harui  wrote:

>
>
>  enterFrame is the first even after the player has drawn/updated the
> screen.
>
>
>
> Alex Harui
>
> Flex SDK Developer
>
> Adobe Systems Inc. 
>
> Blog: http://blogs.adobe.com/aharui
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *dorkie dork from dorktown
> *Sent:* Sunday, September 27, 2009 11:54 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] How do I find the event that occurs directly after
> Event.RENDER
>
>
>
>
>
> I need to know when my application has been completely rendered. I know
> there is a Event.RENDER event but that occurs before the Render frame. If
> there isn't an event that tells me that can I listen for the Render frame
> and then wait one frame and know for sure that the frame has been rendered?
>
> More needless detail, I am setting a TextField with text and image content.
> Once everything is loaded I need to measure it. If I measure too soon it is
> too short. If I measure too late the program looks slow and unresponsive.
> I'm trying to nail it down to the first moment the layout is updated.
>
> Thanks in advance,
> dorkie rendering dork from dorktown
>
>   
>


Re: [flexcoders] How to resize image to fill area and clip

2009-09-29 Thread dorkie dork from dorktown
Hi Greg,

I'm not sure exactly what you are trying to do but if I understand correctly
you can do the following. You could make this into a component but for
testing do the following.

Add a canvas to your application. Set it to the height and width you want.
Add an image component to it and anchor it to the vertical and horizontal
center. Do not set width or height. Set the images vertical and horizontal
align to middle and center. Set the source of the image. Run the
application. Go back to the Flash Builder.

Check when the image has loaded, add an event.complete handler. When you get
that you'll have the width and height of the image. Now, either set the
container to the width and height or scale the image up by either by
increasing the scaleX, scaleY or setting the width OR height to the width
and or height of the container.

I would add a width and height slider and a scaleX and scaleY slider next to
the canvas so you can test it.

You'll have to tweak this obviously. Investigate the maintainAspectRatio
property on the Image class, the clipContent property and the other
properties on the Image class.

dorkie image wrangling dork from dorktown


On Mon, Sep 28, 2009 at 3:31 PM, Greg Hess  wrote:

>
>
> Hi All,
>
> I have a content area that I need to fill with a user supplied
> graphic. The graphic may be any aspect ratio and I want to scale the
> image to the content area and maintain aspect ratio however, instead
> of producing "white" space where the aspect ratio could not be
> achieved(Standard behavior of the Image class) I would like to clip
> the image. The area will always be filled entirely, the aspect ratio
> will be maintained but the image may be clipped.
>
> Does anyone know how I can do this?
>
> Any help much appreciated.
>
> Greg
>  
>


Re: [flexcoders] TitleWindow Popup Question(s)

2009-09-29 Thread Dave Cates
Hi,

I¹d reference a public set function within the title window itself. Works
good for us since we use an MVC model and so don¹t really want too much code
within the TitleWindow view itself.

Regarding the title itself. I do this by assigning a Bindable variable to
the title in the main header of the title window.

Then I can update the title by simply assigning values to that variable
whenever I like.

Hope that helps.

Dave.



From: Angelo Anolin 
Reply-To: 
Date: Tue, 29 Sep 2009 00:55:35 -0700 (PDT)
To: 
Subject: [flexcoders] TitleWindow Popup Question(s)

 
 
 

Hi FlexCoders,
 
Just a little TitleWindow popup question.
 
I want a function to be executed everytime my popup title window component
is displayed.  How do I achieve this?
 
I tried in the title window using the initialize property like:
http://www.adobe.com/2006/mxml";
initialize="RunEveryPop();" >
 
but my function RunEveryPop only executes the first time the popup is
displayed. Subsequent popups would not trigger the said function.
 
I know I can declare a public function in the title window and simply call
this function from the calling main application, but I am wondering if this
is a good or recommended way in achieving this?
 
Also, another question...
 
How do I reference the title of the TitleWindow from within itself? Like for
example:
 
private function getTitleWindowTitle() :void
{
 Alert.show(Titlewindow.Title);
 // I Should be able to display the Title of the title window in an alert
message.
}
 
Advice and inputs would be highly appreciated.
 
Thanks.,

 
  


> 



[flexcoders] TitleWindow Popup Question(s)

2009-09-29 Thread Angelo Anolin
Hi FlexCoders,

Just a little TitleWindow popup question.

I want a function to be executed everytime my popup title window component is 
displayed.  How do I achieve this?

I tried in the title window using the initialize property like:
http://www.adobe.com/2006/mxml"; 
initialize="RunEveryPop();" >

but my function RunEveryPop only executes the first time the popup is 
displayed. Subsequent popups would not trigger the said function.

I know I can declare a public function in the title window and simply call this 
function from the calling main application, but I am wondering if this is a 
good or recommended way in achieving this?

Also, another question...

How do I reference the title of the TitleWindow from within itself? Like for 
example:

private function getTitleWindowTitle() :void
{
 Alert.show(Titlewindow.Title);
 // I Should be able to display the Title of the title window in an alert 
message.
}

Advice and inputs would be highly appreciated.

Thanks.,


  

Re: [flexcoders] How do I determing If I'm running an Air app vs. Flex app?

2009-09-29 Thread Dave Cates
Erwhat do you mean exactly???

If the app uses/needs a browser, it¹s just a Flash/Flex based app. If it
executes/runs on the desktop it¹s an Air app. That¹s the only real
difference.

Does that help?

From: luvfotography 
Reply-To: 
Date: Mon, 28 Sep 2009 21:30:17 -
To: 
Subject: [flexcoders] How do I determing If I'm running an Air app vs. Flex
app?

 
 
 

Hi, 
What's the simplest way to test (in actionscript) if
I'm running Air vs. Flex?
thanks,

  


> 



Re: [flexcoders] Any "Stable Enough" Flex 4 Nightly build around?

2009-09-29 Thread Aldo Bucchi
Hi Peter,

This particular error is still present in build 10608, although other things
run quite smoothly.
I haven't been able to isolate the error just and create a testbed yet
(probably will soon), but for now what I can tell you is that it appears
when I add, via Actionscript, a new halo Form to a spark Group container.
This container is being heavily resized and animated up until the form is
added to it.

The end result is that the whole application looks "messy" but no RTEs are
thrown, as if the Layout process went crazy from this point on.

I am using intermixed Halo/Spark components in other parts of the app and
this seems to be the only issue of the kind.

Regards,
A


On Mon, Sep 28, 2009 at 1:51 PM, Peter DeHaan  wrote:

>
>
>  Aldo,
>
>
>
> I’d download the latest nightly build from
> http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4(currently 
> 4.0.0.10608). If you’re still seeing the layout issues in that
> build (or any other issues), please file a bug at
> http://bugs.adobe.com/flex/.
>
>
>
> Thanks,
>
>
>
> Peter
>
>
>
>
>
>
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Aldo Bucchi
> *Sent:* Sunday, September 27, 2009 3:00 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Any "Stable Enough" Flex 4 Nightly build around?
>
>
>
>
>
> Hi guys,
>
> Any "Stable Enough" Flex 4 Nightly build around?
> I am fighting with some nasty layout bugs in Beta1. Need to get around
> this somehow.
>
> Thanks,
> A
>
> --
> Aldo Bucchi
> skype:aldo.bucchi
> http://www.univrz.com/
> http://aldobucchi.com/
>
> PRIVILEGED AND CONFIDENTIAL INFORMATION
> This message is only for the use of the individual or entity to which it is
> addressed and may contain information that is privileged and confidential.
> If
> you are not the intended recipient, please do not distribute or copy this
> communication, by e-mail or otherwise. Instead, please notify us
> immediately by
> return e-mail.
>
>   
>



-- 
Aldo Bucchi
skype:aldo.bucchi
http://www.univrz.com/
http://aldobucchi.com/

PRIVILEGED AND CONFIDENTIAL INFORMATION
This message is only for the use of the individual or entity to which it is
addressed and may contain information that is privileged and confidential.
If
you are not the intended recipient, please do not distribute or copy this
communication, by e-mail or otherwise. Instead, please notify us immediately
by
return e-mail.