RE: [flexcoders] Restricting number of lines in a multiline textarea

2007-05-29 Thread Alex Harui
Not to my knowledge.  You can track the number of lines and set maxChars
when you hit the end of the number of lines you want, but that's not a
perfect solution.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of paromitadey
Sent: Monday, May 28, 2007 9:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Restricting number of lines in a multiline
textarea

 

Hello All,

Is there any way to restrict the number of lines entered in a multiline 
textarea? Something similar to maxRows/maxLines in html.

Regards,
Paromita

 



RE: [flexcoders] Struggle with TileList refresh

2007-05-29 Thread Alex Harui
The largest hammer is invalidateList().  Id be putting a listener for
collectionChange on the dataprovider to see if you're getting
notifications or not.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ben Marchbanks
Sent: Monday, May 28, 2007 7:59 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Struggle with TileList refresh

 

Yes I think my XML is well formed - not sure how to trace the overrides
set 
data()

Interestingly I did find that if I change the TileList display
dimensions to be 
very small then restore to original size this obviously forces the
itemRenderer 
to refresh - there's gotta be a better way to force it without using a
resize 
effect.

Tracy Spratt wrote:
 Is the overrides set data() function in the renderer being called when
 you expect?
 
 
 
 And you are using the XML api (appendChild, etc.)
 
 Tracy
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Ben Marchbanks
 Sent: Monday, May 28, 2007 9:21 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: Re: [flexcoders] Struggle with TileList refresh
 
 
 
 H after rewriting the process to use XML the result is the
same.
 
 itemRenderer just will not refresh its display while the underlying
XML 
 dataProvider is actually modified.
 
 I'm about to abandon the TileList in favor of a AS created display
array
 after 
 spending 2 days on what should be a simple implementation. I still
 believe 
 there's a simple solution - something I am missing.
 
 Tracy Spratt wrote:
 For dynamically changing data, avoid XMLList since, like Array, its
 methods do not dispatch the events necessary to update the ui.



 Instead, use XML, or XMLListCollection.



 Tracy



 

 From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 ] On
 Behalf Of pdflibpilot
 Sent: Monday, May 28, 2007 10:59 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Struggle with TileList refresh



 I have a tileList that does not update its itemRenderer when the
 dataProvider is changed. In one scenario I have a drag and drop to
the
 TileList that always updates the dataProvider (XMLList) but will not
 reflect the change in the display. I can force a refresh by iterating
 over the XMLList like so after a drag/drop event

 **workaround***
 var n = screensList.length()
 for(var i:int=0; i  n; i++){
 IList(navScreens.dataProvider)[i].displaySeq = i
 }

 Okay that works, the TileList gets refreshed, although I would expect
 there is something I am missing that would do this automatically.

 Scenario 2
 I created a new state that presents a small editing window to change
 the data for items in the same TileList - this works fine for
changing
 the data directly in the dataProvider(XMLList). When the state is
 returned to baseState the TileList once again does not refresh - If I
 click on the item just edited and reopen the editor all the changes
 appear in the editor window !. Trying the workaround used in Scenario
 1 does not refresh the list.

 Is there not a fool-proof method to force TileList to always reflect
a
 change in its dataProvider ? 




 

-- 
Ben Marchbanks

::: alQemy ::: transforming information into intelligence
http://www.alQemy.com http://www.alQemy.com 

::: magazooms ::: digital magazines
http://www.magazooms.com http://www.magazooms.com 

Greenville, SC
864.284.9918

 



Re: [flexcoders] Showing item roll over color in a data grid manually

2007-05-29 Thread learner

use the hitData object of the ChartItemEvent class

sample is as follows :


?xml version=1.0?
!-- Simple example to demonstrate the PieChart control. --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute

   mx:Script
   ![CDATA[
   import mx.controls.Alert;
   import mx.collections.ArrayCollection;
   import mx.charts.events.ChartItemEvent;
   [Bindable]
   private var medalsAC:ArrayCollection = new ArrayCollection( [
   { Country: USA, Gold: 35, Silver:39, Bronze: 29 },
   { Country: China, Gold: 32, Silver:17, Bronze: 14 },
   { Country: Russia, Gold: 27, Silver:27, Bronze: 38 } ]);

   private function displayGold(data:Object, field:String,
index:Number, percentValue:Number):String {
   var temp:String= (  + percentValue).substr(0,6);
   return data.Country + :  + '\n' + Total Gold:  + data.Gold +
'\n' + temp + %;
   }
   private function rollOverp(evt:ChartItemEvent){
   dg.selectedIndex =evt.hitData.chartItem.index
   }
   ]]
   /mx:Script

   mx:PieChart id=chart height=334 width=374
   showDataTips=true dataProvider={medalsAC}  x=21 y=10
themeColor=#804000   itemRollOver=rollOverp(event) 
   mx:series
   mx:PieSeries labelPosition=callout field=Gold
labelFunction=displayGold/
   /mx:series
   /mx:PieChart
   mx:DataGrid  id =dg dataProvider={medalsAC} x=441 y=323/
/mx:Application

Regards
PS ε

On 5/26/07, Sandeep Malik [EMAIL PROTECTED] wrote:


  Guys,

We are having a data grid and a pie chart which show the same data.
What we want is when user does a mouse over (or item roll over)
over a wedge in pie chart, then the corresponding row in data grid
should also show a itemRollOver color and vice versa.

Any suggestions will be appreciated.

Regards,
Sandeep

 



RE: [flexcoders] How to get the target node in dragEnter()

2007-05-29 Thread Alex Harui
I don't think the default tree behavior is to set selectionItem on
dragEnter.  There doesn't look like there is a documented way to do
this, but maybe using some mx_internal stuff (_dropData) you can get
what you want.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Monday, May 28, 2007 7:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to get the target node in dragEnter()

 

I need a reference to the tree/xml node that is the current target of a
drag/drop operation from within dragEnter.

All of the examples I see use calculateDropIndex and set the
selectedItem, but I do not want to select the tree item on dragOver.

How can I tell what the drop target node is?

Tracy

 



RE: [flexcoders] changing focus between textinput fields?

2007-05-29 Thread Alex Harui
focusManager.getNextFocusManagerComponent

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of candysmate
Sent: Monday, May 28, 2007 12:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] changing focus between textinput fields?

 

I have an application which is an upgrade for previous DOS users
(remember DOS? :) ). As textinput fields have an 'Enter' event, I
wondered how I could change focus to the next textfield in the
tabindex group when the enter key is pressed please?

 



RE: [flexcoders] Tree and XML data containing two similar text nodes

2007-05-29 Thread Alex Harui
This is a known bug.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of deh_ats
Sent: Monday, May 28, 2007 3:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tree and XML data containing two similar text
nodes

 

Hi there,

There must be something terribly wrong with the Tree component. Here
is a very basic Flex app sample in which I try to have a Tree
component render some very basic XML data.

The thing is that in this XML, two text nodes have the same value (a
in my exemple). I can't see why this would be any problem. However,
when you fully expand the Tree, you'll notice that you just can't
rollOver and select one of the nodes. You may rollOver and select a
first node, but when trying to roll over the other one, the Tree
highlights the other node, and you cannot select it at all!

It looks like for the Tree, there was only one XML instance for this
text node, and that both itemRenders rendered this same object.

I understand this might have to do with the fact that XML objects are
compared by value, not by reference (unlike as2 XMLNodes if I remember
correctly):

var n1:XML=new XML(item/);
var n2:XML=new XML(item/);
trace(n1==n2);// output:true

Note that this is just one of the numerous bugs I encountered when
dealing with the Tree component and XML. But I chose to post on this
one because it's pretty basic.

Any help or comment would be much appreciated!

Please tell me that I got something wrong and that the Tree component
isn't actually broken...

:)

Here's the MXML (bug found when compiled with Flex Builder 2.0.1, Mac
OSX and Win XP. Hotfix2 didn't fix anything): 

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=absolute

mx:Script
![CDATA[
import mx.utils.UIDUtil;

[Bindable]
public var xmlData:XML = rootitem1a/item1item2a/item2/root;

// this is just to display something
public function labelFunc(item:Object):String
{
return node; 
}

]]
/mx:Script
mx:Tree dataProvider={xmlData} labelFunction=labelFunc x=10
y=10 width=245 height=204/mx:Tree

/mx:Application

 



RE: [flexcoders] getPixels() returns byteArray bigger than rectangle

2007-05-29 Thread Alex Harui
Each color channel and alpha channel get a byte

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of maybe later...
Sent: Sunday, May 27, 2007 2:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] getPixels() returns byteArray bigger than
rectangle

 


if I do 
var rec:Rectangle = new Rectangle(0,0,10,10); 
var barr:ByteArray = imgObj.bitmapData.getPixels(rec);

the byteArray's size is 400 and not 100. why's that ?

 



RE: [flexcoders] RemoteClass

2007-05-29 Thread Michael Herron
Have you strongly reference the com.beans.Sale class in your Application? Your 
RemoteClass meta-data looks fine, but if you've not got a hard reference to the 
class inside your flex app, it won't be compiled in to the SWF and won't be 
mapped correctly at runtime. You can get round this by just adding an unused 
variable somewhere of type com.beans.Sale. (there maybe a more elegant way to 
get round this).

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of André 
Rodrigues Pena
Sent: 28 May 2007 12:48
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RemoteClass

 

Hi all,

I have a Java service that returns an ArrayList of type Sale.
At the Flex application I also have the type Sale, the simplifyed
version is this:

package beans
{
[Managed]
[RemoteClass(alias=com.beans.Sale)]
public class Sale {
public var id:int;
public var customer:Customer;
public var product:Product;
}
}

Although, when I trigger the RemoteObject to retrieve the ArrayList of
Sales (ICollectionView at client), Flex seems to be treating it as a
collection of Object, not Sale.

Is this conversion (Object - Sale) to be done automatically? What's wrong?
thanks

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br

 



[flexcoders] Error trying to load CFEclipse plugin into FlexBuilder standalone

2007-05-29 Thread Ariel Jakobovits
Here is the stack trace of an error that is preventing me from using CFEclipse 
within FlexBuilder 2.0.1. I am wondering if there is a resolution for this, and 
if not, if this error can be avoided by using FlexBuilder as a plugin into 
Eclipse.

java.lang.NullPointerException
 at org.cfeclipse.cfml.editors.CFMLEditor.initializeEditor(CFMLEditor.java:311)
 at 
org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.init(AbstractDecoratedTextEditor.java:216)
 at org.cfeclipse.cfml.editors.CFMLEditor.init(CFMLEditor.java:253)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
 at java.lang.reflect.Constructor.newInstance(Unknown Source)
 at java.lang.Class.newInstance0(Unknown Source)
 at java.lang.Class.newInstance(Unknown Source)
 at 
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:162)
 at 
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:142)
 at 
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:129)
 at 
org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:48)
 at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:240)
 at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
 at 
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:236)
 at 
org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(EditorDescriptor.java:252)
 at org.eclipse.ui.internal.EditorManager.createPart(EditorManager.java:842)
 at 
org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:562)
 at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:384)
 at 
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
 at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:283)
 at 
org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:126)
 at 
org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:269)
 at 
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
 at 
org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:391)
 at 
org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1102)
 at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1051)
 at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1256)


--
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] Flex HotFix 2 and Cairngorm 2.2

2007-05-29 Thread Tom Chiverton
On Friday 25 May 2007, Alistair McLeod wrote:
 HotFix 2 for Flex has been released, and as part of that release, some
 classes have moved from the main SDK into FDS (eg, Consumer). 

Bwuh !?! I assume this is because the classes were only ever intended to be 
used by FDS-based applications ?

But effectively dropping public classes in a minor point update can't be good, 
can it ?

-- 
Tom Chiverton
Helping to economically optimise front-end web-readiness
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

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


[flexcoders] Print in Landscape mode

2007-05-29 Thread Jaganathan.K
any idea on how to print a page in landscape mode?



Re: [flexcoders] Linux Flash Player 9 buggy ?

2007-05-29 Thread Tom Chiverton
On Monday 28 May 2007, Marcelo de Moraes Serpa wrote:
 However, I found out that the Linux version of Flash Player 9 appears to be
 somewhat buggy. It starts with the context menu, though not a bug in
 itself, its appearance  is kind of ugly and out of context.

shrug
Hardly anyone uses it, as far as I can tell.

 Then, in the official adobe website, the dhtml drop-down menus appear below
 the flash header.

This is a Firefox bug - you'll notice Konqueror doesn't have the same problem.

 I just feel that Adobe currently only fills some gaps and don't treat the
 problem from the root. The lack of Linux Flash Player releases for quite
 some time is an example of it.

But as a counter example, they have started releasing them more or less in 
sync now, and committed to do so in future.

-- 
Tom Chiverton
Helping to assertively cluster enterprise e-services
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

* 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] Re: Flex and Flex Data Services Hosting .... Silverlight is coming ...

2007-05-29 Thread Tom Chiverton
On Monday 28 May 2007, Joseph S. Terry, Jr. wrote:
 Does anyone know of a host that is FDS, that is JTA compatible and
 cheaper than US$30 per month.

You plan to support thousends of users but can't spare 15 pounds a month ?

-- 
Tom Chiverton
Helping to heterogeneously extend unique materials
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

* 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] Error trying to load CFEclipse plugin into FlexBuilder standalone

2007-05-29 Thread Tom Chiverton
On Tuesday 29 May 2007, Ariel Jakobovits wrote:
 Here is the stack trace of an error that is preventing me from using
 CFEclipse within FlexBuilder 2.0.1. I am wondering if there is a resolution
 for this, and if not, if this error can be avoided by using FlexBuilder as
 a plugin into Eclipse.

That appears to be the best way to use FlexBuilder, if you want to use other 
Eclipse plugins too.

-- 
Tom Chiverton
Helping to conveniently drive out-of-the-box users
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.



Re: [flexcoders] Restricting number of lines in a multiline textarea

2007-05-29 Thread Tom Chiverton
On Tuesday 29 May 2007, Alex Harui wrote:
 Not to my knowledge.  You can track the number of lines and set maxChars
 when you hit the end of the number of lines you want, but that's not a
 perfect solution.

Do that on keyDown() and throw away the event if it's beyond the end, and you 
should be laughing.

-- 
Tom Chiverton
Helping to dynamically mesh next-generation platforms
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

* 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] Re: DataGrid with multiple rowheaders / colheaders - Flex 3?

2007-05-29 Thread Gunnar André Reinseth

Thanks for the reply!

To clarify, see the following picture which illustrates a typical report
that i want to model:

http://www.reinseth.org/example_grid.png

By multiple column headers I mean column groups, which I guess can be
achieved by using the item renderers. The same goes for row headers/groups,
but they can in most cases be represented by a tree (so a TreeGrid should
suffice).

What I'm looking for, is a finished component that supports all this...

Best regards,
Gunnar A. Reinseth

