[flexcoders] Context menu and sub-menu capability...

2007-10-23 Thread mrvinedit
Is it possible for a Flex (Flash) context menu to have one of more
sub-menus?

Thanks,

Mike G



[flexcoders] Re: Flex Pie Charts: Rotation of slices...

2007-09-14 Thread mrvinedit
I submitted a "wish" to the Flex wish list... it would be nice if the
Flex 3 PieSeries tag had a "renderDirection" (clockwise |
counterclockwise) or a "clockwise" (true | false) attribute added.
That will take about 30 minutes to add right? ;-)



[flexcoders] Re: Flex Pie Charts: Rotation of slices...

2007-09-14 Thread mrvinedit
Thanks Ely. That's what I was thinking, but hoped that maybe I had
just missed something in the docs. I appreciate your insight.



[flexcoders] Flex Pie Charts: Rotation of slices...

2007-09-14 Thread mrvinedit
For Flex Pie Charts it seems as the order of the pie slices is
counterclockwise - meaning that as the data from an arraycollection is
utilized, each subsequent pie slice is layed out in the
counterclockwise direction from the default starting point of 3 o'clock.

Is there a way to toggle this layout to rotate clockwise (other than
finagling the arraycollection's order of data stacking)?

Thanks.





[flexcoders] Re: Change Button Icon Programatically

2007-02-06 Thread mrvinedit
Not to say this is the only way, but here is one way:

// embed the default button icon 
[Embed(source="images/pause.gif")]
// create a Class for the pause icon - make it bindable.
[Bindable] private var imgPauseClass:Class;
// embed the alternate button icon 
[Embed(source="images/play.gif")]
// create a Class for the play icon - make it bindable.
[Bindable] private var imgPlayClass:Class;




I omitted the click event in the button and the function handler for
that event for bevity, but of course you would have those. By toggling
the label of the button in your click handler, you are able to toggle
between the Play and Pause icons.

Hope this helps you, Mike G. 

--- In flexcoders@yahoogroups.com, "richmcgillicuddy" <[EMAIL PROTECTED]> wrote:
>
> is there a way to do this?
> 
> 
> Rich
>



[flexcoders] Re: FLEX DEMOS and Who's GOT them to Share

2006-11-27 Thread mrvinedit
I have Flex 2 as well as Flex 1.5 examples on the Adobe News
Aggregator site (source code is included):

http://weblogs.macromedia.com/mxna/index.cfm?query=byFeed&feedId=712&feedName=Flex%27ination



[flexcoders] A Quick Holiday Example of Flex 2 Data Services

2006-11-27 Thread mrvinedit
Snow Ball Fight 2006 featuring Adobe Flex 2 and Flex Data Services:

Here's the link found on the Adobe News Aggregator (formerly MXNA) -

http://weblogs.macromedia.com/mxna/index.cfm?query=byFeed&feedId=712&feedName=Flex%27ination

By the way, the source code is included :-)



[flexcoders] Re: State data is not changing my datagrid-embedded combobox...

2006-02-10 Thread mrvinedit
Close enough to what I'm doing, and your example is just what I needed
to see to open my eyes.

Thanks a bunch!
 
