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, 





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:



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] 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  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 , "dennis"
>  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.
> >
>
>  
>


[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?



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





[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"  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:
> 
>  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] 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.



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.



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  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:
>
>  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] 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, 




[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