On 5/23/07, Andriy Panas [EMAIL PROTECTED] wrote:


  Hi,

However, i've still failed to find people
 extending the DataGrid component to allow for multiple row/column
headers
 and groups and row/column footers.

I would like you to clarify, what do you mean by having multiple
column headers for DataGrid.

You can use item renderer for column header to place more than one
control inside Datagrid's column header.

As for supporting footer in Datagrid, you can find this post helpful:
http://blogs.adobe.com/aharui/2007/04/datagrid_footers.html#comments

-
With best regards,
JabbyPanda

 



[flexcoders] Re: Tree and XML data containing two similar text nodes

2007-05-29 Thread deh_ats
Well, that's bad news. 

I'm surprised I never found any blog post, forum thread, bug report,
or anything talking about this (god knows I tried).

As far as I'm concerned, the Tree component seems almost useless,
since you can't even display (let alone editing) such a basic XML data
file. Users can't trust an application that don't let them select an
item (and highlights another) for just no reason. 

Maybe someone knows some kind of workaround, or anything that could
help me? Or Even a link to a discussion about this issue?






--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 This is a known bug.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of deh_ats
 Sent: Monday, May 28, 2007 3:39 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Tree and XML data containing two similar text
 nodes
 
  
 
 Hi there,
 
 There must be something terribly wrong with the Tree component. Here
 is a very basic Flex app sample in which I try to have a Tree
 component render some very basic XML data.
 
 The thing is that in this XML, two text nodes have the same value (a
 in my exemple). I can't see why this would be any problem. However,
 when you fully expand the Tree, you'll notice that you just can't
 rollOver and select one of the nodes. You may rollOver and select a
 first node, but when trying to roll over the other one, the Tree
 highlights the other node, and you cannot select it at all!
 
 It looks like for the Tree, there was only one XML instance for this
 text node, and that both itemRenders rendered this same object.
 
 I understand this might have to do with the fact that XML objects are
 compared by value, not by reference (unlike as2 XMLNodes if I remember
 correctly):
 
 var n1:XML=new XML(item/);
 var n2:XML=new XML(item/);
 trace(n1==n2);// output:true
 
 Note that this is just one of the numerous bugs I encountered when
 dealing with the Tree component and XML. But I chose to post on this
 one because it's pretty basic.
 
 Any help or comment would be much appreciated!
 
 Please tell me that I got something wrong and that the Tree component
 isn't actually broken...
 
 :)
 
 Here's the MXML (bug found when compiled with Flex Builder 2.0.1, Mac
 OSX and Win XP. Hotfix2 didn't fix anything): 
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml 
 layout=absolute
 
 mx:Script
 ![CDATA[
 import mx.utils.UIDUtil;
 
 [Bindable]
 public var xmlData:XML = rootitem1a/item1item2a/item2/root;
 
 // this is just to display something
 public function labelFunc(item:Object):String
 {
 return node; 
 }
 
 ]]
 /mx:Script
 mx:Tree dataProvider={xmlData} labelFunction=labelFunc x=10
 y=10 width=245 height=204/mx:Tree
 
 /mx:Application





[flexcoders] Datagrid with bound dataProvider not updating.

2007-05-29 Thread beecee1977
Hi,

I have a datagrid with the dataProvider bound to an array of objects. 

If I remove one of the items from the array the datagrid doesn't update 
to reflect this. Debugging and looking at the dataProvider's length it 
has updated, but that's not what's displayed. 

I've tried using validateNow() but that doesn't work. If I click on one 
of the column headers it updates. Currently I'm having to explicitly 
set the dataProvider in code, but then I lose the binding. 

Any suggestions?

Thanks
Bill 



[flexcoders] Re: VideoDisplay volume problem

2007-05-29 Thread beecee1977
Have you looked at the reply in this thread?

Anyway, here's another thread on same:
http://tech.groups.yahoo.com/group/flexcoders/message/75277

If you don't want to subclass, another trick that might help is setting 
the volume to some random value before setting it to the value you 
want. 

(I think if the volume's value isn't changing it will be ignored, but 
that it has to be set after the video is loaded, so if you keep setting 
it after loading to what it was set to before (but ignored), it won't 
change. I'm not sure I understood that sentence, but I hope it helps! :-
) )

--- In flexcoders@yahoogroups.com, Paul DeCoursey [EMAIL PROTECTED] wrote:

 I am having an issue with a VideoDisplay.  It seems to ignore any
 volume setting I set.  I have tried to set it to 0 at many different
 places and times in my code and every single time I can still hear the
 audio when the video starts.  Has anyone else had this issue?  Does
 anyone have a workaround?
 
 Thanks,
 
 Paul





[flexcoders] Re: Memory leak? IE7 Crashes!

2007-05-29 Thread beecee1977
Still crashing Internet Explorer 7. Surely this is a pretty major 
problem for flash player to be able to do this? Has anyone else seen 
this? Is it because I have a debug version of flash player?

When I look in the Event Viewer I get this log:

Faulting application iexplore.exe, version 7.0.5730.11, faulting 
module fldbg9b.ocx, version 9.0.28.0, fault address 0x001b5063.



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

 Thanks for the reply Tom,
 
 I just have this on a 1 second timer:
 
 public function timerHandler(event:TimerEvent):void {
 time = getTimer()
 totmem = flash.system.System.totalMemory;
 maxmem = Math.max(maxmem, totmem);
 }
 
 I understand that garbage collection doesn't run until it's needed 
 to, but what's causing the memory to go up when there is nothing 
 happening? I know that the timer is running now, but I observe the 
 same behaviour without this timer and just watching memory from the 
 task manager (usually in jumps of 4K or 8K every couple of seconds).
 
 Also while garbage collection usually kicks in a drops the memory 
 back to the starting memory (more or less), sometimes (usually when 
 I've left it overnight, but not alway) the memory will continue to 
 rise to a much higher level (i.e. from 4.5 to 29.5 million bytes) 
 never to be recovered by garbage collection. This is my main 
concern 
 as in my larger application it has lead to my browser crashing on 
 occasion!
 
 Cheers
 Bill
 
 (P.S. You'll find my test application in my original post - switch 
 source to a local video as the flv link I posted doesn't work 
anymore)
 
 --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@ 
 wrote:
 
  On Thursday 24 May 2007, beecee1977 wrote:
   Is it normal for memory to fluctuate when there are no user
   interactions (or timers or anything else in the code)?
  
  Yes. Memory may not be reclaimed unless there is pressure to free 
 some.
  How are you measuring it ? 
  
  -- 
  Tom Chiverton
  Helping to elementarily target dynamic e-services
  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] Re: Memory leak? IE7 Crashes!

2007-05-29 Thread beecee1977
Looks like it's a known issue:

http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?
forumid=44catid=184threadid=1257667enterthread=y

I just hope that it's not exascerbated to something I'm doing in code!

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

 Still crashing Internet Explorer 7. Surely this is a pretty major 
 problem for flash player to be able to do this? Has anyone else seen 
 this? Is it because I have a debug version of flash player?
 
 When I look in the Event Viewer I get this log:
 
 Faulting application iexplore.exe, version 7.0.5730.11, faulting 
 module fldbg9b.ocx, version 9.0.28.0, fault address 0x001b5063.
 
 
 



Re: [flexcoders] Re: Memory leak? IE7 Crashes!

2007-05-29 Thread Tom Chiverton
On Tuesday 29 May 2007, beecee1977 wrote:
 module fldbg9b.ocx, version 9.0.28.0, fault address 0x001b5063.

There are newer releases, aren't there ?
Is that the debug version ? What about the normal one if so.

-- 
Tom Chiverton
Helping to conveniently scale real-time eyeballs
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

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


[flexcoders] Re: Memory leak? IE7 Crashes!

2007-05-29 Thread beecee1977
Indeed there are. It happens with v9.0.45.0 as well. 

Judging from the link I attached it's not just a problem with the 
debug version, but I'll give it a go and report back. 

--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] 
wrote:

 On Tuesday 29 May 2007, beecee1977 wrote:
  module fldbg9b.ocx, version 9.0.28.0, fault address 0x001b5063.
 
 There are newer releases, aren't there ?
 Is that the debug version ? What about the normal one if so.
 
 -- 
 Tom Chiverton
 Helping to conveniently scale real-time eyeballs
 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.





Re: [flexcoders] RemoteClass

2007-05-29 Thread André Rodrigues Pena

Michael, thanks for your reply.
Actually I have already realized that the applications with strong reference
map correctly. But it's so weird that I thought there could be something
like this:
DataService.mapClass(Sale);
Adobe should take a look at this.

On 5/29/07, Michael Herron [EMAIL PROTECTED] wrote:


   Have you strongly reference the *com.beans.Sale* class in your
Application? Your RemoteClass meta-data looks fine, but if you've not got a
hard reference to the class inside your flex app, it won't be compiled in to
the SWF and won't be mapped correctly at runtime. You can get round this by
just adding an unused variable somewhere of type com.beans.Sale. (there
maybe a more elegant way to get round this).


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *André Rodrigues Pena
*Sent:* 28 May 2007 12:48
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] RemoteClass



Hi all,

I have a Java service that returns an ArrayList of type Sale.
At the Flex application I also have the type Sale, the simplifyed
version is this:

package beans
{
[Managed]
[RemoteClass(alias=com.beans.Sale)]
public class Sale {
public var id:int;
public var customer:Customer;
public var product:Product;
}
}

Although, when I trigger the RemoteObject to retrieve the ArrayList of
Sales (ICollectionView at client), Flex seems to be treating it as a
collection of Object, not Sale.

Is this conversion (Object - Sale) to be done automatically? What's
wrong?
thanks

--
André Rodrigues Pena

LOCUS
www.locus.com.br

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br


Re: [flexcoders] Datagrid with bound dataProvider not updating.

2007-05-29 Thread Angus Johnson

arrayCollection or array? Try calling refresh() after the change.


On 29/05/07, beecee1977 [EMAIL PROTECTED] wrote:


  Hi,

I have a datagrid with the dataProvider bound to an array of objects.

If I remove one of the items from the array the datagrid doesn't update
to reflect this. Debugging and looking at the dataProvider's length it
has updated, but that's not what's displayed.

I've tried using validateNow() but that doesn't work. If I click on one
of the column headers it updates. Currently I'm having to explicitly
set the dataProvider in code, but then I lose the binding.

Any suggestions?

Thanks
Bill

 



[flexcoders] Flexbook - always open?

2007-05-29 Thread bjorn -

Hi,

is it possible to use Ely's FlexBook in a way that makes it always
stay open? (e.g. the front/back cover cannot be grabbed and closed)
Best regards,
Bjørn
--


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


[flexcoders] Re: Datagrid with bound dataProvider not updating.

2007-05-29 Thread beecee1977
Call refresh() on what? The dataGrid doesn't have a refresh() method.

It is an Array rather than an ArrayCollection. Could that be the 
problem? This could require a lot of refactoring!

Scratch all that... myDatagrid.invalidateDisplayList() did the trick!

Thanks!

--- In flexcoders@yahoogroups.com, Angus Johnson [EMAIL PROTECTED] 
wrote:

 arrayCollection or array? Try calling refresh() after the change.
 
 
 On 29/05/07, beecee1977 [EMAIL PROTECTED] wrote:
 
Hi,
 
  I have a datagrid with the dataProvider bound to an array of 
objects.
 
  If I remove one of the items from the array the datagrid doesn't 
update
  to reflect this. Debugging and looking at the dataProvider's 
length it
  has updated, but that's not what's displayed.
 
  I've tried using validateNow() but that doesn't work. If I click 
on one
  of the column headers it updates. Currently I'm having to 
explicitly
  set the dataProvider in code, but then I lose the binding.
 
  Any suggestions?
 
  Thanks
  Bill
 
   
 





[flexcoders] Re: How do you format your code?

2007-05-29 Thread reude
I found a trick which, though not perfect, helps quite a lot for the
mxml formatting.

In Eclipse, Go to 'Window | Preferences | General | File Associations'

Make sure that the *.mxml file type is selected, then to the bottom
of Associated editors, click Add
Select Ant Editor and click OK

Then in the file explorer, right-click on the file and say open with
ant editor, then format and it looks much better.
The AS is not touch... that where it could be improved.. with jalopy
probably.

Romain.

 

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

 Gee - and here i was thinking i was the only one who did it that way!
 Funny
 
 I always thought it was easier to read (tho certainly makes the files
 longer) when you put each entry on its own line like your sample.
 
 Mitch
 
 --- In flexcoders@yahoogroups.com, Pan Troglodytes
 chimpathetic@ wrote:
 
  I just wanted to throw this topic out there to share how I format my
 flex
  code and see what other people think.  We all know how Flex does it by
  default.  But I find those long lines hard to read as code.  They are
  especially problematic for version control, as a change to any part
 of the
  line looks like a change to the whole line in a difference viewer.
  
  So, here's a fragment of my code.  If you are using an email
reader that
  changes this email to plain text, you may lose a bit of the point
of it.
  
mx:HDividedBox id=historyBox
  label=Activity
  width=100%
  height=100%
  styleName=tabBox
  
  mx:VBox
height=100%
minWidth=240
width=240

mx:TabNavigator id=usersViewTabNav
  height=100%
  width=100%
  change=usersViewTabChange()
  
  mx:VDividedBox id=detailUserListTeam
label=Teams
width=100%
height=100%

mx:DataGrid id=teamGrid
  dataProvider={WAT.teams}
  height=20%
  width=100%
  minHeight=100
  verticalGridLines=false
  change=detailUserListTeamSelectionChange()
  
mx:Button id=editTeamsBtn
  label=Edit Teams
  click=editTeamClick()
  /
  
  I leave the id on the same line as the component declaration because
 that
  way it shows up in the Outline view (why it doesn't always put the
 id on the
  Outline view no matter what the formatting is, I have no idea).
  
  Otherwise, I put each attribute on a single line.  This means any
change
  shows up quite nicely in a difference viewer.  I put the closing 
 or / on
  a line of its own for the same reason.
  
  Unfortunately, Flex doesn't really respect this style and when
 working with
  the property editor it can tend to rearrange it.  I then have to go
 back in
  and fix the formatting.
  
  What I really wish is that I could somehow make Flex/Eclipse aware
 of how I
  like to format things so that it would help me out.  I also wish I
 could do
  something like alphabetically sort the attributes (leaving the id
at the
  top) with a keystroke (kind of like the Organize Imports command). 
 Would be
  great to have a command that would pretty-print all the source code
 in the
  open file.
  
  -- 
  Jason
 





[flexcoders] asdoc on linux, and the --footer argument

2007-05-29 Thread Tom Chiverton
First off all, a big thank you to Adobe for making ASDoc run on Linux (as of 
hotfix 2) - we're setting up our own version of livedocs as we speak :-)

