[flexcoders] Re: Keeping DataGrid from scrolling to top on update to dataProvider

2006-06-28 Thread djbrown_rotonews
I'm still not having any luck. The reset event is being called 
upstream and processed in my handler, with the proper value of 
prevIndex calculated, but the grid still jumps to the top after the 
data fill:

if (event.kind == CollectionEventKind.RESET) {
var prevIndex:int = this.dgDelays.verticalScrollPosition;
trace(prevIndex = ,prevIndex);
this.dgDelays.verticalScrollPosition=prevIndex;
}

--- In flexcoders@yahoogroups.com, Deepa Subramaniam 
[EMAIL PROTECTED] wrote:

 I'm sorry, I totally misspoke. I meant to say RESET in my 
explanation
 below. 
 
  
 
 When your collection is filled with new data after a fill() call 
to your
 DataService, the component bound to that collection will receive a
 CollectionEvent with kind = RESET. Internally, we re-populate the
 component with the new data and reset the scroll position to 0. 
 
 
 What you can do is add your own collectionChange event handler to 
your
 collection and upon receiving a RESET, reset the 
verticalScrollPosition
 to whatever value you've been tracking.
 
  
 
 private function acHandler(event:CollectionEvent):void
 
 {
 
 if (event.kind == CollectionEventKind.RESET)
 
 dg.verticalScrollPosition = vPos;
 
 }
 
  
 
 There's no need to use the scrollToIndex() method; by setting the
 verticalScrollPosition property directly, the scrollbar and 
content are
 update as if the user scrolled to that index. 
 
  
 
 Best,
 
 deepa
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of djbrown_rotonews
 Sent: Wednesday, June 28, 2006 7:21 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Keeping DataGrid from scrolling to top on
 update to dataProvider
 
  
 
 I added a collectionChange event to my XMLListCollection (that's 
the 
 dataProvider for the grid) as follows:
 
 public function preserveScrollPosition(event:CollectionEvent):void 
{
 
 var prevIndex:int = this.dgDelays.verticalScrollPosition;
 trace(prevIndex = ,prevIndex);
 this.dgDelays.scrollToIndex(prevIndex);
 
 }
 
 and the trace info does give me the value of the currentScroll, 
but 
 the grid still goes back to the top after the data is populated.
 
 is refresh() still being called after this guy?
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 , Deepa Subramaniam 
 dsubrama@ wrote:
 
  When the actual data comes in, the DataGrid encounters a REFRESH
  collectionChange event and if you look in
  ListBase.collectionChangeHandler's REFRESH case, you'll see that 
 the
  verticalScrollPosition is set to 0. 
  
  What you need to do is set the scroll position *after* the data 
 has come
  in and the DataGrid has processed the REFRESH event. 
  
  -deepa
  
  -Original Message-
  From: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 ] On
  Behalf Of djbrown_rotonews
  Sent: Tuesday, June 27, 2006 12:42 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com 
  Subject: [flexcoders] Re: Keeping DataGrid from scrolling to top 
on
  update to dataProvider
  
  I actually tried this (my dataProvider for the grid is an 
  XMLListCollection being populated by a jsp. The grid has custom 
 item 
  renderers if that's relevant).
  
  anyhow, I have an update button which will call the jsp and 
get 
  new results when clicked. I've set it up so the click() method 
  correctly captures the scroll position, calls the jsp, and then 
 sets 
  the scrollToIndex to the previous value of the scroll position. 
It 
  works great while the busy cursor is displayed, but it reverts 
  back to scrolled all the way at the top once the actual data 
comes 
  in from the jsp (it takes about 3 seconds to update the grid 
with 
  the new data).
  
  any ideas on where the scroll position is being reset?
  
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com , Deepa Subramaniam 
  dsubrama@ wrote:
  
   Hi Jordan -
   
   
   
   You can keep track of the verticalScrollPosition property in 
your
   DataGrid and upon receving UPDATES, re-set the 
  verticalScrollPosition to
   the previous value and the DataGrid will jump to the last 
scroll
   position and show the correct content. 
   
   
   
   -deepa
   
   
   
   
   
   From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com  
  [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com ] On
   Behalf Of Jordan Snyder
   Sent: Monday, June 26, 2006 7:34 PM
   To: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 
   Subject: [flexcoders] Keeping DataGrid from scrolling to top 
on 
  update
   to dataProvider
   
   
   
   Hello All,
   
   I am working on an app in which I poll the server quite 
 frequently 
  to
   get new information. The information comes to me in an XML 
 format 
  that
   I simply assign as 

RE: SPAM-LOW: RE: [flexcoders] Re: Flex 2 released tomorrow

2006-06-28 Thread Matt Chotin










We will be updating the FAQ to have an
entry that looks like this:



If I own Flex 1.5 with maintenance, what Flex 2
products am I entitled to?

(Please note that
this is only applicable for customers that have a valid, current Maintenance
contract for Flex 1.5.)




 
  
  Flex 1.5 - I currently own:
  
  
  Flex 2 - I am entitled to:
  
 
 
  
  
  Flex 1.5 Per CPU license (with 5 (five) Flex
  Builders)
  
  
  
  5 (five) Flex Builder 2 with Charting per user
  licenses
  and
  1 (one) Flex Data Services 2 Enterprise per CPU
  license
  
 
 
  
  
  Flex 1.5 QuickStart Bundle (with 5 (five) Flex
  Builders)
  
  
  
  5 (five) Flex Builder 2 with Charting per user
  licenses
  and
  4 (four) Flex Data Services 2 Enterprise Per CPU
  license
  
 
 
  
  
  Additional Flex Builder licenses
  
  
  
  Flex 2 Builder with Charting per user licenses on a
  1:1 basis
  
 
 
  
  
  Unique non-standard Flex 1.5 licenses
  
  
  
  Please contact your Adobe sales representative
  
 




















From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ian Welsh
Sent: Wednesday, June 28, 2006
2:28 AM
To: flexcoders@yahoogroups.com
Subject: RE: SPAM-LOW: RE:
[flexcoders] Re: Flex 2 released tomorrow













Any information on the upgrade path for licensed Flex 1.5 users
with maintenance  nothing in the FAQ.



Regards

Ian











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Matt Chotin
Sent: 28 June 2006 08:00
To: [EMAIL PROTECTED]
Subject: SPAM-LOW: RE:
[flexcoders] Re: Flex 2 released tomorrow













FB for Mac is planned for our next real (non-small-updater)
release. Timeframe not yet determined. Feasibility of getting all
the Eclipse issues worked out still not determined J





Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]
On Behalf Of Max Westen
Sent: Tuesday, June 27, 2006 11:32
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex 2
released tomorrow











I just saw
it's posted online :)

http://www.adobe.com/flex

You can then download a trail version.
Still nothing on the flexbuilder for OSX..

Cheers,

Max

--- In [EMAIL PROTECTED]ups.com,
Shannon Hicks [EMAIL PROTECTED] wrote:

 Nothing yet on Adobe's site...
 
 I'm guessing that the release will coincide with the Adobe keynote
here at
 CF United tomorrow morning.
 
 Who all on the list is here in DC for the conference?
 
 Shan
 






















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Re: Chart Data Tip Function

2006-06-28 Thread pasflex
Thanks.

--- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] 
wrote:

  
  
 Sorry, yes, in the final release chart datatip functions take a 
hitData
 structure as its only parameter.
  
 Ely.
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of pasflex
 Sent: Wednesday, June 28, 2006 11:58 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Chart Data Tip Function
 
 
 
 Did the argument for a chart datatip function change in the 
release?
 
 The docs still show it taking a ChartItemEvent, but that seems to 
 cause errors that weren't there in beta3:
 TypeError: Error #1034: Type Coercion failed: cannot convert 
 mx.charts::[EMAIL PROTECTED] to mx.charts.events.ChartItemEvent.
 at mx.charts.chartClasses::ChartBase/::invokeDTFunction()
 at mx.charts::HitData/get displayText()
 at mx.charts.chartClasses::DataTip/set data()
 at 
 mx.charts.chartClasses::ChartBase/::updateDataTipToMatchHitSet()
 at mx.charts.chartClasses::ChartBase/::processRollEvents()
 at mx.charts.chartClasses::ChartBase/::mouseMoveHandler()
 
 Looks like it might now take HitData.
 
 Is this correct or do I have some other issue?








 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Generate sound

2006-06-28 Thread Dirk Eismann





Ahh, 
that hidden Metadata [FMSynthesis], eh?

Dirk.


  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Roger 
  GonzalezSent: Wednesday, June 28, 2006 10:30 PMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Generate 
  sound
  
  Yes, but not easily. I'll be writing a blog 
  post with example code on this soon. :-)
  
  -rg
  


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of David 
ClarkSent: Wednesday, June 28, 2006 11:51 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Generate 
sound


Anyone know if it is possible to generate sound / tones from flash / 
flex? Something like a beep function to play a sound of a certain frequency, 
though not by loading a sound file.Thanks-- 
david"Many people die at twenty five and aren't buried until 
they are seventy five".- Benjamin Franklin  
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Flex 2 (final) bug with showDataEffect and stacked column chart

2006-06-28 Thread Pan Troglodytes



I have found a bug in Flex 2 (final) showDataEffect combined with stacked columns. You get an error. If you take off the stacked setting, you do not get an error. Or, if you take off the effect and leave stacked, no error. Here's the sample code:
?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 layout=absolute mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var d1:ArrayCollection = new ArrayCollection([ {x:1,y:10},{x:2,y:20},{x:3,y:30},{x:4,y:40},
 {x:5,y:50},{x:6,y:60},{x:7,y:70},{x:8,y:80}]); [Bindable] public var d2:ArrayCollection = new ArrayCollection([ {x:1,y:80},{x:2,y:70},{x:3,y:60},{x:4,y:50}, {x:5,y:40},{x:6,y:30},{x:7,y:20},{x:8,y:10}]);
  ]] /mx:Script mx:ColumnChart id=myChart type=stacked mx:SeriesInterpolate id=interp duration=1000 minimumElementDuration=200 elementOffset=0/
 mx:series mx:ColumnSeries id=s1 xField=x yField=y dataProvider={d1} showDataEffect=interp mx:fill mx:SolidColor color=0x00FF00/
 /mx:fill /mx:ColumnSeries mx:ColumnSeries id=s2 xField=x yField=y dataProvider={d2} showDataEffect=interp
 mx:fill mx:SolidColor color=0xFF/ /mx:fill /mx:ColumnSeries /mx:series /mx:ColumnChart mx:Button x=10 y=408 label=lt;lt; click=
s1.dataProvider = d2; s2.dataProvider = d1/ mx:Button x=83 y=408 label= click=s2.dataProvider = d2; s1.dataProvider = d1//mx:Application
-- Jason

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] Re: Variable number of columns in ColumnChart

2006-06-28 Thread Matt Horn
Use ActionScript to add a series to the chart's series array. This
should get you started:

var s:LineSeries = new LineSeries();
s.yField=Points;
s.dataProvider = secondPerson;
var oldSeries:Array = myChart.series;
oldSeries.push(s);
myChart.series = oldSeries; 

hth,

matt horn
flex docs

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard
 Sent: Wednesday, June 28, 2006 4:13 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Variable number of columns in ColumnChart
 
 Anyone?
 
 --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com , ben.clinkinbeard
 [EMAIL PROTECTED] wrote:
 
  Hello, I have a ColumnChart whose columns are based on 
 selections in 
  another part of the app. So there can be anywhere between 1 and 4 
  column sets. Unfortunately, I can't figure out how to add the 
  ColumnSeries items dynamically, so my legend always has 4 items, 
  regardless of the actual data. Here are my ColumnChart and Legend
 objects:
  
  mx:ColumnChart dataProvider={chartObj} id=column 
  mx:horizontalAxis mx:CategoryAxis dataProvider={chartObj} 
  categoryField=PAAge/ /mx:horizontalAxis mx:series mx:Array 
  mx:ColumnSeries displayName={arr_legend.getItemAt(0)}
  yField={arr_legend.getItemAt(0)}/
  mx:ColumnSeries displayName={arr_legend.getItemAt(1)}
  yField={arr_legend.getItemAt(1)}/
  mx:ColumnSeries displayName={arr_legend.getItemAt(2)}
  yField={arr_legend.getItemAt(2)}/
  mx:ColumnSeries displayName={arr_legend.getItemAt(3)}
  yField={arr_legend.getItemAt(3)}/
  /mx:Array
  /mx:series
  /mx:ColumnChart
  mx:Legend dataProvider={column}/
 
 
 
 
  
 


 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Generate sound

2006-06-28 Thread David Clark



I was bored and playing around with something that I wrote in c# a while ago... I guess one could generate the byte array that the Sound class holds... not much doco on the internals of that class though... maybe if it could use a simple format like wav or something...
anyways, enough rambling... when? :) soon? hahah. only kiddding... but seriously if you feel like throwing code my way before you post it / before it works... I am up for that :)What is the address of your blog?
See you.-- davidMany people die at twenty five and aren't buried until they are seventy five. - Benjamin Franklin

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Hello, Testing 123, is this thing on?

2006-06-28 Thread Ted Patrick
Sorry for the test, just getting flexcoders under my new Adobe email.

My role at Adobe faces the Flex developer community and is focused on
helping developers succeed with Flex. If there is anything that I can do
for you, please do not hesitate to email me at tpatrick(a)adobe.com.

I look forward to working with you!

More to come...

Ted Patrick
Flex Evangelist
Adobe Systems Incorporated


 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Variable number of columns in ColumnChart

2006-06-28 Thread Doug Lowder
Hi Ben,

