[flexcoders] Re: Color in a color gradient.

2009-10-18 Thread ivansebastiansurya
Hi Robert,

Thanks for your advice.. will try it first thing in the morning.

Your help is GREATLY appreciated.

Cheers,

Ivan

--- In flexcoders@yahoogroups.com, ag_rcuren robert.vancuren...@... wrote:

 The first thing that comes to my mind is the getPixel32 method of the 
 BitmapData Class. You pass in the x and y of the pixel you want to know about 
 and it returns a ARGB unit color value back. So you would have to calculate 
 the exact point you want to know about and then use that method.
 
 --- In flexcoders@yahoogroups.com, ivansebastiansurya ivansebastiansurya@ 
 wrote:
 
  Hi everyone,
  
  I've got a problem regarding colour gradient.  I have created a control 
  when you can define colour points along a rectangle to create a colour 
  gradient.  The problem that I have is that I need to find a way to find the 
  exact colour at a point between the gradient points (my control also allow 
  you to define the alpha at that point).
  Anyone has come across that problem and know how to solve it?
  Thanks in advance for reading my question and any help is greatly 
  appreciated.
  
  Ivan.
 





[flexcoders] Graphics question

2009-10-18 Thread Christophe
Hello, 

I have 2 questions : 

- How to have round buttons on an interface ?

- How to generated a drawing with Degrafa in the background of an HBox ? 

Thank you,
Christophe



[flexcoders] Generate XML file

2009-10-18 Thread Christophe
Hello, 

I have datas in my Flex application and I want to generates a XML file with 
these datas, on the server. How to do that ? 

Thank you,
Christophe, 




Re: [flexcoders] Passing associative array to custom component

2009-10-18 Thread Roman Protsiuk
Try using Dictionary instead.

Roman Protsiuk
Software Engineer/Engineering Team Lead

http://under.in.ua

Kyiv, Ukraine (GMT+2)
mobile: +38 097 321 56 54 email:
roman.prots...@gmail.com%3C/span%3eroman.prots...@gmail.com
 skype: roman.protsiuk
linkedin: http://www.linkedin.com/in/romanpv blogspot:
http://roma-ch.blogspot.com


On Sun, Oct 18, 2009 at 1:43 AM, icepero icep...@yahoo.com wrote:



 I built a custom button component and it has a property that accepts an
 array of values. In the main.mxml file, how can I pass an array when
 defining the property?

 main.mxml has this button code:

 comp:updateButton
 id=update
 cubeName={_cubeName}
 viewName={_viewName}
 serverChartId={_serverChartId}
 titleDims=xxx
 enabled=false/

 for title dims, I tried:
 titleDims=[{Month: comboBox1.text, Year:comboBox2.text, Sales
 Order:comboBox3.text}]

 but I get a 1084: Syntax error: expecting rightparen before colon

 The keys will have spaces in them like 'Sales Order'

 How can I declare the array in mxml?

  



Re: [flexcoders] How to set variableRowHeight = true in MenuBar

2009-10-18 Thread iLLuZioN

It's been a while since the last post, but hopefully this will help others
with the same problem.

I've adjusted the onMenuShow function to fix the height problem:

private function onMenuShow(event:MenuEvent):void { 
  if ( !event.menu.variableRowHeight ) {
event.menu.variableRowHeight = true;
event.menu.invalidateSize();
  }
}

invalidateSize() will force remeasurement of the component, fixing the
incorrect height.


nathanleewei-2 wrote:
 
 
 Anyone has any idea?
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-set-variableRowHeight-%3D-true-in-MenuBar-tp20790140p25938516.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] unable to load SWC services-config.xml

2009-10-18 Thread naveenm_006
Hi,

I'm getting the following error 

unable to load SWC services-config.xml

when i try to import cairngorm based project into my flex builder.

Can anybody resolve this problem.

Regards,
Naveen.



[flexcoders] Re: Passing associative array to custom component