I am having one issue with it.
I want to append a customer footer, so you'd think the following would do:
# /opt/flex-sdk-2.0.1-hotfix2/bin/asdoc --output=../doc/ 
--exclude-dependencies=true --footer foo 
bar ...
But not matter how I enter the footer text, I get a command line: Error: 
default arguments may not be interspersed with other options message and it 
stops. Single word footers work fine, however.
I've tried no quotes, single quotes, escaped spaces etc. etc.

Anyone got any ideas I might not have tried ?
-- 
Tom Chiverton
Helping to completely negotiate enterprise meta-services
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.



Re: [flexcoders] Re: How do you format your code?

2007-05-29 Thread André Rodrigues Pena

Adobe, please implement the famous Eclipse's CTRL+SHIFT+F on Flex Builder

On 5/29/07, reude [EMAIL PROTECTED] wrote:


  I found a trick which, though not perfect, helps quite a lot for the
mxml formatting.

In Eclipse, Go to 'Window | Preferences | General | File Associations'

Make sure that the *.mxml file type is selected, then to the bottom
of Associated editors, click Add
Select Ant Editor and click OK

Then in the file explorer, right-click on the file and say open with
ant editor, then format and it looks much better.
The AS is not touch... that where it could be improved.. with jalopy
probably.

Romain.

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
maunger [EMAIL PROTECTED] wrote:

 Gee - and here i was thinking i was the only one who did it that way!
 Funny

 I always thought it was easier to read (tho certainly makes the files
 longer) when you put each entry on its own line like your sample.

 Mitch

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pan
Troglodytes
 chimpathetic@ wrote:
 
  I just wanted to throw this topic out there to share how I format my
 flex
  code and see what other people think. We all know how Flex does it by
  default. But I find those long lines hard to read as code. They are
  especially problematic for version control, as a change to any part
 of the
  line looks like a change to the whole line in a difference viewer.
 
  So, here's a fragment of my code. If you are using an email
reader that
  changes this email to plain text, you may lose a bit of the point
of it.
 
  mx:HDividedBox id=historyBox
  label=Activity
  width=100%
  height=100%
  styleName=tabBox
  
  mx:VBox
  height=100%
  minWidth=240
  width=240
  
  mx:TabNavigator id=usersViewTabNav
  height=100%
  width=100%
  change=usersViewTabChange()
  
  mx:VDividedBox id=detailUserListTeam
  label=Teams
  width=100%
  height=100%
  
  mx:DataGrid id=teamGrid
  dataProvider={WAT.teams}
  height=20%
  width=100%
  minHeight=100
  verticalGridLines=false
  change=detailUserListTeamSelectionChange()
  
  mx:Button id=editTeamsBtn
  label=Edit Teams
  click=editTeamClick()
  /
 
  I leave the id on the same line as the component declaration because
 that
  way it shows up in the Outline view (why it doesn't always put the
 id on the
  Outline view no matter what the formatting is, I have no idea).
 
  Otherwise, I put each attribute on a single line. This means any
change
  shows up quite nicely in a difference viewer. I put the closing 
 or / on
  a line of its own for the same reason.
 
  Unfortunately, Flex doesn't really respect this style and when
 working with
  the property editor it can tend to rearrange it. I then have to go
 back in
  and fix the formatting.
 
  What I really wish is that I could somehow make Flex/Eclipse aware
 of how I
  like to format things so that it would help me out. I also wish I
 could do
  something like alphabetically sort the attributes (leaving the id
at the
  top) with a keystroke (kind of like the Organize Imports command).
 Would be
  great to have a command that would pretty-print all the source code
 in the
  open file.
 
  --
  Jason
 


 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Barcode scanning with pda (MC50 for instance)

2007-05-29 Thread amigo_fd
Hello, any ideas on how to communicate with the built in barcode
scanner on a device like the Symbol MC50 ? 

I know the scanner returns just text, so that's ok, but how to
start/stop the scanning ?

best regards,
Frank



Re: [flexcoders] asdoc on linux, and the --footer argument

2007-05-29 Thread Tom Chiverton
Oh, I forgot to say, if I run the asdoc.jar directly:
# java -Xbootclasspath/p:
$FLEX_HOME/asdoc/lib/xalan.jar -classpath $FLEX_HOME/lib/asdoc.jar 
flex2.tools.ASDoc 
+flexlib=$FLEX_HOME/frameworks --output=../doc/ --exclude-dependencies=true 
--footer=foo 
bar ...
it works fine.

-- 
Tom Chiverton
Helping to simultaneously maintain innovative CEOs
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

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


[flexcoders] unable to set origin point for zoom effect

2007-05-29 Thread flashcrow2000
Hello everybody,

I have the following problem: I have a custom title window built 
from scratch (extends Canvas); I also have a number of widgets 
which extend this window (they actually contain one instance of 
this window, and the content is generated and loaded inside it at 
runtime) and all widgets are loaded as modules afterwards.

I am able to drag and drop windows on the screen, and with each drag-
drop, I move the module loader so that inside the module, the title 
window is always situated at coordinates (0, 0) (except of course 
when actually dragging it).

My problem is this: when using a Zoom effect for the hideEffect, it 
resizes to the top-left corner. I tried changing the originX and 
originY values for the effect, but still nothing. 

Here is the actual effect:

mx:Zoom id=myZoom  
originX={origX} originY={origY} /

where origX and origY are set when the content of the window and its 
width and height are set. I have also added a function for 
effectStart and it traces good values for origX and origY (width/2 
and height/2 of the window).

Any ideas?



Re: [flexcoders] asdoc on linux, and the --footer argument

2007-05-29 Thread Tom Chiverton
On Tuesday 29 May 2007, Tom Chiverton wrote:
 Oh, I forgot to say, if I run the asdoc.jar directly:
...
 it works fine.

Found the problem :-)
If you suffer from this problem, the SDK's bin/asdoc file's last line needs 
altering to read

java $VMARGS -classpath $FLEX_HOME/lib/asdoc.jar flex2.tools.ASDoc 
+flexlib=$FLEX_HOME/frameworks $@

i.e. replace the $* with $@
This makes the shell expand the 'all arguments string' correctly.

-- 
Tom Chiverton
Helping to authoritatively envisioneer industry-wide action-items
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

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


[flexcoders] Channel.Connect.Failed error undefined url

2007-05-29 Thread Misael Ferreira

Hi, I´m running Flex Test
Drivehttp://coenraets.org/blog/2007/01/flex-test-drive-server-for-java-developers-tomcat-based/and
when trying hibernate samples i get the following message:

[FaultEvent fault=[RPC Fault faultString=Send failed faultCode=
Client.Error.MessageSend faultDetail=Channel.Connect.Failed error
undefined url:'rtmp://127.0.0.1:2040']
messageId=7D24BE66-D974-36C7-86B7-D4957B175858 type=fault bubbles=false
cancelable=true eventPhase=2]

I´ve made some changes to the Hibernate settings to match my own DB but I
don´t believe that has anything to do with this problem. What I´ve actually
done was modify the Product entity (MXML, AS, POJO, Hibernate) to match an
Oracle entity of my own. Everything looks fine but I get this error message.

Thanks.


RE: [flexcoders] DataGrid and complex types

2007-05-29 Thread Alex Harui
There's also an example of using custom DataGridColumns on by blog 
(blogs.adobe.com/aharui)

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andrea 
Santambrogio
Sent: Sunday, May 27, 2007 5:33 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DataGrid and complex types

 

 

On 27/05/2007, at 21:57, André Rodrigues Pena wrote:




Although when I try to populate de DataGrid, I can't set a
DataGridColumn to display the property name within the property
product from the data provider. The code is the following:

mx:DataGrid id=datagrid dataProvider={sales} width=100% 
height=100%
mx:columns
mx:DataGridColumn dataField=id headerText=Id/
mx:DataGridColumn dataField=product.name headerText=Product/
mx:DataGridColumn dataField=customer.name headerText=Customer/
/mx:columns
/mx:DataGrid

Only the simple attribute id is properly displayed in the DataGrid

Why? What can I do?



.





 

The way I solved it was by using a custom label function for each column. 
Instead of specifying a dataField, you define the following function inside a 
script tag:

 

function myCustomDataLabelFunction(item:Object, column:DataGridColumn):String

{

return item.product.name;

}

 

Then you declare the column like this:

 

mx:DataGridColumn labelFunction=myCustomDataLabelFunction 
headerText=Product/

 

Basically, your label function gets invoked on each item, when the column needs 
to know what to display on that row. And you have to return the value you want 
to be displayed.

 

I hope this helped,

Andrea.

 

 



RE: [flexcoders] DataGrid and complex types

2007-05-29 Thread Tracy Spratt
labelfunction is how I would do it.

 

But note: custom label function for each column Since you have the entire 
item Object and know which column is being processed, a single labelFunction 
will work for multiple columns.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andrea 
Santambrogio
Sent: Sunday, May 27, 2007 8:33 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DataGrid and complex types

 

 

On 27/05/2007, at 21:57, André Rodrigues Pena wrote:




Although when I try to populate de DataGrid, I can't set a
DataGridColumn to display the property name within the property
product from the data provider. The code is the following:

mx:DataGrid id=datagrid dataProvider={sales} width=100% 
height=100%
mx:columns
mx:DataGridColumn dataField=id headerText=Id/
mx:DataGridColumn dataField=product.name headerText=Product/
mx:DataGridColumn dataField=customer.name headerText=Customer/
/mx:columns
/mx:DataGrid

Only the simple attribute id is properly displayed in the DataGrid

Why? What can I do?



.





 

The way I solved it was by using a custom label function for each column. 
Instead of specifying a dataField, you define the following function inside a 
script tag:

 

function myCustomDataLabelFunction(item:Object, column:DataGridColumn):String

{

return item.product.name;

}

 

Then you declare the column like this:

 

mx:DataGridColumn labelFunction=myCustomDataLabelFunction 
headerText=Product/

 

Basically, your label function gets invoked on each item, when the column needs 
to know what to display on that row. And you have to return the value you want 
to be displayed.

 

I hope this helped,

Andrea.

 

 



Re: [flexcoders] Please help!! Reduce alpha value of a color in a bitmap image?

2007-05-29 Thread Johannes Nel

loop, getPixel() setPixel32()

On 5/28/07, arpan srivastava [EMAIL PROTECTED] wrote:


  Hi all,

I am facing a lot of problem with bitmap image. Can anyone tell me a
filter with which i can reduce the alpha value of a particular color. e.g.
suppse i have a flag of Japan in which there is a white rectangle with a red
circle in between and I want to reduce the alpha value of only white color
not the red one. how can I do that?

--
Get the free Yahoo! 
toolbarhttp://us.rd.yahoo.com/evt=48226/*http://new.toolbar.yahoo.com/toolbar/features/norton/index.phpand
 rest assured with the added security of spyware protection.

 





--
j:pn
http://www.lennel.org


[flexcoders] Change default loader, etc

2007-05-29 Thread dnk
Hi there, I am working on my first flex app, and have set some color
changes, etc for the background and other things. Now for some reason
when loading, the background is the default color (as is the loader
bar), then changes over. Where can I seet this to match the app?

Regards,

DNK


Re: [flexcoders] DataGrid and complex types

2007-05-29 Thread André Rodrigues Pena

Of course this helped Andrea. Thanks.
I think Adobe should think of allowing the dataField attribute to work with
properties of Objects

On 5/27/07, Andrea Santambrogio [EMAIL PROTECTED] wrote:



On 27/05/2007, at 21:57, André Rodrigues Pena wrote:


Although when I try to populate de DataGrid, I can't set a
DataGridColumn to display the property name within the property
product from the data provider. The code is the following:

mx:DataGrid id=datagrid dataProvider={sales} width=100%
height=100%
mx:columns
mx:DataGridColumn dataField=id headerText=Id/
mx:DataGridColumn dataField=product.name headerText=Product/
mx:DataGridColumn dataField=customer.name headerText=Customer/
/mx:columns
/mx:DataGrid

Only the simple attribute id is properly displayed in the DataGrid

Why? What can I do?
.


The way I solved it was by using a custom label function for each column.
Instead of specifying a dataField, you define the following function inside
a script tag:

function myCustomDataLabelFunction(item:Object,
column:DataGridColumn):String
{
return item.product.name;
}

Then you declare the column like this:

mx:DataGridColumn labelFunction=myCustomDataLabelFunction
headerText=Product/

Basically, your label function gets invoked on each item, when the column
needs to know what to display on that row. And you have to return the value
you want to be displayed.

I hope this helped,
Andrea.

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Re: Creating live streaming video player in flex ,something like youtube

2007-05-29 Thread u4zoran2002
Hello G, thanks for your help, i had discussion with my professor and
he told me that what i need to do is just the video player like client
and it doesnt need to have any videos inside, only the player. Like
for example i go to www.youtube.com and i watch the videos(videos
included in youtube directory) thru the video player created in Flex.
I would appreciate any of your further help with this. I need to have
the source code on cd and take it to the professor and when he will
connect to youtube(so he can use some random video from there) he
wants to watch it on the video player built in flex.
If there is any complete source code would be wonderful.
Thanks in advance
Zoran




Re: [flexcoders] Retrieving saved DataGrid columns array from local SharedObject.

2007-05-29 Thread Ian M. Jones
Just to follow up...

I installed hot fix 2 yesterday, which cleared up my problem with  
setting the width of non-visible columns (i.e. scrolled off to right  
in this case).

So, thank you jake247, your code is working very well for me.

Regards,

Ian

IMiJ Software
http://www.imijsoft.com
http://www.ianmjones.net (blog)