If you're just looking for a way to have the legend display 
different items than the chart, instead of setting the Legend's 
dataProvider to the chart, set it to an array of items you want 
displayed. In Flex 1.5, I did this by setting the Legend 
dataProvider to a copy of the array used for the chart's series 
property; I believe the same approach should work in Flex 2 as 
well.  If you are displaying markers for the legend, you may also 
need supporting code to set the markers' fill and stroke styles so 
that they match the chart's styles.

Doug

--- In flexcoders@yahoogroups.com, ben.clinkinbeard 
[EMAIL PROTECTED] wrote:

 Anyone?
 
 --- In flexcoders@yahoogroups.com, ben.clinkinbeard
 ben.clinkinbeard@ wrote:
 
  Hello, I have a ColumnChart whose columns are based on 
selections in
  another part of the app. So there can be anywhere between 1 and 4
  column sets. Unfortunately, I can't figure out how to add the
  ColumnSeries items dynamically, so my legend always has 4 items,
  regardless of the actual data. Here are my ColumnChart and Legend
 objects:
  
  mx:ColumnChart dataProvider={chartObj} id=column
  mx:horizontalAxis
  mx:CategoryAxis dataProvider={chartObj} 
categoryField=PAAge/
  /mx:horizontalAxis
  mx:series
  mx:Array
  mx:ColumnSeries 
displayName={arr_legend.getItemAt(0)}
  yField={arr_legend.getItemAt(0)}/
  mx:ColumnSeries 
displayName={arr_legend.getItemAt(1)}
  yField={arr_legend.getItemAt(1)}/
  mx:ColumnSeries 
displayName={arr_legend.getItemAt(2)}
  yField={arr_legend.getItemAt(2)}/
  mx:ColumnSeries 
displayName={arr_legend.getItemAt(3)}
  yField={arr_legend.getItemAt(3)}/
  /mx:Array
  /mx:series
  /mx:ColumnChart
  mx:Legend dataProvider={column}/
 








 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Serialization bug in release

2006-06-28 Thread Allen Riddle










We are currently upgrading our beta 3 developed product to
the new release version. It appears that they have changed collections returned
from SOAP Web Service calls to de-serialize into ArrayCollection now, versus
Array the type. Ok, fine. However, when you try to invoke a web service, and
flex serializes the ArrayCollection, it blows up. Is anybody else successfully
able to invoke a web service using an ArrayCollection? 



Thanks.



Allen Riddle

Sofware Development

x3217






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___





Re: [flexcoders] [Flex2 final release] FlexBuilder 2 install Flash Player 9.0.15??

2006-06-28 Thread Xavi Beumala



I'm having probles here with AMF0. I'm not able to cast custom Objects sent from Java. The behaviour is quite strange so if I only launch one request it behaves as expected. But if I launch several parallel requests only the last response is getting a correct serialized result.
I'll try to isolate it and share...Thx any wayX.On 6/28/06, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:Yes it does install 9.0.15, and AMF0 is working fine (at least with my test using AMFPHP)
M.Original Message-From: Carlos Rovira [EMAIL PROTECTED]Date: Wed, 28 Jun 2006 19:55:26
To:flexcoders@yahoogroups.comSubject: [flexcoders] [Flex2 final release] FlexBuilder 2 install Flash Player 9.0.15??Hi,I Think this is a clear bug in the Flex Builder 2 installer.The final version is 
9.0.16, but Flex Builder 2 is installing 9.0.15?Please, could someone at Adobe confirm this?(Another point is that someone told me about AMF0 not working again, I proced to test it asap and confirm to this list)
--::| Carlos Rovira::| http://www.carlosrovira.com: http://www.carlosrovira.com Yahoo! Groups Sponsor ~--
Great things are happening at Yahoo! Groups.See the new email design.http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM~-
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] Re: Custom Validator woes....

2006-06-28 Thread Jason Szeto










Susan,



 The
reason that it is not static is because most validators have properties that
help define the validation rules. For example, the Number validator has a maxValue
and minValue property. Also, you can customize the error messages for each
validator. Thus, we need instances of the validators to accomplish this.



As for the errorString
property, it is better to use the UIComponent.validationResultHandler function
instead. Just pass in the results from the validate() function. 



Jason











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Suzy Lawson
Sent: Wednesday, June 28, 2006
6:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Custom
Validator woes











Jason,
Thanks. I guess I just got mixed up since it's a little unnatural to
instantiate a class to call a method that should be static! Also,
adding text to the errorString field automatically sets everything
redhere's my method should anyone search upon this message at a
future date:

private function validateField() : void {
var emails : Array = toField.text.split(,);
for(var j:uint=0; j  emails.length; j++)
{
var emailVal : EmailValidator = new EmailValidator();
var valResult : ValidationResultEvent =
emailVal.validate(emails[j]);
if(valResult.type == ValidationResultEvent.INVALID)
{
toField.errorString=' + emails[j] + ' is not a valid
e-mail address.;
return;
}
}
}

--- In [EMAIL PROTECTED]ups.com,
Jason Szeto [EMAIL PROTECTED] wrote:

 Suzy,
 
 
 
 The listener, source and trigger are all optional properties
 of Validators. You can just call the validate() function. Pass in the
 string you want to validate and it will return the ValidationResult. The
 validate() function is on the base class, Validator. 
 
 
 
 Jason
 
 
 
 
 
 From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
 Behalf Of Suzy Lawson
 Sent: Tuesday, June 27, 2006 10:54 AM
 To: [EMAIL PROTECTED]ups.com
 Subject: [flexcoders] Custom Validator woes
 
 
 
 I'm building an e-mail client where the To: field can have a
comma
 delimited array of e-mail addresses: [EMAIL PROTECTED]
 mailto:bob%40yahoo.com , [EMAIL PROTECTED] mailto:sarah%40yahoo.com

 
 I have the validation occuring in the focusOut event, where I split
 the To: field so I get an Array of e-mail addresses. 
 var emails : Array = value.split(,);
 
 I then want to loop through and validate each value. However, there is
 no easy way to do this using the Flex SDK EmailValidator.as.
 
 Ideally, I would think I could call a static method which would return
 me a ValidationResultEvent, which I could then add to my component.
 However, everything with the SDK EmailValidator class requires a
 listener/source/trigger to be bound to it and no matter what I try to
 doit looks at that To: field as one big String...I can't
give it
 just the iterated split value. 
 
 Any ideas on this?? Is there a way to statically call a method without
 having to pass in a reference to the EmailValidator object?







__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Serialization bug in release

2006-06-28 Thread Allen Riddle










I just came across an article (http://labs.adobe.com/wiki/index.php/Flex_Enterprise_Services:resources:articles:rpc_services)
saying that ArrayCollection is not serializable!!! In beta 3, web service calls
returned type Array, and it worked fine. I dont understand why they
(Adobe) did that. Can anybody else confirm if this is true? So basically, you
have an ArrayCollection that can have XML serialized to it, but it cant
deserialze, seems like a big bug.











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Allen Riddle
Sent: Wednesday, June 28, 2006
4:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]
Serialization bug in release













We are
currently upgrading our beta 3 developed product to the new release version. It
appears that they have changed collections returned from SOAP Web Service calls
to de-serialize into ArrayCollection now, versus Array the type. Ok, fine.
However, when you try to invoke a web service, and flex serializes the
ArrayCollection, it blows up. Is anybody else successfully able to invoke a web
service using an ArrayCollection? 



Thanks.



Allen Riddle

Sofware
Development

x3217










__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Serialization bug in release

2006-06-28 Thread Peter Farland





Can you pleaselog a bug or send me your test case 
offline (attach a zip, but rename the extension to .zp)?

The makeObjectsBindable attribute on WebService (or any of 
its Operation instances) control this behavior and is now true by default. You 
can set it to false to stop it from creating ArrayCollections for 
Arrays.

Pete


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Allen 
RiddleSent: Wednesday, June 28, 2006 5:51 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Serialization bug 
in release




I just came across an 
article 
(http://labs.adobe.com/wiki/index.php/Flex_Enterprise_Services:resources:articles:rpc_services) 
saying that ArrayCollection is not serializable!!! In beta 3, web service calls 
returned type Array, and it worked fine. I dont understand why they (Adobe) did 
that. Can anybody else confirm if this is true? So basically, you have an 
ArrayCollection that can have XML serialized to it, but it cant deserialze, 
seems like a big bug.





From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Allen RiddleSent: Wednesday, June 28, 2006 4:01 
PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Serialization bug in 
release





We are currently upgrading our beta 
3 developed product to the new release version. It appears that they have 
changed collections returned from SOAP Web Service calls to de-serialize into 
ArrayCollection now, versus Array the type. Ok, fine. However, when you try to 
invoke a web service, and flex serializes the ArrayCollection, it blows up. Is 
anybody else successfully able to invoke a web service using an ArrayCollection? 


Thanks.

Allen 
Riddle
Sofware 
Development
x3217


__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] Flex final -- CF remoting issue

2006-06-28 Thread Peter Farland





Any chance you could send me more information about the 
data types that are being returned from ColdFusion?


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of sufibabaSent: 
Wednesday, June 28, 2006 3:26 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Flex final -- CF 
remoting issue


Hi All,I am upgrading to Flex final with Cairgorm and Coldfusion 
remoting. So far the App is firing the event to the remoting and I can 
see thisin Service Capture. I am getting a problem with the returned 
data from Coldfusion.= Service capture Fault response 
===rootCause (null): nulldestination (String): 
ColdFusionheaders (Object): correlationId (String): 
31A767DF-2286-71A4-52DD-1C175DC2B557faultString (String): 
coldfusion.runtime.AbortExceptionmessageId (String): 
90951011-8709-E200-33DA-74D1B2521C8AfaultCode (String): 
Server.ProcessingtimeToLive (Number): 0extendedData (null): 
nullfaultDetail (null): nullclientId (null): nulltimestamp (Number): 
1.151522529143E12body (null): 
null==Any help on this is 
appreciated. Cheers,Tim
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Ely: StoplightRenderer example doesn't work right in release

2006-06-28 Thread Pan Troglodytes



Ely,Okay, I admit, the subject is a LITTLE misleading. Your original page for the stoplight renderer (http://www.quietlyscheming.com/blog/charts/data-based-renderers/
) does still work. But a slight derivative of it now seems to fail.I'm specifically referring to setting the itemRenderer at runtime. Using setStyle(itemRenderer, ...), the chart never seems to update. Below is my example based on your example. I show three charts. The first is using a switchable item renderer, the second is using MyStoplightItemRenderer, the third using MyStoplightItemRenderer2. The radio button is supposed to switch the first chart back and forth these two. This used to work under the beta. Now it seems to have no effect.
Can you confirm this is a bug in Flex? I'm not going to post it to the bug webpage yet in case you just changed how you are supposed to approach this problem.
Stoplight.mxml:?xml version=1.0 encoding=utf-8?
Application xmlns=http://www.adobe.com/2006/mxml layout=absolute
 Script ![CDATA[
 public function changeRenderer(e:Event):void { switch (rendergroup.selectedValue) {
 case Renderer1: pie.setStyle('itemRenderer', new ClassFactory(MyStoplightWedgeRenderer));
 break;
 case Renderer2: pie.setStyle('itemRenderer', new ClassFactory(MyStoplightWedgeRenderer2));
 break;
 } }
 ]] /Script
 XML id=dataSet source=data/sampleData.xml /
 Panel width=100% height=100% title=data based renderers 
 RadioButtonGroup id=rendergroup change=changeRenderer(event)/ RadioButton label=Renderer1 groupName=rendergroup/
 RadioButton label=Renderer2 groupName=rendergroup/
 PieChart id=chart width=100% height=100% dataProvider={dataSet.Sample
} series
 PieSeries field=@costs id=pie/ /series
 /PieChart PieChart id=chart2 width=100% height=100% dataProvider={
dataSet.Sample} series
 PieSeries field=@costs id=pie2 itemRenderer=MyStoplightWedgeRenderer/
 /series /PieChart
 PieChart id=chart3 width=100% height=100% dataProvider={dataSet.Sample}
 series PieSeries field=@costs id=pie3 itemRenderer=MyStoplightWedgeRenderer2/
 /series
 /PieChart /Panel
/ApplicationMyStoplightWedgeRenderer:?xml version=1.0
 encoding=utf-8?qc:StoplightWedgeRenderer xmlns:qc=qs.charts.dataRenderers.* xmlns=http://www.adobe.com/2006/mxml qc:thresholds
 qc:StoplightThreshold value=0 qc:fill SolidColor color=#00AA00 / /qc:fill /qc:StoplightThreshold
 qc:StoplightThreshold value=50 qc:fill SolidColor color=#00 / /qc:fill /qc:StoplightThreshold
 qc:StoplightThreshold value=80 qc:fill SolidColor color=#AA / /qc:fill /qc:StoplightThreshold 
 /qc:thresholds /qc:StoplightWedgeRendererMyStoplightWedgeRenderer2:
?xml version=1.0 encoding=utf-8?qc:StoplightWedgeRenderer xmlns:qc=qs.charts.dataRenderers.*
 xmlns=http://www.adobe.com/2006/mxml qc:thresholds
 qc:StoplightThreshold value=0
 qc:fill SolidColor color=#CCAACC /
 /qc:fill /qc:StoplightThreshold
 qc:StoplightThreshold value=50
 qc:fill SolidColor color=#CC /
 /qc:fill /qc:StoplightThreshold
 qc:StoplightThreshold value=80
 qc:fill SolidColor color=#AA /
 /qc:fill /qc:StoplightThreshold 
 /qc:thresholds 