2009-10-18 Thread seanmcmonahan
In your example, switch the curly braces ( { ) with the square braces ( [ ).

--- In flexcoders@yahoogroups.com, icepero icep...@... wrote:

 I built a custom button component and it has a property that accepts an array 
 of values. In the main.mxml file, how can I pass an array when defining the 
 property?
 
 main.mxml has this button code:
 
 comp:updateButton
 id=update
 cubeName={_cubeName}
 viewName={_viewName}
 serverChartId={_serverChartId}
 titleDims=xxx
 enabled=false/
 
 
 for title dims, I tried:
 titleDims=[{Month: comboBox1.text, Year:comboBox2.text, Sales 
 Order:comboBox3.text}]
 
 but I get a 1084: Syntax error: expecting rightparen before colon
 
 The keys will have spaces in them like 'Sales Order'
 
 How can I declare the array in mxml?





[flexcoders] Question?? Best method for plotting a Moving Average

2009-10-18 Thread cjsteury2
Hi all,

I am stumped.

If I want to add an additional data series to a HLOC Chart that is a line 
series of a simple 20 day moving average for the closing price (Close) value 
in an array collection (Array_Tickers)... how would I perform that calculation 
in Flex?

mx:lineSeries id=mavg 
 dataprovider=Array_Tickers
 ySeries=Close /

How would I calculate Close as {The SUM for the Value of Close for the 
previous 20 days / divided by 20}...





Re: [flexcoders] Re: defining more than one class in a simple .as file (ref)

2009-10-18 Thread Baz
me?


On Fri, Oct 16, 2009 at 1:31 PM, Tracy tr...@nts3rd.com wrote:



 Please do not hijack threads. Unless your post is directly applicable to
 another, start a new topic.

 Do not just change the subject line. It confuses some threaded readers,
 like yahoo's html version.

 Tracy


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, dennis
 den...@... wrote:
 
  I want to create more than one class in a single .as file, but finally
 this
  is not allowed!
 
 
 
  I read at
  http://livedocs.adobe.com/flex/3/html/help.html?content=basic_as_2.htmlthe
  follow rule:
 
  In a single ActionScript file, you can define only one class in the
  package. To define more than one class in a file, define the additional
  classes outside of the package body.
 
 
 
  Implementing by this way, the additional classes doesn't belong to the
  package (specified in the .as), but belong in the default package
  something that I do not want it.
 
 
 
  Of course, the other way Is to implement the class in another .as of the
  same package but this will have as result so many .as files (doing
 nothing
  in particular).
 
 
 
  So, I just want to clear, there is no way to have more than one class of
 the
  same package in the same .as file???
 
 
 
  dennis
 
  ...we are what we are doing... P Think! before you print.
 

  



RE: [SPAM] [flexcoders] Passing associative array to custom component

2009-10-18 Thread Tracy Spratt
Maybe an mxml parsing issue?  You could declare and initialize an object
variable in AS, as you are doing with the other properties.  You might also
try using entity expressions for some of the special characters.

 

To be accurate, in your code, you are not trying to pass an associative
array, you are passing an array of Objects (with one element).  Is that what
you intend?  They are different things.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of icepero
Sent: Saturday, October 17, 2009 6:44 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] Passing associative array to custom component

 

  

I built a custom button component and it has a property that accepts an
array of values. In the main.mxml file, how can I pass an array when
defining the property?

main.mxml has this button code:

comp:updateButton
id=update
cubeName={_cubeName}
viewName={_viewName}
serverChartId={_serverChartId}
titleDims=xxx
enabled=false/

for title dims, I tried:
titleDims=[{Month: comboBox1.text, Year:comboBox2.text, Sales
Order:comboBox3.text}]

but I get a 1084: Syntax error: expecting rightparen before colon

The keys will have spaces in them like 'Sales Order'

How can I declare the array in mxml?





RE: [SPAM] [flexcoders] Generate XML file

2009-10-18 Thread Tracy Spratt
Build the xml structure in Flex, then pass the xml string to the server
using the RPC protocol of your choice.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Christophe
Sent: Sunday, October 18, 2009 5:12 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] Generate XML file

 

  

Hello, 

I have datas in my Flex application and I want to generates a XML file with
these datas, on the server. How to do that ? 

Thank you,
Christophe,