On 25 May 2007, at 19:08, Ian M. Jones wrote:

 Hi all,

 Thanks for the help Tracey and Tom, I've tried to do something along
 the lines of what you suggested but keep running up against the
 problem of casting from Object to DataGridColumn.

 jake247, your code works pretty well, I think I could probably alter
 it to get what I really want if I work on it a little more (the
 columns may need to be added or removed).

 However, I assume you're using a grid without a horizontal scroll
 bar, as I seem to have found a bug in the DataGrid when running your
 code. When it get's to the point where the width is set on the newCol
 for a column that is off to the right and not visible until the
 scrollbar is used, it complains about a missing property because it's
 internally trying to reference an element in the visibleColumns array
 which isn't there. I need to either fix this in the DataGrid source
 or find a work around.

 Ian


 On 24 May 2007, at 20:38, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Ask and ye shall receive ... we solved this exact problem about a
 month ago ...
 - 
 -
 ---
 //  Save grid settings to shared object
  public function saveGridSettings():void {
  var name:String = lineItemGrid.name;
  var gWidth:int = lineItemGrid.width;
  var cols:Array = new Array();
  var savedLastSort:String = lastSort;
  var savedReversed:Boolean = reversed;
  for (var i:int = 0; i  
 lineItemGrid.columns.length; i++) {
  cols[i] = lineItemGrid.columns[i];  
  }
  
  // Write grid data to shared object
  lineItemGridSO = 
 SharedObject.getLocal(gridData, /);
  lineItemGridSO.data.name = name;
  lineItemGridSO.data.gridWidth = gWidth;
  lineItemGridSO.data.lastSort = savedLastSort;
  lineItemGridSO.data.reversed = savedReversed;
  lineItemGridSO.data.gridCols = new Array();
  lineItemGridSO.data.gridCols = cols;
  lineItemGridSO.flush(); 
  }
  
  // Get grid settings from shared object
  public function getGridSettings():void {
  lineItemGridSO = 
 SharedObject.getLocal(gridData, /);
  if (lineItemGridSO.data.name != undefined) {
  lastSort = 
 lineItemGridSO.data.lastSort;
  var newCols:Array = new Array();
  for (var i:int = 0; i  
 lineItemGridSO.data.gridCols.length; i+
 +) {
  for (var j:int = 0; j  
 lineItemGrid.columns.length; j++) {
  if 
 (lineItemGrid.columns[j].dataField ==
 lineItemGridSO.data.gridCols[i].dataField) {
  var 
 newCol:DataGridColumn = DataGridColumn
 (lineItemGrid.columns.splice(int(j), 1)[0]);
  newCol.width = 
 lineItemGridSO.data.gridCols[i].width;
  
 newCols.push(newCol);
  }
  }
  }
  newCols.concat(lineItemGrid.columns);
  lineItemGrid.columns = newCols;
  }
  }
  Ian M. Jones [EMAIL PROTECTED] wrote:
 Hi all,

 I'm trying to set up a simple way to save a user's DataGrid column
 setup
 to a local SharedObject, and then retrieve those settings when
 they next
 run the application.

 Saving them seems to have been pretty simple:

 public function savePreferences():void {
 var prefs:SharedObject = SharedObject.getLocal(Preferences);
 var defaultColumns:Array = myDataGrid.columns;
 prefs.data.defaultColumns = defaultColumns;
 prefs.flush();
 }

 That works, I can see the objects in the 

[flexcoders] scrollToIndex with TileList

2007-05-29 Thread jthieret
Can't get this to work.  The call returns true, saying the list was
scrolled, but it hasn't.  I have read everything I can find on
problems with scrollToIndex in the forums and have tried
validateNow().  Nothing works.  Anyone else have this problem?  Anyone
found the fix?

The tilelist has 8 rows and 7 columns.  Vertical scrollbars are on.
 six rows are visible in the container and i am trying to scroll down
to the 7th row.



[flexcoders] PopUpManager

2007-05-29 Thread kgnytia
Hi all!

Im trying to open a client form pop up from another form. This is 
the code im using in the parent.

public var pop : Client; /*this is the class that is to be created 
for the popup: Client.mxml*/

private function selectClient() : void{ 
pop = PopUpManager.createPopUp(this,Client,true) as 
Client;
pop[dataGridClients].addEventListener
(itemClick,getClient);
}

private function getClient(event : ListEvent):void {
if (event.rowIndex  0){
/*the name of the client is shown in a label*/
lblClientName.text = 
(pop.dataGridClients.selectedItem as Client).name;
/*the popup window is closed*/
removeMe(event);
}
}

private function removeMe(event:Event):void {
PopUpManager.removePopUp(pop);
}

This works ok but since i may have to repeat this code many times in 
order to open the client form pop up from many places i would like 
to know if there is any other way of doing this. 

Something like: 
In the parent: 
   Client.getClient(this) 
and then in the Client: 
   public static function obtenerComunidad(parent) : ComunidadAutonoma
{
   var pop : Client = PopUpManager.createPopUp(parent,Client,true) as 
Client; 
}

Thank you very much! 



[flexcoders] Re: Creating live streaming video player in flex ,something like youtube

2007-05-29 Thread u4zoran2002
I hope you got the reply to this message and my explanation of what i
need to do. I must have video player created in flex and i should use
it as a client on youtube.com to watch some random videos. My
professor said that the player created in flex should be able to open
random video from youtube.com
Thanks in advance G :)
Z
--- In flexcoders@yahoogroups.com, greg h [EMAIL PROTECTED] wrote:

 Hi u4zoran2002,
 
 Regarding live streaming video  in flex you might want to look at an
 article that Renaun authored last November.  It is entitled Video
 Conference with Flex  FMS.  Renaun blogged about the article
including a
 link to the article http://mxdj.sys-con.com/read/295379.htm here:
 http://renaun.com/blog/2006/11/08/147/
 
 Renaun also provides links for a Live Demo and full downloadable
Source
 Code here:
 http://renaun.com/blog/2006/10/28/139/
 
 Regarding something like youtube ... there is no live video on
youtube.
 YouTube is prerecorded video only.  There are links for sample
applications
 that duplicate YouTube's functionality for hosting prerecorded video.
 Please post back if you need code to create a YouTube knockoff.
 
 hth,
 
 g
 
 
 On 5/28/07, u4zoran2002 [EMAIL PROTECTED] wrote:
 
  Hello guys, i just got a task at faculty to create flash player in
  Adobe Flex Builder, something like youtube. The professor told me that
  all i need is to put code for the controls and connect it to html
  page. All of this is very new to me as i am beginner, i would
  appreciate if someone has the complete code in flex or some tutorial
  step by step so i can finish this task.
  Thank you in advance
 





Re: [flexcoders] Barcode scanning with pda (MC50 for instance)

2007-05-29 Thread Clint Modien

Sounds like a fun little project... what programming language were you
thinking of using for interfacing with the Symbol scanner?

I'm guessing you don't care about web security as this sounds like it's a
local application so you'll be able to create a socket connection to a
program listening on socket service running on the local pc. I believe if
you run the swf locally, execute it from file:c/// or http://localhost,
you'll be able to connect to a local service without further client side
configuration.

There are actually a few ways to do this.

  1. Binary Sockets
  2. XML Sockets
  3. A local RTMP service.
  4. AMF polling

Option 3 is by far the best and for that there a few options for you.

  1. Red5 - Java
  2. WebORB - .NET
  3. FDS Express - Java

You could also technically use an AMF solution and polling but you'd
definately lose points on the coolness factor.  I'd want the bi-di
communication that RTMP offers for interfacing with a device.  My gut tells
me that it would be easier to program against an RTMP service than to use
AMF and polling.  (You won't have to manage a stack in the service code.)

You're probably locked into using symbol scanners... but I remembered Renaun
did some really kewl stuff with a webcam barcode reader you may also want to
have a peak @... as a kewl alternative...

http://renaun.com/blog/?p=33



On 5/29/07, amigo_fd [EMAIL PROTECTED] wrote:


  Hello, any ideas on how to communicate with the built in barcode
scanner on a device like the Symbol MC50 ?

I know the scanner returns just text, so that's ok, but how to
start/stop the scanning ?

best regards,
Frank

 



[flexcoders] Re: Error trying to load CFEclipse plugin into FlexBuilder standalone

2007-05-29 Thread barry.beattie

how come othere eclipse plug-ins can allow you to select code and push
it around with the mouse (eg: cfeclipse) but not flexbuilder?





[flexcoders] Cairngorm (server) error handling pattern(s)

2007-05-29 Thread pgp.coppens
Hello,

I was wondering whether anyone has any guidance on how to deal with
server/service errors, including, but not limited to field validation
errors.

Something like what is explained in
http://onrails.org/articles/2007/03/06/mapping-rails-errors-to-flex-fields
but then as a natural Cairngorm add-on. 

Thanks,

Peter




[flexcoders] Re: rotation and scrollbar generation in canvas and rotation and drag and drop

2007-05-29 Thread Jason
I must confess I was really surprised when I rotated a text object and
re-positioned. And discovered scrollbars appearing because although
the rotated objects were placed on the canvas. The original positions
were what the system used for determining the necessity of scrollbars.

This definitely seems like a bug to me. And a major inhibitor of using
rotated objects, or at least text from my experience.

- Jason



RE: [flexcoders] RemoteClass

2007-05-29 Thread Peter Farland
Can you show us the code where you import com.beans.Sale and show how it is 
actually referenced in your code so a compile time dependency exists on the 
class and thus ensures it is linked into the SWF?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of André 
Rodrigues Pena
Sent: Tuesday, May 29, 2007 6:24 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] RemoteClass



Michael, thanks for your reply.
Actually I have already realized that the applications with strong reference 
map correctly. But it's so weird that I thought there could be something like 
this:
DataService.mapClass (Sale);
Adobe should take a look at this.


On 5/29/07, Michael Herron [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  
wrote: 



Have you strongly reference the com.beans.Sale class in your 
Application? Your RemoteClass meta-data looks fine, but if you've not got a 
hard reference to the class inside your flex app, it won't be compiled in to 
the SWF and won't be mapped correctly at runtime. You can get round this by 
just adding an unused variable somewhere of type com.beans.Sale. (there maybe a 
more elegant way to get round this).

 





From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com 
http://ups.com ] On Behalf Of André Rodrigues Pena
Sent: 28 May 2007 12:48
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RemoteClass

 



Hi all,

I have a Java service that returns an ArrayList of type Sale.
At the Flex application I also have the type Sale, the simplifyed
version is this:

package beans
{
[Managed]
[RemoteClass(alias=com.beans.Sale)]
public class Sale {
public var id:int;
public var customer:Customer;
public var product:Product;
}
}

Although, when I trigger the RemoteObject to retrieve the ArrayList of
Sales (ICollectionView at client), Flex seems to be treating it as a
collection of Object, not Sale.

Is this conversion (Object - Sale) to be done automatically? What's 
wrong?
thanks

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br










-- 
André Rodrigues Pena

LOCUS
www.locus.com.br http://www.locus.com.br 


 


RE: [flexcoders] How to access last node atributes with e4x?

2007-05-29 Thread Peter Farland
You can get the length via XMLList.length() so just substract 1 and
you'll have the last position.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mocalocamm
Sent: Monday, May 28, 2007 8:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to access last node atributes with e4x?



This is my xml:

list
month month=3 year=2007
day date=01 impressions=407/
etc...
/month
month month=4 year=2007
etc...
day date=30 impressions=657/
/month
/list

More months will be added with time so I need to set a variable always
with the values of the lastest month:

endDate = new Date(2007,5,30)

Accessing the beginning of the month is easy enough:
startDate = new
Date([EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]);

But how to get to the last node attributes if the last mode is
constantly changing?

Thanks for any help,
Moca



 


RE: [flexcoders] Re: compiling java classes for flex data services

2007-05-29 Thread Peter Farland
Did you add flex-messaging.jar and flex-messaging-common.jar to your classpath 
when compiling?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mayur 
Bais
Sent: Monday, May 28, 2007 1:14 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: compiling java classes for flex data services



Thanks for replying, but  for compiling java class why would i need swc? though 
I have one in my class library path.
Regards
PS ε


On 5/28/07, simonjpalmer [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  wrote: 

I think you are probably missing fds.swc from your library path. 

If you are using the Eclipse IDE, search for it on your computer and
then add it to the Flex Build Path / Library Path in your Flex project.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
, learner [EMAIL PROTECTED] wrote:

 I have trying the sample examples for the flex data service and
following
 the CRM samples .
 
 I could write good value object class in both AS and JAVA , and also 
the
 class to communicate with database(my-sql in my case).
 
 but while looking at the EmployeeAssembler.java in the sample and
tried to
 modify to suit my needs
 I am getting following error
 
 samples\crm\EmployeeAssembler.java:21package flex.data does not
exist import
 flex.data.ChangeObject;
 
 samples\crm\EmployeeAssembler.java:22package flex.data does not
exist import
 flex.data.DataSyncException;
 
 samples\crm\EmployeeAssembler.java:23package flex.data does not
exist import
 flex.data.DataServiceTransaction;
 
 samples\crm\EmployeeAssembler.java:23 package flex.data does not exist
 import flex.data.assemblers.AbstractAssembler;
 
 Can any body put light on this?
 
 Regards http://www.google.com/reader/shared/01613629439254822020 
http://www.google.com/reader/shared/01613629439254822020 
 PS å







 


Re: [flexcoders] Retrieving saved DataGrid columns array from local SharedObject.

2007-05-29 Thread jake247
Hmmm ... I just tried your scenario by changing the width of a column that you 
have to get to using the horizontal scroll bar (our grid is about 25 columns).  
I then saved the grid settings (we trigger it via a right click and a context 
menu selection), close the app, and restart it.  The new width on the column is 
displayed correctly.

I'll have one of our sales reps try in in the production environment and report 
back.

--Jake
 Ian M. Jones [EMAIL PROTECTED] wrote: 
 Just to follow up...
 
 I installed hot fix 2 yesterday, which cleared up my problem with  
 setting the width of non-visible columns (i.e. scrolled off to right  
 in this case).
 
 So, thank you jake247, your code is working very well for me.
 
 Regards,
 
 Ian
 
 IMiJ Software
 http://www.imijsoft.com
 http://www.ianmjones.net (blog)
 
 
 On 25 May 2007, at 19:08, Ian M. Jones wrote:
 
  Hi all,
 
  Thanks for the help Tracey and Tom, I've tried to do something along
  the lines of what you suggested but keep running up against the
  problem of casting from Object to DataGridColumn.
 
  jake247, your code works pretty well, I think I could probably alter
  it to get what I really want if I work on it a little more (the
  columns may need to be added or removed).
 
  However, I assume you're using a grid without a horizontal scroll
  bar, as I seem to have found a bug in the DataGrid when running your
  code. When it get's to the point where the width is set on the newCol
  for a column that is off to the right and not visible until the
  scrollbar is used, it complains about a missing property because it's
  internally trying to reference an element in the visibleColumns array
  which isn't there. I need to either fix this in the DataGrid source
  or find a work around.
 
  Ian
 
 
  On 24 May 2007, at 20:38, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  Ask and ye shall receive ... we solved this exact problem about a
  month ago ...
  - 
  -
  ---
  //  Save grid settings to shared object
 public function saveGridSettings():void {
 var name:String = lineItemGrid.name;
 var gWidth:int = lineItemGrid.width;
 var cols:Array = new Array();
 var savedLastSort:String = lastSort;
 var savedReversed:Boolean = reversed;
 for (var i:int = 0; i  
  lineItemGrid.columns.length; i++) {
 cols[i] = lineItemGrid.columns[i];  
 }
 
 // Write grid data to shared object
 lineItemGridSO = 
  SharedObject.getLocal(gridData, /);
 lineItemGridSO.data.name = name;
 lineItemGridSO.data.gridWidth = gWidth;
 lineItemGridSO.data.lastSort = savedLastSort;
 lineItemGridSO.data.reversed = savedReversed;
 lineItemGridSO.data.gridCols = new Array();
 lineItemGridSO.data.gridCols = cols;
 lineItemGridSO.flush(); 
 }
 
 // Get grid settings from shared object
 public function getGridSettings():void {
 lineItemGridSO = 
  SharedObject.getLocal(gridData, /);
 if (lineItemGridSO.data.name != undefined) {
 lastSort = 
  lineItemGridSO.data.lastSort;
 var newCols:Array = new Array();
 for (var i:int = 0; i  
  lineItemGridSO.data.gridCols.length; i+
  +) {
 for (var j:int = 0; j  
  lineItemGrid.columns.length; j++) {
 if 
  (lineItemGrid.columns[j].dataField ==
  lineItemGridSO.data.gridCols[i].dataField) {
 var 
  newCol:DataGridColumn = DataGridColumn
  (lineItemGrid.columns.splice(int(j), 1)[0]);
 newCol.width = 
  lineItemGridSO.data.gridCols[i].width;
 
  newCols.push(newCol);
 }
 }
 }
 newCols.concat(lineItemGrid.columns);
 lineItemGrid.columns = newCols;
 }
 }
   Ian M. Jones [EMAIL PROTECTED] wrote:
  

Re: [flexcoders] Re: Error trying to load CFEclipse plugin into FlexBuilder standalone

2007-05-29 Thread Tom Chiverton
On Tuesday 29 May 2007, barry.beattie wrote:
 how come othere eclipse plug-ins can allow you to select code and push
 it around with the mouse (eg: cfeclipse) but not flexbuilder?

It's a feature of CFE and/or Eclipse 3.3.
FlexBuilder is built on Eclipse 3.1, so doesn't have it unless the plugin 
provides it.

-- 
Tom Chiverton
Helping to authoritatively industrialize slick ROI
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

* 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] Checking if an Object has as property/element

2007-05-29 Thread Troy Gilbert

You're absolutely right, and in fact I got bit by this this weekend... we
have a bunch of object serialization code that uses that idiom of if (
xml.myTag) and it broke this weekend when we fed it XML docs that lacked
tags!

Troy.


On 5/25/07, Daniel Freiman [EMAIL PROTECTED] wrote:


  The statement:

if (xml.myTag)

should always return true if xml is an XML object because it will return
an XMLList of children with the localname of myTag.  If there are no
children like this, then it will still return an XMLList of length 0 which
will evaluate to true.

I discuss this here:


http://nondocs.blogspot.com/2007/05/toplevelxmltraversing-xml-structures.html

Dan Freiman
nondocs.


On 5/25/07, Troy Gilbert [EMAIL PROTECTED] wrote:

   #2 isn't always true, for example in the case of XML. Here's the idiom
 I use for pulling elements out of an XML document:

 if (xml.myTag) myValue = xml.myTag;

 Is that a decent idiom? Also, if the return type is Object, won't the
 compiler allow you to access any property with '.' notation? For example, I
 use Objects for key/value pairs all over my code using code like Number(
 myObject.myProperty) where myProperty is most certainly not known at
 compile time (it's dynamically generated through several API's).

 Troy.



 On 5/24/07, Gordon Smith [EMAIL PROTECTED] wrote:
 
 I'd argue that best-practice is #4, the 'in' operator.
 
  #1 is Ecmascript legacy useful for prototype-based inheritence, to
  tell whether an object has the property or one farther up its prototype
  chain. Flex makes almost no use of prototype-based inheritence.
 
  #2 isn't useful because if it compiles, the property definitely
  exists.
 
  #3 can be misleading because you can't distinguish between the
  property not existing and the property containg a value which coerces to
  false.
 
  - Gordon
 
   --
  *From:* flexcoders@yahoogroups.com [mailto:flexcoders@ yahoogroups.com]
  *On Behalf Of *Troy Gilbert
  *Sent:* Thursday, May 24, 2007 11:19 AM
  *To:* flexcoders@yahoogroups.com
  *Subject:* Re: [flexcoders] Checking if an Object has as
  property/element
 
   Interesting, I've never seen that one, Alex... nicely expressive.
 
  So, in summary, one can test the existent of a property with:
 
  if (myObject.hasOwnProperty(property)) ...
  if (myObject.property ) ...
  if (myObject[property]) ...
  if (property in myObject) ...
 
  The first one is a function returning a Boolean. Obvious.
 
  The second and third ones return the actual values, which implicitly
  convert to true (for everything but null and , which implicitly convert to
  false), or if the property doesn't exist returns undefined, which implicitly
  converts to false.
 
  The fourth one... well, that's basically identical to the first one
  where it returns a Boolean.
 
  Troy.
 
 
  On 5/24/07, Alex Harui  [EMAIL PROTECTED] wrote:
  
 if (blah in Object)
  
   Should also work
  
  
   -Original Message-
   From: flexcoders@yahoogroups.com 
flexcoders%40yahoogroups.com[mailto:flexcoders@yahoogroups.comflexcoders%40yahoogroups.com]
   On
   Behalf Of Tom Chiverton
   Sent: Thursday, May 24, 2007 6:53 AM
   To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   Subject: Re: [flexcoders] Checking if an Object has as
   property/element
  
   On Thursday 24 May 2007, Christopher Olsen wrote:
If i do if Object.blah == null i get an error because blah doesn't
   exist
  
   hasOwnProperty(), or just if (Object.blah)
  
   --
   Tom Chiverton
   Helping to globally maintain error-free solutions
   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] Access a viewstack