--- In flexcoders@yahoogroups.com, "Doug Lowder" <[EMAIL PROTECTED]> wrote:
>
> Is what you're trying to do similar to what the Change button does 
> in the example app below?  If it is but you still can't get your app 
> to work, maybe there's a mismatch with the data somewhere (I know 
> this is the case in the example, which is why the button is able to 
> reset the combobox value, but a selection made directly from the 
> combobox won't stick).
> 
> - Doug
> 
> Example app:
> 
> 
> 
> http://www.macromedia.com/2003/mxml"; 
> width="100%" height="100%">
> 
> 
> 
> 
> 
> 
> 
>  dataProvider="{aryLoc}" rowCount="5">
> 
> 
>  columnName="LocState"
> editable="false" cellRenderer="StateRenderer" 
> width="120"/>
> 
> 
> 
> 
> 
> 
> 
> ---
> 
> --- In flexcoders@yahoogroups.com, "mrvinedit"  wrote:
> >
> > Thanks Doug, but for some reason that's not working for me.
> > 
> > --- In flexcoders@yahoogroups.com, "Doug Lowder"  
> wrote:
> > >
> > > Hi,
> > > 
> > > In function updateStateCbx(), try calling the following: 
> > > dgLocationInfo.dataProvider.editField(selIdx, "data", 
> selState).  
> > > The grid should notice the change to the dataprovider and cause 
> your 
> > > cell renderer to automatically update the combobox.
> > > 
> > > Regards,
> > > Doug
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "mrvinedit"  wrote:
> > > >
> > > > I'm passing in selIdx and selState variables from another mxml 
> not
> > > > shown here, but suffice to say my alert is showing the correct 
> data
> > > > for the index of the state and the state's data. For some 
> reason 
> > > (must
> > > > be my code :-) the datagrid-embedded combobox is not changing 
> the
> > > > state that's coming in from my data. Suggestions?
> > > > 
> > > > Grid.mxml:
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >  > > > dataProvider="{aryLoc}" rowCount="5"
> > > > change="updateGridRowModel
> > > 
> (dgLocationInfo.selectedItem.LocNum,dgLocationInfo.selectedItem.LocAd
> > > 
> dr,dgLocationInfo.selectedItem.LocZip,dgLocationInfo.selectedItem.Loc
> > > City,dgLocationInfo.selectedItem.LocState)">
> > > >   
> > > > 
> > > >columnName="LocState"
> > > > editable="false" cellRenderer="StateRenderer" width="120"/>
> > > > 
> > > > 
> > > > 
> > > > StateRenderer:
> > > > 
> > > > import mx.controls.ComboBox;
> > > > 
> > > > class StateRenderer extends mx.core.UIComponent {
> > > > 
> > > > var comboDP:Array = [{label:"Alabama", data:"AL"}, 
> > > {label:"Alaska",
> > > > data:"AK"}, {label:"Arizona", data:"AZ"}, {label:"Arkansas",
> > > > data:"AR"}, {label:"California", data:"CA"}, {label:"Colorado",
> > > > data:"CO"}, {label:"Connecticut", data:"CT"}, 
> {label:"Delaware",
> > > > data:"DE"}, {label:"Florida", data:"FL"}, {label:"Georgia",
> > > > data:"GA"}, {label:"Hawaii", data:"HI"}, {label:"Idaho", 
> > > data:"ID"},
> > > > {label:"Illinois", data:"IL"}, {label:"Indiana", data:"IN"},
> > > > {label:"Iowa", data:"IA"}, {label:"Kansas", data:"KS"},
> > > > {label:"Kentucky", data:"KY"}, {label:"Louisiana", data:"LA"},
> > > > {label:"Maine", data:"ME"}, {label:"Maryland", data:"MD"},
> > > > {label:"Massachusetts", data:"MA"},

[flexcoders] Re: State data is not changing my datagrid-embedded combobox...

2006-02-10 Thread mrvinedit
I should qualify my "doesn't work for me" statement. Doug's suggestion
got me a bit further... For a non-cellrenderer column (LocAddr in this
case), I can "push" the data into the corresponding datagrid column.
But the state comboBox doesn't seem to budge.

function updateAddress(selAddress) {
  //mx.controls.Alert.show(selAddress);
  dgLocationInfo.dataProvider.editField(selIdx, "LocAddr", selState);
}

function updateStateCbx(selIdx,selState) {
  //mx.controls.Alert.show(selIdx + ': ' + selState);
  dgLocationInfo.dataProvider.editField(0, "LocState", selAddress);
}


  

  
  

  







--
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: State data is not changing my datagrid-embedded combobox...

2006-02-10 Thread mrvinedit
Thanks Doug, but for some reason that's not working for me.

--- In flexcoders@yahoogroups.com, "Doug Lowder" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> In function updateStateCbx(), try calling the following: 
> dgLocationInfo.dataProvider.editField(selIdx, "data", selState).  
> The grid should notice the change to the dataprovider and cause your 
> cell renderer to automatically update the combobox.
> 
> Regards,
> Doug
> 
> 
> --- In flexcoders@yahoogroups.com, "mrvinedit"  wrote:
> >
> > I'm passing in selIdx and selState variables from another mxml not
> > shown here, but suffice to say my alert is showing the correct data
> > for the index of the state and the state's data. For some reason 
> (must
> > be my code :-) the datagrid-embedded combobox is not changing the
> > state that's coming in from my data. Suggestions?
> > 
> > Grid.mxml:
> > 
> > 
> > 
> > 
> > 
> >  > dataProvider="{aryLoc}" rowCount="5"
> > change="updateGridRowModel
> (dgLocationInfo.selectedItem.LocNum,dgLocationInfo.selectedItem.LocAd
> dr,dgLocationInfo.selectedItem.LocZip,dgLocationInfo.selectedItem.Loc
> City,dgLocationInfo.selectedItem.LocState)">
> >   
> > 
> >> editable="false" cellRenderer="StateRenderer" width="120"/>
> > 
> > 
> > 
> > StateRenderer:
> > 
> > import mx.controls.ComboBox;
> > 
> > class StateRenderer extends mx.core.UIComponent {
> > 
> > var comboDP:Array = [{label:"Alabama", data:"AL"}, 
> {label:"Alaska",
> > data:"AK"}, {label:"Arizona", data:"AZ"}, {label:"Arkansas",
> > data:"AR"}, {label:"California", data:"CA"}, {label:"Colorado",
> > data:"CO"}, {label:"Connecticut", data:"CT"}, {label:"Delaware",
> > data:"DE"}, {label:"Florida", data:"FL"}, {label:"Georgia",
> > data:"GA"}, {label:"Hawaii", data:"HI"}, {label:"Idaho", 
> data:"ID"},
> > {label:"Illinois", data:"IL"}, {label:"Indiana", data:"IN"},
> > {label:"Iowa", data:"IA"}, {label:"Kansas", data:"KS"},
> > {label:"Kentucky", data:"KY"}, {label:"Louisiana", data:"LA"},
> > {label:"Maine", data:"ME"}, {label:"Maryland", data:"MD"},
> > {label:"Massachusetts", data:"MA"}, {label:"Michigan", data:"MI"},
> > {label:"Minnesota", data:"MN"}, {label:"Mississippi", data:"MS"},
> > {label:"Missouri", data:"MO"}, {label:"Montana", data:"MT"},
> > {label:"Nebraska", data:"NE"}, {label:"Nevada", data:"NV"},
> > {label:"New Hampshire", data:"NH"}, {label:"New Jersey", 
> data:"NJ"},
> > {label:"New Mexico", data:"NM"}, {label:"New York", data:"NY"},
> > {label:"North Carolina", data:"NC"}, {label:"North Dakota",
> > data:"ND"}, {label:"Ohio", data:"OH"}, {label:"Oklahoma", 
> data:"OK"},
> > {label:"Oregon", data:"OR"}, {label:"Pennsylvania", data:"PA"},
> > {label:"Rhode Island", data:"RI"}, {label:"South Carolina",
> > data:"SC"}, {label:"South Dakota", data:"SD"}, {label:"Tennessee",
> > data:"TN"}, {label:"Texas", data:"TX"}, {label:"Utah", data:"UT"},
> > {label:"Vermont", data:"VT"}, {label:"Virginia", data:"VA"},
> > {label:"Washington", data:"WA"} ];
> > var combo;
> > var listOwner : MovieClip;
> > var getCellIndex : Function;
> > var getDataLabel : Function;
> > 
> > function createChildren(Void) : Void {
> > combo = createClassObject( ComboBox, "combo", 1, 
> {owner:this, _x:1});
> > combo.dataProvider = comboDP;
> > combo.addEventListener("change", this);
> > }
> > 
> > function getPreferredHeight(Void) : Number{
> > return combo != undefined ? 18:0;
> > }
> > 
> > function getPreferredWidth(Void) : Number{
> > return combo != undefined ? 100:0;
> > }
> > 
> > function setValue(str:String, item:Object) {
> > var val = item.state;
> > for(var i = 0; i < combo.dataProvider.length; i++) {
> > combo.dataProvider[i].data == val ? 
> combo.selectedIndex = i : '';
> > }
> > }
> > 
> > function change() {
> > listOwner.editField(getCellIndex().itemIndex, 
> getDataLabel(),
> > combo.selectedItem.data);
> > listOwner.selectedIndex = getCellIndex().itemIndex;
> > }
> > }
> >
>






--
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] State data is not changing my datagrid-embedded combobox...

2006-02-10 Thread mrvinedit
I'm passing in selIdx and selState variables from another mxml not
shown here, but suffice to say my alert is showing the correct data
for the index of the state and the state's data. For some reason (must
be my code :-) the datagrid-embedded combobox is not changing the
state that's coming in from my data. Suggestions?