/qc:StoplightWedgeRenderer-- Jason

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] Serialization bug in release

2006-06-28 Thread Kelly Birr





I'm sending myArrayCollection.toArray() to web services without problem, 
I don't know if that will help you or not.

- Kelly


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Allen 
RiddleSent: Wednesday, June 28, 2006 2:01 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Serialization bug in 
release


We are currently upgrading our beta 
3 developed product to the new release version. It appears that they have 
changed collections returned from SOAP Web Service calls to de-serialize into 
ArrayCollection now, versus Array the type. Ok, fine. However, when you try to 
invoke a web service, and flex serializes the ArrayCollection, it blows up. Is 
anybody else successfully able to invoke a web service using an ArrayCollection? 


Thanks.

Allen Riddle
Sofware 
Development
x3217
 
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Re: Keeping DataGrid from scrolling to top on update to dataProvider

2006-06-28 Thread Tim Hoff



DJ,
Perhaps you could set the verticalScrollPosition on the grid's render event. I'm not sure if this would work, but it might be worth a try
-TH
private var updateGridVerticalScrollPosition:Boolean = false;private var gridVerticalScrollPosition:int = 0; // or use Number instead
"update" button click event function:
gridVerticalScrollPosition = dgDelays.verticalScrollPosition;updateGridVerticalScrollPosition = true;// Get Data
dgDelays render event function:
if (updateGridVerticalScrollPosition){ updateGridVerticalScrollPosition = false; dgDelays.verticalScrollPosition = gridVerticalScrollPosition;}--- In flexcoders@yahoogroups.com, "djbrown_rotonews" [EMAIL PROTECTED] wrote: I'm still not having any luck. The reset event is being called  upstream and processed in my handler, with the proper value of  prevIndex calculated, but the grid still jumps to the top after the  data fill:  if (event.kind == CollectionEventKind.RESET) { var prevIndex:int = this.dgDelays.verticalScrollPosition; trace("prevIndex = ",prevIndex); this.dgDelays.verticalScrollPosition=prevIndex; }  --- In flexcoders@yahoogroups.com, "Deepa Subramaniam"  dsubrama@ wrote:   I'm sorry, I totally misspoke. I meant to say RESET in my  explanation  below. When your collection is filled with new data after a fill() call  to your  DataService, the component bound to that collection will receive a  CollectionEvent with kind = RESET. Internally, we re-populate the  component with the new data and reset the scroll position to 0.   What you can do is add your own collectionChange event handler to  your  collection and upon receiving a RESET, reset the  verticalScrollPosition  to whatever value you've been tracking.private function acHandler(event:CollectionEvent):void{if (event.kind == CollectionEventKind.RESET)dg.verticalScrollPosition = vPos;}There's no need to use the scrollToIndex() method; by setting the  verticalScrollPosition property directly, the scrollbar and  content are  update as if the user scrolled to that index. Best,deepaFrom: flexcoders@yahoogroups.com  [mailto:[EMAIL PROTECTED] On  Behalf Of djbrown_rotonews  Sent: Wednesday, June 28, 2006 7:21 AM  To: flexcoders@yahoogroups.com  Subject: [flexcoders] Re: Keeping DataGrid from scrolling to top on  update to dataProviderI added a collectionChange event to my XMLListCollection (that's  the   dataProvider for the grid) as follows:public function preserveScrollPosition(event:CollectionEvent):void  {var prevIndex:int = this.dgDelays.verticalScrollPosition;  trace("prevIndex = ",prevIndex);  this.dgDelays.scrollToIndex(prevIndex);}and the trace info does give me the value of the currentScroll,  but   the grid still goes back to the top after the data is populated.is refresh() still being called after this guy?--- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com  , "Deepa Subramaniam"   dsubrama@ wrote: When the actual data comes in, the DataGrid encounters a REFRESH   collectionChange event and if you look in   ListBase.collectionChangeHandler's REFRESH case, you'll see that   the   verticalScrollPosition is set to 0.   What you need to do is set the scroll position *after* the data   has come   in and the DataGrid has processed the REFRESH event.   -deepa  -Original Message-   From: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com[mailto:flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com  ] On   Behalf Of djbrown_rotonews   Sent: Tuesday, June 27, 2006 12:42 PM   To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.comSubject: [flexcoders] Re: Keeping DataGrid from scrolling to top  on   update to dataProvider  I actually tried this (my dataProvider for the grid is anXMLListCollection being populated by a jsp. The grid has custom   itemrenderers if that's relevant).  anyhow, I have an "update" button which will call the jsp and  getnew results when clicked. I've set it up so the click() methodcorrectly captures the scroll position, calls the jsp, and then   setsthe scrollToIndex to the previous value of the scroll position.  Itworks great while the "busy cursor" is displayed, but it revertsback to scrolled all the way at the top once the actual data  comesin from the jsp (it takes about 3 seconds to update the grid  withthe new data).  any ideas on where the scroll position is being reset?  --- In flexcoders@yahoogroups.com  mailto:flexcoders%40yahoogroups.com , "Deepa Subramaniam"dsubrama@ wrote:   Hi Jordan -You can keep track of the verticalScrollPosition property in  yourDataGrid and upon receving UPDATES, re-set theverticalScrollPosition tothe previous value and the DataGrid will jump to the last  scrollposition and show the correct content. -deepa

[flexcoders] Re: Flex final -- CF remoting issue

2006-06-28 Thread sufibaba
Peter,

Just figured it out, turns out that in my over-excitement of the
upgrade, I forgot to set the correct Launch URL in Flex Debug
Configuration.  It is now working.

Appreciate you looking into this for me.

Cheers,

Tim


--- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote:

 Any chance you could send me more information about the data types that
 are being returned from ColdFusion?
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of sufibaba
 Sent: Wednesday, June 28, 2006 3:26 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex final -- CF remoting issue
 
 
 
 
 Hi All,
 
 I am upgrading to Flex final with Cairgorm and Coldfusion remoting. 
 
 So far the App is firing the event to the remoting and I can see this
 in Service Capture. 
 
 I am getting a problem with the returned data from Coldfusion.
 
 = Service capture Fault response ===
 
 rootCause (null): null
 destination (String): ColdFusion
 headers (Object): 
 
 correlationId (String): 31A767DF-2286-71A4-52DD-1C175DC2B557
 faultString (String): coldfusion.runtime.AbortException
 messageId (String): 90951011-8709-E200-33DA-74D1B2521C8A
 faultCode (String): Server.Processing
 timeToLive (Number): 0
 extendedData (null): null
 faultDetail (null): null
 clientId (null): null
 timestamp (Number): 1.151522529143E12
 body (null): null
 
 ==
 
 Any help on this is appreciated. 
 
 Cheers,
 
 Tim








 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Transitions - How to apply movement to SetStyleAction(horizontalCenter proprety)

2006-06-28 Thread Jason Szeto










Post some code so we can take a look.



Jason











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nelson Batista
Sent: Wednesday, June 28, 2006
8:55 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Transitions - How to apply movement to SetStyleAction(horizontalCenter
proprety)













Hello Jason,



Ive tested in the final version of FLEX 2, and the bug
still persist.



Best regards,



Nelson Batista 
Dep. Informática  Área de Desenvolvimento
Cofina media

Avenida João Crisóstomo, Nº 72 . 1069-043
Lisboa PORTUGAL
Tel (+351) 213 307 746 . Fax (+351) 213 540 370



[EMAIL PROTECTED]









From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Jason Szeto
Sent: quinta-feira, 22 de Junho de
2006 22:12
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Transitions - How to apply movement to SetStyleAction(horizontalCenter proprety)















This is a bug in Flex 2b3. Youll have to wait for the
release to get the fix. 



Jason











From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of nelsoncostabatista
Sent: Thursday, June 22, 2006 8:28
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Transitions
 How to apply movement to SetStyleAction(horizontalCenter proprety)











Hello
all,

I'm defining a few states in my application and transitions between
these states.
In the beginning of the design development I was using the property
x for a panel, and in the transition I defined: 
mx:Move easingFunction={Circular.easeOut} duration=1000
target={myDataPanel}/
And the movement between states run well.

Now I need to change the property x for the style
horizontalCenter, in order to get in my main application the
correct
placement of the panel.
Now the panel movement doesn't work. I even forced the
mx:SetStyleAction relevantStyles=horizontalCenter
filter=move
target={ myDataPanel }/ in my transition, but with no
luck.

Best regards,
Nelson Batista






















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Final release--problems--please help

2006-06-28 Thread John



Hi, I am having a big problem! I can't figure this out.When I update everything to the final release, I can't compile.I use eclipse on the mac, and it uses a build.xml file. I have a Java project defined in eclipse, and in this case it is called "flexSamples". inside there I have a folder called flex, and in there is the frameworks.When I compile I get this error:Buildfile: /Users/johnbarrett/flexSamples/build.xmlcForm:compileMXML: [exec] Loading configuration file /Users/johnbarrett/flexSamples/flex/frameworks/flex-config.xml [exec] defaults: Error: unable to open '/Users/johnbarrett/flexSamples/frameworks/macFonts.ser' [exec] Result: 2BUILD SUCCESSFULTotal time: 1 secondI notice that it is looking for the macFonts.ser file outside of the
 usually framework, and so when I try to replace the file in the way that it is looking for I get this new error:Buildfile: /Users/johnbarrett/flexSamples/build.xmlcForm:compileMXML: [exec] Loading configuration file /Users/johnbarrett/flexSamples/flex/frameworks/flex-config.xml [exec] /Users/johnbarrett/flexSamples/formmodel.mxml(11): Error: Only one root tag is allowed. [exec] mx:Model
 id="formData" [exec] Result: 2BUILD SUCCESSFULTotal time: 10 secondsCan anybody please help me figure this out.Thanks,John 
		Do you Yahoo!? Everyone is raving about the  all-new Yahoo! Mail Beta.
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] any disadvantages to using FDS + CF vs. FDS + Java?

2006-06-28 Thread Tom Bray



Since we have more CF developers in-house, we're wondering if there are any disadvantages or limitations of using CF with FDS instead of using Java. Scalability concerns? Features missing? We have existing chat/IM/presence apps that we're interested in porting over to FDS. Any thoughst are greatly appreciated.
Thanks,Tom

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Difference between two dates

2006-06-28 Thread Pan Troglodytes



I understand that. I would also like to lobby for changes to Date. Maybe I should just write my own library that expects the date to be a floating point number of days (like Delphi and others). As it stands, this illustrates the big problem with the date class:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute
 mx:Script ![CDATA[ private var _testvar:Date = new Date(2006,1);
  public function set testvar(value:Date):void {
 _testvar = value; trace('set'); 
 } [Bindable]
 public function get testvar():Date { trace('get'); 
 return _testvar; } ]]
 /mx:Script mx:Label id=lbl x=22 y=10 text={testvar}/
 mx:Button x=22 y=56 label=lt;lt; click=testvar.date--/
 mx:Button x=20 y=86 label= click=testvar.date++/
/mx:Application mx:Button x=22 y=156 label=lt;lt; click=testvar.date--; testvar = new Date(testvar)/ mx:Button x=20 y=186 label= click=
testvar.date++; testvar = new Date(testvar)/The first two buttons don't work as expected. That is, if you expect to fully take advantage of Flex's great databinding technology. Instead, everywhere you simply want to increment/decrement/change the date, you have to jump through hoops to create a new date or write invalidation calls whenever you change it. Or you do silly things like the second two buttons. This is unavoidable for my complex objects, but dates should be as simple to use as ints and strings.
Frankly, I feel like I'm going back in time when I work with Date. Flex has spoiled me :DOn 6/23/06, Gordon Smith 
[EMAIL PROTECTED] wrote:








  











 I swear, I really think the date class was designed by a crazy
man. You hear that Adobe? - CRAZY! 



I heard it. But we didn't design the Date
class; it's part of the existing _javascript_/Ecmascript standards that we've followed
in ActionScirpt 3.



- Gordon











From:
flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of Pan Troglodytes
Sent: Friday, June 23, 2006 8:02
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
Difference between two dates











I swear, I really think the date class was designed by
a crazy man. You hear that Adobe? - CRAZY! :D



On 6/23/06, Daniel
Tuppeny 
[EMAIL PROTECTED] wrote:












I was using .day instead
of .date





TFI Friday! =)












From: flexcoders@yahoogroups.com
 [mailto:flexcoders@yahoogroups.com]
On Behalf Of Daniel Tuppeny
Sent: 23 June 2006 15:33
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Difference
between two dates






I think I need more
coffee





The following code (which
I'm sure is correct!), returns around 2.8 when I'm expecting around 3.2. Anyone
spot my error?











public static function
getMonths(startDate:Date, endDate:Date):Number
{
if (startDate  endDate)
{
var tmp:Date = endDate;
endDate = startDate;
startDate = tmp;
}

var numMonths:Number = 0;

// Get number of months in years
numMonths += (endDate.fullYear - startDate.fullYear) * 12
numMonths += endDate.month - startDate.month;
numMonths += (endDate.day - startDate.day) / 30; // This
needs fixing

return numMonths;
}



__
This email has been scanned by the MessageLabs Email Security
System.
For more information please visit http://www.messagelabs.com/email

__








[Inbound Mail Scanned by MessageLabs]








__
This email has been scanned by the MessageLabs Email Security
System.
For more information please visit http://www.messagelabs.com/email

__
















-- 
Jason 










  













-- Jason

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] Sum Column in datagrid

2006-06-28 Thread Gordon Smith










Yes, best practice is to create a custom
item renderer only if you need to display something more than a simple text
string for each data item. That's because a custom renderer will typically involve
additional DisplayObjects and therefore will take more memory and be slower.



