[flexcoders] Re: AIR: How to connect to external proxy

2012-01-06 Thread Matthew
Hi - 

I'm having a hard time with this issue. I'm guessing that I'm not the first 
person who has had to work behind a firewall when accessing data so I'm not 
sure why I can't find any documentation on the web anywhere about this.

AIR says it is supposed to automatically know and use the proxy configuration 
from your system, i.e. default browser. In there, I don't set a manual proxy, I 
use the 'automatic configuration' and point it to a .dat file. Could this be 
where the problem is? Does AIR not know how to understand this? 

There's no way to set a proxy on an HTTPService component unless you are using 
Blaze DS or LCDS? Is this true? I'd hate to have to add that to my application 
just so I can get this accomplished. 

--- In flexcoders@yahoogroups.com, "Matthew"  wrote:
>
> Hi - 
> 
> I need my AIR app to connect to an external proxy via HTTPService call and 
> I'm not using Blaze DS. 
> 
> How do I go about this? I can't figure it out. 
> 
> Any helpful tips are greatly appreciated. 
> 
> Thank you
>




[flexcoders] AIR: How to connect to external proxy

2012-01-05 Thread Matthew
Hi - 

I need my AIR app to connect to an external proxy via HTTPService call and I'm 
not using Blaze DS. 

How do I go about this? I can't figure it out. 

Any helpful tips are greatly appreciated. 

Thank you



[flexcoders] Re: Problem: renderProvider and hierarchical data objects

2011-11-29 Thread Matthew


I just found an example of a hardcoded array that does what I want:

private var masterData:Array = [
{ OrderId: 10248, CustomerId:"WILMK", EmployeeId:5, 
OrderDate:"1-Feb-2007", 
children:[
[
{ProductId:11, ProductName:"Quesbo 
Cabrales", UnitPrice:14, Quantity:12, Discount:0, Price:168},
{ProductId:42, ProductName:"Singaporean 
Hokkien Fried Mee", UnitPrice:9.8, Quantity:10, Discount:0, Price:98},
{ProductId:42, ProductName:"Mozzarella 
di Giovanni", UnitPrice:34.8, Quantity:5, Discount:0, Price:174}
]
]}
 ]
 ]}

this is form this blog: 
http://techrays.wordpress.com/2008/04/07/advanced-datagrid-as-an-item-renderer-within-an-advanced-datagrid/#comment-1511

When I debug my collection (recalls is the arraycollection i use) as it is 
returned from the server I am seeing something like this:

recalls[0] - RecallRecord object
- prop
- prop
- groupedTrades - ArrayCollection that I want to use as DP for renderProvider
groupedTrades[0] - Generic Object
groupedTrades[1] - Generic object

I fail to see the difference between the hardcoded version from the blog that 
works and the data I'm using from my service. What am I missing? 

thank you!


--- In flexcoders@yahoogroups.com, "Matthew"  wrote:
>
> Hi - 
> 
> I'm having a problem with an AdvancedDataGrid that has a DataGrid as a 
> renderProvider. My dataProvider for the ADG is an ArrayCollection of the 
> below object. 
> 
> [Bindable]
> public class MyRecord implements ValueObject
> {
> 
> public var recall_id:int;
> public var recall_type:String;
> public var selected:Boolean = false;
> public var qty:Number;
> public var curr_qty:Number;
> public var due_date:String;
> public var status:String;
> public var comments:String;
> public var groupedTrades:ArrayCollection = new ArrayCollection();
> }
> 
>
> 
> source="{model.recalls}"
>   childrenField="groupedTrades"/>  
> 
> 
> 
> Here's my renderProvider code:
> 
> 
> 
>  depth="2" 
> columnIndex="1" 
>  renderer="com.controls.GroupedTradesGrid"
>   columnSpan="0"/>
>  
> 
> In this GroupedTradesGrid I override this method to set the dataProvider:
> 
> override public function set data(value:Object):void
> {
> // If using the array data source, use this instead:
> trades_dg.dataProvider = value;
> }
> 
> The problem is that my renderProvider's method is invoked for every record in 
> the dataProvider of the ADG it is part of. This amounts to a brand new 
> DataGrid for each trade in groupedTrades...instead of 1 DataGrid that has all 
> trades. 
> 
> I'm very frustrated as I've asked around on other forums and can't seem to 
> get a response. Anyone have any ideas? I'm kind of at my wits end. 
> 
> Thank you for any helpful tipsF!
> 
> How do I resolve this? I'm perplexed.
>




[flexcoders] Problem: renderProvider and hierarchical data objects

2011-11-29 Thread Matthew
Hi - 

I'm having a problem with an AdvancedDataGrid that has a DataGrid as a 
renderProvider. My dataProvider for the ADG is an ArrayCollection of the below 
object. 

[Bindable]
public class MyRecord implements ValueObject
{

public var recall_id:int;
public var recall_type:String;
public var selected:Boolean = false;
public var qty:Number;
public var curr_qty:Number;
public var due_date:String;
public var status:String;
public var comments:String;
public var groupedTrades:ArrayCollection = new ArrayCollection();
}

   

   



Here's my renderProvider code:




 

In this GroupedTradesGrid I override this method to set the dataProvider:

override public function set data(value:Object):void
{
// If using the array data source, use this instead:
trades_dg.dataProvider = value;
}

The problem is that my renderProvider's method is invoked for every record in 
the dataProvider of the ADG it is part of. This amounts to a brand new DataGrid 
for each trade in groupedTrades...instead of 1 DataGrid that has all trades. 

I'm very frustrated as I've asked around on other forums and can't seem to get 
a response. Anyone have any ideas? I'm kind of at my wits end. 

Thank you for any helpful tipsF!

How do I resolve this? I'm perplexed. 



[flexcoders] WebSphere configuration errors

2010-08-24 Thread Matthew
Hi - 

This is my first time deploying my Flex war on WebSphere and I'm running into 
difficulties. I've got two errors when I compile my app from these files:

ibm-web-bnd.xmi 
ibm-web-ext.xmi

The main error message is this: 
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 
'webappbnd.xmi' not found. 
(platform:/resource/WFManager/WebContent/WEB-INF/ibm-web-bnd.xmi, 2, 179)

It's got to be the config settings but I'm just unsure where to make thc 
changes. Can anyone point me in the right direction, please? 

Thanks for any helpful tips,

Matt







[flexcoders] Re: "Bookmark no longer valid" when moving items in AdvancedDataGrid

2010-07-30 Thread Matthew
Does anyone have any ideas on how I can resolve or troubleshoot further?



[flexcoders] "Bookmark no longer valid" when moving items in AdvancedDataGrid

2010-07-28 Thread Matthew
I am trying to implement code to move items up and down in an
AdvancedDataGrid.  When I repeat the "move up" or "move down" action
multiple times in a row I get the error below.  I don't get it every
time but it will come here and there...pretty frequently.  Sometimes I
can click 2, 3, even 4 times without getting an error then I click again
and there it is.
See below for the 3 functions which implement the "move up" feature.
I have tried commenting out the last line in the changeNodeHierarchy
function which re-selects the moved item.  This does seem to resolve the
error but I can't be sure because the occurrence of the error is not
consistent.
Can someone tell me what I am doing wrong?
Code
public function changeNodeHierarchy(dataGrid:AdvancedDataGrid):void{   
var oldSelection:Array = dataGrid.selectedItems.slice();
var selection:Array = DataGridUtil.getSortedSelectedItems(dataGrid);
 for each (var node:Object in selection){   
moveUpNode(dataGrid, node);}
 dataGrid.selectedItems = oldSelection;}
public static function moveUpNode(dataGrid:AdvancedDataGrid,
node:Object):void{var view:IHierarchicalCollectionView =
dataGrid.hierarchicalCollectionView;var children:IList =
DataGridUtil.getChildren(dataGrid, view.getParentItem(node));var
indexInParent:int = children.getItemIndex(node);if (indexInParent !=
0)moveNode(dataGrid, node, view.getParentItem(node),
indexInParent - 1);}
private static function moveNode(dataGrid:AdvancedDataGrid, node:Object,
newParent:Object, index:int):void{var
view:IHierarchicalCollectionView = dataGrid.hierarchicalCollectionView;
if (view.sort == null){var parent:Object =
view.getParentItem(node);view.removeChild(parent, node);   
view.addChildAt(newParent, node, index);}}
ErrorError: Bookmark no longer valid. at
ListCollectionViewCursor/seek()[E:\dev\4.x\frameworks\projects\framework\
\src\mx\collections\ListCollectionView.as:2410] at
mx.collections::HierarchicalCollectionViewCursor/get
current()[E:\dev\4.x\frameworks\projects\datavisualization\src\mx\collec\
tions\HierarchicalCollectionViewCursor.as:220] at
mx.collections::HierarchicalCollectionViewCursor/collectionChangeHandler\
()[E:\dev\4.x\frameworks\projects\datavisualization\src\mx\collections\H\
ierarchicalCollectionViewCursor.as:1143] at
flash.events::EventDispatcher/dispatchEventFunction() at
flash.events::EventDispatcher/dispatchEvent() at
mx.collections::HierarchicalCollectionView/nestedCollectionChangeHandler\
()[E:\dev\4.x\frameworks\projects\datavisualization\src\mx\collections\H\
ierarchicalCollectionView.as:1589] at
flash.events::EventDispatcher/dispatchEventFunction() at
flash.events::EventDispatcher/dispatchEvent() at
mx.collections::ListCollectionView/dispatchEvent()[E:\dev\4.x\frameworks\
\projects\framework\src\mx\collections\ListCollectionView.as:1024] at
mx.collections::ListCollectionView/removeItemsFromView()[E:\dev\4.x\fram\
eworks\projects\framework\src\mx\collections\ListCollectionView.as:1681]
at
mx.collections::ListCollectionView/listChangeHandler()[E:\dev\4.x\framew\
orks\projects\framework\src\mx\collections\ListCollectionView.as:1292]
at flash.events::EventDispatcher/dispatchEventFunction() at
flash.events::EventDispatcher/dispatchEvent() at
mx.collections::XMLListAdapter/removeItemAt()[E:\dev\4.x\frameworks\proj\
ects\framework\src\mx\collections\XMLListAdapter.as:431] at
mx.collections::ListCollectionView/removeItemAt()[E:\dev\4.x\frameworks\\
projects\framework\src\mx\collections\ListCollectionView.as:762] at
ListCollectionViewCursor/remove()[E:\dev\4.x\frameworks\projects\framewo\
rk\src\mx\collections\ListCollectionView.as:2330] at
mx.collections::HierarchicalCollectionView/removeChild()[E:\dev\4.x\fram\
eworks\projects\datavisualization\src\mx\collections\HierarchicalCollect\
ionView.as:731]


[flexcoders] PROGRESS:: Re: Two-way binding via ActionScript

2010-07-20 Thread Matthew



Ok, some progress. If I define the binding in ActionScript before adding it to 
its parent container, it works halfway; meaning the second binding works, but 
not the first one. It's not 2-way. 

Here's the updated AS code:

var innerHBox:HBox = new HBox();

var dtc_acm:AutoCompleteModified = new AutoCompleteModified();
dtc_acm.dataProvider = data2; 
dtc_acm.labelField = 'id';
BindingUtils.bindProperty( dtc_acm,'selectedIndex',cp_acm,'selectedIndex' );

var cp_acm:AutoCompleteModified = new AutoCompleteModified();
cp_acm.dataProvider = data2; 
cp_acm.labelField = 'name';cp_acm.width = this.CP1.width;
BindingUtils.bindProperty( cp_acm,'selectedItem',dtc_acm,'selectedItem' );

innerHBox.addChild( dtc_acm );
innerHBox.addChild( cp_acm );

Why did the position of the code matter? Why is it only 1-way binding? Still a 
little confused as to these things. 

Thanks for listening,

Matt

--- In flexcoders@yahoogroups.com, "Matthew"  wrote:
>
> Hi - 
> 
> I'm binding two AutoCompleteModified objects to one another; meaning you type 
> in one and it selects the correct object in the other. It works fine when I 
> define it in MXML:
> 
>  id="DTC1"   
> dataProvider="{data1}"  
> labelField="id" 
> selectedIndex="{CP1.selectedIndex}">
> 
>  id="CP1"
> dataProvider="{data1}"  
> labelField="name"   
> selectedItem="{DTC1.selectedItem}" />
> 
> However, a user can add a new row to a Grid and then I set up the binding and 
> objects via actionscript and it errors out: 
> 
> 
> var dtc_acm:AutoCompleteModified = new AutoCompleteModified();
> dtc_acm.dataProvider = data2; 
> dtc_acm.labelField = 'id';
>   
> myGridItem.addChild( dtc_acm );
>   
> var cp_acm:AutoCompleteModified = new AutoCompleteModified();
> cp_acm.dataProvider = data2; 
> cp_acm.labelField = 'name';
>   
> myGridItem.addChild( cp_acm );
> 
> BindingUtils.bindProperty( dtc_acm,'selectedItem',cp_acm,'selectedItem' );
> BindingUtils.bindProperty( cp_acm,'selectedIndex',dtc_acm,'selectedIndex' );
> 
> The error I get is thrown by the ChangeWatcher.as class and it says the 
> exceptions are being thrown by the getter in the host object. However, if I 
> only set 1 binding (instead of 2), it works. 
> 
> I don't understand what may be happening here. Can anyone see any potential 
> problems in my code? 
> 
> Thank you kindly for any helpful tips,
> 
> Matt
>




Re: [flexcoders] Send SMS

2010-06-27 Thread Matthew Muller
Or call a web service.

Sent from my iPad mini

On 27 Jun 2010, at 09:37, chenrij...@gmail.com wrote:

> The API should be able to access the COM port for it, AFAIK there aren't no 
> solution for that yet, correct me if I'm wrong.
> 
> Powered by Telkomsel BlackBerry®
> 
> From: "Smin Rana" 
> Sender: flexcoders@yahoogroups.com
> Date: Sun, 27 Jun 2010 14:44:27 +0700
> To: 
> ReplyTo: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Send SMS
> 
>  
> There is no such components in adobe flash platform which can send sms
> you need use others API or Library
> visit ribbit.com
> 
> -original message-
> Subject: [flexcoders] Send SMS
> From: "Christophe" 
> Date: 06-27-2010 15:19
> 
> Hello, 
> 
> Which component can I use for sending SMS from my AS3 application ? 
> 
> Thx,
> Christophe, 
> 
> 


[flexcoders] Re: Yahoo TimeInput component as Item Editor

2010-06-23 Thread Matthew
After more testing, I have an update:

I have fixed it and created a new problem. I removed a keyUp event handler, 
which formats the text value of the TimeInput and sets my editorDataField 
correctly. Now I only listen for change and updateComplete events. Now, when I 
delete hours, minutes, or seconds and then move outside the itemEditor, it 
reverts to zero: Perfect.

However, I now find that if I make a change in the TimeInput and click outside 
(or tab or press enter), the value doesn't stick. It goes back to the old 
value. However, if I click within the TimeInput after making a change, it does. 

So, how does removing focus after making a change make me lose my value? 

Thanks,

Matt

--- In flexcoders@yahoogroups.com, "Matthew"  wrote:
>
> Hi --
> 
> I'm having problems using the Yahoo TimeInput component as an Item Editor. 
> I'm try to handle the situation when a user deletes numbers in the component 
> and then clicks outside. For example, deleting the '56' in seconds
> 
> Example time: 12:22:56
> 
> Normally, the numbers reset to 0, which is what I expect. 
> 
> However, in an item editor, when you click outside, the numbers don't reset, 
> meaning they're just blank. As in, 12:22:
> 
> I'm expecting: 12:22:00
> 
> Any ideas as to why this might be happening? I'm a bit perplexed.
> 
> Thanks for any helpful tips, 
> 
> Matt
>




[flexcoders] Yahoo TimeInput component as Item Editor

2010-06-22 Thread Matthew
Hi --

I'm having problems using the Yahoo TimeInput component as an Item Editor. I'm 
try to handle the situation when a user deletes numbers in the component and 
then clicks outside. For example, deleting the '56' in seconds

Example time: 12:22:56

Normally, the numbers reset to 0, which is what I expect. 

However, in an item editor, when you click outside, the numbers don't reset, 
meaning they're just blank. As in, 12:22:

I'm expecting: 12:22:00

Any ideas as to why this might be happening? I'm a bit perplexed.

Thanks for any helpful tips, 

Matt



[flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-05-03 Thread Matthew
I'm pretty new to Flash so I don't know all the technical details under the 
covers (e.g. Flash is buggy on Macs, who supported what video format first, 
etc) but one thing that strikes me as odd in the manifesto published by Apple 
is the attack of Flash for not being open.  That strikes me as hypocrisy.

The people defending Apple on these threads are basically saying we, as 
developers targeting these devices, need to go learn some limited set of 
languages hand-picked by people at a corporation.  That's not open.

Further, the corporation controls the distribution of software through the 
Apple Store.  If the corporation doesn't like our software for some reason they 
won't allow it.  That's not open.

As we all now know now the corporation will not only control the distribution 
of end user applications it will also be actively involved in censoring the 
software platforms that may be used on the devices...even to the point of not 
allowing Flash of J2ME, two of the most widely used platforms out there.  
That's not open.

If you think Apple is going to win and corner the market on mobile devices for 
eternity go learn Objective C and whatever obscure languages they come up with. 
 I personally am not going to put all my eggs in one basket in case Apple ends 
up with 20% of the market share instead of 90%.  IMO truly open devices will 
always be out there and they have a built in advantage over proprietary 
technologies like i*.



[flexcoders] AdvancedDataGridRendererProvider: dynamic columnIndex and columnSpan

2010-04-28 Thread Matthew
I have a need to render the same item on each row of a data grid.  The only 
difference is on each row I need to dynamically compute the columnIndex and 
columnSpan.  On each row it can be different.

For example, on row 1 start the item on column 2 and span 5 columns.  One row 2 
start the item on column 6 and span 2 columns.

It seems these properties are not set by the item renderer, but rather by the 
AdvancedDataGridRendererProvider.  I currently have one instance of an 
AdvancedDataGridRendererProvider associated with the AdvancedDataGrid.  I have 
set the columnIndex and columnSpan there but that is not good enough.  I need 
to change it on a row-by-row basis in the item renderer.  Every time I change 
the value it should apply only to the current row...not to the other rows (i.e. 
each row has its own value).

Any ideas?



[flexcoders] Re: Remove item from Array and loop messes up

2010-03-16 Thread Matthew

point taken, thanks for the tip, valdhor. 
--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> While that may work, I have found that anytime you are looping over an array 
> like this, modifying/deleting items in the array while iterating over it is 
> problematic at best.
> 
> I find the best way is to create a new array that holds the id's of the items 
> you want to delete and iterating over this new array and deleting specific 
> items in the original array is best.
> 
> --- In flexcoders@yahoogroups.com, "Matthew"  wrote:
> >
> > I found that reversing the loop, i.e. decrementing thru it solves the 
> > problem. Hope that helps someone. 
> > 
> > --- In flexcoders@yahoogroups.com, "Matthew"  wrote:
> > >
> > > Hi - 
> > > 
> > > I remove an item in an array using splice() and when there's one object 
> > > left in the array, the looping stops. Why is that? My loop is nested 
> > > within another loop but I thought it should iterate over everything first 
> > > before it goes back to the outside loop. Here's my code:
> > > 
> > > for( var i:int=0; i > >   var group:Object = model.groupingColl[i];
> > >   var children:Array = group.children as Array;
> > >   
> > >   /* if there are 2 items in 'children', the 
> > > first is 
> > >  removed fine but then it doesn't iterate 
> > > over the one
> > >  remaining. */
> > >   for each( var acct:Object in children ){
> > >   if( acct.selected == true ){
> > >   children.splice( i,1 );
> > >   }
> > >   }
> > >   }
> > >
> >
>




[flexcoders] Re: Remove item from Array and loop messes up

2010-03-16 Thread Matthew
I found that reversing the loop, i.e. decrementing thru it solves the problem. 
Hope that helps someone. 

--- In flexcoders@yahoogroups.com, "Matthew"  wrote:
>
> Hi - 
> 
> I remove an item in an array using splice() and when there's one object left 
> in the array, the looping stops. Why is that? My loop is nested within 
> another loop but I thought it should iterate over everything first before it 
> goes back to the outside loop. Here's my code:
> 
> for( var i:int=0; i   var group:Object = model.groupingColl[i];
>   var children:Array = group.children as Array;
>   
>   /* if there are 2 items in 'children', the 
> first is 
>  removed fine but then it doesn't iterate 
> over the one
>  remaining. */
>   for each( var acct:Object in children ){
>   if( acct.selected == true ){
>   children.splice( i,1 );
>   }
>   }
>   }
>




[flexcoders] Remove item from Array and loop messes up

2010-03-16 Thread Matthew
Hi - 

I remove an item in an array using splice() and when there's one object left in 
the array, the looping stops. Why is that? My loop is nested within another 
loop but I thought it should iterate over everything first before it goes back 
to the outside loop. Here's my code:

for( var i:int=0; i

[flexcoders] What server do I put my crossdomain.xml file on?

2010-01-14 Thread Matthew
Hi - 

I have a Flex app that uses an HTTPService to call a Servlet. The servlet 
retrieves a file on another domain and passes back to Flex where they are 
prompted by a Windows dialog to either save or open it: It works fine locally. 

When deployed, I get this error:

Error #2044: Unhandled SecurityErrorEvent:. text=Error #2048: Security sandbox 
violation: http://bopswdmmk1:15010/oats/FlexClient/OATSMain.swf cannot load 
data from 
http://da803299:8080/oats/FTPFile?filename=/oats/oatsftp/feed/Session.csv.01062010.

I'm assuming this is because I need a crossdomain.xml file, right? If so, where 
do I put it? On the domain that hosts the servlet, or the domain the file is 
retrieved from? 

Crossdomain issues can be confusing and any insight would be greatly 
appreciated. 

Thanks,

Matt



[flexcoders] Re: Is my ItemRenderer on the last Row of data?

2010-01-06 Thread Matthew
Very nice solution, Valdhor, thank you. I do, however, need it for the very 
last row of data (visible or non-visible). 

In the meantime, I've added an extra property to my data that will allow me to 
get what I need. So, instead of figuring out what label to put on a button by 
deciphering whether the renderer is rendering the last row of data, I just use 
a new 'label' property. 

Maybe a bit hackish, but it works. 

Thank you for your help. 

Matt

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> That kinda depends on what you mean by the "last row of data". If you
> mean the last visible row (Which is the last row rendered - the renderer
> is only called for visible data) then you can try this...
> 
> package
> {
>  import mx.collections.ArrayCollection;
>  import mx.controls.*;
>  import mx.controls.dataGridClasses.DataGridListData;
> 
>  public class myRenderer extends Text
>  {
>  public function myRenderer()
>  {
>  super();
>  }
> 
>  override public function set data(value:Object):void
>  {
>  super.data = value;
>  if(value != null)
>  {
>  text = value[DataGridListData(listData).dataField];
>  if(listData.rowIndex == (owner as DataGrid).rowCount -
> 1)
>  {
>  trace("Rendering the last row");
>  }
>  }
>  }
>  }
> }
> --- In flexcoders@yahoogroups.com, "Matthew"  wrote:
> >
> > Hi,
> >
> > I know the answer to this question before asking it but hopefully
> someone has a found a way to do this.
> >
> > Is there a way to know (in my override of set data() method) whether
> my item renderer is rendering the last row of data?
> >
> > thanks for any help on this one,
> >
> > matt
> >
>




[flexcoders] Is my ItemRenderer on the last Row of data?

2010-01-05 Thread Matthew
Hi,

I know the answer to this question before asking it but hopefully someone has a 
found a way to do this. 

Is there a way to know (in my override of set data() method) whether my item 
renderer is rendering the last row of data? 

thanks for any help on this one,

matt



[flexcoders] Re: Access Checkbox ItemRenderer in AdvancedDataGrid

2009-12-28 Thread Matthew
Sorry, I just answered my own question

It appears that you should never be able to access an ItemRenderer directly. If 
I want to find out that a checkbox is selected then I must listen for that 
event in the ItemRenderer and then set a value on the 'data' property. Then, 
the dataProvider is available to me with the updated value.

That's the beauty of an ItemRenderer, I guess.  

--- In flexcoders@yahoogroups.com, "Matthew"  wrote:
>
> Hi - 
> 
> I have a button outside an AdvancedDataGrid. On the click event, I want to 
> find which of my checkbox item renderers are selected. For some reason, I 
> can't figure out. Here's my code below. Any tips are greatly appreciated. 
> 
> Thank you!
> 
> 
>  id="GroupingGrid"
>   width="100%"
>   height="45%">
>   
>   
>   
>   
>dataField="label"  headerText="Group"/>
>dataField="cpName" headerText="CP Name" />
>dataField="parentId" headerText="Parent ID" />
>dataField="parentName" headerText="Parent Name" />
>dataField="removable" headerText="Remove" />
>   
>   
>   
>  column="{removeItemCol}"
>   columnSpan="1" 
>   renderer="com.renderer.RemoveItemCheckboxRenderer"/>
>   
>   
> 
> 
> And here's my removeGroup() method. It returns null on the 'renderer' 
> variable. 
> 
> /** User wants to remove a grouping
>*/
>private function removeGrouping():void{
>   // Loop over the dataProvider and find the 
> items selected, then remove them. 
>   var dpLength:int = 
> GroupingGrid.dataProvider.length;
>   for( var i:int=0; i   var im:Array = 
> GroupingGrid.rendererProviders; // .renderer.generator as 
> com.renderer.RemoveItemCheckboxRenderer;
>   var j:int=0;
>   while( j   var 
> myim:AdvancedDataGridRendererProvider = im[j] as 
> AdvancedDataGridRendererProvider;
>   var 
> renderer:RemoveItemCheckboxRenderer = myim.renderer as 
> RemoveItemCheckboxRenderer;
>   j++;
>   }   
>   }
>}
>




[flexcoders] Access Checkbox ItemRenderer in AdvancedDataGrid

2009-12-28 Thread Matthew
Hi - 

I have a button outside an AdvancedDataGrid. On the click event, I want to find 
which of my checkbox item renderers are selected. For some reason, I can't 
figure out. Here's my code below. Any tips are greatly appreciated. 

Thank you!




















And here's my removeGroup() method. It returns null on the 'renderer' variable. 

/** User wants to remove a grouping
 */
 private function removeGrouping():void{
// Loop over the dataProvider and find the 
items selected, then remove them. 
var dpLength:int = 
GroupingGrid.dataProvider.length;
for( var i:int=0; i

[flexcoders] Flex Video and Firefox Issue

2009-12-15 Thread Gates Matthew

I have a videoplayer component that has been working just fine across browsers 
(chrome, IE, Safari, Firefox). We just changed server platforms from IIS to 
apache tomcat. The video player continues to work fine in all browsers EXCEPT 
firefox.

In the flex debugger, it reports no errors. But it seems unable to load the 
video source and the problem is only in firefox.

Has anyone had any experience with an issue like this? I have been googling and 
searching the archives and didn't come across anything.

Matt





[flexcoders] Re: Why am I seeing a greyed out folder icon...

2009-12-09 Thread Matthew
Actually, the more online examples I see, that folder (really more a document) 
always appears in the left-most column of the row that is expanded. I guess 
it's there by default. 

--- In flexcoders@yahoogroups.com, "Matthew"  wrote:
>
> ...in the first column of my AdvancedDataGridRendererProvider??
> 
> I'm using an AdvancedDataGrid with a DataGrid item renderer. I set the 
> renderer up with a columnIndex="1" and columnSpan="0".
> 
> When the row is expanded, the DataGrid is indented one column (as it should), 
> but why am I seeing the grey folder in the first column? 
> 
> Does anyone have an idea what might be making this folder show up? I've seen 
> it before when my dataProvider wasn't set up correctly. However, both 
> datagrids are showing their data so I don't know if that's the case. 
> 
> Thank you for any helpful tips,
> 
> Matt
>




[flexcoders] Why am I seeing a greyed out folder icon...

2009-12-09 Thread Matthew
...in the first column of my AdvancedDataGridRendererProvider??

I'm using an AdvancedDataGrid with a DataGrid item renderer. I set the renderer 
up with a columnIndex="1" and columnSpan="0".

When the row is expanded, the DataGrid is indented one column (as it should), 
but why am I seeing the grey folder in the first column? 

Does anyone have an idea what might be making this folder show up? I've seen it 
before when my dataProvider wasn't set up correctly. However, both datagrids 
are showing their data so I don't know if that's the case. 

Thank you for any helpful tips,

Matt



[flexcoders] Passing Excel file to Java

2009-12-02 Thread Matthew
Hi -

I have a Flex UI and I want to allow a user to upload an Excel file. Since 
parsing Excel in Flex is quite difficult I'd rather pass it to Java (via Blaze 
DS) and have Java return me a CSV file. 

But I'm doubtful that I can pass an Excel file thru Blaze. Can I? Is there some 
other trickery I can use? 

Thanks for any tips. 

Matt



[flexcoders] Channel.Connect.Failed error NetConnection.Call.Failed: HTTP Status 404

2009-11-25 Thread Matthew
Hi - 

I found that this error occurs frequently when moving a Flex project from one 
machine to another. 

In my situation, I am exporting a release build so another developer can run it 
on their machine; they don't have Flex, only the flash player to run it.

They are receiving this error and the source is a RemoteObject call that points 
to a service on their machine. 

So, do I check the web.xml file for their machine? Or the services-config.xml 
on their machine? 

I just don't know where to start. 

Any tips are, of course, very much appreciated. 

Happy Thanksgiving. 

Thank you.  



[flexcoders] Re: byteStream to .txt file

2009-11-24 Thread Matthew

thank you. 
--- In flexcoders@yahoogroups.com, Julian Alexander  wrote:
>
> I think it is possible to download via FTP in flex:
> 
> http://projects.maliboo.pl/FlexFTP/
> 
> and I'm pretty sure that there's no conversion needed to get it back to a 
> text file or anything.  I haven't done any downloading via FTP but I've had a 
> Java client stream me files plenty of times and it comes out the other end as 
> the file.
> 
> -J
> 
> 
> 
> 
> From: Matthew 
> To: flexcoders@yahoogroups.com
> Sent: Tue, November 24, 2009 12:34:48 PM
> Subject: [flexcoders] Re: byteStream to .txt file
> 
>
> I haven't hooked up the byteArray object yet so I don't even know if it could 
> work with an FTP server. I'm guessing from your response that the answer is 
> no, it wouldn't work. 
> 
> --- In flexcod...@yahoogro ups.com, Julian Alexander  wrote:
> >
> > How are you even getting the byte stream if it's over FTP?
> > 
> > 
> > 
> > 
> >  _ _ __
> > From: Matthew 
> > To: flexcod...@yahoogro ups.com
> > Sent: Tue, November 24, 2009 10:21:15 AM
> > Subject: [flexcoders] Re: byteStream to .txt file
> > 
> > 
> > I didn't realize I could plug in an FTP address into URLRequest. 
> > 
> > Regardless, I just found out he have write access but not read access on 
> > that server. 
> > 
> > Anyway, I think I can use the byteArray class to read a byte stream but is 
> > there some type of library for creating a TXT file out of that? 
> > 
> > Thanks for your help.
> > 
> > Matt
> > 
> > --- In flexcod...@yahoogro ups.com, Julian Alexander  wrote:
> > >
> > > 
> > > 
> > > Check out the FileReference class. It has a download() method that can be 
> > > passed a URLRequest.
> > > 
> > > -Julian
> > > 
> > > 
> > > 
> > >  _ _ __
> > > From: Matthew 
> > > To: flexcod...@yahoogro ups.com
> > > Sent: Tue, November 24, 2009 9:30:14 AM
> > > Subject: [flexcoders] byteStream to .txt file
> > > 
> > > 
> > > Hi - 
> > > 
> > > I'm working with a Java developer and trying to figure out how to 
> > > download files off a server. Because the server doesn't accept HTTP 
> > > requests (only FTP), I can't link to the file. 
> > > 
> > > The Java developer wants to send the file to me as a byteStream. Is this 
> > > possible? How do I transform that to a .txt file? Is there a better 
> > > solution? 
> > > 
> > > Thanks for any tips. 
> > > 
> > > Matt
> > >
> >
> 
> 
> __._,_..___
> Reply to sender | Reply to group Messages in this topic (5) 
> Recent Activity:  * New Members 28   
> Visit Your Group Start a New Topic 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat..com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> MARKETPLACE
> Mom Power: Discover the community of moms doing more for their families, for 
> the world and for each other 
>  
> Switch to: Text-Only, Daily Digest • Unsubscribe • Terms of Use
> .
>




[flexcoders] Re: byteStream to .txt file

2009-11-24 Thread Matthew
I haven't hooked up the byteArray object yet so I don't even know if it could 
work with an FTP server. I'm guessing from your response that the answer is no, 
it wouldn't work. 

--- In flexcoders@yahoogroups.com, Julian Alexander  wrote:
>
> How are you even getting the byte stream if it's over FTP?
> 
> 
> 
> 
> ____
> From: Matthew 
> To: flexcoders@yahoogroups.com
> Sent: Tue, November 24, 2009 10:21:15 AM
> Subject: [flexcoders] Re: byteStream to .txt file
> 
>
> I didn't realize I could plug in an FTP address into URLRequest. 
> 
> Regardless, I just found out he have write access but not read access on that 
> server. 
> 
> Anyway, I think I can use the byteArray class to read a byte stream but is 
> there some type of library for creating a TXT file out of that? 
> 
> Thanks for your help.
> 
> Matt
> 
> --- In flexcod...@yahoogro ups.com, Julian Alexander  wrote:
> >
> > 
> > 
> > Check out the FileReference class. It has a download() method that can be 
> > passed a URLRequest.
> > 
> > -Julian
> > 
> > 
> > 
> >  _ _ __
> > From: Matthew 
> > To: flexcod...@yahoogro ups.com
> > Sent: Tue, November 24, 2009 9:30:14 AM
> > Subject: [flexcoders] byteStream to .txt file
> > 
> > 
> > Hi - 
> > 
> > I'm working with a Java developer and trying to figure out how to download 
> > files off a server. Because the server doesn't accept HTTP requests (only 
> > FTP), I can't link to the file. 
> > 
> > The Java developer wants to send the file to me as a byteStream. Is this 
> > possible? How do I transform that to a .txt file? Is there a better 
> > solution? 
> > 
> > Thanks for any tips. 
> > 
> > Matt
> >
>




[flexcoders] Re: byteStream to .txt file

2009-11-24 Thread Matthew
I didn't realize I could plug in an FTP address into URLRequest. 

Regardless, I just found out he have write access but not read access on that 
server. 

Anyway, I think I can use the byteArray class to read a byte stream but is 
there some type of library for creating a TXT file out of that? 

Thanks for your help.

Matt

--- In flexcoders@yahoogroups.com, Julian Alexander  wrote:
>
> 
> 
> Check out the FileReference class. It has a download() method that can be 
> passed a URLRequest.
> 
> -Julian
> 
> 
> 
> ________
> From: Matthew 
> To: flexcoders@yahoogroups.com
> Sent: Tue, November 24, 2009 9:30:14 AM
> Subject: [flexcoders] byteStream to .txt file
> 
>
> Hi - 
> 
> I'm working with a Java developer and trying to figure out how to download 
> files off a server. Because the server doesn't accept HTTP requests (only 
> FTP), I can't link to the file. 
> 
> The Java developer wants to send the file to me as a byteStream. Is this 
> possible? How do I transform that to a .txt file? Is there a better solution? 
> 
> Thanks for any tips. 
> 
> Matt
>




[flexcoders] byteStream to .txt file

2009-11-24 Thread Matthew
Hi - 

I'm working with a Java developer and trying to figure out how to download 
files off a server. Because the server doesn't accept HTTP requests (only FTP), 
I can't link to the file. 

The Java developer wants to send the file to me as a byteStream. Is this 
possible? How do I transform that to a .txt file? Is there a better solution? 

Thanks for any tips. 

Matt



[flexcoders] How many records is too many records?

2009-11-16 Thread Matthew
>From what I found online, the flash player has no real limitations aside from 
>whatever browser's plugin-architecture may limit it. However, I have a few 
>datagrids that will display tens of thousands of records (anywhere from 10,000 
>- 60,000). Of course I'm going to use a paging scheme but how many records 
>will be too many to return at one time? 

I also heard a rumor that the player conks out after 10,000 records. Is this 
true? 

Thanks...



[flexcoders] Re: Chart Similar to Google finance ?

2009-11-11 Thread Matthew

Check anychart.com. They have some pretty good charts that might fit your  
needs. 

HTH,

Matt
--- In flexcoders@yahoogroups.com, "Dharmendra"  wrote:
>
> Hi There,
>  I need charts similar to google finance . Does any charting library 
> support it ? . I explored all leading third party charting library but none 
> of them seems to satisfy my requirement. 
> 
> please advice me on this ..
> 
> Regard,
> Dharmendra
>




[flexcoders] verticalSeparatorSkin with an AdvancedDataGrid

2009-09-22 Thread Matthew
Hi - 

I'm trying to put a 5px space inbetween AdvancedDataGrid rows, but I don't want 
any space between the AdvancedDataGrid and its renderer (another DataGrid). 

I tried creating a spacer gif and using that as the verticalSeparatorSkin in 
the outer AdvancedDataGrid but it puts a space not only between the rows but 
between the renderer as well. 

Is there another way of accomplishing this? 

Thanks for any tips. 



[flexcoders] Re: AdvancedDataGrid itemOpen() to resize Container

2009-09-18 Thread Matthew
I figured out one way to do it:

private function openRow():void{
var windowShade:WindowShade = this as 
WindowShade;
windowShade.height += appColl.source.length * 
20;
}

The problem seemed to be that I was referencing the parent container 
incorrectly. The thing I want to do now on the itemOpen() event of the 
AdvancedDataGrid is to get the height of its renderProvider (another 
AdvancedDataGrid) and then add that to the overall height. 

I've perused the properties available from the AdvancedDataGridEvent but all I 
get is access to the current item and an array of renderProviders, not the 
height of the renderProvider itself. 

Is there a way to get access to the height of an AdvancedDataGrid's 
renderProvider? 

Thank you. 



[flexcoders] AdvancedDataGrid itemOpen() to resize Container

2009-09-17 Thread Matthew
Hi,

I have a Windowshade as a root component; the child is an AdvancedDataGrid. I 
want the Windowshade to scale as a user expands/collapses a row in the 
DataGrid. So I trap the itemOpen and itemClose events and I try to adjust the 
height of the Windowshade like this:

this.owner.measuredHeight = grid.height;
this.owner.measuredWidth = grid.width;

But it does nothing. I thought using measuredHeight and measuredWidth was the 
way to go when resizing at run-time.

Has anyone come across this before? Any tips are, again, very much appreciated.



[flexcoders] Re: truncateToFit() and concatenated Strings

2009-09-17 Thread Matthew
thank you very much, valdhor. those links got it done. 





[flexcoders] Re: truncateToFit() and concatenated Strings

2009-09-17 Thread Matthew
Thanks for your responses. I did try that link (and that class) but it appears 
to replace the entire string with '...' instead of just the ending characters. 
And the conditional it uses to test if truncation is needed is testing for 
height values??? That I don't understand:

protected function get truncationRequired() : Boolean {
return (textField.height< textField.maxHeight + 
UITextField.TEXT_HEIGHT_PADDING);
}



[flexcoders] truncateToFit() and concatenated Strings

2009-09-16 Thread Matthew
Hi - 

I have a Label with truncateToFit set to true and a maxWidth. However, the 
htmlText I assign is concatenated a la:

ipText = '' +endPointData.ipLabel+ ': ' + endPointData.ipValue;

I've researched online and found that truncateToFit() has problems dealing with 
concatenated Strings; my text does not get truncated. 

Has anyone found a solution? 

Thank you for any tips. 



[flexcoders] ASP.NET .ashx handler - POST variables not working

2009-05-08 Thread Matthew A. Wilson
I created a web handler (.ashx) in ASP.NET and it takes 4 post variables, all 
strings.

When I manually type in the URL with the variables 
(name=this&email=that&comments=this) it works fine, but when I try to POST 
those variables in an HTTPRequest in Flex, my web handler can't "see" the 
variables. It breaks on the first line and says, there is no "name" variable, 
i.e. - no instance of an object.

What am I doing wrong? Does the Flex Request have to be formatted differently 
for .NET? It works fine in PHP.



public void ProcessRequest (HttpContext context) {
string sName = context.Request.QueryString["name"].ToString();
string sEmail = context.Request.QueryString["email"].ToString();
string sType = context.Request.QueryString["type"].ToString();
string sComment = context.Request.QueryString["comment"].ToString();

...
...

}





[flexcoders] Tile control: Border style and Zoom

2009-04-12 Thread Matthew A. Wilson
I'm using a tile control to display an image with a short description to the 
right of it. Basically everything is contained with in an HBox and the I'm 
programmtically adding that to the tile: 

thisTile.addchild(myHBox)

I'd like to have some sort of visual indicator to let the user know which item 
they clicked on. Whether that be a red border, or a "glow" effect, or whatever.

My question is, how do I do that? I don't see an easy way of setting that in 
any sort of item clickevent. Also, I wanted to have some sort of Zoom or 
magnifier so that when they hovered over the image it would be bigger...but can 
I do that? If I set the width/height on my hbox to 300/100 and then add that as 
an item to my Tile...can I create some sort of zoom or magnify effect whereby 
that image would be larger than the confines of its parent?

Thanks in advance - you all are always so helpful!



[flexcoders] What's your favorite Tip/Trick ?

2009-04-10 Thread Matthew A. Wilson
I've been using .NET for years and recently started developing in Flex. One 
thing I've noticed (and maybe it's because I'm new) is that I have to write out 
just about everything. There were so many things in .NET that the IDE would 
handle for me. Like I could write a function, like DoThis(), and then 
right-click on DoThis() and the IDE would ask me if I wanted to generated a 
method stub. I know that's not earth-shattering, but there were a few things 
here...a few things there that shaved off some seconds and/or minutes and just 
generally speed up development.

I haven't run across anything like that in the FlexBuilder IDE - so my question 
is: What's your favorite tip/trick for speeding up development? Do you have 
some favorite text snippets that you keep handy? Or do you you know some trick 
in the IDE that will save me some repetition?

Or better yet, is there a site or list out there that covers this topic? Thanks 
to all! Have a great weekend!



[flexcoders] Re: Debugger won't break on HTTP Service result function

2009-04-09 Thread Matthew A. Wilson
Well, I figured it out. I'm fairly new to Flex so please hold your laughter. 
What happened is that I was calling 3 HTTPService requests to the database and 
then calling an internal function to work with the data I had received. What I 
didn't realize was that Flex makes those calls asynchronously (I know, I know - 
stop laughing).

So, I was hitting an error in my internal function because it was trying to 
work with an XMLListCollection that hadn't been populated yet (it was null). I 
would put a breakpoint in my result function, but of course, the Flex app had 
already tripped up before the results were returned.

So now I'm "daisy-chaining" my HTTPServices so that the 2nd one is called from 
within the 1st calls result function. And the 3rd within the 2nd, and then 
finally calling my internal function from within the 3rd result function...if 
that makes any sense.

Anyway, thanks for everyone's help. Have a great day!

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> Have you set up another event listener (using Actionscript) that is grabbing 
> that event?
> 
> 
> --- In flexcoders@yahoogroups.com, "Matthew A. Wilson"  wrote:
> >
> > I have a component that I'm adding to my Flex project and it makes 3 HTTP 
> > Service calls. On the result="" I have listed a function and inside that 
> > function I have created a breakpoint.
> > 
> > When I go into debug, it won't stop at that breakpoint. It's like it's not 
> > calling the result function. I know that the app is making the calls and 
> > getting the resulting XML (using Firebug). I can set a breakpoint anywhere 
> > else in the app and it will stop...just not on the result or fault HTTP 
> > service functions.
> > 
> > Also, I only have this problem on this one component. This doesn't happen 
> > anywhere else in the application. I would paste some code in here for you 
> > to evaluate - but I doubt it will be useful. If I change the name of the 
> > function in the result="" then Flex warns me that I'm referencing a 
> > function that doesn't exist. So when I retype it to match the function 
> > below...the warning disappears.
> > 
> > The only other thing I can mention is that I "accidentally" installed Flash 
> > 10 player, so I uninstalled and then installed Flash 9 Active-X Debugger. 
> > But again...I only have this issue on one component.
> > 
> > Any initial thoughts/ideas?
> > 
> > Thanks to all!
> >
>




[flexcoders] Debugger won't break on HTTP Service result function

2009-04-08 Thread Matthew A. Wilson
I have a component that I'm adding to my Flex project and it makes 3 HTTP 
Service calls. On the result="" I have listed a function and inside that 
function I have created a breakpoint.

When I go into debug, it won't stop at that breakpoint. It's like it's not 
calling the result function. I know that the app is making the calls and 
getting the resulting XML (using Firebug). I can set a breakpoint anywhere else 
in the app and it will stop...just not on the result or fault HTTP service 
functions.

Also, I only have this problem on this one component. This doesn't happen 
anywhere else in the application. I would paste some code in here for you to 
evaluate - but I doubt it will be useful. If I change the name of the function 
in the result="" then Flex warns me that I'm referencing a function that 
doesn't exist. So when I retype it to match the function below...the warning 
disappears.

The only other thing I can mention is that I "accidentally" installed Flash 10 
player, so I uninstalled and then installed Flash 9 Active-X Debugger. But 
again...I only have this issue on one component.

Any initial thoughts/ideas?

Thanks to all!



[flexcoders] Bind ComboBox to returning XML (HOW TO)

2009-03-23 Thread Matthew A. Wilson
Need help with a combobox...

I have a combobox that I want to load from a database. The text will be a name, 
and the value will be an integer.

That's it - pretty straightforward. Just can't seem to figure it out. The xml 
will look like this:


  
  


Thanks so much in advance for your help!!!



[flexcoders] ActionScript design patterns chapter pdf

2009-02-02 Thread Matthew Kim
Does anyone know where I can find a copy of the pdf of the chapter 
from the ActionScript 2.0 Dictionary entitled "ActionScript Design 
Patterns for Rich Internet Application Development"? It was previously 
posted on the now defunct richinternetapps site. I'm in the process of 
updating a pre-Cairngorm architecture based on the patterns it 
outlined, and would like to have it available for reference.

Thanks,

Matt



Re: [flexcoders] Do you use a Mac?

2008-10-23 Thread Matthew Shirey
Like someone else already posted.  The main advantage to using OSX
instead of WindowsXP/Vista is that you spend more time actually
getting work done.  I spent fifteen years in various Windows boxes.  I
switched last year and I'll never go back.

-- Matthew

On Wed, Oct 22, 2008 at 11:49 PM, Haykel BEN JEMIA <[EMAIL PROTECTED]> wrote:
> Hi,
>
> this is probably off topic, but I noticed that most of the screencasts I
> watched about Flex are made on Mac OSX. Do most Flex developers work on Mac?
> Are most developers in the USA using Macs (as most screencasts I watched are
> done by people from the US)? Are their any advantages on using a Mac instead
> of a PC for Web/Flex development? I'm just wondering as I never used a Mac
> before.
>
> --
> Haykel Ben Jemia
>
> Allmas
> Web & RIA Development
> http://www.allmas-tn.com
>
>
> 


Re: [flexcoders] WHERE is ActionScript 3 Documentation HIDING ?

2008-03-29 Thread Matthew Kampschmidt
Here are the Flex 3 livedocs, this what you¹re looking for?

http://livedocs.adobe.com/flex/3/langref/index.html

-kampy

On 3/29/08 9:49 PM, "Jeffry Houser" <[EMAIL PROTECTED]> wrote:

>  
>  
> 
> 
>  If I Google "ActionScript 3 Documentation" this page comes up:
> http://labs.adobe.com/wiki/index.php/ActionScript_3
> 
> Which has a link to this "Programming ActionScript 3" in PDF format (
> http://www.adobe.com/go/programmingAS3_pdf ).
> 
> If I go to LiveDocs.adobe.com, select "Flex" documentation it will
> send me here
> 
> http://www.adobe.com/support/documentation/en/flex/
> 
> Which has the same PDF available.  Both pages include other links
> (some in PDF) that may be helpful in the context of learning, or using
> ActionScript 3.
> 
> I'd be very surprised if similar documentation was not included with
> Flex Builder (or the Flex SDK download), however I didn't check.  It is
> rare I'm looking up ActionScript3 docs; although I use the Flex
> Framework docs quite a bit.
> 
> All that said, ActionSCript 3 is an ECMA compliant language, so they
> may very well have the expectation that most programmers are already
> familiar with the syntax.
> 
> comfederation wrote:
>> > 
>> > 
>> > I am looking for ActionScript 3 reference and other manuals, in PDF
>> > format, and I can not find them?
>> > 
>> > Why are these PDF reference manuals hidden well enough that even
>> > dummies (like my self) can not easily find them ?
>> > 
>> > It certainly does not seem to be one of Adobe's brightest moves that
>> > will help them in the Silverlight battle !
>> > 
>> > 



Re: [flexcoders] Re: Tools to monitor flex network traffic for debugging SOAP calls and responses (kinda urgent)?

2008-02-17 Thread matthew
no fiddler, but you should be able to use charles:
http://www.xk72.com/charles/



On Feb 17, 2008, at 11:12 PM, Josh McDonald wrote:

> Hmm, I'm on Mac, so there'll be no fiddler for me :)
>
>
> On Feb 18, 2008 2:11 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:
> Free is good, thanks for the tip.
>
> My problem turned out to be Hotfix 3 (or 2), which apparently  
> contains a new RPC engine that doens't actually work ;-)
>
> -J
>
>
> On Feb 18, 2008 2:01 PM, aceoohay <[EMAIL PROTECTED]> wrote:
> I do not do Soap, I use FluorineFX, but my tool of choice is fiddler.
>
> You can get here;
>
> http://www.fiddlertool.com/fiddler/
>
> It has the added benefit of being free.
>
> Paul
>
>
> --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
> >
> > Hi Guys,
> >
> > Is there something good out there I can use to view the raw XML
> > request/response data going to and from the server when making SOAP
> calls? A
> > vcr proxy? An option in the debugger I don't know about?
> >
> > -Josh
> >
> > --
> > "Therefore, send not to know For whom the bell tolls, It tolls for
> thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED]
> >
>
>
>
>
> -- 
> "Therefore, send not to know For whom the bell tolls, It tolls for  
> thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>
>
>
> -- 
> "Therefore, send not to know For whom the bell tolls, It tolls for  
> thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>
> 