2007-05-29 Thread Giro
I have a viewstack on my main application.

I have two views, in one of this view I have a component.

I another I have a simple panel.

When I push a button inside the component, I want to change main viewstack,
but the problem is that I can't access the main viewstack ID from my
component.

 

How can I do it?

 

Thk.

Giro.

 



Re: [flexcoders] Access a viewstack

2007-05-29 Thread Tom Chiverton
On Tuesday 29 May 2007, Giro wrote:
 How can I do it?

Either give your component a function call back (onClick ?) so it can fire 
code in the parent directly when stuff happens, refer to the view via 
parent., or investigate something like a ModelLocator.


-- 
Tom Chiverton
Helping to ambassadorially restore best-of-breed partnerships
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

* 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] Access a viewstack

2007-05-29 Thread Giro
I solve it using this:

http://www.nielsbruin.nl/flex_examples/modelexample/ModelExample.html

But for me is strange that flex dont have a more easy solution.

Giro.


-Mensaje original-
De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] En nombre
de Tom Chiverton
Enviado el: martes, 29 de mayo de 2007 16:56
Para: flexcoders@yahoogroups.com
Asunto: Re: [flexcoders] Access a viewstack

On Tuesday 29 May 2007, Giro wrote:
 How can I do it?

Either give your component a function call back (onClick ?) so it can fire 
code in the parent directly when stuff happens, refer to the view via 
parent., or investigate something like a ModelLocator.


-- 
Tom Chiverton
Helping to ambassadorially restore best-of-breed partnerships
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






Re: [flexcoders] Access a viewstack

2007-05-29 Thread Tom Chiverton
On Tuesday 29 May 2007, Giro wrote:
 But for me is strange that flex dont have a more easy solution.

The thing about Flex is that it doesn't force any one way of doing things.

-- 
Tom Chiverton
Helping to professionally monetize cross-media systems
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

* 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] ComboBox ItemRenderer Issues

2007-05-29 Thread Alex Harui
Itemrenderers are not used in the text portion ComboBox itself, just the
dropdown.  You can use labelFunction to change what the text portion
displays or subclass.  Check out the Icons In ComboBox example on my
blog (blogs.adobe.com/aharui)

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rich Tretola
Sent: Tuesday, May 29, 2007 6:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ComboBox ItemRenderer Issues

 

I am using an ItemRenderer for a ComboBox component and all is well in
the dropdown however, the selected item always shows the object
definition and not the ItemRenderer.  Has anyone else run into this?

The same ItemRenderer when used within a List component has no issues. 

See the attached images.

CBoxerror.png shows the issue with the combobox.
CBoxError2.png shows the renderer working properly with a List
component.

Rich

 



RE: [flexcoders] Re: rotation and scrollbar generation in canvas and rotation and drag and drop

2007-05-29 Thread Alex Harui
It's a bunch of work and can hurt performance for all of the containers
to handle rotated objects in layout so we simply haven't done it yet.
You should be able to get around it by subclassing though.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason
Sent: Tuesday, May 29, 2007 6:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: rotation and scrollbar generation in canvas
and rotation and drag and drop

 

I must confess I was really surprised when I rotated a text object and
re-positioned. And discovered scrollbars appearing because although
the rotated objects were placed on the canvas. The original positions
were what the system used for determining the necessity of scrollbars.

This definitely seems like a bug to me. And a major inhibitor of using
rotated objects, or at least text from my experience.

- Jason

 



Re: [flexcoders] scrollToIndex with TileList

2007-05-29 Thread Ben Marchbanks
As an alternative method could you use myTileList.selectedIndex = 
(myTileList.dataProvider.length()-1)




jthieret wrote:
 Can't get this to work.  The call returns true, saying the list was
 scrolled, but it hasn't.  I have read everything I can find on
 problems with scrollToIndex in the forums and have tried
 validateNow().  Nothing works.  Anyone else have this problem?  Anyone
 found the fix?
 
 The tilelist has 8 rows and 7 columns.  Vertical scrollbars are on.
  six rows are visible in the container and i am trying to scroll down
 to the 7th row.
 
 

-- 
Ben Marchbanks

::: alQemy ::: transforming information into intelligence
http://www.alQemy.com

::: magazooms ::: digital magazines
http://www.magazooms.com

Greenville, SC
864.284.9918


RE: [flexcoders] PopUpManager

2007-05-29 Thread Alex Harui
Check out how we wrote mx.controls.Alert.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kgnytia
Sent: Tuesday, May 29, 2007 1:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] PopUpManager

 

Hi all!

Im trying to open a client form pop up from another form. This is 
the code im using in the parent.

public var pop : Client; /*this is the class that is to be created 
for the popup: Client.mxml*/

private function selectClient() : void{ 
pop = PopUpManager.createPopUp(this,Client,true) as 
Client; 
pop[dataGridClients].addEventListener
(itemClick,getClient); 
}

private function getClient(event : ListEvent):void {
if (event.rowIndex  0){ 
/*the name of the client is shown in a label*/
lblClientName.text = 
(pop.dataGridClients.selectedItem as Client).name;
/*the popup window is closed*/
removeMe(event);
}
}

private function removeMe(event:Event):void {
PopUpManager.removePopUp(pop);
}

This works ok but since i may have to repeat this code many times in 
order to open the client form pop up from many places i would like 
to know if there is any other way of doing this. 

Something like: 
In the parent: 
Client.getClient(this) 
and then in the Client: 
public static function obtenerComunidad(parent) : ComunidadAutonoma
{
var pop : Client = PopUpManager.createPopUp(parent,Client,true) as 
Client; 
}

Thank you very much! 

 



RE: [flexcoders] scrollToIndex with TileList

2007-05-29 Thread Alex Harui
Can you post an example?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jthieret
Sent: Monday, May 28, 2007 3:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] scrollToIndex with TileList

 

Can't get this to work. The call returns true, saying the list was
scrolled, but it hasn't. I have read everything I can find on
problems with scrollToIndex in the forums and have tried
validateNow(). Nothing works. Anyone else have this problem? Anyone
found the fix?

The tilelist has 8 rows and 7 columns. Vertical scrollbars are on.
six rows are visible in the container and i am trying to scroll down
to the 7th row.

 



RE: [flexcoders] DataGrid and complex types

2007-05-29 Thread Alex Harui
We'll probably just keep pointing people to the example on my blog.  There 
dataField is checked quite often during initial rendering and scrolling and we 
don't want to do any extra thinking looking for dot-paths unless you know 
you're going to need it.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of André 
Rodrigues Pena
Sent: Monday, May 28, 2007 7:17 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DataGrid and complex types

 

Of course this helped Andrea. Thanks.
I think Adobe should think of allowing the dataField attribute to work with 
properties of Objects