If all you want to do is make the string
that the standard renderer displays be a computed value, use labelFunction.



- Gordon











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Karl Johnson
Sent: Wednesday, June 28, 2006
8:47 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Sum
Column in datagrid











It might be easier to just set a
labelFunction.



And then in the labelFunction



function getSum(rowData) : String

{

 var sum =
Number(rowData.col1) + Number(rowData.col1);



 return sum.toString();

}















That is flex 1.5...but you get the idea.











Karl











Cynergy Systems, Inc.





http://www.CynergySystems.com















From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint Tredway
Sent: Wednesday, June 28, 2006
10:23 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Sum
Column in datagrid



most likely you would need to make an item renderer
and have it sum those fields and display the result in the final column.



On 6/28/06, Torey
Maerz  [EMAIL PROTECTED]
wrote: 











What is the best way to
add a column in a datagrid that is a sum of 
other columns in the datagrid? For example add column C which is a sum 
of A and B.

Thanks!
















-- 
diabetic? http://www.diabetesforums.com
Bill Cosby - A word to the wise ain't necessary - it's the stupid ones that
need the advice. 








__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] [Flex2 final release] FlexBuilder 2 install Flash Player 9.0.15??

2006-06-28 Thread Matt Chotin










The bug was if you accessed the name off
the camera or microphone in the release player (not debug apparently) it
crashed.



Matt











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Rovira
Sent: Wednesday, June 28, 2006
12:09 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] [Flex2
final release] FlexBuilder 2 install Flash Player 9.0.15??











Thanks Matt, 

Just curious, could you provide more info about that bug fixed in order to be
alert?

Thanks.

C.





On 6/28/06, Matt
Chotin [EMAIL PROTECTED]
wrote:













We shipped the r15
debugger player with the SDK and FB. The release player from the website
(non-debugger) is r16. There is only one bug fix that we put in the r16
and it really shouldn't affect anyone doing normal work.



Matt











From: flexcoders@yahoogroups.com
[mailto:
flexcoders@yahoogroups.com] On Behalf Of Carlos
Rovira
Sent: Wednesday, June 28, 2006
10:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] [Flex2 final
release] FlexBuilder 2 install Flash Player 9.0.15??











Hi,

I Think this is a clear bug in the Flex Builder 2 installer.

The final version is 9.0.16, but Flex Builder 2 is installing 9.0.15?

Please, could someone at Adobe confirm this?

(Another point is that someone told me about AMF0 not working again, I proced
to test it asap and confirm to this list) 



-- 
::| Carlos Rovira
::| http://www.carlosrovira.com



























-- 
::| Carlos Rovira
::| http://www.carlosrovira.com 






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Flex Builder 2

2006-06-28 Thread Tim Hoff
US $499 - Sweet!  Better than expected.  Nice store ap. :)

-TH





 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Help with remote objects and EJB Jar files.

2006-06-28 Thread swe_reddy
Hi,

  I am using EJB 3 for my server side code.I have put the ejb jar 
files under {app-dir}\WEB-INF\lib. 

In my flex-remoting-service.xml I have 
?xml version=1.0 encoding=UTF-8?
service id=remoting-service 
class=flex.messaging.services.RemotingService 
messageTypes=flex.messaging.messages.RemotingMessage

adapters
adapter-definition id=java-object 

class=flex.messaging.services.remoting.adapters.JavaAdapter 
default=true/
/adapters

default-channels
channel ref=my-amf/
/default-channels

destination id=remoteObjectSession
properties
sourcecom.vs.cm.ejb.session.RemoteObjectSession/source
/properties
/destination
/service

The source in here is the path of the RemoteObjectSession.java in 
the ejb jar file.

my mx:RemoteObject is 
mx:RemoteObject id=obj  destination=remoteObjectSession   
fault=faultHandler(event)
mx:method name=getAllValues result=getAllValuesHandler(event)/
/mx:RemoteObject


getAllValuesHandler(event)is taken care of in mx:script 

When I run this in JRun I get an error saying 
 Cannot create class of 
type 'com.vs.cm.ejb.session.RemoteObjectSession'.

Can anyone please tell me how I configure EJB jars in flex 2.0,jrun 
to get this working.

Thanks
Swetha






 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: PAIN - Debugging ColdFusion CFC Flex service call

2006-06-28 Thread Erich Cervantez



What I ended up doing if anyone's interested is modifying the XP coldfusion service to "manual" mode (so it wouldn't start up automatically), then editing the jvm.config file to include these arguments:-Xdebug -Xrunjdwp:transport=dt_shmem,server=y,suspend=nthen opening a console window and starting coldfusion from there:jrun -start coldfusionAny exeptions are caught and outputed to the console. This is pretty much what I was looking for: a way to output CF errors when working only within a flex application. --- In flexcoders@yahoogroups.com, "Erich Cervantez" [EMAIL PROTECTED] wrote: Thanks Shannon.  I'll give SeeFusion a try, although the 2-hour trial time limit seems a little silly.  The Flash 7 Trace Viewer didn't really work at all for me...perhaps it was due to the fact I'm running Flash 8.  Erich   --- In flexcoders@yahoogroups.com, "Shannon Hicks" shan@ wrote:   He mentioned that he was already running ServiceCapture... the problem was  an error in his CF code before the query fired  was returned. For that,  SeeFusion (or starting CF from the command line) does the trick :) Shan   _  From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On  Behalf Of Tariq Ahmed  Sent: Tuesday, June 27, 2006 8:03 PM  To: flexcoders@yahoogroups.com  Subject: Re: [flexcoders] PAIN - Debugging ColdFusion CFC  Flex service  callHi Erich.For Flex 1.5 use the Flash Trace Viewer:  HYPERLINK  "http://www.alexisisaac.net/flash/articles/flash-7-trace-viewer.html"http://  www.alexisisaac.net/flash/articles/flash-7-trace-viewer.htmlIt was my best friend for monitoring traffic to and from Flex and CFCs.For Flex 2, as well as 1.5..there's my new best friend: ServiceCapture:  HYPERLINK  "http://kevinlangdon.com/serviceCapture/"http://kevinlangdon.com/serviceCapt  ure/  Shannon Hicks wrote:   You could always use SeeFusion (HYPERLINK  "http://www.seefusion.com"www.seefusion.com) The debugger output can show all requests, or requests from a specified IP  address... not only would it show you the query and tell you the number of  results (provided there was no error), but it would have shown you the error  that happened before your query. Try the free version... 2 hour limit before you have to restart CF to get  another two hours. Shan   _  From: HYPERLINK  "mailto:flexcoders@yahoogroups.com"flexcoders@yahoogroups.com [HYPERLINK  "mailto:flexcoders@yahoogroups.com"mailto:flexcoders@yahoogroups.com] On  Behalf Of Erich Cervantez  Sent: Tuesday, June 27, 2006 11:43 AM  To: HYPERLINK "mailto:flexcoders@yahoogroups.com"flexcoders@yahoogroups.com  Subject: [flexcoders] PAIN - Debugging ColdFusion CFC  Flex service callYesterday I was debugging a situation where a Flex service call to a  ColdFusion CFC wasn't returning any records.  Using netConnection Debugger  and ServiceCapture yielded the same information.  The particular query in  question (within the CFC) being returned was "undefined".  In actuality,  there was a bug several lines before the query that was faulting, thereby  causing the query to never get executed and thus causing the variable  (recordset) from said query to never get defined.Basically my problem was Flex never returned the proper error.  I had to  hunt through the CFC, dropping in random CFDUMPS or CFFILE statement (to  dump variables to a log file) to try to find out what the problem was.  I  actually had to use a CF application written to invoke the CFC to see what  the ColdFusion debugging output looked like.I am using Flex 1.5 at the moment.  Has anyone found better ways to debug  using Flex 1.5, and ColdFusion 7.0.1 CFC's?Erich CervantezLas Vegas, NV  --  No virus found in this incoming message.  Checked by AVG Free Edition.  Version: 7.1.394 / Virus Database: 268.9.5/376 - Release Date: 6/26/2006--  No virus found in this outgoing message.  Checked by AVG Free Edition.  Version: 7.1.394 / Virus Database: 268.9.5/376 - Release Date: 6/26/2006   --  No virus found in this incoming message.  Checked by AVG Free Edition.  Version: 7.1.394 / Virus Database: 268.9.5/376 - Release Date: 6/26/2006--   No virus found in this outgoing message.  Checked by AVG Free Edition.  Version: 7.1.394 / Virus Database: 268.9.5/376 - Release Date: 6/26/2006 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice

Re: [flexcoders] Generate sound

2006-06-28 Thread Ralf Bokelberg



Not from flash alone, but you can create a beep easily by using a sound sample and repeat a small area of it. The longer the area, the lower the sound. If you do it right, you can even create music with this technique. 
Cheers,Ralf. On 6/28/06, David Clark [EMAIL PROTECTED] wrote:



I was bored and playing around with something that I wrote in c# a while ago... I guess one could generate the byte array that the Sound class holds... not much doco on the internals of that class though... maybe if it could use a simple format like wav or something...
anyways, enough rambling... when? :) soon? hahah. only kiddding... but seriously if you feel like throwing code my way before you post it / before it works... I am up for that :)What is the address of your blog?
See you.-- davidMany people die at twenty five and aren't buried until they are seventy five. - Benjamin Franklin






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] Duplicate variable definition

2006-06-28 Thread Gordon Smith










ActionScript doesn't have (and has never
had) block-scoped variables. When you declare a local variable anywhere in a
method, it is as if you had declared it at the top, and it is accessible
anywhere in the method. Therefore having two declarations is redundant. The new
warning is trying to make people aware of this (probably unexpected) behavior.
In your case of two for-loops, the coding standards we use in the framework
classes would do it like this:



var i:int;



for (i = 0; i  10; i++)

{

 ...

}



for (i = 0; i  10; i++)

{

 ...

}



- Gordon











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Dirk Eismann
Sent: Wednesday, June 28, 2006
2:46 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Duplicate variable definition













yes. 













From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonas Windey
Sent: Wednesday, June 28, 2006
11:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Duplicate
variable definition



Hi, 



In flex 2
b3, it was allowed to do this:



rivate
function fcnTest():void

{

for (var
i:Number=0;i 10;i++){


//do
sthing


}

for (var
i:Number=0;i 10;i++){


//do something more




}

}



In 2.0
final, I get Duplicate variable definition.



Should I
only declare it once before every loop?



Jonas










__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






Re: [flexcoders] Hello, Testing 123, is this thing on?

2006-06-28 Thread Ralf Bokelberg
It is on Ted
Cheers,
Ralf

On 6/28/06, Ted Patrick [EMAIL PROTECTED] wrote:
 Sorry for the test, just getting flexcoders under my new Adobe email.

 My role at Adobe faces the Flex developer community and is focused on
 helping developers succeed with Flex. If there is anything that I can do
 for you, please do not hesitate to email me at tpatrick(a)adobe.com.

 I look forward to working with you!

 More to come...

 Ted Patrick
 Flex Evangelist
 Adobe Systems Incorporated



 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links









 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Serialization bug in release

2006-06-28 Thread Allen Riddle










YOU ARE MY HERO PETE!!! That worked. Thank
you so much. I dont think there is a bug to send you, now knowing that
ArrayCollection is not serializable. Thanks a lot.











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Farland
Sent: Wednesday, June 28, 2006
5:02 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Serialization bug in release











Can you pleaselog a bug or send me
your test case offline (attach a zip, but rename the extension to .zp)?



The makeObjectsBindable attribute on
WebService (or any of its Operation instances) control this behavior and is now
true by default. You can set it to false to stop it from creating
ArrayCollections for Arrays.



Pete









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Allen Riddle
Sent: Wednesday, June 28, 2006
5:51 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Serialization bug in release





I just came across an article
(http://labs.adobe.com/wiki/index.php/Flex_Enterprise_Services:resources:articles:rpc_services)
saying that ArrayCollection is not serializable!!! In beta 3, web service calls
returned type Array, and it worked fine. I dont understand why they
(Adobe) did that. Can anybody else confirm if this is true? So basically, you
have an ArrayCollection that can have XML serialized to it, but it cant
deserialze, seems like a big bug.











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Allen Riddle
Sent: Wednesday, June 28, 2006
4:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]
Serialization bug in release













We are
currently upgrading our beta 3 developed product to the new release version. It
appears that they have changed collections returned from SOAP Web Service calls
to de-serialize into ArrayCollection now, versus Array the type. Ok, fine.
However, when you try to invoke a web service, and flex serializes the
ArrayCollection, it blows up. Is anybody else successfully able to invoke a web
service using an ArrayCollection? 

Thanks.

Allen Riddle

Sofware
Development

x3217


















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] [flex 2 final] Bug when binding value to property in tag

2006-06-28 Thread martin schioeth










Hi,



Ive got a custom class. The class has a
getter/setter method for variable called months

Class MyComp extends HBox

{

  private var __months:Array;

  public function get months():Array

    {

  return __months;

    }

  public function set months(monthArray:Array):void

    {

   Trace(the value is getting set);

  __months = monthArray;

    }

}



I try set the value with an mxml tag



ns:MyComp months={anotherArray}
/

If I do this I get no trace from the setter method

ns:MyComp months=anotherArray /

If I do this I get the trace and the variable is set
to the String anotherArray which should throw a runtime type
error since the variable is Array



Im pretty confused worked fine in Beta
3



Regards,

Martin






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___





--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.5/377 - Release Date: 27-06-2006
 


RE: [flexcoders] Flex 2 (final) bug with showDataEffect and stacked column chart