---
Matthew Richmond, Principal/Designer
The Chopping Block, Inc.
481 Broadway, 3rd Floor, New York, NY 10013
p 212.463.7574
f 917.591.7584
http://choppingblock.com
http://chopshopstore.com
---
   World Domination Through Graphic Design
---







Re: [flexcoders] Flash Player 9.0.115 drawing bug

2007-12-11 Thread Matthew Ganz
Jim,

When did they make the bitmap operations multithreaded? Is that new as of fp 
9.0.115.0?
  - Original Message - 
  From: Jim Hayes 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, December 10, 2007 11:27 AM
  Subject: RE: [flexcoders] Flash Player 9.0.115 drawing bug



  Nothing like that I'm afraid.



  I have noticed one (possible bug) that crept in when they made the bitmap 
operations multithreaded - my filter matrix operation now sometimes gets done 
in two parts (I surmise), resulting in a line (normally horizontal but 
sometimes vertical) running though the middle of my outline filter. However, 
not every time, it's pretty random as to when it happens.

  I've not found time to do a simple test case (I should have, and submitted a 
bug if I could verify it properly) I'm afraid.



  I only mention it here in case it might be related.



  And if anyone has seen it and has a solution I'd love to know what it is!



  Jim.





  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Matthew Ganz
  Sent: 10 December 2007 16:15
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flash Player 9.0.115 drawing bug



  Hi. 



  Just a general query to this group to see if anyone has noticed a bug with 