On 5/27/07, Andrea Santambrogio [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  
wrote:

 

On 27/05/2007, at 21:57, André Rodrigues Pena wrote:


Although when I try to populate de DataGrid, I can't set a
DataGridColumn to display the property name within the property 
product from the data provider. The code is the following:

mx:DataGrid id=datagrid dataProvider={sales} width=100% 
height=100% 
mx:columns
mx:DataGridColumn dataField=id headerText=Id/
mx:DataGridColumn dataField=product.name headerText= Product/
mx:DataGridColumn dataField=customer .name headerText=Customer /
/mx:columns
/mx:DataGrid

Only the simple attribute id is properly displayed in the DataGrid 

Why? What can I do?

.

 

 

The way I solved it was by using a custom label function for each column. 
Instead of specifying a dataField, you define the following function inside a 
script tag:

 

function myCustomDataLabelFunction(item:Object, column:DataGridColumn):String

{

return item.product.name http://item.product.name ;

} 

 

Then you declare the column like this:

 

mx:DataGridColumn labelFunction=myCustomDataLabelFunction 
headerText=Product/

 

Basically, your label function gets invoked on each item, when the column needs 
to know what to display on that row. And you have to return the value you want 
to be displayed.

 

I hope this helped,

Andrea.

 




-- 
André Rodrigues Pena

LOCUS
www.locus.com.br http://www.locus.com.br 

Blog
www.techbreak.org http://www.techbreak.org  

 



RE: [flexcoders] Re: Datagrid with bound dataProvider not updating.

2007-05-29 Thread Alex Harui
We'll wrap the array in an ArrayCollection, so call
dataGrid.dataProvider.refresh().

 

Or dataGrid.invalidateList()

 

However, neither approach may work until you refactor to modify the
ArrayCollection and not the array.  Arrays do not have change
notifications so we can't see what is changing.  ArrayCollection does.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of beecee1977
Sent: Tuesday, May 29, 2007 3:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Datagrid with bound dataProvider not updating.

 

Call refresh() on what? The dataGrid doesn't have a refresh() method.

It is an Array rather than an ArrayCollection. Could that be the 
problem? This could require a lot of refactoring!

Scratch all that... myDatagrid.invalidateDisplayList() did the trick!

Thanks!

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Angus Johnson [EMAIL PROTECTED] 
wrote:

 arrayCollection or array? Try calling refresh() after the change.
 
 
 On 29/05/07, beecee1977 [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I have a datagrid with the dataProvider bound to an array of 
objects.
 
  If I remove one of the items from the array the datagrid doesn't 
update
  to reflect this. Debugging and looking at the dataProvider's 
length it
  has updated, but that's not what's displayed.
 
  I've tried using validateNow() but that doesn't work. If I click 
on one
  of the column headers it updates. Currently I'm having to 
explicitly
  set the dataProvider in code, but then I lose the binding.
 
  Any suggestions?
 
  Thanks
  Bill
 
  
 


 



RE: [flexcoders] Change default loader, etc

2007-05-29 Thread Alex Harui
Depends on how you set your changes and are building the app.
FlexBuilder should try to set the background of the HTML wrapper for
you.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dnk
Sent: Monday, May 28, 2007 9:42 PM
To: flexcoders list
Subject: [flexcoders] Change default loader, etc

 

Hi there, I am working on my first flex app, and have set some color
changes, etc for the background and other things. Now for some reason
when loading, the background is the default color (as is the loader
bar), then changes over. Where can I seet this to match the app?

Regards,

DNK

 



RE: [flexcoders] Re: rotation and scrollbar generation in canvas and rotation and drag and drop

2007-05-29 Thread Ely Greenfield
 

 

 

Right on all counts Jason.  Our layout system isn't really written to
handle rotation in a deeply integrated manner.  It's something we'd like
to include, but most use cases don't really require rotation, so it's a
bit lower down on the priority list.  As Alex points out, doing it
incorrectly can have a non-trivial performance impact, so we want to
make sure it gets done right.

 

Ely.

 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason
Sent: Tuesday, May 29, 2007 6:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: rotation and scrollbar generation in canvas
and rotation and drag and drop

 

I must confess I was really surprised when I rotated a text object and
re-positioned. And discovered scrollbars appearing because although
the rotated objects were placed on the canvas. The original positions
were what the system used for determining the necessity of scrollbars.

This definitely seems like a bug to me. And a major inhibitor of using
rotated objects, or at least text from my experience.

- Jason

 

image001.jpgimage002.jpg

[flexcoders] Syntax highlighting library in ActionScript 3

2007-05-29 Thread Robert Cadena
Hi everyone,

I am releasing the first version of my syntax highlighting library 
written in actionscript 3.  I use this library in the chatrooms in my 
SearchCoders/Dashboard application to parse as3 code in the chatrooms.

Here's an example:

   http://www.machine501.com/2007/05/29/syntax-highlight-as3/

Here are some of the features:

* support for multiple languages.  comes with an as3 language grammar 
but you can add your own.  follows the language grammar format used by 
textmate.

* asynchronous, so it won't tie up your ui while it parses a big document

* styling TextFields: quick-and-dirty styler for as3.

* selectors: tags segments of the document with the names of the 
language grammar rule that matched it so that you can use it for things 
like providing context sensitive help, etc.

* bsd license.


/r
http://www.searchcoders.com/flex/
http://www.laflex.org/



[flexcoders] passing an ArrayCollection to a CFC

2007-05-29 Thread mark_watts01
does anybody have any examples of passing an ArrayCollection to a 
ColdFusion CFC and having the CFC do something with it?  I cant seem to 
get the syntax correct maybe it is impossible?



Re: [flexcoders] Re: Converting the output of ObjectUtil.copy() to custom type

2007-05-29 Thread Troy Gilbert

All of these techniques copy generic objects (as in property containers,
name value pairs). Typed objects do not function in exactly the same way. As
a result, you can't clone them generically.

Troy.


On 5/26/07, Lucas Pereira [EMAIL PROTECTED] wrote:


  Hi.
Right now I'm having the same problem.
I even found this:

public function cloneObject(o:Object):Object
{
var bytes:ByteArray = new ByteArray();
bytes.writeObject(o);
bytes.position = 0;
return bytes.readObject();
}

but ended up always in the casting problem :(

Had you find an answer?

Thanks

Best regards

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

 Does anyone know how to do this? Neither casting nor the as operator
 are working.

 var foo:FooObject = new FooObject();

 // this doesn't work
 var fooCopy:FooObject = FooObject(ObjectUtil.copy(foo));


 // neither does this
 var fooCopy:FooObject = ObjectUtil.copy(foo) as FooObject;

 Thanks in advance for any pointers,
 Ben


 



RE: [flexcoders] Re: Converting the output of ObjectUtil.copy() to custom type

2007-05-29 Thread Peter Farland
You can use this technique for typed objects too, you just need to
ensure that you have registered a remote alias for the class. This is
because ByteArray serialization is really making use of a player feature
that is intended for sending AS3 data to remote agents.
 
import com.something.FooObject;
 
//...
 
private static var reg:Boolean =
flash.net.registerClassAlias(com.whatever.FooObject,
com.something.FooObject);
 
See:
http://livedocs.adobe.com/flex/2/langref/flash/net/package.html#register
ClassAlias()
 
Or, if you're using MXMLC or Flex Builder to compile a Flex application
you can make use of the special class-level metadata by declaring
[RemoteClass(alias=com.whatever.FooObject)] above your class
definition.
 
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Troy Gilbert
Sent: Tuesday, May 29, 2007 1:14 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Converting the output of ObjectUtil.copy()
to custom type



All of these techniques copy generic objects (as in property containers,
name value pairs). Typed objects do not function in exactly the same
way. As a result, you can't clone them generically.

Troy.
 


On 5/26/07, Lucas Pereira [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 

Hi.
Right now I'm having the same problem.
I even found this:

public function cloneObject(o:Object):Object
{
var bytes:ByteArray = new ByteArray();
bytes.writeObject(o);
bytes.position = 0;
return bytes.readObject();
}

but ended up always in the casting problem :(

Had you find an answer?

Thanks

Best regards

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

 Does anyone know how to do this? Neither casting nor the as
operator
 are working.
 
 var foo:FooObject = new FooObject();
 
 // this doesn't work
 var fooCopy:FooObject = FooObject(ObjectUtil.copy(foo));
 
 
 // neither does this
 var fooCopy:FooObject = ObjectUtil.copy(foo) as FooObject;
 
 Thanks in advance for any pointers,
 Ben







 


RE: [flexcoders] show value in combobox

2007-05-29 Thread Tracy Spratt
As I understand it, selectedItem requires a *reference* to the item you
want to select.  It does not do a search of the dataProvider item
properties (how could it know which properties to use?) to find a match
for a value.

 

I think you will need to use the iteration logic.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Harish Sivaramakrishnan
Sent: Tuesday, May 29, 2007 1:51 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] show value in combobox

 

Kanu,

It is not recommended to use scalar values into your dataProvider,
instead use the format {label:varun},{label:manav} instead of using
varun, manav ... etc.

For solving your issue, use the selectedItem property on the combbox.

thanks
Harish

On 5/29/07, kanu kukreja  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Tx for the quick reply Tracy

 

But i was expecting some property for this insted of applying this
logic.

 

Is there is any property?



Tracy Spratt [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
wrote:

You need to loop over the dataProvider, comparing the
appropriate property value to the match value, then set the comboBox
selectedIndex when you match.

Tracy





From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
ups.com http://ups.com ] On Behalf Of kanu kukreja
Sent: Monday, May 28, 2007 3:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] show value in combobox 

there is a combobox with 3 values:

kanu

manav 

varun

through webservices i'm getting varun

which i need to show in a combobox after clicking a button 

how to do this?

Best Regards

Kanu Kukreja 

  





Looking for a deal? Find great prices on flights and hotels
http://us.rd.yahoo.com/evt=47094/*http:/farechase.yahoo.com/;_ylc=X3oDM
TFicDJoNDllBF9TAzk3NDA3NTg5BHBvcwMxMwRzZWMDZ3JvdXBzBHNsawNlbWFpbC1uY20-
with Yahoo! FareChase.





Best Regards

Kanu Kukreja



Luggage? GPS? Comic books? 
Check out fitting gifts for grads
http://us.rd.yahoo.com/evt=48249/*http:/search.yahoo.com/search?fr=oni_
on_mailp=graduation+giftscs=bz at Yahoo! Search.

 

 



RE: [flexcoders] Re: Datagrid with bound dataProvider not updating.

2007-05-29 Thread Tracy Spratt
I think Alex called invalidateDisplayList a big hammer.

 

The best solution to this is to never use Array, or XMLList for dynamic
dataProviders, since their methods do not dispatch the necessary events
to update the UI.  Instead, wrap Array in ArrayCollection, and CMLList
in XMLListCollection, or use XML directly.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of beecee1977
Sent: Tuesday, May 29, 2007 6:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Datagrid with bound dataProvider not updating.

 

Call refresh() on what? The dataGrid doesn't have a refresh() method.

It is an Array rather than an ArrayCollection. Could that be the 
problem? This could require a lot of refactoring!

Scratch all that... myDatagrid.invalidateDisplayList() did the trick!

Thanks!

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Angus Johnson [EMAIL PROTECTED] 
wrote:

 arrayCollection or array? Try calling refresh() after the change.
 
 
 On 29/05/07, beecee1977 [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I have a datagrid with the dataProvider bound to an array of 
objects.
 
  If I remove one of the items from the array the datagrid doesn't 
update
  to reflect this. Debugging and looking at the dataProvider's 
length it
  has updated, but that's not what's displayed.
 
  I've tried using validateNow() but that doesn't work. If I click 
on one
  of the column headers it updates. Currently I'm having to 
explicitly
  set the dataProvider in code, but then I lose the binding.
 
  Any suggestions?
 
  Thanks
  Bill
 
  
 


 



RE: [flexcoders] How to get the target node in dragEnter()

2007-05-29 Thread Tracy Spratt
...don't think the default tree behavior is to set selectionItem on
dragEnter... No, it is not, but that is the technique all the examples
I see use to determine the target tree node.  But that technique changes
the dragSource.

 

I am going to use a different UI for my needs this time.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Tuesday, May 29, 2007 2:15 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to get the target node in dragEnter()

 

I don't think the default tree behavior is to set selectionItem on
dragEnter.  There doesn't look like there is a documented way to do
this, but maybe using some mx_internal stuff (_dropData) you can get
what you want.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Monday, May 28, 2007 7:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to get the target node in dragEnter()

 

I need a reference to the tree/xml node that is the current target of a
drag/drop operation from within dragEnter.

All of the examples I see use calculateDropIndex and set the
selectedItem, but I do not want to select the tree item on dragOver.

How can I tell what the drop target node is?

Tracy

 



RE: [flexcoders] show value in combobox

2007-05-29 Thread Alex Harui
You correct.  A reference is required, although for straight strings,
all strings of the same value refer to the same object.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Tuesday, May 29, 2007 10:36 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] show value in combobox

 

As I understand it, selectedItem requires a *reference* to the item you
want to select.  It does not do a search of the dataProvider item
properties (how could it know which properties to use?) to find a match
for a value.

 

I think you will need to use the iteration logic.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Harish Sivaramakrishnan
Sent: Tuesday, May 29, 2007 1:51 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] show value in combobox

 

Kanu,

It is not recommended to use scalar values into your dataProvider,
instead use the format {label:varun},{label:manav} instead of using
varun, manav ... etc.

For solving your issue, use the selectedItem property on the combbox.

thanks
Harish

On 5/29/07, kanu kukreja  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Tx for the quick reply Tracy

 

But i was expecting some property for this insted of applying this
logic.

 

Is there is any property?



Tracy Spratt [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
wrote:

You need to loop over the dataProvider, comparing the
appropriate property value to the match value, then set the comboBox
selectedIndex when you match.

Tracy





From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
ups.com http://ups.com ] On Behalf Of kanu kukreja
Sent: Monday, May 28, 2007 3:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] show value in combobox 

there is a combobox with 3 values:

kanu

manav 

varun

through webservices i'm getting varun

which i need to show in a combobox after clicking a button 

how to do this?

Best Regards

Kanu Kukreja 

  





Looking for a deal? Find great prices on flights and hotels
http://us.rd.yahoo.com/evt=47094/*http:/farechase.yahoo.com/;_ylc=X3oDM
TFicDJoNDllBF9TAzk3NDA3NTg5BHBvcwMxMwRzZWMDZ3JvdXBzBHNsawNlbWFpbC1uY20-
with Yahoo! FareChase.






Best Regards

Kanu Kukreja



Luggage? GPS? Comic books? 
Check out fitting gifts for grads
http://us.rd.yahoo.com/evt=48249/*http:/search.yahoo.com/search?fr=oni_
on_mailp=graduation+giftscs=bz at Yahoo! Search.

 

 



[flexcoders] Re: [cairngorm-devel] Flex HotFix 2 and Cairngorm 2.2

2007-05-29 Thread kyle.vanvranken
It's really not that big of a deal. I mean extracting a zip is not
that hard I was just saying in an ideal situation using the updater
would be nice. I suppose that if I had to choose between waiting
longer for hotfixes or having to manual patch I most defiantly choose
manual patching! :)

Also any ETA on the hotfix friendly Cairngorm?



[flexcoders] Re: Client IP Address

2007-05-29 Thread lanlin998
Adam,

Thanks for the suggestion.  You are exactly right about the 
anonymous client login.  However, we don't just have anonymous 
users.  Here is the goal:  We have two types of clients:  one from a 
unique touch-screen panel mounted on the wall that stays in a fixed 
location.  Since there is no keyboard available, the server would 
automatically let the browser from the touch-screen host log in.   
The other type of client is any regular browser that come form any 
where. The server will require this type of user to enter user name 
and password.  So far, we can only think of using the IP to 
identilfy the touch-screen host from the rest.  Since the client is 
written in FLASH and can't get the client IP to the server, we 
thought about let the backend auto detect the client IP and let the 
user login without a password.  But our backend uses axis/tomcat. Do 
you know a way that the axis web service can get the client IP? 

I am so stuck!  Can't believe a simple thing like that can be so 
hard.  Any help is very appreciated!

Lan

--- In flexcoders@yahoogroups.com, Adam Royle [EMAIL PROTECTED] wrote:

 AFAIK you can't get the client ip address using 
flash/flex/javascript. Apparently you can get it using a Java 
Applet... but I would ask why you need their ip address. 
 
 Are you trying to use ip address to identify an anonymous client 
session without having the user login? The way I did this was to 
create a random UUID and pass that through querystring with my calls 
to the server. I would then create a database session based on this 
UUID. Something like this
 
 
 import mx.utils.UIDUtil;
 
 public var gateway:RemotingConnection;
 
 public function init():void
 {
  var uid:String = UIDUtil.createUID();
  var url:String = http://myurl.com/gateway.php?uid=+uid;
  gateway = new RemotingConnection( url );
 }
 
 
 Hope that helps. If not, have a great Easter!
 
 Adam
 
   - Original Message - 
   From: lanlin998 
   To: flexcoders@yahoogroups.com 
   Sent: Friday, April 06, 2007 11:35 PM
   Subject: [flexcoders] Re: Client IP Address
 
 
   --- In flexcoders@yahoogroups.com, Bhuvan Gupta eaiesb@ wrote:
   
Hi All,

I want to send client's (browser's) IP address to the backend.
As I understand, Flex doesn't provide support to fetch the 
client 
   IP 
Address.
What is the best and browser independent way to send client IP 
to 
   the 
backend ?

Thanks
   
   Hi, have you found the solution yet? I am in a similar 
situation. I 
   need to find out the host name of the client machine so I can 
send 
   different WebService calls to the server. 
 
   Thanks





Re: [flexcoders] Re: Client IP Address

2007-05-29 Thread Guillermo Villasana
Lan, why don't you wrap the flex application in a simple .jsp or .php, 
and let that file take care of the IP using a session or something of 
the sort?

Best regards
Terius

lanlin998 wrote:

 Adam,

 Thanks for the suggestion. You are exactly right about the
 anonymous client login. However, we don't just have anonymous
 users. Here is the goal: We have two types of clients: one from a
 unique touch-screen panel mounted on the wall that stays in a fixed
 location. Since there is no keyboard available, the server would
 automatically let the browser from the touch-screen host log in.
 The other type of client is any regular browser that come form any
 where. The server will require this type of user to enter user name
 and password. So far, we can only think of using the IP to
 identilfy the touch-screen host from the rest. Since the client is
 written in FLASH and can't get the client IP to the server, we
 thought about let the backend auto detect the client IP and let the
 user login without a password. But our backend uses axis/tomcat. Do
 you know a way that the axis web service can get the client IP?

 I am so stuck! Can't believe a simple thing like that can be so
 hard. Any help is very appreciated!

 Lan




[flexcoders] Error trying to load CFEclipse plugin into FlexBuilder standalone

2007-05-29 Thread Ariel Jakobovits
is anyone running cfeclipse in flex builder standalone?


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


[flexcoders] FileSize: modules/rsl

2007-05-29 Thread mapper2255

Good Morning,

I am trying to move from the newbie class to a moderately capable 
Flex Programmer.

I would like to make some income as I do this.

I have decided to use the Flex Explorer (with proper credits of 
course) structure as a learning platform.

For my purposes Flex Explorer is too large of a file size. I have 
decided to create modules of each view. 

I have taken each category of view, buttons/navigators/rules ect and 
put into their own folder. I have compiled, debugged and have it 
running.

I have run an externalLink report which to no surprise shows a 
massive amount of classes.

I get an error when trying to compile the module: it cannot find the 
*.as file to include though this file is found before the external 
link report is run (after the separation of category views).

Is there something about including *.as files with regards to -load-
externs=report.xml?

Is there better documentation or an example of what I am trying to 
do out there?

I ran into this: 
http://blogs.adobe.com/rgonzalez/2006/06/modular_applications_part_2.
html though for the next couple weeks it is above my pay scale.

Should I be trying to use RSL's instead: 
http://www.adobe.com/devnet/flex/articles/rsl_print.html?

Thanks.



[flexcoders] Two was chat

2007-05-29 Thread Christopher Olsen
Anyone here working on a two way chat application?

-Christopher



Re: [flexcoders] Best way to convert PNG to for usable in Flex

2007-05-29 Thread Impudent1
 We are working on a project where we need to be able to work with
 large size
 PNG files using transparency. What is the best way to convert these
 transparent PNG files so that they can be properly displayed and
 worked with
 in Flash?

Why not use Bridge from CS3?

In Bridge: Create/open the folder containing all your large PNGs.
Tools - Fireworks - Batch process.

This will open up Fireworks and its batch window. Add a Scale operator 
and below it an export operator, Select the Scale operator and set its 
Scale to Size and adjust as needed. Select the Export operator and set 
it to Custom, click the edit button and set your exporter to png 32 and ok.

Clicking next will bring you to the save options allowing you to target 
output or overwrite. You can also save out this script and use it for 
any future converts you wish to match.

HTH

Impudent1
LeapFrog Productions


RE: [flexcoders] Re: Client IP Address

2007-05-29 Thread Tracy Spratt
I do exactly this, but using a .net backend.  There I use:

Request.ServerVariables(remote_addr)

To get the client IP address.

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Guillermo Villasana
Sent: Tuesday, May 29, 2007 2:22 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Client IP Address

 

Lan, why don't you wrap the flex application in a simple .jsp or .php, 
and let that file take care of the IP using a session or something of 
the sort?

Best regards
Terius

lanlin998 wrote:

 Adam,

 Thanks for the suggestion. You are exactly right about the
 anonymous client login. However, we don't just have anonymous
 users. Here is the goal: We have two types of clients: one from a
 unique touch-screen panel mounted on the wall that stays in a fixed
 location. Since there is no keyboard available, the server would
 automatically let the browser from the touch-screen host log in.
 The other type of client is any regular browser that come form any
 where. The server will require this type of user to enter user name
 and password. So far, we can only think of using the IP to
 identilfy the touch-screen host from the rest. Since the client is
 written in FLASH and can't get the client IP to the server, we
 thought about let the backend auto detect the client IP and let the
 user login without a password. But our backend uses axis/tomcat. Do
 you know a way that the axis web service can get the client IP?

 I am so stuck! Can't believe a simple thing like that can be so
 hard. Any help is very appreciated!

 Lan


 



{Disarmed} Re: [flexcoders] Flex on Mac

2007-05-29 Thread fuad_kamal
I guess we must be running on diferent platforms, versions, or
something.  In flexbuilder (not the eclipse plug-in) on Mac, there is
no new window option under File, and File-New pulls up a secondary
menu (new MXML, etc.), of which new window is not an option.


--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Friday 25 May 2007, fuad_kamal wrote:
  Interesting...on Windows platform Eclipse will throw a warning if you
  try to open a second instance.  How do you open a new Eclipse window
  on Mac?  Hitting command-N opens the 'new' wizard.  Are you running
 
 File-New window on 'nix.
 
 -- 
 Tom Chiverton
 Helping to enormously disseminate high-yield market-growth
 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.





Re: [flexcoders] Re: Client IP Address

2007-05-29 Thread Paul deCoursey
I had a similar setup.  What I did was added an optional onscreen 
keyboard on the login page.  and if you use a certain login id then it 
sets a localSharedObject that is a authentication key that associates 
the client as a kiosk from that point on.  Then when the app is loaded 
it checks for the LSO and if it exists and is valid it is logged in 
automatically.

Hope that helps.

Paul


lanlin998 wrote:
 Adam,

 Thanks for the suggestion.  You are exactly right about the 
 anonymous client login.  However, we don't just have anonymous 
 users.  Here is the goal:  We have two types of clients:  one from a 
 unique touch-screen panel mounted on the wall that stays in a fixed 
 location.  Since there is no keyboard available, the server would 
 automatically let the browser from the touch-screen host log in.   
 The other type of client is any regular browser that come form any 
 where. The server will require this type of user to enter user name 
 and password.  So far, we can only think of using the IP to 
 identilfy the touch-screen host from the rest.  Since the client is 
 written in FLASH and can't get the client IP to the server, we 
 thought about let the backend auto detect the client IP and let the 
 user login without a password.  But our backend uses axis/tomcat. Do 
 you know a way that the axis web service can get the client IP? 

 I am so stuck!  Can't believe a simple thing like that can be so 
 hard.  Any help is very appreciated!

 Lan

 --- In flexcoders@yahoogroups.com, Adam Royle [EMAIL PROTECTED] wrote:
   
 AFAIK you can't get the client ip address using 
 
 flash/flex/javascript. Apparently you can get it using a Java 
 Applet... but I would ask why you need their ip address. 
   
 Are you trying to use ip address to identify an anonymous client 
 
 session without having the user login? The way I did this was to 
 create a random UUID and pass that through querystring with my calls 
 to the server. I would then create a database session based on this 
 UUID. Something like this
   
 import mx.utils.UIDUtil;

 public var gateway:RemotingConnection;

 public function init():void
 {
  var uid:String = UIDUtil.createUID();
  var url:String = http://myurl.com/gateway.php?uid=+uid;
  gateway = new RemotingConnection( url );
 }


 Hope that helps. If not, have a great Easter!

 Adam

   - Original Message - 
   From: lanlin998 
   To: flexcoders@yahoogroups.com 
   Sent: Friday, April 06, 2007 11:35 PM
   Subject: [flexcoders] Re: Client IP Address


   --- In flexcoders@yahoogroups.com, Bhuvan Gupta eaiesb@ wrote:
   
Hi All,

I want to send client's (browser's) IP address to the backend.
As I understand, Flex doesn't provide support to fetch the 
 
 client 
   
   IP 