2006-06-28 Thread Ely Greenfield







Good find Jason. I've got a fix, that will go into 
the next update for flex. If you have purchased the charting components, 
and have the source available, I could talk you through a temporary 
fix.

Ely.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Pan 
TroglodytesSent: Wednesday, June 28, 2006 1:39 PMTo: 
flexcodersSubject: [flexcoders] Flex 2 (final) bug with 
showDataEffect and stacked column chart


I have found a bug in Flex 2 (final) showDataEffect combined with stacked 
columns. You get an error. If you take off the stacked setting, you 
do not get an error. Or, if you take off the effect and leave stacked, no 
error. Here's the sample code: ?xml version="1.0" 
encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml " 
layout="absolute" mx:Script 
![CDATA[ import 
mx.collections.ArrayCollection; [Bindable] 
public var d1:ArrayCollection = new 
ArrayCollection([ 
{x:1,y:10},{x:2,y:20},{x:3,y:30},{x:4,y:40}, 
 
{x:5,y:50},{x:6,y:60},{x:7,y:70},{x:8,y:80}]); 
[Bindable] public var d2:ArrayCollection = new 
ArrayCollection([ 
{x:1,y:80},{x:2,y:70},{x:3,y:60},{x:4,y:50}, 
{x:5,y:40},{x:6,y:30},{x:7,y:20},{x:8,y:10}]); 
 
 ]] /mx:Script 
mx:ColumnChart id="myChart" type="stacked" 
mx:SeriesInterpolate id="interp" duration="1000" 
minimumElementDuration="200" elementOffset="0"/  
mx:series 
mx:ColumnSeries id="s1" xField="x" yField="y" dataProvider="{d1}" 
showDataEffect="interp" 
mx:fill 
mx:SolidColor color="0x00FF00"/ 
 
/mx:fill 
/mx:ColumnSeries 
mx:ColumnSeries id="s2" xField="x" yField="y" dataProvider="{d2}" 
showDataEffect="interp" 
 
mx:fill 
mx:SolidColor 
color="0xFF"/ 
/mx:fill 
/mx:ColumnSeries /mx:series 
/mx:ColumnChart mx:Button x="10" y="408" 
label="lt;lt;" click=" s1.dataProvider = d2; s2.dataProvider = 
d1"/ mx:Button x="83" y="408" label="" 
click="s2.dataProvider = d2; s1.dataProvider = 
d1"//mx:Application -- Jason 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Re: Hello, Testing 123, is this thing on?

2006-06-28 Thread exporta_lite
--- In flexcoders@yahoogroups.com, Ted Patrick [EMAIL PROTECTED] wrote:

snip

 
 I look forward to working with you!

I guess the gain is up - you're getting some feedback :).

Cheers - Chas








 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Flex 2 (final) bug with showDataEffect and stacked column chart

2006-06-28 Thread Pan Troglodytes



Thanks for the quick reply. We should be purchasing Builder+charting this week.On 6/28/06, Ely Greenfield [EMAIL PROTECTED]
 wrote:








  








Good find Jason. I've got a fix, that will go into 
the next update for flex. If you have purchased the charting components, 
and have the source available, I could talk you through a temporary 
fix.

Ely.



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Pan 
TroglodytesSent: Wednesday, June 28, 2006 1:39 PMTo: 
flexcodersSubject: [flexcoders] Flex 2 (final) bug with 
showDataEffect and stacked column chart


I have found a bug in Flex 2 (final) showDataEffect combined with stacked 
columns. You get an error. If you take off the stacked setting, you 
do not get an error. Or, if you take off the effect and leave stacked, no 
error. Here's the sample code: ?xml version=1.0 
encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml  
layout=absolute mx:Script 
![CDATA[ import 
mx.collections.ArrayCollection; [Bindable] 
public var d1:ArrayCollection = new 
ArrayCollection([ 
{x:1,y:10},{x:2,y:20},{x:3,y:30},{x:4,y:40}, 
 
{x:5,y:50},{x:6,y:60},{x:7,y:70},{x:8,y:80}]); 
[Bindable] public var d2:ArrayCollection = new 
ArrayCollection([ 
{x:1,y:80},{x:2,y:70},{x:3,y:60},{x:4,y:50}, 
{x:5,y:40},{x:6,y:30},{x:7,y:20},{x:8,y:10}]); 
 
 ]] /mx:Script 
mx:ColumnChart id=myChart type=stacked 
mx:SeriesInterpolate id=interp duration=1000 
minimumElementDuration=200 elementOffset=0/  
mx:series 
mx:ColumnSeries id=s1 xField=x yField=y dataProvider={d1} 
showDataEffect=interp 
mx:fill 
mx:SolidColor color=0x00FF00/ 
 
/mx:fill 
/mx:ColumnSeries 
mx:ColumnSeries id=s2 xField=x yField=y dataProvider={d2} 
showDataEffect=interp 
 
mx:fill 
mx:SolidColor 
color=0xFF/ 
/mx:fill 
/mx:ColumnSeries /mx:series 
/mx:ColumnChart mx:Button x=10 y=408 
label=lt;lt; click= s1.dataProvider = d2; s2.dataProvider = 
d1/ mx:Button x=83 y=408 label= 
click=s2.dataProvider = d2; s1.dataProvider = 
d1//mx:Application -- Jason 


  













-- Jason

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] Serialization bug in release

2006-06-28 Thread Peter Farland










Yeah, unfortunately it isnt right
now, but well be looking to make ArrayCollection serializable in
WebService in an upcoming release.



Remember that ArrayCollection wraps an
underlying Array, so either the source property or Kellys suggestion of
toArray() is another way to get back the raw Array in the event that you
actually want ArrayCollections on the client to bind to UI controls, etc.



Pete




__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Icons in menu - not working

2006-06-28 Thread Kelly Birr





I've been racking 
my brain trying to get icons in themenu bar. I think I'm doing 
exactly what the docs say but I cannot get any icon to render. 
Thelabel and actions work perfectly but the icondoes not show 
up. The icon is embedding properly as I can see it in the "icon" property 
of a button in the same file. I've also tried putting the path to the icon 
file in the xml, no joy.

My Menu XML 
Is:
menu
 
menuitem label="File" 
menuitem label="Open" data="" 
/ menuitem 
type="separator" / 
menuitem label="Exit" data="" icon="exitOn" 
/ /menuitem
/menu

MyMXML 
is:
mx:Script
![CDATA[[Embed(source="images/icons/iconExitOn.gif")] 
public static const exitOn:Class;
]]/mx:Script
mx:MenuBar id="menu" width="100%" x="0" y="0" height="27" 
dataProvider="{menuXml}" 
showRoot="false"cornerRadius="3" 
itemClick="menuHandler(event)" labelField="@label" iconField="@icon" 
/
 
I cannot find any samples anywhere with icons in the menu, Is this 
still supported? Can anyone tell me what i'm doing wrong? I am using 
Flex 2.0 RTM

- 
Kelly
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] [flex 2 final] Bug when binding value to property in tag

2006-06-28 Thread Pan Troglodytes



I'm not seeing the problem you are having. Also, you have syntax errors in your code below so I'm curious if this was actually what you used. Here's my modified version, which worked fine (i.e. I got the trace output for the set):
package{
 import mx.containers.HBox; public class MyComp extends HBox 
{ private var __months:Array;
 public function get months():Array
 { return __months;
 } public function set months(monthArray:Array):void
 { trace(the value is getting set);
 __months = monthArray; }
 }}
?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute mx:Script
 ![CDATA[ [Bindable] public var anotherArray:Array = [{x:1}]; ]] /mx:Script ns:MyComp months={anotherArray} xmlns:ns=*//mx:Application
On 6/28/06, martin schioeth [EMAIL PROTECTED] wrote:









  











Hi,



I've got a custom class. The class has a
getter/setter method for variable called months

Class MyComp extends HBox

{

 private var __months:Array;

 public function get months():Array

 {

 return __months;

 }

 public function set months(monthArray:Array):void

 {

 Trace("the value is getting set");

 __months = monthArray;

 }

}



I try set the value with an mxml tag



ns:MyComp months="{anotherArray}"
/

If I do this I get no trace from the setter method

ns:MyComp months="anotherArray" /

If I do this I get the trace and the variable is set
to the String "anotherArray" which should throw a runtime type
error since the variable is Array



I'm pretty confused… worked fine in Beta
3



Regards,

Martin










--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.5/377 - Release Date: 27-06-2006
 

  













-- Jason

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] FLEX 2B3 - After installing Flash 9 IDE Alpha, Debug player in FB does not work

2006-06-28 Thread Hilary Bridel



Hi people,
After installing Flash 9 IDE Alpha for AS3, the Debug player in FB does not work.

I have reinstalled both apps, but cant get the debug player in FB to work.

Can I download just the debug player from somewhere?
Does the Flash 9 IDE Alpha use the same debug player as FB?

Regards-- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] Ely: StoplightRenderer example doesn't work right in release

2006-06-28 Thread Ely Greenfield








Hmmm. Honestly, I'm surprised that worked in beta 3. 
Regardless, the series is caching instances of the itemRenderer, and not 
correctly releasing them when you switch to a different renderer. The only 
workaround I can see right now is to create a new PieSeries rather than just 
changing the itemRenderer.

Ely.





From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Pan 
TroglodytesSent: Wednesday, June 28, 2006 2:54 PMTo: 
flexcodersSubject: [flexcoders] Ely: StoplightRenderer example 
doesn't work right in release


Ely,Okay, I admit, the subject is a LITTLE misleading. Your 
original page for the stoplight renderer (http://www.quietlyscheming.com/blog/charts/data-based-renderers/ 
) does still work. But a slight derivative of it now seems to 
fail.I'm specifically referring to setting the itemRenderer at 
runtime. Using setStyle("itemRenderer", ...), the chart never seems to 
update. Below is my example based on your example. I show three 
charts. The first is using a switchable item renderer, the second is using 
MyStoplightItemRenderer, the third using MyStoplightItemRenderer2. The 
radio button is supposed to switch the first chart back and forth these 
two. This used to work under the beta. Now it seems to have no 
effect. Can you confirm this is a bug in Flex? I'm not going to 
post it to the bug webpage yet in case you just changed how you are supposed to 
approach this problem.Stoplight.mxml:?xml version="1.0" 
encoding="utf-8"?Application xmlns="http://www.adobe.com/2006/mxml" 
layout="absolute" Script 
![CDATA[ public 
function changeRenderer(e:Event):void { 
switch (rendergroup.selectedValue) { 
case "Renderer1": 
pie.setStyle('itemRenderer', new ClassFactory(MyStoplightWedgeRenderer)); 
 
break; 
case "Renderer2": 
pie.setStyle('itemRenderer', new ClassFactory(MyStoplightWedgeRenderer2)); 
 
break; 
} 
} ]] /Script XML 
id="dataSet" source="data/sampleData.xml" / Panel 
width="100%" height="100%" title="data based renderers"  
RadioButtonGroup id="rendergroup" 
change="changeRenderer(event)"/ 
RadioButton label="Renderer1" groupName="rendergroup"/  
RadioButton label="Renderer2" groupName="rendergroup"/ 
PieChart id="chart" width="100%" height="100%" dataProvider="{dataSet.Sample 
}" 
series 
PieSeries field="@costs" id="pie"/ 
/series 
/PieChart 
PieChart id="chart2" width="100%" height="100%" dataProvider="{ 
dataSet.Sample}" 
series 
PieSeries field="@costs" id="pie2" 
itemRenderer="MyStoplightWedgeRenderer"/ 
/series 
/PieChart 
PieChart id="chart3" width="100%" height="100%" 
dataProvider="{dataSet.Sample}" 
series 
PieSeries field="@costs" id="pie3" 
itemRenderer="MyStoplightWedgeRenderer2"/  
/series 
/PieChart 
/Panel/ApplicationMyStoplightWedgeRenderer:?xml version="1.0 " 
encoding="utf-8"?qc:StoplightWedgeRenderer 
xmlns:qc="qs.charts.dataRenderers.*" xmlns="http://www.adobe.com/2006/mxml" 
qc:thresholds  
qc:StoplightThreshold 
value="0" 
qc:fill 
SolidColor color="#00AA00" 
/ 
/qc:fill 
/qc:StoplightThreshold 
 
qc:StoplightThreshold 
value="50" 
qc:fill 
SolidColor color="#00" 
/ 
/qc:fill 
/qc:StoplightThreshold 
 
qc:StoplightThreshold 
value="80" 
qc:fill 
SolidColor color="#AA" 
/ 
/qc:fill 
/qc:StoplightThreshold 
 /qc:thresholds 
/qc:StoplightWedgeRendererMyStoplightWedgeRenderer2:?xml version="1.0" 
encoding="utf-8"?qc:StoplightWedgeRenderer 
xmlns:qc="qs.charts.dataRenderers.* " xmlns="http://www.adobe.com/2006/mxml" 
qc:thresholds  
qc:StoplightThreshold value="0" 
qc:fill 
SolidColor color="#CCAACC" / 
/qc:fill 
/qc:StoplightThreshold  
qc:StoplightThreshold value="50" 
qc:fill 
SolidColor color="#CC" / 
/qc:fill 
/qc:StoplightThreshold  
qc:StoplightThreshold value="80" 
qc:fill 
SolidColor color="#AA" / 
/qc:fill 
/qc:StoplightThreshold 
 
/qc:thresholds /qc:StoplightWedgeRenderer-- Jason 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] Icons in menu - not working

2006-06-28 Thread Deepa Subramaniam