the new Flash Player 9.0.115 and the drawing API. 



  My application uses a series of loaders to load thumbnail images into a grid. 
The grid has an outline for each image and they are drawn using the drawing 
API. With the new flash player version, the outlines, or rather one outline out 
of the entire grid is being sized incorrectly. I've attached some screenshots 
for reference. 



  Any tips or suggestions are greatly appreciated. 



  Thank you. -- Matt. 


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

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


   

Re: [flexcoders] Flash Player 9.0.115 drawing bug

2007-12-10 Thread Matthew Ganz
thru extensive testing today i'm thinking that this new version of the flash 
player is probably exposing some problems i've had in my code because i'm 
seeing aberrant values being passed into my methods. time to write test cases. 

again, i can never duplicate this problem with the debug version of the player 
and yes, it only happens with version 9.0.115.0. 


  - Original Message - 
  From: Alex Harui 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, December 10, 2007 3:59 PM
  Subject: RE: [flexcoders] Flash Player 9.0.115 drawing bug



  I just wanted to know if that made a difference.  To prove the file is in the 
right place, add TraceOutputFileEnabled=1 and see if you get trace output.  
Sounds like you're not seeing a multicore problem.  And you are sure if you go 
to an older player you won't have this problem?




--

  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Matthew Ganz
  Sent: Monday, December 10, 2007 10:54 AM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Flash Player 9.0.115 drawing bug



  hi alex. 



  thanks for your response. i created the file in my homepath and homedrive and 
the problem still persists. 



  another question is that i'm building this application for several hundred 
users. will they all have to add this to their mm.cfg file or will simply 
changing the setting on my machine and then publishing the final swf solve the 
problem? 



  thanks. -- matt. 

- Original Message - 

From: Alex Harui 

To: flexcoders@yahoogroups.com 

Sent: Monday, December 10, 2007 12:34 PM

Subject: RE: [flexcoders] Flash Player 9.0.115 drawing bug



add to mm.cfg DisableMulticoreRenderer=1






From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Matthew Ganz
Sent: Monday, December 10, 2007 8:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flash Player 9.0.115 drawing bug

Hi. 



Just a general query to this group to see if anyone has noticed a bug with 
the new Flash Player 9.0.115 and the drawing API. 



My application uses a series of loaders to load thumbnail images into a 
grid. The grid has an outline for each image and they are drawn using the 
drawing API. With the new flash player version, the outlines, or rather one 
outline out of the entire grid is being sized incorrectly. I've attached some 
screenshots for reference. 



Any tips or suggestions are greatly appreciated. 



Thank you. -- Matt. 



   

Re: [flexcoders] Flash Player 9.0.115 drawing bug

2007-12-10 Thread Matthew Ganz
hi alex. 

thanks for your response. i created the file in my homepath and homedrive and 
the problem still persists. 

another question is that i'm building this application for several hundred 
users. will they all have to add this to their mm.cfg file or will simply 
changing the setting on my machine and then publishing the final swf solve the 
problem? 

thanks. -- matt. 
  - Original Message - 
  From: Alex Harui 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, December 10, 2007 12:34 PM
  Subject: RE: [flexcoders] Flash Player 9.0.115 drawing bug



  add to mm.cfg DisableMulticoreRenderer=1



--
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Matthew Ganz
  Sent: Monday, December 10, 2007 8:15 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flash Player 9.0.115 drawing bug



  Hi. 

  Just a general query to this group to see if anyone has noticed a bug with 
the new Flash Player 9.0.115 and the drawing API. 

  My application uses a series of loaders to load thumbnail images into a grid. 
The grid has an outline for each image and they are drawn using the drawing 
API. With the new flash player version, the outlines, or rather one outline out 
of the entire grid is being sized incorrectly. I've attached some screenshots 
for reference. 

  Any tips or suggestions are greatly appreciated. 

  Thank you. -- Matt. 


   

Re: [flexcoders] Flash Player 9.0.115 drawing bug

2007-12-10 Thread Matthew Ganz
Hmm...I've also been unable to reproduce the problem using the debug version of 
the flash player. What might I be able to infer from that? 
  - Original Message - 
  From: Jim Hayes 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, December 10, 2007 11:27 AM
  Subject: RE: [flexcoders] Flash Player 9.0.115 drawing bug



  Nothing like that I'm afraid.



  I have noticed one (possible bug) that crept in when they made the bitmap 
operations multithreaded - my filter matrix operation now sometimes gets done 
in two parts (I surmise), resulting in a line (normally horizontal but 
sometimes vertical) running though the middle of my outline filter. However, 
not every time, it's pretty random as to when it happens.

  I've not found time to do a simple test case (I should have, and submitted a 
bug if I could verify it properly) I'm afraid.



  I only mention it here in case it might be related.



  And if anyone has seen it and has a solution I'd love to know what it is!



  Jim.





  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Matthew Ganz
  Sent: 10 December 2007 16:15
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flash Player 9.0.115 drawing bug



  Hi. 



  Just a general query to this group to see if anyone has noticed a bug with 
the new Flash Player 9.0.115 and the drawing API. 



  My application uses a series of loaders to load thumbnail images into a grid. 
The grid has an outline for each image and they are drawn using the drawing 
API. With the new flash player version, the outlines, or rather one outline out 
of the entire grid is being sized incorrectly. I've attached some screenshots 
for reference. 



  Any tips or suggestions are greatly appreciated. 



  Thank you. -- Matt. 


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

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


   

Re: [flexcoders] Re: accessing node via XML.child()

2007-11-09 Thread Matthew Ganz
that was it. thank you.

gml = new XML(s);
 var gmlNamespace:Namespace = new Namespace("gml", 
"http://www.opengis.net/gml";);
 var coordinatesQName:QName = new QName(gmlNamespace, "coordinates");
 var descendentList:XMLList = gml.descendants(coordinatesQName);
 var coordinatesStr:String = descendentList[0];


  - Original Message - 
  From: Alex Harui 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, November 09, 2007 12:02 PM
  Subject: RE: [flexcoders] Re: accessing node via XML.child()



  Pretty sure you have to use qname in [] lookups.  The string is not parsed 
for namespaces




--

  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
fumeng5
  Sent: Friday, November 09, 2007 8:00 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: accessing node via XML.child()



  quick update; the coordinatesStr line should be this:
  var coordinatesStr:String = gml.child("gml:coordinates")[0].toXMLString();

  anyway, that's what is strange. i can see the gml XML object in the
  debugger and all of its nodes. i step into the coordinatesStr line
  using the debugger and all is fine and then i step again and that's
  when i get the term is undefined error. but it doesn't show what term.
  obviously, it's not 'gml' as that object exists, so it must the name
  of the node , "gml:coordinates"...i'm guessing. 

  thanks.

  matt.

  --- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
  wrote:
  >
  > On Friday 09 Nov 2007, Matthew Ganz wrote:
  > > i get the error message: 'a term is undefined and has no properties'
  > 
  > Stop it in the debugger and find out which one.
  > 
  > -- 
  > Tom Chiverton
  > Helping to administratively seize high-yield features
  > on: http://thefalken.livejournal.com
  > 
  > 
  > 
  > This email is sent for and on behalf of Halliwells LLP.
  > 
  > Halliwells LLP is a limited liability partnership registered in
  England and Wales under registered number OC307980 whose registered
  office address is at St James's Court Brown Street Manchester M2 2JF.
  A list of members is available for inspection at the registered
  office. Any reference to a partner in relation to Halliwells LLP
  means a member of Halliwells LLP. Regulated by The Solicitors
  Regulation Authority.
  > 
  > CONFIDENTIALITY
  > 
  > This email is intended only for the use of the addressee named above
  and may be confidential or legally privileged. If you are not the
  addressee you must not read it and must not use any information
  contained in nor copy it nor inform any person other than Halliwells
  LLP or the addressee of its existence or contents. If you have
  received this email in error please delete it and notify Halliwells
  LLP IT Department on 0870 365 2500.
  > 
  > For more information about Halliwells LLP visit www.halliwells.com.
  >



   

[flexcoders] accessing node via XML.child()

2007-11-09 Thread Matthew Ganz
hi. 

i'm trying to access a node using myXML.child("nodeName") and it's throwing an 
error. 

i create my XML object by passing a string as an arg in a method invocation:

gmlParser.convertStringToXML(event.data)

public function convertStringToXML(s:String):Array{
   gml = new XML(s); 
   var coordinatesStr:String = gml.child("gml:coordinates");
  }

i get the error message: 'a term is undefined and has no properties'

what does that mean? can't i retrieve by node name using the child() method?

any tips are appreciated. 

thanks. -- matt. 

Re: [flexcoders] Replacing Caret character in text

2007-10-30 Thread Matthew Ness

Amy, try:

const caret:RegExp = /\^/g;
theText = theText.replace(caret, "your replacement");

Matt

On 31/10/2007, at 5:22 AM, Amy wrote:


I'm trying to work around the bug in Flex that adds carriage returns
around html tags in XML, even ones wrapped in CDATA. So, I figure the
caret character is the closest match for the < (<) for my client to
easily be able to edit the XML files without having to learn a whole
lot of code or having to write an editor for them.

The code I am using is:

var caret:RegExp = /\^\g/;
theText=contentItem.valueOf().toString();
theText=theText.replace(caret, "<");