Grid.mxml:






  

  



StateRenderer:

import mx.controls.ComboBox;

class StateRenderer extends mx.core.UIComponent {

var comboDP:Array = [{label:"Alabama", data:"AL"}, {label:"Alaska",
data:"AK"}, {label:"Arizona", data:"AZ"}, {label:"Arkansas",
data:"AR"}, {label:"California", data:"CA"}, {label:"Colorado",
data:"CO"}, {label:"Connecticut", data:"CT"}, {label:"Delaware",
data:"DE"}, {label:"Florida", data:"FL"}, {label:"Georgia",
data:"GA"}, {label:"Hawaii", data:"HI"}, {label:"Idaho", data:"ID"},
{label:"Illinois", data:"IL"}, {label:"Indiana", data:"IN"},
{label:"Iowa", data:"IA"}, {label:"Kansas", data:"KS"},
{label:"Kentucky", data:"KY"}, {label:"Louisiana", data:"LA"},
{label:"Maine", data:"ME"}, {label:"Maryland", data:"MD"},
{label:"Massachusetts", data:"MA"}, {label:"Michigan", data:"MI"},
{label:"Minnesota", data:"MN"}, {label:"Mississippi", data:"MS"},
{label:"Missouri", data:"MO"}, {label:"Montana", data:"MT"},
{label:"Nebraska", data:"NE"}, {label:"Nevada", data:"NV"},
{label:"New Hampshire", data:"NH"}, {label:"New Jersey", data:"NJ"},
{label:"New Mexico", data:"NM"}, {label:"New York", data:"NY"},
{label:"North Carolina", data:"NC"}, {label:"North Dakota",
data:"ND"}, {label:"Ohio", data:"OH"}, {label:"Oklahoma", data:"OK"},
{label:"Oregon", data:"OR"}, {label:"Pennsylvania", data:"PA"},
{label:"Rhode Island", data:"RI"}, {label:"South Carolina",
data:"SC"}, {label:"South Dakota", data:"SD"}, {label:"Tennessee",
data:"TN"}, {label:"Texas", data:"TX"}, {label:"Utah", data:"UT"},
{label:"Vermont", data:"VT"}, {label:"Virginia", data:"VA"},
{label:"Washington", data:"WA"} ];
var combo;
var listOwner : MovieClip;
var getCellIndex : Function;
var getDataLabel : Function;

function createChildren(Void) : Void {
combo = createClassObject( ComboBox, "combo", 1, {owner:this, 
_x:1});
combo.dataProvider = comboDP;
combo.addEventListener("change", this);
}

function getPreferredHeight(Void) : Number{
return combo != undefined ? 18:0;
}

function getPreferredWidth(Void) : Number{
return combo != undefined ? 100:0;
}

function setValue(str:String, item:Object) {
var val = item.state;
for(var i = 0; i < combo.dataProvider.length; i++) {
combo.dataProvider[i].data == val ? combo.selectedIndex 
= i : '';
}
}

function change() {
listOwner.editField(getCellIndex().itemIndex, getDataLabel(),
combo.selectedItem.data);
listOwner.selectedIndex = getCellIndex().itemIndex;
}
}