Hmmm  well our Embed expert says
that you can make the variable for the embedded asset static, but that seems to
be your problem. Ill file a bug on your behalf, but for now, dont
make exitOn static and the icon should show up.



Let me know if it doesnt 



Deepa

Flex SDK 













From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelly Birr
Sent: Wednesday, June 28, 2006
4:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Icons in
menu - not working













I've been racking my brain trying to get icons in
themenu bar. I think I'm doing exactly what the docs say but I
cannot get any icon to render. Thelabel and actions work perfectly
but the icondoes not show up. The icon is embedding properly as I
can see it in the icon property of a button in the same file.
I've also tried putting the path to the icon file in the xml, no joy.











My Menu XML Is:





menu





 menuitem label=File
 menuitem label=Open
data="" /
 menuitem
type=separator /
 menuitem label=Exit
data="" icon=exitOn /
 /menuitem





/menu











MyMXML is:





mx:Script





![CDATA[
[Embed(source=images/icons/iconExitOn.gif)]
 public static const exitOn:Class;





]]
/mx:Script





mx:MenuBar id=menu
width=100% x=0 y=0 height=27
dataProvider={menuXml} showRoot=false
cornerRadius=3
itemClick=menuHandler(event) labelField=@label
iconField=@icon /





 
I cannot find any samples anywhere with icons in the menu, Is this still
supported? Can anyone tell me what i'm doing wrong? I am using Flex
2.0 RTM











- Kelly








__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Icons in menu - not working

2006-06-28 Thread Kelly Birr





I found my problem. It appears that the menu cannot bind to static 
vars for images. I solved the problem by specifying 
{ public const myMenuIcon:Class = GlobalIcons.MyCoolIcon; } 
where 
GlobalIcons.MyCoolIcon is declared exactly as below. Then pout the local name 
"myMenuIcon" in the @icon field of the xml.

- Kelly


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Kelly 
BirrSent: Wednesday, June 28, 2006 4:26 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Icons in menu - not 
working

I've been racking 
my brain trying to get icons in themenu bar. I think I'm doing 
exactly what the docs say but I cannot get any icon to render. 
Thelabel and actions work perfectly but the icondoes not show 
up. The icon is embedding properly as I can see it in the "icon" property 
of a button in the same file. I've also tried putting the path to the icon 
file in the xml, no joy.

My Menu XML 
Is:
menu
 
menuitem label="File" 
menuitem label="Open" data="" 
/ menuitem 
type="separator" / 
menuitem label="Exit" data="" icon="exitOn" 
/ /menuitem
/menu

MyMXML 
is:
mx:Script
![CDATA[[Embed(source="images/icons/iconExitOn.gif")] 
public static const exitOn:Class;
]]/mx:Script
mx:MenuBar id="menu" width="100%" x="0" y="0" height="27" 
dataProvider="{menuXml}" 
showRoot="false"cornerRadius="3" 
itemClick="menuHandler(event)" labelField="@label" iconField="@icon" 
/
 
I cannot find any samples anywhere with icons in the menu, Is this 
still supported? Can anyone tell me what i'm doing wrong? I am using 
Flex 2.0 RTM

- 
Kelly 
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] Help with remote objects and EJB Jar files.

2006-06-28 Thread Peter Farland










The default JavaFactory that is used by
the RemotingServices JavaAdapter simply locates classes using
Class.forName from the web application class path. Perhaps you could create a façade
class that looked up your EJB from its JNDI name? Other alternatives are to write
a new, EJB specific factory or consider merging the flex war file and your
existing ear file?











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of swe_reddy
Sent: Wednesday, June 28, 2006
6:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Help with
remote objects and EJB Jar files.











Hi,

I am using EJB 3 for my server side code.I have put the ejb jar 
files under {app-dir}\WEB-INF\lib. 

In my flex-remoting-service.xml I have 
?xml version=1.0 encoding=UTF-8?
service id=remoting-service 
class=flex.messaging.services.RemotingService 
messageTypes=flex.messaging.messages.RemotingMessage

adapters
adapter-definition id=java-object 

class=flex.messaging.services.remoting.adapters.JavaAdapter

default=true/
/adapters

default-channels
channel ref=my-amf/
/default-channels

destination id=remoteObjectSession
properties 
sourcecom.vs.cm.ejb.session.RemoteObjectSession/source
/properties 
/destination
/service

The source in here is the path of the RemoteObjectSession.java in 
the ejb jar file.

my mx:RemoteObject is 
mx:RemoteObject id=obj destination=remoteObjectSession

fault=faultHandler(event)
mx:method name=getAllValues result=getAllValuesHandler(event)/
/mx:RemoteObject

getAllValuesHandler(event)is taken care of in mx:script 

When I run this in JRun I get an error saying 
Cannot create class of 
type 'com.vs.cm.ejb.session.RemoteObjectSession'.

Can anyone please tell me how I configure EJB jars in flex 2.0,jrun 
to get this working.

Thanks
Swetha






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Flex 2 (final) bug with showDataEffect and stacked column chart

2006-06-28 Thread Ely Greenfield








WHOOHOOO! 

;)




From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Pan 
TroglodytesSent: Wednesday, June 28, 2006 4:30 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Flex 2 (final) 
bug with showDataEffect and stacked column chart
Thanks for the quick reply. We should be 
purchasing Builder+charting this week.
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] Icons in menu - not working

2006-06-28 Thread Deepa Subramaniam










Yup, you are correct. I just talked to
Roger about this. 



What is happening is that MenuBar checks
to see if an iconField is set. In your case it is, and the MenuBar looks to see
if a Class, exitOn, exists with that name in the application or a property on
the document with that same name exists. It does, however you cannot access a
static var off an instance, only off the class. So, the lookup in the MenuBar
code fails.


Your workaround of making the embedded asset var non-staic is correct.



HTH,

deepa











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelly Birr
Sent: Wednesday, June 28, 2006
4:48 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Icons in
menu - not working





I found my problem. It appears that the menu cannot
bind to static vars for images. I solved the problem by specifying 

{ public const myMenuIcon:Class = GlobalIcons.MyCoolIcon;
} where GlobalIcons.MyCoolIcon is declared exactly as below. Then pout
the local name myMenuIcon in the @icon field of the xml.



- Kelly









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelly Birr
Sent: Wednesday, June 28, 2006
4:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Icons in
menu - not working



I've been racking my brain trying to get icons in
themenu bar. I think I'm doing exactly what the docs say but I
cannot get any icon to render. Thelabel and actions work perfectly
but the icondoes not show up. The icon is embedding properly as I
can see it in the icon property of a button in the same file.
I've also tried putting the path to the icon file in the xml, no joy.











My Menu XML Is:





menu





 menuitem label=File
 menuitem label=Open
data="" /
 menuitem
type=separator /
 menuitem label=Exit
data="" icon=exitOn /
 /menuitem





/menu











MyMXML is:





mx:Script





![CDATA[
[Embed(source=images/icons/iconExitOn.gif)]
 public static const exitOn:Class;





]]
/mx:Script





mx:MenuBar id=menu
width=100% x=0 y=0 height=27 dataProvider={menuXml}
showRoot=false
cornerRadius=3
itemClick=menuHandler(event) labelField=@label
iconField=@icon /





 
I cannot find any samples anywhere with icons in the menu, Is this still
supported? Can anyone tell me what i'm doing wrong? I am using Flex
2.0 RTM











- Kelly









__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___





RE: [flexcoders] Icons in menu - not working

2006-06-28 Thread Deepa Subramaniam










Just to be clear, this is not a bug. This
is just a fact of life since were using some sort of indirection of
specifying an icon attribute in the dataProvider and then using an iconField
property to look up that reference. So, in cases like that the embedded asset
needs to not be a static variable. Other cases without this indirection, like a
Button icon, will work correctly.



-deepa











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deepa Subramaniam
Sent: Wednesday, June 28, 2006
4:59 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Icons in
menu - not working





Yup, you are correct. I just talked to
Roger about this. 



What is happening is that MenuBar checks
to see if an iconField is set. In your case it is, and the MenuBar looks to see
if a Class, exitOn, exists with that name in the application or a property on
the document with that same name exists. It does, however you cannot access a
static var off an instance, only off the class. So, the lookup in the MenuBar
code fails.


Your workaround of making the embedded asset var non-staic is correct.



HTH,

deepa











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelly Birr
Sent: Wednesday, June 28, 2006
4:48 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Icons in
menu - not working





I found my problem. It appears that the menu cannot
bind to static vars for images. I solved the problem by specifying 

{ public const myMenuIcon:Class = GlobalIcons.MyCoolIcon;
} where GlobalIcons.MyCoolIcon is declared exactly as below. Then pout
the local name myMenuIcon in the @icon field of the xml.



- Kelly









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelly Birr
Sent: Wednesday, June 28, 2006
4:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Icons in
menu - not working



I've been racking my brain trying to get icons in
themenu bar. I think I'm doing exactly what the docs say but I
cannot get any icon to render. Thelabel and actions work perfectly
but the icondoes not show up. The icon is embedding properly as I
can see it in the icon property of a button in the same file.
I've also tried putting the path to the icon file in the xml, no joy.











My Menu XML Is:





menu





 menuitem label=File
 menuitem label=Open
data="" /
 menuitem
type=separator /
 menuitem label=Exit
data="" icon=exitOn /
 /menuitem





/menu











MyMXML is:





mx:Script





![CDATA[
[Embed(source=images/icons/iconExitOn.gif)]
 public static const exitOn:Class;





]]
/mx:Script





mx:MenuBar id=menu
width=100% x=0 y=0 height=27
dataProvider={menuXml} showRoot=false
cornerRadius=3
itemClick=menuHandler(event) labelField=@label
iconField=@icon /





 
I cannot find any samples anywhere with icons in the menu, Is this still
supported? Can anyone tell me what i'm doing wrong? I am using Flex
2.0 RTM











- Kelly











__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___





[flexcoders] Constraining a flexabile layout.

2006-06-28 Thread Ian Skinner
Hey, I have enough functionality I can now play with display aesthetics.  
Thanks for all the help I have received on these lists.

I have a grid, displaying the days and weeks of a month.  Each day cell 
contains a list of events.  The names of the events can get rather long.  I do 
not want them to stretch the grid and its parent canvas and application 
containers beyond the browser.  But I would like the display to fill the 
browser area if possible.

I have the max diminsion hard coded to be constrained to basicly 1024 by 768.  
It works and I can live with this for now, but it seems a bit constraining, ha 
ha.  I would much rather have the layout flexable to grow and retract with the 
size of the browser, but still have the containers inside the day dataItem 
cells to not be allowed to stretch beyond these flexible max diminsions.

But I do not see how this would work.

--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
C code. C code run. Run code run. Please!
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Flex 2 (final) bug with showDataEffect and stacked column chart

2006-06-28 Thread Brendan Meutzner



Sounds like Ely's salary is directly connected to the number of Charts purchases... ;-)On 6/28/06, Ely Greenfield 
[EMAIL PROTECTED] wrote:








  









WHOOHOOO! 

;)




From: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Pan 
TroglodytesSent: Wednesday, June 28, 2006 4:30 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Flex 2 (final) 
bug with showDataEffect and stacked column chart
Thanks for the quick reply. We should be 
purchasing Builder+charting this week.

  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Re: Keeping DataGrid from scrolling to top on update to dataProvider

2006-06-28 Thread Jason Y. Kwong



>From my experiences, the grid takes a beat to update its visual appearance when its data gets updated. After I know that the data has been updated, I normally use callLater() to set the scroll position.
On 6/28/06, djbrown_rotonews [EMAIL PROTECTED] wrote:
I'm still not having any luck. The reset event is being calledupstream and processed in my handler, with the proper value ofprevIndex calculated, but the grid still jumps to the top after thedata fill:
if (event.kind == CollectionEventKind.RESET) {var prevIndex:int = this.dgDelays.verticalScrollPosition;trace(prevIndex = ,prevIndex);this.dgDelays.verticalScrollPosition=prevIndex;}--- In 
flexcoders@yahoogroups.com, Deepa Subramaniam[EMAIL PROTECTED] wrote: I'm sorry, I totally misspoke. I meant to say RESET in myexplanation
 below. When your collection is filled with new data after a fill() callto your DataService, the component bound to that collection will receive a CollectionEvent with kind = RESET. Internally, we re-populate the
 component with the new data and reset the scroll position to 0. What you can do is add your own collectionChange event handler toyour collection and upon receiving a RESET, reset the