but nothing gets replaced.

What am I missing?

Thanks;

Amy



Messages in this topic (1)
Reply (via web post) | Start a new topic
Messages
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders% 
40yahoogroups.com


Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch  
format to Traditional

Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
RECENT ACTIVITY
77
New Members
Visit Your Group
Yahoo! Finance
It's Now Personal
Guides, news,
advice & more.
New web site?
Drive traffic now.
Get your business
on Yahoo! search.
HDTV Support
on Yahoo! Groups
Help with Samsung
HDTVs and devices
.

__,_._,_


Re: [flexcoders] Re: remove all spaces using RegExp

2007-10-03 Thread Matthew Ganz
good point, thanks. that was part of the problem. 
  - Original Message - 
  From: caffeinewabbit 
  To: flexcoders@yahoogroups.com 
  Sent: Wednesday, October 03, 2007 3:23 PM
  Subject: [flexcoders] Re: remove all spaces using RegExp


  Are you remembering to assign the new value back to your variable?

  i.e.:

  coordinatesStr = coordinatesStr.replace("\\s+","");

  Greg C.

  --- In flexcoders@yahoogroups.com, "Matthew Ganz" <[EMAIL PROTECTED]> wrote:
  >
  > hi.
  > 
  > i've got a string with a bunch of extra spaces in it; line breaks,
  tabs, etc...for some reason when i try to RegExp it, it doesn't remove
  it. anything wrong with this statement??
  > 
  > coordinatesStr.replace("\\s+",""); // doesn't remove any spaces
  > 
  > i've tried this and it still doesn't work:
  > var myPattern:RegExp = /\\s+\g;
  > coordinatesStr.replace(myPattern,"");
  > 
  > any tips are very much appreciated. thank you. -- matt.
  >



   

[flexcoders] remove all spaces using RegExp

2007-10-03 Thread Matthew Ganz
hi.

i've got a string with a bunch of extra spaces in it; line breaks, tabs, 
etc...for some reason when i try to RegExp it, it doesn't remove it. anything 
wrong with this statement??

coordinatesStr.replace("\\s+",""); // doesn't remove any spaces

i've tried this and it still doesn't work:
var myPattern:RegExp = /\\s+\g;
coordinatesStr.replace(myPattern,"");

any tips are very much appreciated. thank you. -- matt. 

[flexcoders] convert string to XML and access children.

2007-10-03 Thread Matthew Ganz
hi. 

i have a string returned from a java service and i convert it successfully to 
an XML object but somehow cannot access its elements appropriately. 

here's the string returned from the service: 
http://www.opengis.net/gml";>















35.8836141808394,36.8725679313339 
35.942909637095,37.0879040619465

















...then i convert it to XML a la:

private var gml:XML = new XML(s:String); // 's' is the string above. 

i can trace it out successfully via: gml.toString() and i see the string again. 
but when i try and access its child elements, it continues outputting 
everything...for example:

gml.children()[7] should be outputting the "gml:coordinates" element. does 
someone see where i may be going wrong? 

any tips are appreciated. thanks. -- matt. 



[flexcoders] FileReference + multiple uploads

2007-10-02 Thread Matthew Ganz
Hi.

I thought that if I have an array of FileReference objects, I can iterate over 
them and call upload() on each one without waiting for a response from the 
previous one. The problem is that my java upload service is only uploading 1 
file and I don't know why the others aren't going thru. 

Here is my code. Has anyone else experienced this before?

Thanks for any tips. -- Matt. 

private function uploadFiles(event:MouseEvent):void{
 var request:URLRequest = new 
URLRequest("http://localhost:8080/MyServer/esri/UploadFile.action";);
try
{
 if(fileRefObjects.length == 3){
 for(var i:int=0;i

Re: [flexcoders] event.fault.faultString

2007-09-20 Thread Matthew Ganz
that returns everything before the colon. i'm doing this:

var msg:String = event.fault.faultString;
 var truncMsg:String = msg.substr((msg.indexOf(':')+2),msg.length); // +2 
accounts for spaces after colon.
- Original Message - 
From: "Tom Chiverton" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, September 20, 2007 10:52 AM
Subject: Re: [flexcoders] event.fault.faultString


> On Thursday 20 Sep 2007, [EMAIL PROTECTED] wrote:
>> Flex will always do it that way, so what you have to do is create a 
>> method
>> that will get everything after the colon and display it to the user. You
>> should put this method in some utility classpersonally I have created 
>> a
>> StringUtils class that this type of method and then some.
>
> string.split(':')[0] not good enough ?
>
> -- 
> Tom Chiverton
> Helping to centrally lead frictionless e-markets
> on: http://thefalken.livejournal.com
>
> 
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in England 
> and Wales under registered number OC307980 whose registered office address 
> is at St James's Court Brown Street Manchester M2 2JF.  A list of members 
> is available for inspection at the registered office. Any reference to a 
> partner in relation to Halliwells LLP means a member of Halliwells LLP. 
> Regulated by the Law Society.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above and 
> may be confidential or legally privileged.  If you are not the addressee 
> you must not read it and must not use any information contained in nor 
> copy it nor inform any person other than Halliwells LLP or the addressee 
> of its existence or contents.  If you have received this email in error 
> please delete it and notify Halliwells LLP IT Department on 0870 365 8008.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>
>
>
> --
> 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/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> 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] event.fault.faultString

2007-09-20 Thread Matthew Ganz
that did the trick (and thanks for the StringUtils tip). 

matt. 
  - Original Message - 
  From: Dimitrios Gianninas 
  To: flexcoders@yahoogroups.com 
  Sent: Thursday, September 20, 2007 6:36 AM
  Subject: RE: [flexcoders] event.fault.faultString



  Flex will always do it that way, so what you have to do is create a method 
that will get everything after the colon and display it to the user.
  You should put this method in some utility classpersonally I have created 
a StringUtils class that this type of method and then some.

  Dimitrios Gianninas
  Development Team Lead
  Optimal Payments Inc.




--
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Matthew Ganz
  Sent: Wednesday, September 19, 2007 3:27 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] event.fault.faultString



  hi.

  i have a fault handler for my remote object. i pass a custom message when i 
throw an exception but my alert.show(event.fault.faultString) appends the fully 
qualified path of the class throwing the exception. how can i get the message 
only without the path?

  any tips are appreciated. thank you.

  matt. 

AVIS IMPORTANT
   WARNING
   
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé. L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système. La lecture, la distribution, la copie ou tout 
autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.
   This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient. No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message. If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system. The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful. If you have received this e-mail in error, please notify the 
sender.
   


   

[flexcoders] event.fault.faultString

2007-09-19 Thread Matthew Ganz
hi.

i have a fault handler for my remote object. i pass a custom message when i 
throw an exception but my alert.show(event.fault.faultString) appends the fully 
qualified path of the class throwing the exception. how can i get the message 
only without the path?

any tips are appreciated. thank you.

matt. 

[flexcoders] XMLList and ToggleToolbar

2007-09-14 Thread Gates Matthew Stoner

I'm trying to take a XML structure that I'm returning via a remote
service and use it as a dataProvider for a Toogletoolbar. The XML is a
bit complex and has some nested nodes. Here is a small example of it


   
   Schnauzr
   


I want the toolbar to just be the topic labels (Dog, Cat). But I'm
getting an error about using a complex object. How do I just populate
the toolbar with the topic labels from my xml?

Matt



Re: [flexcoders] scrollRect confusion

2007-09-10 Thread Matthew Ganz
that works well. and here i was thinking that i might have to create a 
composite component with an HScrollBar and VScrollBar. 

thank you. -- matt. 
  - Original Message - 
  From: Troy Gilbert 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, September 10, 2007 3:59 PM
  Subject: Re: [flexcoders] scrollRect confusion


  scrollRect just provides clipping, it does not add scrollbars, etc. For that, 
I'd recommend just putting your image component inside of a Canvas component.

  Troy.




  On 9/10/07, Matthew Ganz <[EMAIL PROTECTED]> wrote:
hi. 

i'm loading an image at runtime into an image component. i want the 
component to have horizontal and vertical scrollbars. the image is 300x300 and 
the image i'm loading in is 500x500. i thought i could simply define a 
rectangle for the 'scrollRect' property of the image but it doesn't appear to 
be working. 

am i correct in thinking that i can do this? 

here's the code (init() is called on creationComplete):

[Bindable]
private var viewPort:Rectangle;

private function init():void{
 viewPort = new Rectangle(0, 0, 500, 500);
}



any tips are appreciated. - thank you. -- matt. 



   

[flexcoders] scrollRect confusion

2007-09-10 Thread Matthew Ganz
hi. 

i'm loading an image at runtime into an image component. i want the component 
to have horizontal and vertical scrollbars. the image is 300x300 and the image 
i'm loading in is 500x500. i thought i could simply define a rectangle for the 
'scrollRect' property of the image but it doesn't appear to be working. 

am i correct in thinking that i can do this? 

here's the code (init() is called on creationComplete):

[Bindable]
private var viewPort:Rectangle;

private function init():void{
 viewPort = new Rectangle(0, 0, 500, 500);
}



any tips are appreciated. - thank you. -- matt. 

Re: [flexcoders] custom component as item renderer

2007-09-07 Thread Matthew Ganz
that did the trick, mark. thank you both. 
  - Original Message - 
  From: Mark Doberenz 
  To: flexcoders@yahoogroups.com 
  Sent: Thursday, September 06, 2007 5:53 PM
  Subject: Re: [flexcoders] custom component as item renderer


  what's the namespace that the custom component is in?  You may need to 
specify the full namespace location:
   itemRenderer="com.path1.path2.ImageRenderer" 



  On 9/6/07, Tracy Spratt <[EMAIL PROTECTED]> wrote:

Have you declared the default namespace in the root tag of the app?

xmlns="*"



Tracy






From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On 
Behalf Of Matthew Ganz
Sent: Thursday, September 06, 2007 4:51 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] custom component as item renderer



thank you but i'm still getting the same error even when i import my custom 
component. 

  - Original Message - 

  From: Tracy Spratt 

  To: flexcoders@yahoogroups.com 

  Sent: Thursday, September 06, 2007 4:53 PM

  Subject: RE: [flexcoders] custom component as item renderer



  import ImageRenderer;

  Tracy


--

  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Matthew Ganz
  Sent: Thursday, September 06, 2007 4:38 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] custom component as item renderer

  hi. 

  i'm following aral balkan's tutorial on using item renderers:

  http://www.adobe.com/devnet/flex/quickstart/using_item_renderers/

  i'm trying to implement a custom component as my item renderer and i'm 
going thru the tute and i'm still getting the following error:


  Definition ImageRenderer could not be found. 

  I thought that assigning the name of the component (it resides in the 
same directory) to the 'itemRenderer' property of my List component would be 
fine. 

  Here's my List:

  
 
 

  and here's my custom component that i'm trying to use as an item renderer 
(ImageRenderer.mxml):

  
  http://www.adobe.com/2006/mxml"; width="200" 
height="200">
   

   
  

  What might I be missing? any tips are appreciated. thank you. -- matt. 








   

Re: [flexcoders] custom component as item renderer

2007-09-06 Thread Matthew Ganz
thank you but i'm still getting the same error even when i import my custom 
component. 
  - Original Message - 
  From: Tracy Spratt 
  To: flexcoders@yahoogroups.com 
  Sent: Thursday, September 06, 2007 4:53 PM
  Subject: RE: [flexcoders] custom component as item renderer



  import ImageRenderer;



  Tracy




--

  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Matthew Ganz
  Sent: Thursday, September 06, 2007 4:38 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] custom component as item renderer



  hi. 



  i'm following aral balkan's tutorial on using item renderers:

  http://www.adobe.com/devnet/flex/quickstart/using_item_renderers/



  i'm trying to implement a custom component as my item renderer and i'm going 
thru the tute and i'm still getting the following error:


  Definition ImageRenderer could not be found. 



  I thought that assigning the name of the component (it resides in the same 
directory) to the 'itemRenderer' property of my List component would be fine. 



  Here's my List:

  
 
 



  and here's my custom component that i'm trying to use as an item renderer 
(ImageRenderer.mxml):

  
  http://www.adobe.com/2006/mxml"; width="200" height="200">
   

   
  



  What might I be missing? any tips are appreciated. thank you. -- matt. 




   

[flexcoders] custom component as item renderer

2007-09-06 Thread Matthew Ganz
hi. 

i'm following aral balkan's tutorial on using item renderers:
http://www.adobe.com/devnet/flex/quickstart/using_item_renderers/

i'm trying to implement a custom component as my item renderer and i'm going 
thru the tute and i'm still getting the following error:

Definition ImageRenderer could not be found. 

I thought that assigning the name of the component (it resides in the same 
directory) to the 'itemRenderer' property of my List component would be fine. 

Here's my List:

   
   

and here's my custom component that i'm trying to use as an item renderer 
(ImageRenderer.mxml):

http://www.adobe.com/2006/mxml"; width="200" height="200">
 
  
 



What might I be missing? any tips are appreciated. thank you. -- matt. 


[flexcoders] propage events thru a window object

2007-08-27 Thread Matthew Ganz
how can i place my display object in the event chain so it receives events thru 
a window component? 

basically, i have a map component that i need to move around and when i mouse 
up on top of another object, like my pop up window, i want the map to receive 
the event. 

thanks for any tips. -- matt. 

[flexcoders] Bring To Front

2007-06-09 Thread Matthew Dahl
I have a application I am creating that contains a few TitleWindows
that I have made draggable. Now I would like to make it so that when a
TitleWindow is clicked it is brought to the front. Does anyone know
how to achieve this. On one site they did Win.orderToFront(); but
orderToFront doesn't actually seem to be defined and no where in there
code did they define it. Thanks in advance,
Matt



[flexcoders] Flex bug... no resize event fired when width changes??

2007-06-08 Thread Matthew OMeara
Anyone else seen this issue, where the resize event fails to fire?

As it happens, this appears to be a symptom and not the bug itself.  If 
you resize the control both height and width, the new height value 
comes in correctly, but the width value remains the same at times.

Hence the symptom... the width hasn't changed according to internal 
values, hence the event shouldn't fire.

So the bug isn't the event not firing, its that the new value for width 
isn't getting set.

Thanks

Matthew




[flexcoders] Override failing.... between MXML base class and AS3 subclass

2007-05-17 Thread Matthew OMeara
Perhaps I shopuld not be trying to do this, but here it is anyway...

I have a "compound" MXML component that I have created that has a few 
MXML children and 2 states.  It serves as an agnostic visual control 
that Value Objects get assigned to for dipslay.

I want to reuse the MXML control several times over, so I have 
subclassed it in an AS3 class.  Everything works fine except... when 
I override functions from the base class in the descendant class, it 
is failing to override.

Meaning I have a button in the base class that calls its own 
function, which is overriden in this "instance" but flex fails to 
route my event to the overriden function...  it sends it to my 
placeholder function in the base class.

I realize that Flex does not support Abstract functions yet, but what 
I am trying to do should work without requiring "abstract".

Any insights are appreciated.

Matthew




[flexcoders] FlexBuilder bug: failing to report location of errors, warnings and hints

2007-05-15 Thread Matthew OMeara
My FlexBuilder IDE has been broken for about 3 weeks now, and I have 
chosen to ignore it as all obvious fixes failed to right the ship.

At some point 3 weeks ago, FlexBuilder completely botched my project 
files and left me in a state where I could no longer launch the 
application.  So I created a new project from scratch (as a shell), 
ported the code over and got working again.