--
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: How to reference the State selected in a Comboxbox cellRenderer in a Datagri

2006-01-24 Thread mrvinedit
Thanks Tracy - that did the trick... :-)


  



  

  

  



cellRenderer:

import mx.controls.ComboBox;

class StateRenderer extends mx.core.UIComponent {

var comboDP:Array = [{label:"Alabama", data:"AL"}, {label:"Alaska",
data:"AK"}, {label:"Arizona", data:"AZ"}, {label:"Arkansas",
data:"AR"}, {label:"California", data:"CA"}, {label:"Colorado",
data:"CO"}, {label:"Connecticut", data:"CT"}, {label:"Delaware",
data:"DE"}, {label:"Florida", data:"FL"}, {label:"Georgia",
data:"GA"}, {label:"Hawaii", data:"HI"}, {label:"Idaho", data:"ID"},
{label:"Illinois", data:"IL"}, {label:"Indiana", data:"IN"},
{label:"Iowa", data:"IA"}, {label:"Kansas", data:"KS"},
{label:"Kentucky", data:"KY"}, {label:"Louisiana", data:"LA"},
{label:"Maine", data:"ME"}, {label:"Maryland", data:"MD"},
{label:"Massachusetts", data:"MA"}, {label:"Michigan", data:"MI"},
{label:"Minnesota", data:"MN"}, {label:"Mississippi", data:"MS"},
{label:"Missouri", data:"MO"}, {label:"Montana", data:"MT"},
{label:"Nebraska", data:"NE"}, {label:"Nevada", data:"NV"},
{label:"New Hampshire", data:"NH"}, {label:"New Jersey", data:"NJ"},
{label:"New Mexico", data:"NM"}, {label:"New York", data:"NY"},
{label:"North Carolina", data:"NC"}, {label:"North Dakota",
data:"ND"}, {label:"Ohio", data:"OH"}, {label:"Oklahoma", data:"OK"},
{label:"Oregon", data:"OR"}, {label:"Pennsylvania", data:"PA"},
{label:"Rhode Island", data:"RI"}, {label:"South Carolina",
data:"SC"}, {label:"South Dakota", data:"SD"}, {label:"Tennessee",
data:"TN"}, {label:"Texas", data:"TX"}, {label:"Utah", data:"UT"},
{label:"Vermont", data:"VT"}, {label:"Virginia", data:"VA"},
{label:"Washington", data:"WA"} ];
var combo;
var listOwner : MovieClip;
var getCellIndex : Function;
var getDataLabel : Function;

function createChildren(Void) : Void {
combo = createClassObject( ComboBox, "combo", 1, {owner:this, 
_x:1});
combo.dataProvider = comboDP;
combo.addEventListener("change", this);
}

function getPreferredHeight(Void) : Number{
return combo != undefined ? 18:0;
}

function getPreferredWidth(Void) : Number{
return combo != undefined ? 100:0;
}

function setValue(str:String, item:Object) {
var val = item.department;
for(var i = 0; i < combo.dataProvider.length; i++) {
combo.dataProvider[i].data == val ? combo.selectedIndex 
= i : '';
}
}

function change() {
listOwner.editField(getCellIndex().itemIndex,getDataLabel(),
combo.selectedItem.data);
listOwner.selectedIndex = getCellIndex().itemIndex;
}
}