verticalScrollPosition to whatever value you've been tracking. private function acHandler(event:CollectionEvent):void { if (event.kind
 == CollectionEventKind.RESET) dg.verticalScrollPosition = vPos; } There's no need to use the scrollToIndex() method; by setting the
 verticalScrollPosition property directly, the scrollbar andcontent are update as if the user scrolled to that index. Best, deepa 
 From: flexcoders@yahoogroups.com[mailto:flexcoders@yahoogroups.com] On Behalf Of djbrown_rotonews
 Sent: Wednesday, June 28, 2006 7:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Keeping DataGrid from scrolling to top on update to dataProvider
 I added a collectionChange event to my XMLListCollection (that'sthe dataProvider for the grid) as follows: public function preserveScrollPosition(event:CollectionEvent):void
{ var prevIndex:int = this.dgDelays.verticalScrollPosition; trace(prevIndex = ,prevIndex); this.dgDelays.scrollToIndex(prevIndex); } and the trace info does give me the value of the currentScroll,
but the grid still goes back to the top after the data is populated. is refresh() still being called after this guy? --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com , Deepa Subramaniam dsubrama@ wrote:   When the actual data comes in, the DataGrid encounters a REFRESH
  collectionChange event and if you look in  ListBase.collectionChangeHandler's REFRESH case, you'll see that the  verticalScrollPosition is set to 0.   What you need to do is set the scroll position *after* the data
 has come  in and the DataGrid has processed the REFRESH event.   -deepa   -Original Message-  From: 
flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com ] On  Behalf Of djbrown_rotonews  Sent: Tuesday, June 27, 2006 12:42 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  Subject: [flexcoders] Re: Keeping DataGrid from scrolling to top
on  update to dataProvider   I actually tried this (my dataProvider for the grid is an  XMLListCollection being populated by a jsp. The grid has custom item  renderers if that's relevant).
   anyhow, I have an update button which will call the jsp andget  new results when clicked. I've set it up so the click() method  correctly captures the scroll position, calls the jsp, and then
 sets  the scrollToIndex to the previous value of the scroll position.It  works great while the busy cursor is displayed, but it reverts  back to scrolled all the way at the top once the actual data
comes  in from the jsp (it takes about 3 seconds to update the gridwith  the new data).   any ideas on where the scroll position is being reset?   --- In 
flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Deepa Subramaniam  dsubrama@ wrote:
 Hi Jordan - You can keep track of the verticalScrollPosition property inyour   DataGrid and upon receving UPDATES, re-set the
  verticalScrollPosition to   the previous value and the DataGrid will jump to the lastscroll   position and show the correct content.
 -deepa  From: 
flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com ] On   Behalf Of Jordan Snyder   Sent: Monday, June 26, 2006 7:34 PM   To: 
flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com   Subject: [flexcoders] Keeping DataGrid from scrolling to top
on  update   to dataProvider Hello All, I am working on an app in which I poll the server quite
 frequently  to   get new information. The information comes to me in an XML format  that   I simply assign as the dataProvider for a DataGrid component.
 

Re: [flexcoders] Ely: StoplightRenderer example doesn't work right in release

2006-06-28 Thread Pan Troglodytes



Really, there's no way to clear the cache? This would probably explain the problem I had in another thread (http://groups.yahoo.com/group/flexcoders/message/40839
) which you so cruelly refused to respond to. ;)I'm looking forward to the next point release!On 6/28/06, Ely Greenfield 
[EMAIL PROTECTED] wrote:








  









Hmmm. Honestly, I'm surprised that worked in beta 3. 
Regardless, the series is caching instances of the itemRenderer, and not 
correctly releasing them when you switch to a different renderer. The only 
workaround I can see right now is to create a new PieSeries rather than just 
changing the itemRenderer.

Ely.





From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Pan 
TroglodytesSent: Wednesday, June 28, 2006 2:54 PMTo: 
flexcodersSubject: [flexcoders] Ely: StoplightRenderer example 
doesn't work right in release


Ely,Okay, I admit, the subject is a LITTLE misleading. Your 
original page for the stoplight renderer (http://www.quietlyscheming.com/blog/charts/data-based-renderers/ 
) does still work. But a slight derivative of it now seems to 
fail.I'm specifically referring to setting the itemRenderer at 
runtime. Using setStyle(itemRenderer, ...), the chart never seems to 
update. Below is my example based on your example. I show three 
charts. The first is using a switchable item renderer, the second is using 
MyStoplightItemRenderer, the third using MyStoplightItemRenderer2. The 
radio button is supposed to switch the first chart back and forth these 
two. This used to work under the beta. Now it seems to have no 
effect. Can you confirm this is a bug in Flex? I'm not going to 
post it to the bug webpage yet in case you just changed how you are supposed to 
approach this problem.Stoplight.mxml:?xml version=1.0 
encoding=utf-8?Application xmlns=
http://www.adobe.com/2006/mxml 
layout=absolute Script
 
![CDATA[ public 
function changeRenderer(e:Event):void { 
switch (rendergroup.selectedValue) { 
case Renderer1: 
pie.setStyle('itemRenderer', new ClassFactory(MyStoplightWedgeRenderer)); 
 
break; 
case Renderer2: 
pie.setStyle('itemRenderer', new ClassFactory(MyStoplightWedgeRenderer2)); 
 
break; 
} 
} ]]
 /Script XML 
id=dataSet source=data/sampleData.xml /
 Panel 
width=100% height=100% title=data based renderers  
RadioButtonGroup id=rendergroup 
change=changeRenderer(event)/ 
RadioButton label=Renderer1 groupName=rendergroup/  
RadioButton label=Renderer2 groupName=rendergroup/
 
PieChart id=chart width=100% height=100% dataProvider={dataSet.Sample 
} 
series 
PieSeries field=@costs id=pie/ 
/series 
/PieChart 
PieChart id=chart2 width=100% height=100% dataProvider={ 
dataSet.Sample} 
series 
PieSeries field=@costs id=pie2 
itemRenderer=MyStoplightWedgeRenderer/ 
/series 
/PieChart 
PieChart id=chart3 width=100% height=100% 
dataProvider={dataSet.Sample} 
series 
PieSeries field=@costs id=pie3 
itemRenderer=MyStoplightWedgeRenderer2/  
/series 
/PieChart 
/Panel/Application
MyStoplightWedgeRenderer:?xml version=1.0  
encoding=utf-8?qc:StoplightWedgeRenderer 
xmlns:qc=qs.charts.dataRenderers.* xmlns=http://www.adobe.com/2006/mxml 
qc:thresholds  
qc:StoplightThreshold 
value=0 
qc:fill 
SolidColor color=#00AA00 
/ 
/qc:fill 
/qc:StoplightThreshold 
 
qc:StoplightThreshold 
value=50 
qc:fill 
SolidColor color=#00 
/ 
/qc:fill 
/qc:StoplightThreshold 
 
qc:StoplightThreshold 
value=80 
qc:fill 
SolidColor color=#AA 
/ 
/qc:fill 
/qc:StoplightThreshold 
 /qc:thresholds 
/qc:StoplightWedgeRendererMyStoplightWedgeRenderer2:?xml version=
1.0 
encoding=utf-8?qc:StoplightWedgeRenderer 
xmlns:qc=qs.charts.dataRenderers.*  xmlns=http://www.adobe.com/2006/mxml
 
qc:thresholds  
qc:StoplightThreshold value=0 
qc:fill 
SolidColor color=#CCAACC / 
/qc:fill 
/qc:StoplightThreshold  
qc:StoplightThreshold value=50 
qc:fill 
SolidColor color=#CC / 
/qc:fill 
/qc:StoplightThreshold  
qc:StoplightThreshold value=80 
qc:fill 
SolidColor color=#AA / 
/qc:fill 
/qc:StoplightThreshold 
 
/qc:thresholds /qc:StoplightWedgeRenderer
-- Jason 


  













-- Jason

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of 

[flexcoders] Flex 2 Video Player (with funny videos)

2006-06-28 Thread John C. Bland II



In light of the Flex 2 news, I finished this little video player app
just to show how Flex 2 can interact with Flash Media Server 2 for
streaming videos. There isn't much visually to see but check the source
(right click-View Source) to see the code (which there isn't much
code there either; lol). This started out by me working on Christophe's FMS app then I couldn't help but do something with Video.

Click here to see the app.

This videos are pretty coo too. :-)-- John C. Bland III do what I can do when I can do it. - Chris Tucker, Money Talkshttp://www.gotoandstop.org
 - Home of FMUG.az

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Adobe Style Explorer - view source error

2006-06-28 Thread Angus Johnson



A quick note to someone at Adobe... could you check the view source for the sample Style Explorer application? Link is broken... 
http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html I did notice security 2047 errors on a couple of refreshes.CheersAngus

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Re: Reusing code blocks

2006-06-28 Thread mthielman11
Thanks a lot guys I will try this out.


--- In flexcoders@yahoogroups.com, Darron J. Schall [EMAIL PROTECTED] wrote:

 Yes, through the concept of base states.  Build a state that has the 
 components you want shared between multiple sub-states, then when you 
 add a new state in Flex Builder change the Based On drop down to be 
 the state that contains the Canvas and Accordian.
 
 -d
 
 mthielman11 wrote:
 
  Ok I have a MXML file that has 3 states. All of them have one coommon 
  canvas in common
  that holds an accordian. It should look the same in all 3 states. Is 
  there a way to only define
  the accordian (and canvas) container once and have it appear on all 
  thre states??
 
  Right now in the code the accordian is there 3 times which seems a bit 
  bloated to me.
 
 








 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Adobe Style Explorer - view source error

2006-06-28 Thread Pan Troglodytes



Must have been a transient problem, as it's working fine now.On 6/28/06, Angus Johnson [EMAIL PROTECTED]
 wrote:








  



A quick note to someone at Adobe... could you check the view source for the sample Style Explorer application? Link is broken... 

http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html I did notice security 2047 errors on a couple of refreshes.CheersAngus

  













-- Jason

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Embedding WSDL?

2006-06-28 Thread Kelly Birr





Is it possible to 
somehow embed WSDL in the compiled SWF, or read/write the actual WSDL directly 
to the web services without them having to request it via HTTP at 
runtime? Can I bind the WSDL to a string that I manually request via 
UrlLoader?

Along with that if 
I have 15 different web service tags on different MXML components of my 
application that all call the same web service with the exact same WSDL Uri, 
will the WSDL cache? or will each Web Service instance make a request for the 
WSDL via HTTP when it is initialized.

My client is very 
concerned that the application may be too "chatty" on their network and it seems 
that these WSDL requests may be part of the problem. I'm using Flex 2.0 
RTM.

- 
Kelly
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Ely: StoplightRenderer example doesn't work right in release

2006-06-28 Thread Pan Troglodytes



This brings up another point. I could just add multiple PieSeries. Unfortunately, setting a PieSeries.visible=false does not actually take it out of the chart. Even though it's hidden, it still affects the other series and such. This seems counter-productive.
On 6/28/06, Ely Greenfield [EMAIL PROTECTED] wrote:









  









Hmmm. Honestly, I'm surprised that worked in beta 3. 
Regardless, the series is caching instances of the itemRenderer, and not 
correctly releasing them when you switch to a different renderer. The only 
workaround I can see right now is to create a new PieSeries rather than just 
changing the itemRenderer.

Ely.





From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Pan 
TroglodytesSent: Wednesday, June 28, 2006 2:54 PMTo: 
flexcodersSubject: [flexcoders] Ely: StoplightRenderer example 
doesn't work right in release


Ely,Okay, I admit, the subject is a LITTLE misleading. Your 
original page for the stoplight renderer (http://www.quietlyscheming.com/blog/charts/data-based-renderers/ 
) does still work. But a slight derivative of it now seems to 
fail.I'm specifically referring to setting the itemRenderer at 
runtime. Using setStyle(itemRenderer, ...), the chart never seems to 
update. Below is my example based on your example. I show three 
charts. The first is using a switchable item renderer, the second is using 
MyStoplightItemRenderer, the third using MyStoplightItemRenderer2. The 
radio button is supposed to switch the first chart back and forth these 
two. This used to work under the beta. Now it seems to have no 
effect. Can you confirm this is a bug in Flex? I'm not going to 
post it to the bug webpage yet in case you just changed how you are supposed to 
approach this problem.Stoplight.mxml:?xml version=1.0 
encoding=utf-8?Application xmlns=
http://www.adobe.com/2006/mxml 
layout=absolute Script
 
![CDATA[ public 
function changeRenderer(e:Event):void { 
switch (rendergroup.selectedValue) { 
case Renderer1: 
pie.setStyle('itemRenderer', new ClassFactory(MyStoplightWedgeRenderer)); 
 
break; 
case Renderer2: 
pie.setStyle('itemRenderer', new ClassFactory(MyStoplightWedgeRenderer2)); 
 
break; 
} 
} ]]
 /Script XML 
id=dataSet source=data/sampleData.xml /
 Panel 
width=100% height=100% title=data based renderers  
RadioButtonGroup id=rendergroup 
change=changeRenderer(event)/ 
RadioButton label=Renderer1 groupName=rendergroup/  
RadioButton label=Renderer2 groupName=rendergroup/
 
PieChart id=chart width=100% height=100% dataProvider={dataSet.Sample 
} 
series 
PieSeries field=@costs id=pie/ 
/series 
/PieChart 
PieChart id=chart2 width=100% height=100% dataProvider={ 
dataSet.Sample} 
series 
PieSeries field=@costs id=pie2 
itemRenderer=MyStoplightWedgeRenderer/ 
/series 
/PieChart 
PieChart id=chart3 width=100% height=100% 
dataProvider={dataSet.Sample} 
series 
PieSeries field=@costs id=pie3 
itemRenderer=MyStoplightWedgeRenderer2/  
/series 
/PieChart 
/Panel/Application
MyStoplightWedgeRenderer:?xml version=1.0  
encoding=utf-8?qc:StoplightWedgeRenderer 
xmlns:qc=qs.charts.dataRenderers.* xmlns=http://www.adobe.com/2006/mxml 
qc:thresholds  
qc:StoplightThreshold 
value=0 
qc:fill 
SolidColor color=#00AA00 
/ 
/qc:fill 
/qc:StoplightThreshold 
 
qc:StoplightThreshold 
value=50 
qc:fill 
SolidColor color=#00 
/ 
/qc:fill 
/qc:StoplightThreshold 
 
qc:StoplightThreshold 
value=80 
qc:fill 
SolidColor color=#AA 
/ 
/qc:fill 
/qc:StoplightThreshold 
 /qc:thresholds 
/qc:StoplightWedgeRendererMyStoplightWedgeRenderer2:?xml version=
1.0 
encoding=utf-8?qc:StoplightWedgeRenderer 
xmlns:qc=qs.charts.dataRenderers.*  xmlns=http://www.adobe.com/2006/mxml
 