Everything works fine now except the debugger which shows me the 
errors and warnings but fails to report which .as or .mxml file the 
error occured in.  It only reports the line number, and of course the 
links (dbl click to go there) fail, as Flex Builder is missing the 
filename and itself has no idea where to send me to.

I know others have faced this issue already, but the fix remains 
unclear.

Any help appreciated, because it is tiring surfing the files to find 
the lines of code taht are failing.

Thanks

Matthew




[flexcoders] Auto generate AS3??? from MXML

2007-05-14 Thread Matthew OMeara
Is there a way to lay out the design of a control (canvas, vbox, etc) 
with say 20 labels, edits, child controls, and then ask Flex Builder to 
generate the AS3 code for these controls?

In this way you can lay out visual design, but keep the code base 
mostly as AS3 instead of heavy on the MXML.

Thanks

Matthew




[flexcoders] Re: ZLIB compression standard within Flex (Flash)??

2007-04-26 Thread Matthew OMeara
It took a day for this post to show up on Yahoo, and in the meantime 
I have resolved the issue.  Turns out that I was passing a WideString 
from a windows server to Flex (also on Windows).  But the char sets 
must have been different (utf-8 vs ASCII), so the compressed string 
was misunderstood at trhe client (Flex app).

I pass the string as HexString now and it works fine, will switch to 
Byte Stream soon.

best,

Matthew


--- In flexcoders@yahoogroups.com, "Matthew OMeara" <[EMAIL PROTECTED]> 
wrote:
>
> I have been spinning cycles trying to get the uncompress function 
of 
> ByteArray to process a zipped xml string that I am sending from a 
> custom web server.  I have read up on the process and understand 
that 
> Flex ByteArrays support zlib compression and I believe they expect 
to 
> find an Adler checksum within the zipped string as well.
> 
> Problem is that there are 31 flavors of compression to choose from 
> server side and I can not get any to match what Flex ByteArray 
> decompress expects???
> 
> For example, there are these options of compession within zlib...
> 
>   CompressionLevel = (
> zcNone,
> zcFastest,
> zcDefault,
> zcMax,
> zcLevel1,
> zcLevel2,
> zcLevel3,
> zcLevel4,
> zcLevel5,
> zcLevel6,
> zcLevel7,
> zcLevel8,
> zcLevel9
>   );
> 
>   Strategy = (
> zsDefault,
> zsFiltered,
> zsHuffman,
> zsRLE,
> zsFixed
>   );
> 
> ~
> 
> The ultimate goal here is to grab 5mb xml files that are first 
> zipped, then encrypted that have been cached on the server.  I have 
> flex unencrypting data successfully, but I can not get Flex to 
> recognize and unzip any flavor of Zip that I send to it.
> 
> Any thoughts?
> 
> Thanks
> 
> Matthew
>




[flexcoders] ZLIB compression standard within Flex (Flash)??

2007-04-25 Thread Matthew OMeara
I have been spinning cycles trying to get the uncompress function of 
ByteArray to process a zipped xml string that I am sending from a 
custom web server.  I have read up on the process and understand that 
Flex ByteArrays support zlib compression and I believe they expect to 
find an Adler checksum within the zipped string as well.

Problem is that there are 31 flavors of compression to choose from 
server side and I can not get any to match what Flex ByteArray 
decompress expects???

For example, there are these options of compession within zlib...

  CompressionLevel = (
zcNone,
zcFastest,
zcDefault,
zcMax,
zcLevel1,
zcLevel2,
zcLevel3,
zcLevel4,
zcLevel5,
zcLevel6,
zcLevel7,
zcLevel8,
zcLevel9
  );

  Strategy = (
zsDefault,
zsFiltered,
zsHuffman,
zsRLE,
zsFixed
  );

~

The ultimate goal here is to grab 5mb xml files that are first 
zipped, then encrypted that have been cached on the server.  I have 
flex unencrypting data successfully, but I can not get Flex to 
recognize and unzip any flavor of Zip that I send to it.

Any thoughts?

Thanks

Matthew





[flexcoders] Re: Installing Flex On Vista Causes Reboots

2007-04-20 Thread Matthew OMeara

Iko,

You might try looking at your settings for Windows.  There is one 
checkbox for "Reboot on System Error".  Make sure that is turned off 
so that you can at least see the error you are getting.  I have seen 
Windows ship with this set to be true, normally on the dumbed down 
home editions of their OS's.  So make sure that is off and at least 
it gives you a chance to further debug.

Matthew



--- In flexcoders@yahoogroups.com, "realeyes_jun" <[EMAIL PROTECTED]> wrote:
>
> Iko,
> 
> Sorry you couldn't get the installer to run on Vista, but it did 
work
> for me - I was running Windows Vista Business Edition at the time - 
and
> others:
> 
> - http://tech.groups.yahoo.com/group/flexcoders/message/66731
> - http://tech.groups.yahoo.com/group/flexcoders/message/65094
> 
> -Jun
> 
> --- In flexcoders@yahoogroups.com, "iko_knyphausen"  wrote:
> >
> >
> > I don't think the installer works on Vista. I installed on XP and 
then
> > copied the installation directory over to my Vista machine. I 
think
> you
> > will also have to install the the player and debug version of the
> player
> > manually, by visiting the Adobe web site.
> >
> > Iko
> >
> >
> > --- In flexcoders@yahoogroups.com, "realeyes_jun" jun@ wrote:
> > >
> > > John,
> > >
> > > Many developers are running Vista with Flex Builder - Including
> myself
> > > until I downgraded back to XP - so I don't think you 
encountering an
> > > issue with the Flex Builder setup program... sounds to me more 
like
> an
> > > issue with hardware. (Like the machine is having BSOD)
> > >
> > > I would double-check to make sure you have the most appropriate 
and
> up
> > > to date vid card drivers, bios firmware, vista patches. Also,
> running
> > > RAM diagnostics (I think there's a memory tester built into 
Vista)
> or
> > > disk check (cmdline chkdsk and/or vendor provided disk check 
tools)
> > > wouldn't hurt either. You might also want to check your Vista
> > > system/application logs to make sure you're not getting any 
errors
> > when
> > > you run the installer.
> > >
> > > Also, if you bought Flex Builder, I would think that Adobe has 
30
> days
> > > support or something? Just in case it turns out to be the setup
> > program
> > > which I think is not the case.
> > >
> > > -Jun
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, "j_lentzz" jlentz@ wrote:
> > > >
> > > > Hi,
> > > >
> > > > I've got a new machine that I just installed a full copy of 
Vista
> > > > Ultimate onto. I'm trying to install the latest Flex, but 
right
> > after
> > > > it finishes extracting the files, the machine reboots. I've 
tried
> > > > setting the installation program to XP SP2 compatibility and
> checked
> > > > run as administrator, but it still reboots the machine right 
after
> > the
> > > > files have been extracted. I've got Vista on my C drive and 
I'm
> > > > installing (at least trying to) Flex onto my F drive. Does 
anyone
> > > > have any ideas? One option I could do is to install XP first 
load
> > Flex
> > > > and then install Vista over it, but I'm not sure if that would
> help
> > > > any. Any ideas would be great.
> > > >
> > > > Thanks,
> > > >
> > > > John
> > > >
> > >
> >
>




Re: [flexcoders] Can someone please help me? Error message *No Disk*

2007-04-18 Thread Matthew Hartman

Thank you for the responses. I tried putting the installer disk in and it
worked! Luckily I had an installer disk and I hadn¹t just purchased the
download. It¹s pretty scary to see just how quickly Adobe is not willing to
help and turns it¹s back on it¹s customers (unless you are a part of a large
company with an expensive service plan).
 --Matthew

On 4/18/07 8:40, "Johannes Nel" <[EMAIL PROTECTED]> wrote:

>  
>  
>  
> 
> this is an eclipse issue me thinks as i had this problem with an eclipse
> version of mine that did not have the FB plugin installed
> On 17 Apr 2007 06:00:18 -0700, Eric Swann <[EMAIL PROTECTED]> wrote:
>>  
>>  
>>  
>> 
>> I experienced the same issue and put the installer disk into my cdrom when
>> prompted.  Assuming there was something not installed that was required.  Not
>> sure what or why, but issue has not occurred again.
>> 
>>  
>> 
>>  
>> 
>> From: flexcoders@yahoogroups.com <http://ups.com>  [mailto: flexcoders@
>> <mailto:flexcoders@> yahoogroups.com <http://yahoogroups.com> ] On Behalf Of
>> Matthew Hartman
>> Sent: Monday, April 16, 2007 6:38 PM
>> To: flexcoders@yahoogroups.com <http://ups.com>
>> Subject: [flexcoders] Can someone please help me? Error message *No Disk*
>> 
>>  
>> 
>> Can someone please help me? When I try and compile or debug an
>> application through Flex Builder 2, I get an error message with a title:
>> "Windows - No Disk" and the message: "There is no disk in the drive.
>> Please insert a disk into the drive." I have tried un-installing FB2 and
>> re-installing and still same error. I have also tried reformatting my
>> hard drive, re-installing Windows and installing Flex Builder 2 and I
>> get the same message. Can anyone please help me? I am running a Gateway
>> FX510X, Windows XP SP2 on an Intel Core 2 duo 2.4 ghz with 2gig Ram.
>> Please, please someone help.
>> 
>>  
>> 
>>  
>> 
> 
> 




Re: [flexcoders] Can someone please help me? Error message *No Disk*

2007-04-17 Thread Matthew Hartman

Matthew Hartman wrote:


Can someone please help me? When I try and compile or debug an
application through Flex Builder 2, I get an error message with a title:
"Windows - No Disk" and the message: "There is no disk in the drive.
Please insert a disk into the drive." I have tried un-installing FB2 and
re-installing and still same error. I have also tried reformatting my
hard drive, re-installing Windows and installing Flex Builder 2 and I
get the same message. Can anyone please help me? I am running a Gateway
FX510X, Windows XP SP2 on an Intel Core 2 duo 2.4 ghz with 2gig Ram.
Please, please someone help.

 
After installing Flex Builder 2.0 (instead of Flex Builder 2.0.1) I have 
gotten it to work. Does anyone know why I have not been able to install 
FB 2.0.1? Is there an updater? I have been downloading the trial version 
of FB 2.0.1  from the Adobe site. Is this not the right way to do it or 
something?
  Thanks for any help 
anyone can give,

       --Matthew Hartman


[flexcoders] Can someone please help me? Error message *No Disk*

2007-04-16 Thread Matthew Hartman
Can someone please help me? When I try and compile or debug an 
application through Flex Builder 2, I get an error message with a title: 
"Windows - No Disk" and the message: "There is no disk in the drive. 
Please insert a disk into the drive." I have tried un-installing FB2 and 
re-installing and still same error. I have also tried reformatting my 
hard drive, re-installing Windows and installing Flex Builder 2 and I 
get the same message. Can anyone please help me? I am running a Gateway 
FX510X, Windows XP SP2 on an Intel Core 2 duo 2.4 ghz with 2gig Ram. 
Please, please someone help.


[flexcoders] My first Flex experiment. Styling weirdness.

2007-03-16 Thread Matthew Hayes

Hello all,

I built my first Flex page the other day.  I must say, everything  
went really smoothly except for one thing.  I was trying to style a  
ToggleButtonBar.  I even got the styling code from the Style Explorer  
app... where it seemed to work just fine.  Here's the code:


ToggleButtonBar {
   horizontalGap: -1;
   buttonStyleName: "nhButtonBarButton";
   firstButtonStyleName: "nhFirstLastButtons";
   lastButtonStyleName: "nhFirstLastButtons";
   selectedButtonTextStyleName: "nhSelectedButton";
}
.nhButtonBarButton {
   highlightAlphas: 0, 0;
   fillAlphas: 1, 1, 1, 1;
   fillColors: #ff5f37, #ff5f37, #ff, #ff;
   borderColor: #ff5f37;
   themeColor: #ff5f37;
}
.nhFirstLastButtons {
cornerRadius:20;
}
.nhSelectedButton { 
}

The really weird thing is that the horizontalGap style is taking, and  
so is the cornerRadius style in the .nhFirstLastButtons class.  
However, nothing from the .nhButtonBarButton is working!!   
Eventually, I just gave up, moved on, figured I'd get to it later...  
well, it's later.  Any help?


Thanks!
//Matt Hayes
[EMAIL PROTECTED]





[flexcoders] Looking for Developer - Flex Charting

2007-02-06 Thread Matthew Blumberg
We seek to developer to help us to create data-driven flash charts  
for our website.

Some details:

* Data is drawn dynamically from MySQL and/or XML (on a LAMP server).

* We will need three different chart types: (1) Area Charts, (2) Bar  
Charts, (3) Balloon Charts.

* Appearance of charts is very important; they need to match our  
site. So we need someone attentive to visual detail.  Samples of  
desired appearance:

- Sample Bar chart: http://www.picador.net/share/BarChart.png
- Sample Balloon Chart: http://www.picador.net/share/BalloonChart.png

* We'd like for the charts to have some rudimentary animation: bars  
growing, balloons expanding, etc.  And we'd like to provide the  
dynamic timescale slider shown in some of the flex charting examples  
(essentially a zoom-in/zoom-out function), ex: http:// 
examples.adobe.com/flex2/inproduct/sdk/dashboard/dashboard.html .

* Project is a non-profit, so we have a limited budget; but it is a  
very cool site and a very interesting and worthwhile cause.



Please contact me if interested.


Best Wishes,

...Matt Blumberg
...mlb at picador.  net


Re: [flexcoders] DOT NET 2.0

2006-04-04 Thread Matthew Shirey
We develop Flex 1.0 application using ASP.NET 1.0 and 2.0 Web
Services.  This works extremely well.  Flex 1.0 requires a java server
to serve the Flex application itself.  While I haven't used 2.0 yet,
what I have read indicates that you do not need a java server.  The
2.0 development tools can compile the application directly into a SWF
file that can be served just like any normal Flash file.  So with Flex
2.0, you should should be able to use ASP.NET 2.0 Web Services without
the need for a Java server.

-- Matthew



On 4/4/06, sakgroups <[EMAIL PROTECTED]> wrote:
> We are building a web application using dot net 2.0.
>
> I saw the demo of FLEX 2.0 [Rich Internet Application] and was really
> impressed with its UI. I would like have similar user interface for my
> dot net application.
>
> I believe we can integrate FLEX 2.0 with dot net thru web services.
> Please correct it if I am wrong. But it seems I need to run JAVA web
> server in my web server. Is it true?
>
> Or shall I get FLEX 1.5 and FLEX 1.5 REMOTING and integrate it with my
> dot net assemblies.
>
> Please let me know if it is possible to have FLEX 2.0 or any previous
> version integrated with my dot net 2.0 application? Is there any
> example out there? I would love to have a better UI for my application.
> Please help me and provide more detail information. Thanks in advance!
>
>
>
>
>
>
> --
> 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/
 




RE: [flexcoders] Yahoo! Maps API

2006-03-26 Thread Matthew Simpson