--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Have your combobox cell renderer on change update the data grid's
> dataProvider.  Use editField.  There is an example using a checkbox
> renderer in the Flex Samples.
> 
> Then reference it through dgLocationInfo.selectedItem.LocState.
> 
> Tracy
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of mrvinedit
> Sent: Tuesday, January 24, 2006 11:27 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How to reference the State selected in a Comboxbox
> cellRenderer in a Datagrid?
> 
> For some reason I'm drawing a blank on the correct syntax for this. I
> can do this all day with a "standalone combobox", but missing the way
> to reference it from within a datagrid. :-)
> 
> 
>   
> 
> 
> 
> 
>   
> 
>editable="false" cellRenderer="StateCombo" width="120"/>
> 
>   
> 
> 
> cellRenderer:
> 
> 
> http://www.macromedia.com/2003/mxml"; width="100">
>   
>   
> 
>   
>   
>   
> 
> 
> 
> 
> 
> 
> 
> --
> 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
>






--
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] How to reference the State selected in a Comboxbox cellRenderer in a Datagrid?

2006-01-24 Thread mrvinedit
For some reason I'm drawing a blank on the correct syntax for this. I
can do this all day with a "standalone combobox", but missing the way
to reference it from within a datagrid. :-)


  




  

  

  


cellRenderer:


http://www.macromedia.com/2003/mxml"; width="100">
  

  
  

  







--
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: Webservice - Unable to connect to endpoint ...

2005-09-07 Thread mrvinedit
Brian, it was actually IE throwing the tantrum. FireFox worked with or
without the noProxy. :-)

I might just try a sniffer peek this weekend, and I'll post the
results afterwards.

Thanks again,

Mike G

--- In flexcoders@yahoogroups.com, "Brian Deitte" <[EMAIL PROTECTED]> wrote:
> Well, glad that it works for you now with noProxy although it is
> puzzling to me that you had this problem.  I haven't seen an issue
> exactly like this before, based on the logs below.  Looking at the
> responses, they look exactly the same for IE and Firefox.  Given that it
> works for you with noProxy, my best guess is that there is a header that
> the proxy is adding or removing which is causing Firefox to go into
> fits, but there doesn't look to be anything strange about the headers
> given.  If you ever use a sniffer on reponse when there isn't a proxy,
> I'd be interested in seeing it.  But glad things are working now.
> -Brian




 Yahoo! Groups Sponsor ~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/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: Webservice - Unable to connect to endpoint ...

2005-09-06 Thread mrvinedit
Thanks Saleh. I had the whitelist set or it would not have worked with
Firefox, but I WAS missing the useProxy="false". My webservice call is
now working with both IE and Firefox, so the mystery has been resolved.
 