qc:thresholds  
qc:StoplightThreshold value=0 
qc:fill 
SolidColor color=#CCAACC / 
/qc:fill 
/qc:StoplightThreshold  
qc:StoplightThreshold value=50 
qc:fill 
SolidColor color=#CC / 
/qc:fill 
/qc:StoplightThreshold  
qc:StoplightThreshold value=80 
qc:fill 
SolidColor color=#AA / 
/qc:fill 
/qc:StoplightThreshold 
 
/qc:thresholds /qc:StoplightWedgeRenderer
-- Jason 


  













-- Jason

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms 

[flexcoders] Re: FLEX 2B3 - After installing Flash 9 IDE Alpha, Debug player in FB does not work

2006-06-28 Thread Tim Hoff
Hi Hilary,

I don't know if this is an issue with Flash 9 Alpha, but the Flex2 
debug players are located in the C:/Program Files/Adobe/Flex Builder 
2/Player/Debug directory.

-TH

--- In flexcoders@yahoogroups.com, Hilary Bridel [EMAIL PROTECTED] 
wrote:

 Hi people,
 After installing Flash 9 IDE Alpha for AS3, the Debug player in FB 
does not
 work.
 
 I have reinstalled both apps, but cant get the debug player in FB 
to work.
 
 Can I download just the debug player from somewhere?
 Does the Flash 9 IDE Alpha use the same debug player as FB?
 
 Regards
 
 -- 
 Hilary
 
 --







 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Set up FlexUnit with Flex Builder Eclipse plugin

2006-06-28 Thread Chris Velevitch
You should be using FlexUnit for Flex 2.
http://labs.adobe.com/wiki/index.php/ActionScript_3:resources:apis:libraries


Chris
-- 
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au


 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] jumpy breakpoints

2006-06-28 Thread Pan Troglodytes



Anyone else got jumpy breakpoints - meaning you set it on a line of code at design-time and Flex moves it when you hit run? Anyone set breakpoints on perfectly valid code only to have Flex claim the line contains no executable code? 
I have ran into this problem several times. Combatting it right now in a very specific case: switch (periodText) {
 case Day: periodEnd.date++; break; case Week: periodEnd.date += 7; break; case Month: periodEnd.month++; break; case Year: 
periodEnd.fullYear++; break; } periodData = history.getPeriod(periodStart, periodEnd); switch (groupingText) { case Site: chartData = periodData; break; case Risk: chartData = 
history.getRisks(periodData); break; case Category: chartData = history.getCategories(periodData); break; }Flex marks all breakpoints after the first switch to be invalid. Unfortunately, I don't have a small reproducible test unit. But it does happen and can totally wreck my debugging.
-- Jason

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Re: Embedding WSDL?

2006-06-28 Thread Tim Hoff
I have the same question as Kelly.  It seems that the initial call 
to a webservice is slower because of the wsdl.  Subsequent calls are 
fine, but there is always an initial delay.  I know, switch to 
HTTPService or RemoteObject.

For the following code, I'm thinking that I could override the 
loadWSDL() function, but the mx.rpc.soap.WebService API doesn't 
appear in the framework.  Is the API final?  Is there a work-around 
here?

public function DataServices(pri:PrivateClass, wsdl:String)
{
   this.ws = new WebService();
   ws.wsdl = wsdl;
   ws.loadWSDL();
   ws.useProxy = false;
   ws.makeObjectsBindable = false;
}

Thank you,
-TH

--- In flexcoders@yahoogroups.com, Kelly Birr [EMAIL PROTECTED] wrote:

 Is it possible to somehow embed WSDL in the compiled SWF, or 
read/write the
 actual WSDL directly to the web services without them having to 
request it
 via HTTP at runtime?   Can I bind the WSDL to a string that I 
manually
 request via UrlLoader?
  
 Along with that if I have 15 different web service tags on 
different MXML
 components of my application that all call the same web service 
with the
 exact same WSDL Uri, will the WSDL cache? or will each Web Service 
instance
 make a request for the WSDL via HTTP when it is initialized.
  
 My client is very concerned that the application may be 
too chatty on
 their network and it seems that these WSDL requests may be part of 
the
 problem.  I'm using Flex 2.0 RTM.
  
 - Kelly







 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Adobe Style Explorer - view source error

2006-06-28 Thread Matt Chotin










Sorry about that, looks like Peter (the
author) forgot to include the source when he gave it to me for distribution. Hes
out of the country so it might be next week before we can get that posted. The
Beta 3 version can be found here in the meantime, but there are definitely some
diffs between this and what is showing. 



http://flexapps.macromedia.com/flex2beta3/styleexplorer/srcview/index.html



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pan Troglodytes
Sent: Wednesday, June 28, 2006
8:40 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Adobe
Style Explorer - view source error











Must have been a transient problem, as it's working
fine now.



On 6/28/06, Angus
Johnson [EMAIL PROTECTED]
 wrote:











A quick note to someone at Adobe... could you check
the view source for the sample Style Explorer application? Link is broken... 
http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html


I did notice security 2047 errors on a couple of refreshes.

Cheers
Angus
















-- 
Jason 






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Re: Embedding WSDL?

2006-06-28 Thread Tim Hoff
Nevermind, I'll just make a background call when the ap loads to 
establish the wsdl.  Still interested to know the answers to the 
questions though.

Thanks again,
-TH

--- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote:

 I have the same question as Kelly.  It seems that the initial call 
 to a webservice is slower because of the wsdl.  Subsequent calls 
are 
 fine, but there is always an initial delay.  I know, switch to 
 HTTPService or RemoteObject.
 
 For the following code, I'm thinking that I could override the 
 loadWSDL() function, but the mx.rpc.soap.WebService API doesn't 
 appear in the framework.  Is the API final?  Is there a work-
around 
 here?
 
 public function DataServices(pri:PrivateClass, wsdl:String)
 {
this.ws = new WebService();
ws.wsdl = wsdl;
ws.loadWSDL();
ws.useProxy = false;
ws.makeObjectsBindable = false;
 }
 
 Thank you,
 -TH
 
 --- In flexcoders@yahoogroups.com, Kelly Birr kelly.fx@ wrote:
 
  Is it possible to somehow embed WSDL in the compiled SWF, or 
 read/write the
  actual WSDL directly to the web services without them having to 
 request it
  via HTTP at runtime?   Can I bind the WSDL to a string that I 
 manually
  request via UrlLoader?
   
  Along with that if I have 15 different web service tags on 
 different MXML
  components of my application that all call the same web service 
 with the
  exact same WSDL Uri, will the WSDL cache? or will each Web 
Service 
 instance
  make a request for the WSDL via HTTP when it is initialized.
   
  My client is very concerned that the application may be 
 too chatty on
  their network and it seems that these WSDL requests may be part 
of 
 the
  problem.  I'm using Flex 2.0 RTM.
   
  - Kelly
 








 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Ely: StoplightRenderer example doesn't work right in release

2006-06-28 Thread Pan Troglodytes



Okay, here's how I worked around it for anyone else following the thread.I created my chart like this (pseudo-code):PieChart id=chart PieSeries id=series1 dataProvider=mydata/
 PieSeries id=series2 dataProvider=mydata/
/PieChartNotice that series1/2 are NOT inside a series tag.In my update function, I have a switch that decided which series should be active and did as follows://series1.setStyle(showDataEffect, someEffect);

chart.series = [series1]; // set the series array to just this one serieschart.invalidateSeries();The commented out line is in case you have any effects. For some reason, they have to reapplied.If one of your series has a custom renderer like mine, you can define it inline or assign it like so:
 PieSeries id=series1 dataProvider=mydata itemRenderer=CustomRenderer/On 6/28/06, Ely Greenfield 
[EMAIL PROTECTED]
 wrote:








  









Hmmm. Honestly, I'm surprised that worked in beta 3. 
Regardless, the series is caching instances of the itemRenderer, and not 
correctly releasing them when you switch to a different renderer. The only 
workaround I can see right now is to create a new PieSeries rather than just 
changing the itemRenderer.

Ely.





From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Pan 
TroglodytesSent: Wednesday, June 28, 2006 2:54 PMTo: 
flexcodersSubject: [flexcoders] Ely: StoplightRenderer example 
doesn't work right in release


Ely,Okay, I admit, the subject is a LITTLE misleading. Your 
original page for the stoplight renderer (http://www.quietlyscheming.com/blog/charts/data-based-renderers/ 
) does still work. But a slight derivative of it now seems to 
fail.I'm specifically referring to setting the itemRenderer at 
runtime. Using setStyle(itemRenderer, ...), the chart never seems to 
update. Below is my example based on your example. I show three 
charts. The first is using a switchable item renderer, the second is using 
MyStoplightItemRenderer, the third using MyStoplightItemRenderer2. The 
radio button is supposed to switch the first chart back and forth these 
two. This used to work under the beta. Now it seems to have no 
effect. Can you confirm this is a bug in Flex? I'm not going to 
post it to the bug webpage yet in case you just changed how you are supposed to 
approach this problem.Stoplight.mxml:?xml version=1.0 
encoding=utf-8?Application xmlns=

http://www.adobe.com/2006/mxml 
layout=absolute Script

 
![CDATA[ public 
function changeRenderer(e:Event):void { 
switch (rendergroup.selectedValue) { 
case Renderer1: 
pie.setStyle('itemRenderer', new ClassFactory(MyStoplightWedgeRenderer)); 
 
break; 
case Renderer2: 
pie.setStyle('itemRenderer', new ClassFactory(MyStoplightWedgeRenderer2)); 
 
break; 
} 
} ]]

 /Script XML 
id=dataSet source=data/sampleData.xml /

 Panel 
width=100% height=100% title=data based renderers  
RadioButtonGroup id=rendergroup 
change=changeRenderer(event)/ 
RadioButton label=Renderer1 groupName=rendergroup/  
RadioButton label=Renderer2 groupName=rendergroup/

 
PieChart id=chart width=100% height=100% dataProvider={dataSet.Sample 
} 
series 
PieSeries field=@costs id=pie/ 
/series 
/PieChart 
PieChart id=chart2 width=100% height=100% dataProvider={ 
dataSet.Sample} 
series 
PieSeries field=@costs id=pie2 
itemRenderer=MyStoplightWedgeRenderer/ 
/series 
/PieChart 
PieChart id=chart3 width=100% height=100% 
dataProvider={dataSet.Sample} 
series 
PieSeries field=@costs id=pie3 
itemRenderer=MyStoplightWedgeRenderer2/  
/series 
/PieChart 
/Panel/Application

MyStoplightWedgeRenderer:?xml version=1.0  
encoding=utf-8?qc:StoplightWedgeRenderer 
xmlns:qc=qs.charts.dataRenderers.* xmlns=http://www.adobe.com/2006/mxml 
qc:thresholds  
qc:StoplightThreshold 
value=0 
qc:fill 
SolidColor color=#00AA00 
/ 
/qc:fill 
/qc:StoplightThreshold 
 
qc:StoplightThreshold 
value=50 
qc:fill 
SolidColor color=#00 
/ 
/qc:fill 
/qc:StoplightThreshold 
 
qc:StoplightThreshold 
value=80 
qc:fill 
SolidColor color=#AA 
/ 
/qc:fill 
/qc:StoplightThreshold 
 /qc:thresholds 
/qc:StoplightWedgeRendererMyStoplightWedgeRenderer2:?xml version=
1.0 
encoding=utf-8?qc:StoplightWedgeRenderer 
xmlns:qc=qs.charts.dataRenderers.*  xmlns=http://www.adobe.com/2006/mxml

 
qc:thresholds  
qc:StoplightThreshold value=0 
qc:fill 
SolidColor color=#CCAACC / 
/qc:fill 
/qc:StoplightThreshold  
qc:StoplightThreshold value=50 
qc:fill 
SolidColor color=#CC / 
/qc:fill 
/qc:StoplightThreshold  
qc:StoplightThreshold value=80 
qc:fill 
SolidColor color=#AA / 
/qc:fill 
/qc:StoplightThreshold 
 
/qc:thresholds /qc:StoplightWedgeRenderer

-- Jason 


  













-- Jason


__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
 

Re: [flexcoders] Adobe Style Explorer - view source error

2006-06-28 Thread Pan Troglodytes



I'm still a bit curious. Now I can get the 2047 error sometimes, but not usually. Shouldn't I always get it? I'm talking about doing a full reload on the page or opening it in a new tab. Secondly, it still seems to work fine even after clicking close on the error. Is this not true for other people? I am using the FB2 release version of F9 player which is a slightly different version than the regular Flash 9 player.
On 6/29/06, Matt Chotin [EMAIL PROTECTED] wrote:









  











Sorry about that, looks like Peter (the
author) forgot to include the source when he gave it to me for distribution. He's
out of the country so it might be next week before we can get that posted. The
Beta 3 version can be found here in the meantime, but there are definitely some
diffs between this and what is showing. 




http://flexapps.macromedia.com/flex2beta3/styleexplorer/srcview/index.html



Matt











From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Pan Troglodytes
Sent: Wednesday, June 28, 2006
8:40 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Adobe
Style Explorer - view source error











Must have been a transient problem, as it's working
fine now.



On 6/28/06, Angus
Johnson [EMAIL PROTECTED]
 wrote:












A quick note to someone at Adobe... could you check
the view source for the sample Style Explorer application? Link is broken... 
http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html



I did notice security 2047 errors on a couple of refreshes.

Cheers
Angus
















-- 
Jason 










  













-- Jason

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



<    1   2   3