Thanks for all the assistance folks!MatthewDavid Mendels <[EMAIL PROTECTED]> wrote:Hi,  I can add that we expect a Flash Player 8.5 (AS3/Flex2) revision so this will be possible in the relatively near term.  -David   > -Original Message- > From: flexcoders@yahoogroups.com  > [mailto:[EMAIL PROTECTED] On Behalf Of Mike Chambers > Sent: Sunday, March 26, 2006 1:16 AM > To: flexcoders@yahoogroups.com > Subject: Re: [flexcoders] Yahoo! Maps API >  > That is correct. >  > mike chambers >  > [EMAIL PROTECTED] >  > Brendan Meutzner wrote: > > Hey Matthew, > >  > > I'm going to go out on a limb here and suggest that the  > current swc is  > > only
 compatible with 1.5.  When I tried importing the it into a 2.0  > > project, it threw errors. > >  > > Someone correct me if I'm wrong. > >  > > Brendan > >  >  >  > -- > 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 >  >  >  >   >  >  >  >  
		New Yahoo! Messenger with Voice. Call regular phones from your PC for low, low rates.





--
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 in Eclipse

2005-11-25 Thread Matthew Ryan





If you 
are starting from scratch you might want to
 

  download Flex
  download Tomcat
  deploy two war files - flex.war and samples.war into a Tomcat 
  instance
  download Eclipse
  start 
  hacking the Flex samples
I 
only work with Flex 1.5 so I can't speak for what you might do in the case of 
evaluating Flex 2.0 and Flex Builder 
2.0Matt

  -Original Message-From: R*. S*.J* 
  [mailto:[EMAIL PROTECTED]Sent: Friday, 25 November 2005   19:14To: flexcoders@yahoogroups.comSubject: [flexcoders] 
  Flex in Eclipse
  Dear Developers,
  I am a biginner in flex , I want to write Flex in jsp code (J2ee) on 
  eclipse 3.1 ,how i do it?
  and if possible to write jsp in flex builder 2 please guide me,
  Thanks
  
  
  Yahoo! 
  Music Unlimited - Access over 1 million songs. Try it free. 

*~~~DISCLAIMER~~~*
This e-mail may contain confidential information. If you are not the intended recipient, please notify the sender immediately and delete this e-mail from your system. You must not disclose this email to anyone without express permission from the sender. The contents of all emails sent to, and received from, Optus may be scanned, stored, or disclosed to others by Optus at Optus' discretion. Optus has exercised care to avoid errors in the information contained in this e-mail but does not warrant that the information is error or omission free. 







--
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: Selecting/Unselecting Rows In A Datagrid

2005-08-30 Thread Matthew Kuehn
One solution is to build an array of the rows you want selected, and
then set the selectedIndices property of the datagrid to that array,
thusly:

function rowSelector( flipFlag:String ):Void {
  var aSelectedRows=Array();

  for ( var i=0; i < myDataGrid.length; i++ ) {
if ( myDataGrid.rows[i].item.foo == flipFlag || flipFlag == '' ) {
  aSelectedRows.push(i);
}
  }

  myDataGrid.selectedIndices = aSelectedRows;
}

Works like a charm. Props to cfbrianevans.

Thanks,
Matthew




 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] Selecting/Unselecting Rows In A Datagrid

2005-08-30 Thread Matthew Kuehn
I'd like to programatically set rows as selected or unselected in a
datagrid. For example, select all the rows where a certain column has
the value x. What is the proper way to do this? I've tried setting the
flags that seems like they should do what I want, but to no avail.
This is my latest attempt, which throws no errors, but neither does it
select or unselect any rows.

function rowSelector( flipFlag:String ):Void {
  for ( var i=0; i < myDataGrid.length; i++ ) {
if ( myDataGrid.rows[i].item.foo == flipFlag || flipFlag == '' ) {
  myDataGrid.listContent.listRow[i].state='selected';
} else {
  myDataGrid.listContent.listRow[i].state='normal';
}
  }
}

Any pointers? Perhaps I need to force the datagrid to redraw itself
after I set the selected rows? Or maybe I'm going about it all
wrong...you tell me. I'm sure there must be an easy way to do this,
but I'm low on reference material here, and Google hasn't helped me any.

Thanks,
Matthew




 Yahoo! Groups Sponsor ~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/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] Handling mx.controls.Alert.show() Yes/No Options (Or A Better Way To Do It)

2005-08-26 Thread Matthew Kuehn
How does one determine which button the user clicked when showing an
alert with multiple buttons? For example:

mx.controls.Alert.show('Are you sure you want to do
that?','',mx.controls.Alert.YES | mx.controls.Alert.NO,this,'','',NO);

How do I determine if they clicked yes or no? Or, is there a preferred
way to do this? I can't seem to find any good examples.

Thanks,
Matthew




 Yahoo! Groups Sponsor ~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/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/
 





Re: [flexcoders] Reorder tree via dragging

2005-07-07 Thread Matthew Shirey



As I am currently working with this, I can say that
dataForFormat("source") will give you a reference to the source object
of the drag drop operation.  I am not sure about the "items" one
though.  I've read mixed documentation, some say its
"treeItems".  Any rate, there's a formats array in the event
object that you can itterate through and see all of the available
formats if needed.

M.On 7/6/05, Matt Chotin <[EMAIL PROTECTED]> wrote:

















I think dataForFormat("items")
or dataForFormat("source"), not sure which is valid for Tree, might
give you the original items as opposed to the copies.

 

Matt

 









From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Sean McKibben
Sent: Wednesday, July 06, 2005
1:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Reorder tree
via dragging



 

So I'm trying to make a tree which can reorder its nodes by
dragging  
them. One of the things I wanted to do is prevent
a parent item from  
being dragged on to any of its children, and to
show that during the  
dragOver event.

In order to calculate whether the source is being
dragged on to any  
of its offspring, I've been comparing the  
event.dragSource.dataForFormat("treeItems")
first to  
firstValue=event.target.getDropParent().getTreeNodeAt

(event.target.getDropLocation()) then recursively
to the parents of  
firstValue.

This apparently doesn't work because dataForFormat
seems to hand me a  
copy of the items being dragged instead of an
actual reference, so  
the two values are never equal. I did note that
the items that  
dataForFormat give me, do contain references to
the real parents,  
data and other objects, it is just that the items
themselves are  
copies for some reason.

What I ended up doing is something like the
following:

if(checkParentDrop(myowncustom.TreeUtils.findDataItemNode

(view.TemplateAssemblyTree,
dragItems[i].getData())
   
, event.target.getDropParent().getTreeNodeAt 
(event.target.getDropLocation(
 action =
"">

private function checkParentDrop(source,
node):Boolean
 {

if(source == node)

return true;

if(node.getParent()!=null)

return checkParentDrop(source, node.getParent());

else

return false;
 }


public static function findDataItemNode(tree:mx.controls.Tree, 

o:Object):TreeNode
... recursively check the entire tree for the same
getData()  
reference ...

So basically instead of comparing items from 

event.dragSource.dataForFormat("treeItems"),
i have to recursively  
look them up by the reference they contain to
their getData()  
information, to get the actual reference to the
TreeNode which I then  
compare to the drop target and its ancestors for
referential equality.

This is horribly ugly, but it works. Is there a
better way that  
people have stumbled across to validate
tree->self drags? I wish that  
dataForFormat handed over references instead of
copies!

(sorry if this was discussed before; I'm
apparently bad at finding  
previously discussed topics in this list!)

Sean




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com










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



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



   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] bug of the minute: MenuBar, Scaling, and Sub Menus

2005-07-07 Thread Matthew Shirey



Thanks for the additional information.  Since I do understand a
bit of how flash is being used to present these UI elements, I do
understand, thanks to you, why there's no parent/child
relationship.  For me, its just really unfortunate.  Because
of the difficulty I have had with the scaling of an entire application,
I have had to drop it from the requirements for this application. 
My superiors were not thrilled, but they can easily see that its just
devouring precious time.  For now, I'm just ramping all of the
fonts very large for the whole application.  For those of us who
can actually see, we're going to want to take a step back from the
monitor, but its all I could come up with on my current time
line.  I'll explore scaling the whole application again once I get
this version out.  Thanks again for the information.

M.On 7/7/05, Manish Jethani <[EMAIL PROTECTED]> wrote:
On 7/7/05, Matthew Shirey <[EMAIL PROTECTED]> wrote:>  Uhm... to get right to the point... That's Crazy.  Why are MenuItems and> Menus not children??I'm not aware of the exact reason for this, but my guess is that they
are not children in order to support the following case:     The Box would normally clip its content -- including the dropdownmenus (if they were children of the MenuBar).
> I'm dealing with an application that I am trying> desperately to use scaling in to make it easier for visually impaired to> use.  But at every turn scaling seems to be broken.  I just found that with
> a ComboBox control scaling is also broken.  The control itself is fine, but> the drop down list when clicked on is not scaled properly.  To say that this> is frustrating would be a gross understatement.
It's the same for ComboBox: the dropdown is not a child of the component.If you decide to subclass the components to add scaling support, youwould have to override the setters for "scaleX" and "scaleY" and apply
the same value to the dropdown movie clips.  This may not be trivialfor both components, since the dropdowns are created only when needed. Thankfully the source for both ComboBox and MenuBar is available in
FlexforFlash.zip, so if you're truly determined you can do it.If you want to scale the entire app, then you should simply set scaleXand scaleY on the Application element.  That takes care of the menusand combo boxes.
--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



  
  





  
  
  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] bug of the minute: MenuBar, Scaling, and Sub Menus

2005-07-06 Thread Matthew Shirey



Uhm... to get right to the point... That's Crazy.  Why are
MenuItems and Menus not children??  I'm dealing with an
application that I am trying desperately to use scaling in to make it
easier for visually impaired to use.  But at every turn scaling
seems to be broken.  I just found that with a ComboBox control
scaling is also broken.  The control itself is fine, but the drop
down list when clicked on is not scaled properly.  To say that
this is frustrating would be a gross understatement.

The only thing I can think of that would be acceptable would be to
create my own menubar, menu, and menuitem controls all based on the
normal one and build the functionality into them that should have been
there in the first place.  I'd have to do that with every control
that was not implelented properly for scaling.  That would be a
monumental amount of work for me with my unfamiliarity of the internals
of these controls.

At the point I am really starting to regret my decision to use Flex for
this application.  I wish there was some help I could ask for, but
at this point I am getting the impression that this is just not
something Flex is made to do.  Thanks for what help you could
provide Manish, my anger is directed that Flex Development Team, not
you.  

Why have scalex and scaley properties when on many components they are seriously broken?

M.On 7/6/05, Manish Jethani <[EMAIL PROTECTED]> wrote:
On 7/6/05, Matthew Shirey <[EMAIL PROTECTED]> wrote:>  I am using embeded fonts, but its the whole sub menu that is not scaling.> You can see the difference in the borders and the margins around the text.
> It's really easy to see that the sub menus are not scaling at all when you> do a test where the menu has been scaled to 400%.So these are the different things we have: - MenuBar - MenuItem
 - MenuThe MenuBar contains a bunch of MenuItem's.  When you click on aMenuItem, it "pops up" a Menu -- the Menu is _not a child_ of theMenuItem or the MenuBar.  That's the reason why the scaling does not
apply to the menus.Your only option is to scale the menus individually (access them usingthe getItemAt function, etc.).  You'd also have to adjust the positionof the menus.--Flexcoders Mailing List
FAQ: 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
  
  
  

Computer software testing
  
  
Macromedia flex
  
  
Development
  
  


Software developer
  

   






  
  
  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] bug of the minute: MenuBar, Scaling, and Sub Menus

2005-07-06 Thread Matthew Shirey



I am using embeded fonts, but its the whole sub menu that is not
scaling.  You can see the difference in the borders and the
margins around the text.  It's really easy to see that the sub
menus are not scaling at all when you do a test where the menu has been
scaled to 400%.

M.On 6/30/05, JesterXL <[EMAIL PROTECTED]> wrote:









Is it the items or rather the text itself that does 
not scale?  The text can scale if you embed the font.
 
- Original Message ----- 
From: 
Matthew Shirey 

To: flexcoders@yahoogroups.com 
Sent: Thursday, June 30, 2005 5:05 PM
Subject: [flexcoders] bug of the minute: MenuBar, Scaling, and Sub 
Menus
Here's another bug that seems to have found me.  If you use 
scaling to make a MenuBar larger, it's menu items do not scale with it.  
They remain their normal size.  Does anyone know of a possible work around 
to this?  I need the menu items to scale as well.-- 
Matthew--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 



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



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



   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] bug of the minute: MenuBar, Scaling, and Sub Menus

2005-06-30 Thread Matthew Shirey



Here's another bug that seems to have found me.  If you use
scaling to make a MenuBar larger, it's menu items do not scale with
it.  They remain their normal size.  Does anyone know of a
possible work around to this?  I need the menu items to scale as
well.

-- Matthew



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



   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, C# Web Services, and Dates

2005-06-28 Thread Matthew Shirey



Well, Since Flex isn't automatically parsing the date correctly. 
It might be best for me to change the type on the Web Service side to
string, manually call the .ToString() method for the date there. 
Send the date as a string, then use the DateFormatter as you did and
manually parse it on the Flex side.  I played around with it a bit
more and I finally figured out what was going on.  Basically, if
the date contains milliseconds, then Flex parses it correctly.  If
not, then it fails to parse it.  I tried an experiment where I
added 1 millisecond to the values I was pulling from the database, and
then all worked fine.  Since adding and removing a millisecond to
make parsing work seems a little too hackish, I think I'll try the
string method I just mentioned.  It's a real problem though that I
hope is fixed in 2.0.  All of the work I do involves C# web
services.  Until now I haven't had a problem.  But this is a
pretty big wart.

-- MatthewOn 6/27/05, Matt Chotin <[EMAIL PROTECTED]> wrote:

















Yes, please try to play around with this
and if you figure out what's up file a bug report (http://www.macromedia.com/go/wish).
 If you can supply a WSDL that's even better because we can then try to verify
that it will be fixed in 2.0.  

 

Matt

 









From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Rick Bullotta
Sent: Monday, June 27, 2005 7:14
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex, C#
Web Services, and Dates



 

If you don't need HH:MM:SS
resolution, try this for a test:

 

Generate your WSDL, and save it to a
file.  Tweak the WSDL to use xsd:date instead of xsd:dateTime, point your
Flex app to the modified WSDL, and see if that addresses the issue.  There
are lots of posts I found on Google regarding .NET's dateTime
serialization woes…and it seems to, by default, serialize in varying
formats depending on resolution and time zone.  To be fair, the formats it
is generating should be properly parsed/processed on the Flex side based on the
following:

 

Also, I experimented a bit with the
DateFormatter object's parseDateString method and it worked properly on
all of the formats you generated

 

   


   
    

   


 

 
  

 

 

Seems like there's a disconnect
somewhere inside of the deserialization in Flex, but I can't be certain.
 Sounds like it is worth creating a bug report.

 

- Rick

 



 







From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Matthew Shirey
Sent: Monday, June 27, 2005 9:36
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex, C#
Web Services, and Dates



 

well, the WSDL says:

<s:element minOccurs="1" maxOccurs="
1" name="StartDate" type="
s:dateTime" />

Because I am close to pulling all my hair out on this one, I
decided to try something on the server end.  In the web method, I hard
coded the StartDate propery to return DateTime.Now.  To my surpise, this
actually worked.  I then tried hardcoding it to return new DateTime(2005,
6, 1, 0, 0, 0, 0).  This produced the original error.  It seems like
things are a little wierd on both ends.  Depending on the date value on
the server end, the server is actually sending the XML formatted
differently.  I am more confused now than ever.  Does any one here
have any experience using C# Web Services with Flex using the C# DateTime
type?  I would be interested in some best practices type guidlines. 
However the DateTime.Now value is delt with, it works, but any other date value
I create doesn't work.  It's quite confusing...

-- Matthew













--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com










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



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



   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, C# Web Services, and Dates

2005-06-27 Thread Matthew Shirey



Following up on my last email... Here's some examples of different
dates providing slightly different formats coming from the web service:

Hardcoded to DateTime.Now (this is the only one that seems to work with flex):

<StartDate>2005-06-27T18:40:41.390625-07:00StartDate> 


Hardcoded to new DateTime(), no parameters:

<StartDate>0001-01-01T00:00:00StartDate>


Hardcoded to new DateTime(2006, 6, 1, 0, 0, 0):

<StartDate>2006-06-01T00:00:00StartDate>


Reading value from database:

<StartDate>2005-06-01T00:00:00StartDate>


I even tried converting to local time using dt.toLocalTime():

2005-05-31T17:00:00-07:00

this actually seems like its closest to the DateTime.Now attempt, but
it is still not recognized by flex.  It seems like flex needs to
have the milliseconds there?  Anyway, I sure hope someone else has
a clue what to do, this one really has me stumped.  I'm close to
coding my own date object to hold the year, month, day, hour, minutes,
and seconds values seprately and turn them back into a date once flex
has them.  Again, this seems a little extreme for a situation
where it should just work...  any thoughts?

-- Matthew



On 6/27/05, Matthew Shirey <[EMAIL PROTECTED]> wrote:
well, the WSDL says:

<s:element minOccurs="1" maxOccurs="
1" name="StartDate" 
type="s:dateTime" />

Because I am close to pulling all my hair out on this one, I decided to
try something on the server end.  In the web method, I hard coded
the StartDate propery to return DateTime.Now.  To my surpise, this
actually worked.  I then tried hardcoding it to return new
DateTime(2005, 6, 1, 0, 0, 0, 0).  This produced the original
error.  It seems like things are a little wierd on both
ends.  Depending on the date value on the server end, the server
is actually sending the XML formatted differently.  I am more
confused now than ever.  Does any one here have any experience
using C# Web Services with Flex using the C# DateTime type?  I
would be interested in some best practices type guidlines. 
However the DateTime.Now value is delt with, it works, but any other
date value I create doesn't work.  It's quite confusing...

-- Matthew
On 6/27/05, Rick Bullotta <
[EMAIL PROTECTED]> wrote:

















The -MM-DDTHH:MM:SS format is from .NET's
default XML serializer, which uses something like an ISO date format (.NET's
format string "s").   When you dump it on the server side, it is probably just
using the object's ToString() method, which seems like it chose a different
format.  One question, I guess, is what schema data type the WSDL is telling
Flex to expect.  Second question (to the Macromedia crew) is how Flex handles
deserialization depending on what that schema data type is….

 

- Rick

 









From: 

flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 

On Behalf Of Matthew Shirey
Sent: Monday, June 27, 2005 6:41
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex, C#
Web Services, and Dates



 

Thanks for the reply, I
did try what you suggested just to be sure, but like I said before, it seems
that by the time the result event handler has fired, the data is already
bad.  I just cannot see why the XML in the SOAP response is:

2005-06-01T00:00:00

yet the object created is:

StartDate[Local Time] : Wed Dec 31 16:00:00 1969
(+0:00)


this just doesn't make any sense...

-- Matthew



On 6/27/05, Rick Bullotta <

[EMAIL PROTECTED]>
wrote:



Here's an example with an HttpService, you can
do something similar:

 

Add:

 

result="manageData(event)"

 

…to your mx:HttpService tag…

 

Define the handler something like this, where
it will look through the returned data structure and replace the StartDate
objects with a "parsed" version…in my example, my structure is a
multi-row XML document.  One of the elements is named "DateTime"
and is in the same format you are trying to parse.  If you only have a
single row, the handler might look slightly different.

 

function manageData(event) {

   
for(var i:Number=0; i< event.result.Row.length; i++) {

   
    var d:Date =
parseDateString(event.result.Row[i].DateTime);

   
   
event.result.Rowsets.Rowset.Row[i].DateTime = d;

   
}

}

   
   
    



- Rick











From: 

flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Matthew Shirey
Sent: Monday, June 27, 2005 6:13
PM
To: flexcoders@yahoogroups.com
Subject: Re:
[flexcoders] Flex, C# Web Services, and Dates



 



Might you have some information on where to put this
exactly?  It seems like it's too late by the time the object has been
created from the result of the web service call.  All it seems to contain
is "Invalid Date".  When I look at the object that was created
in the Network Monitor,

Re: [flexcoders] Flex, C# Web Services, and Dates

2005-06-27 Thread Matthew Shirey



well, the WSDL says:

<s:element minOccurs="1" maxOccurs="
1" name="StartDate" 
type="s:dateTime" />

Because I am close to pulling all my hair out on this one, I decided to
try something on the server end.  In the web method, I hard coded
the StartDate propery to return DateTime.Now.  To my surpise, this
actually worked.  I then tried hardcoding it to return new
DateTime(2005, 6, 1, 0, 0, 0, 0).  This produced the original
error.  It seems like things are a little wierd on both
ends.  Depending on the date value on the server end, the server
is actually sending the XML formatted differently.  I am more
confused now than ever.  Does any one here have any experience
using C# Web Services with Flex using the C# DateTime type?  I
would be interested in some best practices type guidlines. 
However the DateTime.Now value is delt with, it works, but any other
date value I create doesn't work.  It's quite confusing...

-- Matthew
On 6/27/05, Rick Bullotta <[EMAIL PROTECTED]> wrote:

















The -MM-DDTHH:MM:SS format is from .NET's
default XML serializer, which uses something like an ISO date format (.NET's
format string "s").   When you dump it on the server side, it is probably just
using the object's ToString() method, which seems like it chose a different
format.  One question, I guess, is what schema data type the WSDL is telling
Flex to expect.  Second question (to the Macromedia crew) is how Flex handles
deserialization depending on what that schema data type is….

 

- Rick

 









From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Matthew Shirey
Sent: Monday, June 27, 2005 6:41
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex, C#
Web Services, and Dates



 

Thanks for the reply, I
did try what you suggested just to be sure, but like I said before, it seems
that by the time the result event handler has fired, the data is already
bad.  I just cannot see why the XML in the SOAP response is:

2005-06-01T00:00:00

yet the object created is:

StartDate[Local Time] : Wed Dec 31 16:00:00 1969
(+0:00)


this just doesn't make any sense...

-- Matthew



On 6/27/05, Rick Bullotta <
[EMAIL PROTECTED]>
wrote:



Here's an example with an HttpService, you can
do something similar:

 

Add:

 

result="manageData(event)"

 

…to your mx:HttpService tag…

 

Define the handler something like this, where
it will look through the returned data structure and replace the StartDate
objects with a "parsed" version…in my example, my structure is a
multi-row XML document.  One of the elements is named "DateTime"
and is in the same format you are trying to parse.  If you only have a
single row, the handler might look slightly different.

 

function manageData(event) {

   
for(var i:Number=0; i< event.result.Row.length; i++) {

   
    var d:Date =
parseDateString(event.result.Row[i].DateTime);

   
   
event.result.Rowsets.Rowset.Row[i].DateTime = d;

   
}

}

   
   
    



- Rick











From: 
flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Matthew Shirey
Sent: Monday, June 27, 2005 6:13
PM
To: flexcoders@yahoogroups.com
Subject: Re:
[flexcoders] Flex, C# Web Services, and Dates



 



Might you have some information on where to put this
exactly?  It seems like it's too late by the time the object has been
created from the result of the web service call.  All it seems to contain
is "Invalid Date".  When I look at the object that was created
in the Network Monitor, it does seem to have a date, but not the one I sent
it.  

From the network monitor, here's the date piece of the xml recieved in the SOAP
"Response" entry:

2005-06-01T00:00:00

Here's the piece of the object created from the Network Monitor Web Service
"onResult" entry :

StartDate[Local Time] : Wed Dec 31 16:00:00 1969
(+0:00)

as you can see, it doesn't even have the proper value in it.  I've created
an onResult event handler to try to print out the value and all I get from
obj.StartDate is "Invalid Date".

This one really has me stuck guys.  Any help would be greatly appreciated,
thank you,

-- Matthew



On
6/25/05, Manish Jethani <[EMAIL PROTECTED]>
wrote:

On 6/25/05, Rick Bullotta
<
[EMAIL PROTECTED]> wrote:

> Is there a way to use the import statement in "inline" script in
an
>  block?  The compiler complains if we try this.


Yes, certainly.

  
import foo.Bar;

function blah():Void
{
  Bar.bar();
}
  

Must be something wrong with the way you are importing.  If you still

have the problem, you could post the exact compiler error.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt


Re: [flexcoders] embedding PDF file

2005-06-27 Thread Matthew Shirey



Just a note, IFRAME works in the current version of Firefox.   I
believe it also works in current version of Netscape as well...

-- MatthewOn 6/27/05, Longley, Andrew (N-Aviture) <[EMAIL PROTECTED]> wrote:
I imagine the IFrame solution might work for you.  It's a little toughto implement and as far as I know it's IE only due to using iframes.  Ifyou can provide a source that is the URL of the PDF, and can accept IE
only, you might give it a try.http://www.coenraets.com/viewarticle.jsp?articleId=95Andrew> -Original Message-> From: 
flexcoders@yahoogroups.com> [mailto:flexcoders@yahoogroups.com] On Behalf Of Ghislain Simard> Sent: Saturday, June 25, 2005 7:58 PM
> To: flexcoders@yahoogroups.com> Subject: [flexcoders] embedding PDF file>> Is there a way to Embed PDF document inside Flex?>>
 --> 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 ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search 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



  
  





  
  
  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, C# Web Services, and Dates

2005-06-27 Thread Matthew Shirey



Thanks for the reply, I did try what you suggested just to be sure, but
like I said before, it seems that by the time the result event handler
has fired, the data is already bad.  I just cannot see why the XML
in the SOAP response is:

2005-06-01T00:00:00

yet the object created is:

StartDate[Local Time] : Wed Dec 31 16:00:00 1969 
(+0:00)

this just doesn't make any sense...

-- Matthew
On 6/27/05, Rick Bullotta <[EMAIL PROTECTED]> wrote:

















Here's an example with an
HttpService, you can do something similar:

 

Add:

 

result="manageData(event)"

 

…to your mx:HttpService tag…

 

Define the handler something like this,
where it will look through the returned data structure and replace the
StartDate objects with a "parsed" version…in my example, my
structure is a multi-row XML document.  One of the elements is named "DateTime"
and is in the same format you are trying to parse.  If you only have a single
row, the handler might look slightly different.

 

function manageData(event) {

    for(var i:Number=0; i< event.result.Row.length;
i++) {

   
    var
d:Date = parseDateString(event.result.Row[i].DateTime);

   
   
event.result.Rowsets.Rowset.Row[i].DateTime
= d;

    }

}

   
   
    



- Rick











From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Matthew Shirey
Sent: Monday, June 27, 2005 6:13
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex, C#
Web Services, and Dates



 

Might you have some
information on where to put this exactly?  It seems like it's too late by
the time the object has been created from the result of the web service
call.  All it seems to contain is "Invalid Date".  When I
look at the object that was created in the Network Monitor, it does seem to
have a date, but not the one I sent it.  

From the network monitor, here's the date piece of the xml recieved in the SOAP
"Response" entry:

2005-06-01T00:00:00

Here's the piece of the object created from the Network Monitor Web Service
"onResult" entry :

StartDate[Local Time] : Wed Dec 31 16:00:00 1969
(+0:00)

as you can see, it doesn't even have the proper value in it.  I've created
an onResult event handler to try to print out the value and all I get from
obj.StartDate is "Invalid Date".

This one really has me stuck guys.  Any help would be greatly appreciated,
thank you,

-- Matthew



On 6/25/05, Manish
Jethani <[EMAIL PROTECTED]>
wrote:

On 6/25/05, Rick Bullotta <
[EMAIL PROTECTED]>
wrote:

> Is there a way to use the import statement in "inline" script in
an
>  block?  The compiler complains if we try this.


Yes, certainly.

  
import foo.Bar;

function blah():Void
{
  Bar.bar();
}
  

Must be something wrong with the way you are importing.  If you still

have the problem, you could post the exact compiler error.


--
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com










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



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



   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, C# Web Services, and Dates

2005-06-27 Thread Matthew Shirey



Might you have some information on where to put this exactly?  It
seems like it's too late by the time the object has been created from
the result of the web service call.  All it seems to contain is
"Invalid Date".  When I look at the object that was created in the
Network Monitor, it does seem to have a date, but not the one I sent
it.  

>From the network monitor, here's the date piece of the xml recieved in the SOAP "Response" entry:

2005-06-01T00:00:00

Here's the piece of the object created from the Network Monitor Web Service "onResult" entry :

StartDate[Local Time] : Wed Dec 31 16:00:00 1969 
(+0:00)
as you can see, it doesn't even have the proper value in it.  I've
created an onResult event handler to try to print out the value and all
I get from obj.StartDate is "Invalid Date".

This one really has me stuck guys.  Any help would be greatly appreciated, thank you,

-- Matthew
On 6/25/05, Manish Jethani <[EMAIL PROTECTED]> wrote:
On 6/25/05, Rick Bullotta <[EMAIL PROTECTED]> wrote:> Is there a way to use the import statement in "inline" script in an>  block?  The compiler complains if we try this.
Yes, certainly.  import foo.Bar;function blah():Void{  Bar.bar();}  Must be something wrong with the way you are importing.  If you still
have the problem, you could post the exact compiler error.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search 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



  
  





  
  
  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, C# Web Services, and Dates

2005-06-24 Thread Matthew Shirey



Hey all, I sure hope someone out there can make sense of the chaos that seems to be dates.

I recently discovered the hard way that flex dates are in UTC by
default when you create them, when you send them as a parameter to a C#
web service, you need to use the .ToLocalTime() method (in c#) because,
by default, C# uses local times.  I was trying to compare a date
created in Flex as: 

var dtFlex:Date = new Date(1974, 0, 26); // should be jan 26th 1974, flex months are indexed at 0

on the C# side it was:

DateTime dtCSharp = new Date(1974, 1, 26); // should be jan 26th 1974, c# months are indexed at 1

when I passed dtFlex to the web service, then on the C# side tried to
compare it to dtCSharp, they were not coming back equal.  Reason
was, inside, Flex actually made its date 01/26/1974 8:00 AM (I'm on
pacific time here).  It was automatically making the date in UTC
format.  To actually make the comparison I had to do this:

if (dtFlex.ToLocalTime() == dtCSharp)...

That was headache enough.  My main problem though is when I go the
other direction, where I call a C# web service that returns a
date.  In the web service explorer in flex it recognizes the
result property as a date.  Well, sorta, it actually says
"dateTime" for the type.  I see that's not exactly the same as
Date, and I imagine thats part of the problem.  Anyway, when I try
to display that result it evaluates to "Invalid Date".  When I
look at the Network Monitor to see what is actually being returned by
the web service, this is what I see:

1974-01-26T00:00:00

Now I'm assuming that this is not the format Flex expects for a
date?  If not, I guess it's easy enough to make my own date
parser, but it seems like this should just work.  Is there some
specific format I am supposed to return the date in from the C#
side?  Or is there something I need to do on the Flex side to make
this equation happy?  Please, any help would be appreciated, I'm
pulling my hair out here.  Dates are only fun if they are with a
woman... :(

-- Matthew



--
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 the Yahoo! Terms of Service.










  1   2   >