Address.
What is the best and browser independent way to send client IP 
 
 to 
   
   the 
backend ?

Thanks
   
   Hi, have you found the solution yet? I am in a similar 
 
 situation. I 
   
   need to find out the host name of the client machine so I can 
 
 send 
   
   different WebService calls to the server. 

   Thanks

 



   



[flexcoders] Re: Showing item roll over color in a data grid manually

2007-05-29 Thread Sandeep Malik
Hi there,

Thanks a lot for your code snippet and thanks for your time!

However, I wanted to have a itemRollOver color on the data grid.
Setting of selectedIndex on data grid sets the selectionColor and 
may change certain other things as selectedIndex is a bindable 
property.

Is there any other way, probably short of painting the row with 
a itemRollOver color?

Regards,
Sandeep

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

 use the hitData object of the ChartItemEvent class
 
 sample is as follows :
 
 
 ?xml version=1.0?
 !-- Simple example to demonstrate the PieChart control. --
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute
 
 mx:Script
 ![CDATA[
 import mx.controls.Alert;
 import mx.collections.ArrayCollection;
 import mx.charts.events.ChartItemEvent;
 [Bindable]
 private var medalsAC:ArrayCollection = new ArrayCollection
( [
 { Country: USA, Gold: 35, Silver:39, Bronze: 29 },
 { Country: China, Gold: 32, Silver:17, Bronze: 14 },
 { Country: Russia, Gold: 27, Silver:27, Bronze: 
38 } ]);
 
 private function displayGold(data:Object, field:String,
 index:Number, percentValue:Number):String {
 var temp:String= (  + percentValue).substr(0,6);
 return data.Country + :  + '\n' + Total Gold:  + 
data.Gold +
 '\n' + temp + %;
 }
 private function rollOverp(evt:ChartItemEvent){
 dg.selectedIndex =evt.hitData.chartItem.index
 }
 ]]
 /mx:Script
 
 mx:PieChart id=chart height=334 width=374
 showDataTips=true dataProvider={medalsAC}  x=21 
y=10
 themeColor=#804000   itemRollOver=rollOverp(event) 
 mx:series
 mx:PieSeries labelPosition=callout field=Gold
 labelFunction=displayGold/
 /mx:series
 /mx:PieChart
 mx:DataGrid  id =dg dataProvider={medalsAC} x=441 
y=323/
 /mx:Application
 
 Regards
 PS å
 
 On 5/26/07, Sandeep Malik [EMAIL PROTECTED] wrote:
 
Guys,
 
  We are having a data grid and a pie chart which show the same 
data.
  What we want is when user does a mouse over (or item roll 
over)
  over a wedge in pie chart, then the corresponding row in data 
grid
  should also show a itemRollOver color and vice versa.
 
  Any suggestions will be appreciated.
 
  Regards,
  Sandeep
 
   
 





[flexcoders] Re: Superimposing chart.

2007-05-29 Thread Sandeep Malik
Not sure, but try to use one of the following:
1. Use annotationElements of area chart and put line series as 
annotation element.

2. Use backgroundElements of line series and put area chart as 
background element.

PS: Suggestion 2 might interfere with the grid lines of line series.

Regards,
Sandeep

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

 Hi everyone,
 
 Is it possible to have two area series, stacked on top of each 
other, 
 superimposed (overlaid) to a line series?  The idea is to have the 
area 
 chart stacked and the line series appear in front of the stacked 
area 
 chart.
 Thanks,
 
 Ivan.





Re: [flexcoders] Error trying to load CFEclipse plugin into FlexBuilder standalone

2007-05-29 Thread Muzak
Yup, have been since I first got FB (when it was released).
Never had any problems with it.

Now running FB 2.01 standalone and CFEclipse 1.3.1.4

I do not have the CF extensions for FB installed though.

regards,
Muzak

- Original Message - 
From: Ariel Jakobovits [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: flexcoders@yahoogroups.com
Sent: Tuesday, May 29, 2007 8:40 PM
Subject: [flexcoders] Error trying to load CFEclipse plugin into FlexBuilder 
standalone


 is anyone running cfeclipse in flex builder standalone?




[flexcoders] Weird behavior with URLStream

2007-05-29 Thread Sandeep Malik
Guys,

We're seeing something weird. We're streaming a lot of data from 
server. This data comes in three chunks, each of size ~ 4 M. We fire 
all the three requests simultaneously with three different 
URLStreams.
However, it seems like Flash Player only loads at max 2 requests at 
a given point of time. We get chunk 1, then when its ~ 75% over, 
chunk 2 starts and when chunk 2 is ~ 75% over (chunk 1 has already 
finished), chunk 3 starts.

What's more, if we open a new browser simultaneously, none of the 
requests get fired from there as if they are waiting for other 
streams to finish first!

This might seem like that the issue could be that the read cache of 
sokcet of the underlying OS gets choked and hence the delay, but we 
strip this cache of the data as soon as it arrives there.

Has any one seen this behavior before?

Regards,
Sandeep




Re: [flexcoders] Re: Client IP Address

2007-05-29 Thread Jamal Romero
Hi,
I came across this problem using Axis. I remember that
org.apache.axis.MessageContext holds all the
information related to the application context. Just a
small google search I'v found this page:
http://www.nomachetejuggling.com/2006/01/31/getting-remote-ip-address-in-axis/
which explains the remote IP address. Maybe that helps


--- lanlin998 [EMAIL PROTECTED] wrote:

 Adam,
 
 Thanks for the suggestion.  You are exactly right
 about the 
 anonymous client login.  However, we don't just have
 anonymous 
 users.  Here is the goal:  We have two types of
 clients:  one from a 
 unique touch-screen panel mounted on the wall that
 stays in a fixed 
 location.  Since there is no keyboard available, the
 server would 
 automatically let the browser from the touch-screen
 host log in.   
 The other type of client is any regular browser that
 come form any 
 where. The server will require this type of user to
 enter user name 
 and password.  So far, we can only think of using
 the IP to 
 identilfy the touch-screen host from the rest. 
 Since the client is 
 written in FLASH and can't get the client IP to the
 server, we 
 thought about let the backend auto detect the client
 IP and let the 
 user login without a password.  But our backend uses
 axis/tomcat. Do 
 you know a way that the axis web service can get the
 client IP? 
 
 I am so stuck!  Can't believe a simple thing like
 that can be so 
 hard.  Any help is very appreciated!
 
 Lan
 
 --- In flexcoders@yahoogroups.com, Adam Royle
 [EMAIL PROTECTED] wrote:
 
  AFAIK you can't get the client ip address using 
 flash/flex/javascript. Apparently you can get it
 using a Java 
 Applet... but I would ask why you need their ip
 address. 
  
  Are you trying to use ip address to identify an
 anonymous client 
 session without having the user login? The way I did
 this was to 
 create a random UUID and pass that through
 querystring with my calls 
 to the server. I would then create a database
 session based on this 
 UUID. Something like this
  
  
  import mx.utils.UIDUtil;
  
  public var gateway:RemotingConnection;
  
  public function init():void
  {
   var uid:String = UIDUtil.createUID();
   var url:String =
 http://myurl.com/gateway.php?uid=+uid;
   gateway = new RemotingConnection( url );
  }
  
  
  Hope that helps. If not, have a great Easter!
  
  Adam
  
- Original Message - 
From: lanlin998 
To: flexcoders@yahoogroups.com 
Sent: Friday, April 06, 2007 11:35 PM
Subject: [flexcoders] Re: Client IP Address
  
  
--- In flexcoders@yahoogroups.com, Bhuvan Gupta
 eaiesb@ wrote:

 Hi All,
 
 I want to send client's (browser's) IP address
 to the backend.
 As I understand, Flex doesn't provide support
 to fetch the 
 client 