--- In flexcoders@yahoogroups.com, vnice Cute <[EMAIL PROTECTED]> wrote:
> Hello,
> I think you must to verfiy the whitelist.
> i got the same problem before and i have verfiy my white list and
added the useproxy="false" to the tag 
> 
>  
> 
> Please read more about the article whitelist from 
> http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19251
> 
> Saleh Al-Gergawi
> 
> 
> mrvinedit <[EMAIL PROTECTED]> wrote:
> Anyone seen "Unable to connect to endpoint ..." calling a webservice
> only when using IE but otherwise working fine in Firefox.
> 
>  wsdl="http://ws2.serviceobjects.net/gcr/GeoCoder.asmx?WSDL";
> id="GeoCodeService" fault="alert(event.fault.faultstring)"
> result="ParseResult()">
>  showBusyCursor="true">
> 
> {txtAddress.text}
> {txtCity.text}
> {txtState.text}
> {txtZip.text}
> license_key_goes_here
> 
> 
> 
> 
> Thanks.
> 
> 
> 
> 
> 
> 
> 
> --
> 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 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. 
> 
> 
> -
> 
> 
> 
>   
> -
>  Click here to donate to the Hurricane Katrina relief effort.




 Yahoo! Groups Sponsor ~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/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: Webservice - Unable to connect to endpoint ...

2005-09-05 Thread mrvinedit
Thanks again Brian. I added the useProxy="false" attribute (see below)
to my webservice tag and now it works in both IE and FireFox. 

http://ws2.serviceobjects.net/gcr/GeoCoder.asmx?WSDL";
id="GeoCodeService" useProxy="false"
fault="alert(event.fault.faultstring)" result="ParseResult()">




 Yahoo! Groups Sponsor ~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/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: Webservice - Unable to connect to endpoint ...

2005-09-05 Thread mrvinedit
Good idea Brian. 

In the meantime... here's what I get in my Tomcat stdout log for IE:

09/05 23:00:04 INFO -- POST status: 200, reason: OK, target:
http://ws2.serviceobjects.net/gcr/GeoCoder.asmx
09/05 23:01:30 INFO -- POST :
http://ws2.serviceobjects.net/gcr/GeoCoder.asmx
09/05 23:01:30 INFO -- Header in request: cache-control : no-cache
09/05 23:01:30 INFO -- Header in request: connection : Keep-Alive
09/05 23:01:30 INFO -- Header in request: user-agent : Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1; WHCC/0.6; SV1; .NET CLR
1.1.4322)
09/05 23:01:30 INFO -- Header in request: content-type : text/xml;
charset=utf-8
09/05 23:01:30 INFO -- Header in request: x-flash-version : 8,0,0,400
09/05 23:01:30 INFO -- Header in request: accept : */*
09/05 23:01:30 INFO -- Header in request: soapaction :
"http://www.serviceobjects.com/GetGeoLocation";
09/05 23:01:30 INFO -- Begin POST request --
09/05 23:01:30 INFO http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/en
velope/">http://www.serviceobjects.com/";>700 W Convention
WayAnaheimCA
92802my_key
09/05 23:01:30 INFO -- End POST request --
09/05 23:01:32 INFO -- Header in response: Server : Microsoft-IIS/5.0
09/05 23:01:32 INFO -- Header in response: Date : Tue, 06 Sep 2005
03:01:31 GMT
09/05 23:01:32 INFO -- Header in response: X-Powered-By : ASP.NET
09/05 23:01:32 INFO -- Header in response: X-AspNet-Version : 1.1.4322
09/05 23:01:32 INFO -- Header in response: Cache-Control : no-cache
09/05 23:01:32 INFO -- Header in response: Pragma : no-cache
09/05 23:01:32 INFO -- Header in response: Expires : -1
09/05 23:01:32 INFO -- Header in response: Content-Type : text/xml;
charset=utf-8
09/05 23:01:32 INFO -- Begin POST response --
09/05 23:01:32 INFO http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>http://www.serviceobjects.com/";>33.799436-117.91683492802-34240875.033000
09/05 23:01:32 INFO -- End POST response --
09/05 23:01:32 INFO -- POST status: 200, reason: OK, target:
http://ws2.serviceobjects.net/gcr/GeoCoder.asmx

This shows no problem in the data with IE.

Here's the request/response for Firefox:

09/05 23:07:41 INFO -- POST :
http://ws2.serviceobjects.net/gcr/GeoCoder.asmx
09/05 23:07:41 INFO -- Header in request: connection : keep-alive
09/05 23:07:41 INFO -- Header in request: accept-language :
en-us,en;q=0.5
09/05 23:07:41 INFO -- Header in request: accept-charset :
ISO-8859-1,utf-8;q=0.7,*;q=0.7
09/05 23:07:41 INFO -- Header in request: user-agent : Mozilla/5.0
(Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716
Firefox/1.0.6
09/05 23:07:41 INFO -- Header in request: content-type : text/xml;
charset=utf-8
09/05 23:07:41 INFO -- Header in request: accept :
text/xml,application/xml,application/xhtml+xml,tex
t/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
09/05 23:07:41 INFO -- Header in request: soapaction :
"http://www.serviceobjects.com/GetGeoLocation";
09/05 23:07:41 INFO -- Header in request: keep-alive : 300
09/05 23:07:41 INFO -- Begin POST request --
09/05 23:07:41 INFO http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/en
velope/">http://www.serviceobjects.com/";>700 W Convention
WayAnaheimCA
92802my_key
09/05 23:07:41 INFO -- End POST request --
09/05 23:07:42 INFO -- Header in response: Server : Microsoft-IIS/5.0
09/05 23:07:42 INFO -- Header in response: Date : Tue, 06 Sep 2005
03:07:41 GMT
09/05 23:07:42 INFO -- Header in response: X-Powered-By : ASP.NET
09/05 23:07:42 INFO -- Header in response: X-AspNet-Version : 1.1.4322
09/05 23:07:42 INFO -- Header in response: Cache-Control : no-cache
09/05 23:07:42 INFO -- Header in response: Pragma : no-cache
09/05 23:07:42 INFO -- Header in response: Expires : -1
09/05 23:07:42 INFO -- Header in response: Content-Type : text/xml;
charset=utf-8
09/05 23:07:42 INFO -- Begin POST response --
09/05 23:07:42 INFO http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>http://www.serviceobjects.com/";>33.799436-117.91683492802-34240875.033000
09/05 23:07:42 INFO -- End POST response --
09/05 23:07:42 INFO -- POST status: 200, reason: OK, target:
http://ws2.serviceobjects.net/gcr/GeoCoder.asmx

--- In flexcoders@yahoogroups.com, "Brian Deitte" <[EMAIL PROTECTED]>
wrote:
> Try turning on webservice-proxy-debug in flex-config.xml and if it
> doesn't make sense, posting the differences between IE and Firefox
here.
> Try setting noProxy to true and see if it is the proxy or the
endpoint
> that is causing problems.  -Brian 
> 
>

[flexcoders] Webservice - Unable to connect to endpoint ...

2005-09-05 Thread mrvinedit
Anyone seen "Unable to connect to endpoint ..." calling a webservice
only when using IE but otherwise working fine in Firefox.

http://ws2.serviceobjects.net/gcr/GeoCoder.asmx?WSDL";
id="GeoCodeService" fault="alert(event.fault.faultstring)"
result="ParseResult()">


{txtAddress.text}
{txtCity.text}
{txtState.text}
{txtZip.text}
license_key_goes_here




Thanks.







 Yahoo! Groups Sponsor ~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/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: Flex and CFCs -- problems displaying recordsets in datagrids

2005-07-22 Thread mrvinedit
One of the techniques that we use to take the case sensitivity out of
the picture is to utilize a "helper" function in our CFC's and then
wrap our cfreturn variables with one of the helper functions. Then all
our references in Flex are always - all lowercase.

For example, say you have a function that will be returning a
structure:


  
  


We include the following "helper" function at the bottom of the CFC in
question:


  
  
var myKeyList = StructKeyList(arguments.myStruct);
var i = "";
var newStruct = StructNew();
for (i=1; i LTE ListLen(myKeyList); i=i+1) {
  nKey = listgetat(myKeyList, i);
  structInsert(newStruct, LCase(nKey), arguments.myStruct[nKey]);
}
  
  





--
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: Wait for Popup to close

2005-07-20 Thread mrvinedit
This IS possible. I've done it.

Here's some code:

if (clickedOnWhat=="btnRemoveFromGList") {
  var myClickHandler = function (evt) {
if (evt.detail == mx.controls.Alert.OK) {
  //mx.controls.Alert.show(evt.detail);
  _root.GroupsRO.RemoveGroupMember(_root.oUserInfo,o
bjCoInfo.coid.toString(),objGrpInfo.group_id.toString());
}
  }
  var titleStyles = new mx.styles.CSSStyleDeclaration();
  titleStyles.setStyle("color", "white");
  titleStyles.setStyle("fontSize", 13);
  //titleStyles.setStyle("fontWeight", "bold");
  mx.controls.Alert.titleStyleDeclaration = titleStyles;
  var msgStyles = new mx.styles.CSSStyleDeclaration();
  msgStyles.setStyle("color", "red");
  msgStyles.setStyle("fontSize", 11);
  mx.controls.Alert.messageStyleDeclaration = msgStyles;
  var btnStyles = new mx.styles.CSSStyleDeclaration();
  btnStyles.setStyle("color", "black");
  btnStyles.setStyle("fontSize", 11);
  mx.controls.Alert.buttonStyleDeclaration = btnStyles;
  mx.controls.Alert.okLabel = "Remove";
  var iCoInfo:Number = objCoInfo.coname.length;
  var sCoInfo:String = '';
  sCoInfo = "Confirmation - Remove Company from Supplier Group?\n"
  mx.controls.Alert.show("Remove'" + objCoInfo.coname.toString() +
"'", sCoInfo, mx.controls.Alert.CANCEL | mx.controls.Alert.OK, _root,
myClickHandler, removeImg, mx.controls.Alert.CANCEL);
}




--
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: TitleWindow passing vars back to another TitleWindow

2005-07-20 Thread mrvinedit
--- In flexcoders@yahoogroups.com, "Sauro, Nick" <[EMAIL PROTECTED]> wrote:
> can't u do something like
>  
> recpName.text={test.text} which will bind them together?
>  
> Nick Sauro + R O U N D A R C H + bus 212.909.2335 + mob 914.882.3687

If there's a way to do this with a binding, I would like to see it.
:-) 

"{test.text}" won't mean a thing to the first popup - Popup1's
recpName TextInput tag, so it'll throw a warning and an error...
something like a warning about changes to test won't be available and
then an error that test is not a known property.

My belief is you gotta use an event metadata on the 2nd popup,
Window2, and a listener on the first popup, Popup1.




--
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: TitleWindow passing vars back to another TitleWindow

2005-07-19 Thread mrvinedit
Here's an example that more closely resembles your requirements:

http://webmxml.no-ip.info/my_flex/interspot/twopopups_source.mxml

Includes source code, by the way.




--
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: TitleWindow passing vars back to another TitleWindow

2005-07-19 Thread mrvinedit
I hope this helps... First, yes it is possible. For brevity here's
some code snippets:

First Popup TitleWindow (code snippet) -
__

  function call2ndPopup() {
var initObj:Object = new Object();
var oUserInfo:Object = new Object();
// prepare optional data for popup
initObj = {oUserInfo: oUser};
// NOTE: var popup allows appending the listener and x, y
var popup:Object = mx.managers.PopUpManager.createPopUp(_root,
components.RFQRemove, true, initObj);
popup.x = ((mx.managers.SystemManager.screen.width - 720) / 2);
popup.y = 5;
popup.addEventListener("SomePassedBackData", this);
  }

function handleEvent(evt:Object):Void {
  if (evt.type == "SomePassedBackData") {
// do something with the data returned from 2nd popup
  }
}


Second Popup TitleWindow (code snippet) -
__

  [Event("SomePassedBackData")]



  var blnSomeData:Boolean;

  function PreCloseHandler() {
dispatchEvent({type:'SomePassedBackData', blnSomeData:true});
this.deletePopUp();
  }





--
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: Disable Validators

2005-07-05 Thread mrvinedit
I have a blog entry, 'Toggling Flex Validataion - On & Off' at
FlexingCFMX.com that shows an example of toggling required on and off
based on selection of another field (country US and Canada require
State/Province; other Countries do not).

http://www.flexingcfmx.com/index.cfm?mode=entry&en
try=D08D15DB-3048-2BE9-DAB1EA74EB608907

The code is included and does use the Validator's methods:

mx.validators.Validator.disable(this, 'newSupplier.c_state');
mx.validators.Validator.enable(this, 'newSupplier.c_state');




--
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: globalisation in flex..

2005-06-28 Thread mrvinedit
I have several examples found at:
http://www.flexingcfmx.com/index.cfm?mode=entry&en
try=899E1053-3048-2BE9-DA10AA4F4B3DCA78

A specific example of changing the button text is also at:
http://24.98.224.55/my_flex/multilanguage_cn.mxml

Source code is included.

Hope this helps,

Mike




--
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: How do you set the amount of characters in a text area control

2005-06-24 Thread mrvinedit
I created an example (Flex TextArea Validation) with source code here:

http://www.flexingcfmx.com

Have a good weekend,

Mike




--
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: Code not executing in Popup Window

2005-06-18 Thread mrvinedit
Here's an example (with source code) of calling a remote object
within a 
popup, TitleWindow:

http://24.98.224.55/my_flex/interspot/popme_source.mxml

Hope this helps,

Mike Givens





 
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/