IP 
 Address.
 What is the best and browser independent way
 to send client IP 
 to 
the 
 backend ?
 
 Thanks

Hi, have you found the solution yet? I am in a
 similar 
 situation. I 
need to find out the host name of the client
 machine so I can 
 send 
different WebService calls to the server. 
  
Thanks
 
 
 
 



   
Building
 a website is a piece of cake. Yahoo! Small Business gives you all the tools to 
get online.
http://smallbusiness.yahoo.com/webhosting 


Re: [flexcoders] Error trying to load CFEclipse plugin into FlexBuilder standalone

2007-05-29 Thread Derrick Anderson
i installed cfeclipse on FB standalone, the install seemed to go fine- but 
something is keeping it from loading- i do not see the cfeclipse perspective

- Original Message 
From: Muzak [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, May 29, 2007 3:14:14 PM
Subject: Re: [flexcoders] Error trying to load CFEclipse plugin into 
FlexBuilder standalone









  



Yup, have been since I first got FB (when it was released).

Never had any problems with it.



Now running FB 2.01 standalone and CFEclipse 1.3.1.4



I do not have the CF extensions for FB installed though.



regards,

Muzak



- Original Message - 

From: Ariel Jakobovits [EMAIL PROTECTED] com

To: [EMAIL PROTECTED] com

Cc: [EMAIL PROTECTED] ups.com

Sent: Tuesday, May 29, 2007 8:40 PM

Subject: [flexcoders] Error trying to load CFEclipse plugin into FlexBuilder 
standalone



 is anyone running cfeclipse in flex builder standalone?






  







!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
..bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a {
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc {
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o {font-size:0;}
..MsoNormal {
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
..replbq {margin:4;}
--








  
Shape
 Yahoo! in your own image.  Join our Network Research Panel today!   
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 



Re: [flexcoders] Re: Superimposing chart.

2007-05-29 Thread Brendan Meutzner

If you're talking about series data that is using the same axis values, you
can just add multiple AreaSeries and LineSeries elements to a single
CartesianChart instance.  If the LineSeries uses a different scale, just add
it to the secondVerticalAxis instance using the secondDataProvider as it's
value set.  Just make sure that you create your AreaSeries before the
LineSeries and the Line should overlay the Area instances... Unless there's
something here I'm missing...


Brendan


On 5/29/07, Sandeep Malik [EMAIL PROTECTED] wrote:


  Not sure, but try to use one of the following:
1. Use annotationElements of area chart and put line series as
annotation element.

2. Use backgroundElements of line series and put area chart as
background element.

PS: Suggestion 2 might interfere with the grid lines of line series.

Regards,
Sandeep

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
ivansebastiansurya
[EMAIL PROTECTED] wrote:

 Hi everyone,

 Is it possible to have two area series, stacked on top of each
other,
 superimposed (overlaid) to a line series? The idea is to have the
area
 chart stacked and the line series appear in front of the stacked
area
 chart.
 Thanks,

 Ivan.


 





--
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca


[flexcoders] FDS 30 Minute Testdrive Project - problems creating a new project

2007-05-29 Thread annespg
I'm trying to use the FDS 30 Minute TestDrive sample apps inside 
Flex Builder.  I downloaded the test drive and all the samples work 
just dandy fine, and I can view the source etc.  So I wanted to load 
some of the sample apps into Flex Builder so that I could modify and 
play with them with the debugger so as to learn more.  

I've tried the following:
create New Project - use Flex Data Services/compile app locally
Root Folder: C:\fds-tomcat\webapps\ROOT
Root URL: http://localhost:8600/ROOT. When I click Finish, I get the 
following 3 errors in the Output panel:

unable to load SWC fds.swc: multiple points
unable to load SWC fds.swc: multiple points
The definition of base class Locale was not found
Could not resolvemx:Application to a component implementaion

I am on Flex 2.0.143459.

I've verified that fds.swc is indeed in the 
C:\fds-tomcat\webapps\ROOT\WEB-INF\flex\libs  folder.
I don't know what the other messages mean or what to do.

I then stubbornly unzipped one of the sample apps into the 
FlexBuilder project folder (which I named FDS TestDrive Samples) and 
tried to run it anyway to see if I could get more info.  I then get 
a browser window with the following additional errors:
type Status report
message /ROOT/FDS%20TestDrive%20Samples/Chat.html
description The requested resource (/ROOT/FDS%20TestDrive%
20Samples/Chat.html) is not available.

So I guess one problem is that it is not making an html document.  
But I don't know how to correct that.

I have no idea what to do.  Any help would be GREATLY appreciated.



RE: [flexcoders] Re: Superimposing chart.

2007-05-29 Thread Ely Greenfield
 

 

CartesianChart

   series

   AreaSet type=stacked

   AreaSeries ... /

   AreaSeries ... /

/

  LineSeries ... /

/

   

 /

   

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sandeep Malik
Sent: Tuesday, May 29, 2007 12:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Superimposing chart.

 

Not sure, but try to use one of the following:
1. Use annotationElements of area chart and put line series as 
annotation element.

2. Use backgroundElements of line series and put area chart as 
background element.

PS: Suggestion 2 might interfere with the grid lines of line series.

Regards,
Sandeep

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, ivansebastiansurya 
[EMAIL PROTECTED] wrote:

 Hi everyone,
 
 Is it possible to have two area series, stacked on top of each 
other, 
 superimposed (overlaid) to a line series? The idea is to have the 
area 
 chart stacked and the line series appear in front of the stacked 
area 
 chart.
 Thanks,
 
 Ivan.


 

image001.jpgimage002.jpg

Re: {Disarmed} RE: {Disarmed} RE: [flexcoders] Flickr - Issue with LoaderContext

2007-05-29 Thread Jurgen Beck
All true. Seeing that there really is no alternative other than using a 
proxy server, I implemented a solution that seems to be working for this 
specific application.


I ended up using at32.com ReverseProxy (http://www.at32.com), which is 
for Windows. As long as the reverse proxy is bound to the IP address 
that the Flex application is running on not even a crossdomain.xml is 
needed.


Hope this helps someone else.

Jurgen

Alex Harui wrote:


Roughly speaking:

 


AppDom/SecDom are for ActionScript code/classes.

crossdomain.xml allows you to import code/classes into the same 
SecDom/AppDom so you can use the classes, otherwise you end up in a 
separate sandbox


All instances of things in a separate sandbox are off-limits, and 
cannot access you either.


crossdomain.xml also allows you to access the display area of 
displayobjects and image data because it effectively imports that 
thing into your sandbox


AllowDomain permits code in another sandbox to touch things in your 
sandbox


 

There is a security white paper on adobe.com that tries to explain 
all of this.  The idea is that you cannot use Flash as a screenscraper 
of other flash content or image data w/o permission of the server 
owner for both spoofing and server load reasons.  And, of course, you 
don't want to accidentally load bad code and have it steal stuff from you.


 

Flickr used to have crossdomain.xml files in the correct places, but 
pulled them for some reason.  I think if you google around you'll find 
out why.  So suddenly, they've made flash apps harder and proxy 
servers are needed.


 


HTH,

-Alex

 

 

 




*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
*On Behalf Of *Jurgen Beck

*Sent:* Saturday, May 26, 2007 5:14 AM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: {Disarmed} RE: [flexcoders] Flickr - Issue with 
LoaderContext


 

I had this working for most part, retrieving and displaying the images 
from Flickr, but BitmapData.draw was always throwing a security 
sandbox violation when I needed to hide the canvas the Flickr images 
were displayed in. Karl Johnson has written more about it here:


http://www.cynergysystems.com/blogs/page/karljohnson?entry=working_around_security_sandbox_errors 
http://www.cynergysystems.com/blogs/page/karljohnson?entry=working_around_security_sandbox_errors


The problem is that the crossdomain.xml is at 
http://api.flickr.com/crossdomain.xml 
http://api.flickr.com/crossdomain.xml, but the actual images are 
pulled from http://farm1.static.flickr.com/ 
http://farm1.static.flickr.com/... So running the app, I am seeing 
an error:


Failed to load policy file from 
http://farm1.static.flickr.com/crossdomain.xml 
http://farm1.static.flickr.com/crossdomain.xml


We're obviously not loading the crossdomain.xml from the right place, 
as there is no crossdomain.xml at that location.


Next, I looked closer at James Ward's example of using Ely's 
DisplayShelf component to retrieve images from Flickr:


http://www.jamesward.org/wordpress/2006/11/06/flex-widgets-from-widgetslive/ 
http://www.jamesward.org/wordpress/2006/11/06/flex-widgets-from-widgetslive/


The AppDom and SecDom approach is taken from Ely's DisplayShelf 
component, where he uses it with the SWFLoader. May not be needed for 
images, I simply just left it in there.


I've taken a second look at Jame's write-up and he's posted a 
follow-up in the comment section on April 20, 2007 where he's showing 
a proxy setup to get around the issues at hand. His example wouldn't 
work either until the proxy setup was in place.


This may be what I have to do as well. It's just amazing to me that 
there is no unified approach to this. I agree with you, either you 
have access permission to the images, or you don't.


Jurgen

Alex Harui wrote:

I'm not clear that AppDom and SecDom affect loading images (JPG, GIF, 
etc).  You either have permission from the crossdomain.xml at 
flickr.com or you don't.


 


You can almost always load it, you just can't always access its pixels.

 




*From:* flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] *On Behalf Of *Jurgen Beck

*Sent:* Friday, May 25, 2007 3:34 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Flickr - Issue with LoaderContext

 


I'm running into security sandbox violation issues trying to load images
from a Flickr account.

Since the Image component derives from SWFLoader I am setting the
LoaderContext before the image source is assigned. The image component
is used inside my custom component, which in turn is used as an
itemRenderer in a TileList.

Here is the image component code fragment:

mx:Image id=imgThumbnail
source={data.url}
initialize=imageInit()
width=75 height=75/

Here is my imageInit() method:

private function imageInit():void {
loaderContext = new LoaderContext();

RE: [flexcoders] Re: Showing item roll over color in a data grid manually

2007-05-29 Thread Alex Harui
I would consider customizing the renderers to show a different backgroundColor, 
not necessarily the highlightColor.  There's an example of a lightweight 
background renderer on my blog (blogs.adobe.com/aharui) which you would tie 
into some logic as to whether that item is the current chart item

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sandeep 
Malik
Sent: Tuesday, May 29, 2007 12:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Showing item roll over color in a data grid manually

 

Hi there,

Thanks a lot for your code snippet and thanks for your time!

However, I wanted to have a itemRollOver color on the data grid.
Setting of selectedIndex on data grid sets the selectionColor and 
may change certain other things as selectedIndex is a bindable 
property.

Is there any other way, probably short of painting the row with 
a itemRollOver color?

Regards,
Sandeep

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
learner [EMAIL PROTECTED] wrote:

 use the hitData object of the ChartItemEvent class
 
 sample is as follows :
 
 
 ?xml version=1.0?
 !-- Simple example to demonstrate the PieChart control. --
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
 http://www.adobe.com/2006/mxml  
layout=absolute
 
 mx:Script
 ![CDATA[
 import mx.controls.Alert;
 import mx.collections.ArrayCollection;
 import mx.charts.events.ChartItemEvent;
 [Bindable]
 private var medalsAC:ArrayCollection = new ArrayCollection
( [
 { Country: USA, Gold: 35, Silver:39, Bronze: 29 },
 { Country: China, Gold: 32, Silver:17, Bronze: 14 },
 { Country: Russia, Gold: 27, Silver:27, Bronze: 
38 } ]);
 
 private function displayGold(data:Object, field:String,
 index:Number, percentValue:Number):String {
 var temp:String= (  + percentValue).substr(0,6);
 return data.Country + :  + '\n' + Total Gold:  + 
data.Gold +
 '\n' + temp + %;
 }
 private function rollOverp(evt:ChartItemEvent){
 dg.selectedIndex =evt.hitData.chartItem.index
 }
 ]]
 /mx:Script
 
 mx:PieChart id=chart height=334 width=374
 showDataTips=true dataProvider={medalsAC} x=21 
y=10
 themeColor=#804000 itemRollOver=rollOverp(event) 
 mx:series
 mx:PieSeries labelPosition=callout field=Gold
 labelFunction=displayGold/
 /mx:series
 /mx:PieChart
 mx:DataGrid id =dg dataProvider={medalsAC} x=441 
y=323/
 /mx:Application
 
 Regards
 PS å
 
 On 5/26/07, Sandeep Malik [EMAIL PROTECTED] wrote:
 
  Guys,
 
  We are having a data grid and a pie chart which show the same 
data.
  What we want is when user does a mouse over (or item roll 
over)
  over a wedge in pie chart, then the corresponding row in data 
grid
  should also show a itemRollOver color and vice versa.
 
  Any suggestions will be appreciated.
 
  Regards,
  Sandeep
 
  
 


 



[flexcoders] examples of advanced datagrid functions (paging/filters)

2007-05-29 Thread Derrick Anderson
Hi,

does anybody know where i can find a good example of a datagrid that does 
recordset paging (where each page makes a request to the server to lazy load 
the data).  i'm also looking for a nifty way of handling search filters as 
well.  i'm googling but coming up blank.

thanks in advance.

d.




   
Be
 a better Globetrotter. Get better travel answers from someone who knows. 
Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=listsid=396545469

[flexcoders] Defining a dynamic UI

2007-05-29 Thread gary_mangum
Is it possible to pre-define a set of MXML components but not create
them or add them to a Container in the application until a later time.
 In other words, I want to define some components, complete with
properties, events, etc. that will not be part of my UI until I
dynamically add them as the application runs.  I will decide whether
or not to add them based on runtime criteria.

I know that I can use states to add and remove components.  If I use
states, is there a way to define a component only once in MXML and
then add it in 3-4 different states?  I do not wish to define my
component over and over inside of AddChild tags, and my components are
not really specialized enough to warrant their own MXML files since
there are many of them and the only real differences are their
properties, events, etc.

I've also thought that I could manually define my components in AS and
keep them in memory until needed, but would rather define them in MXML
if possible.  I would also like to create the components
just-in'time instead of creating them up front when they may never
be needed.

Anyway, thanks for any thoughts on this topic!



[flexcoders] Re: Client IP Address

2007-05-29 Thread lanlin998
It worked !!  Thanks Jamal for such a prompt and effective response.  
Credit to Rod Hilton for posting the solution as well.




  1   2   >