[flexcoders] Re: Draw a threshold line on a chart

2008-12-04 Thread Oscar Cortes


   I had to solve the same problem some time ago and entered this post in
the Flex Cookbook:

Drawing a horizontal line across a columnChart

http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails\
postId=2041productId=2loc=en_US
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetail\
spostId=2041productId=2loc=en_US

Oscar Cortes

http://www.holaflex.com http://www.holaflex.com

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

 Hello,
 I need to be able to draw a horizontal line (threshold) starting from
 a specific value on the Y axis, across the width of the chart. The
 value is set by the user, and when the chart first displays the line
 is not to show. Once the user input the threshold number the line
 displays. I've tried the examples that show the line between two data
 points, but that doesn't work if there is on one column of data on the
 chart, and I'm being pressed to display the line the whole width of
 the chart, not just between columns. Help. Thanks in advance for all
 your help.





[flexcoders] ExternalInterface and XML

2008-08-26 Thread Oscar Cortes

 I added an extra argument to a ExternalInterface called that was 
already working. This argument is an object with one of its 
properties being XML. 
 After I added the object, the JS function  was not being called 
anymore. After a little debugging, it looks like you cannot send XML 
or a nested property in an object with XML. I got this error message 
after calling ExternalInterface.call

Error #1090: XML parser failure: element is malformed.

I will probably end up copying the object and parse the XML to a 
string before passing to JS. But I am curious to hear if someone else 
has run into this issue and if they have any solution to it.

This is simplified example that shows the issue:

package {

import flash.display.Sprite;
import flash.external.ExternalInterface;

public class ExternalInterfaceTest extends Sprite
{
public function ExternalInterfaceTest()
{
callExternalFunction();
}

public function callExternalFunction():void{

var oFormat:Object = new Object();
var myXML:XML = 
rootNodechildTesttest1/childTest/rootNode;
oFormat.name=test;
oFormat.localXML = new XML( 
localXML.toXMLString());
ExternalInterface.marshallExceptions=true;
try{
ExternalInterface.call
(myJSFunction,oFormat);
} catch (e:Error){
trace(e.message);
   //Error #1090: XML parser failure: 
element is malformed.
}


}

}
}


and the JS function:

script language=JavaScript type=text/javascript
function myJSFunction(str) {
alert(str);
}
/script

Thanks




[flexcoders] Re: Combobox shows [object OBJECT]

2008-04-17 Thread Oscar Cortes
 
   Use labelField or labelFunction. For example, if you arrray 
contains objects like oItem.Name, you can do something like:

  labelField=Name

 if your objects are more complex use labelFunction

  Regards,
Oscar 
http://www.holaflex.com

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

 I know I'm missing something here. Problem is I'm still new to Flex 
so its
 real hard for me to find it.
 
 I have a ColdFusion remote object that returns an array made from a 
query.
 The results are fine in a datagrid but just show [object OBJECT] in 
a
 combobox. This is the code in Flex.
 
 mx:Script
 ![CDATA[
 import mx.collections.ArrayCollection;
 import mx.rpc.events.ResultEvent;
 import mx.controls.Alert;
 import mx.utils.ArrayUtil;
 
 [Bindable]
 public var years:ArrayCollection;
 
 private function yearHandler(event:ResultEvent):void{
 years = new ArrayCollection(event.result as Array);
 }
 ]]
 /mx:Script
 
 mx:ComboBox width=67 id=year dataProvider={years} /
 
 Anyone have a suggestion?
 
 Thanks
 
 -- 
 Phil





[flexcoders] Re: Bind to Dynamic Component or Panel

2008-04-16 Thread Oscar Cortes



   It sounds like getChildByName is what you need:

  yourContainer.getChildByName(panel1)

 Regards,

Oscar

http://www.holaflex.com http://www.holaflex.com




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

 I am creating a UI that gets configured from a database. For each DB
 entry it creates a panel dynamically.
 Then I have my app receiving messages. Based on the values in the
 message I decide which panel I want to display the message on.

 My question is when a panel is dynamically generated. How do I
 reference it so I can bind to it.
 i.e panel1.addChild(some object);

 Is there a getelementbyid reference. Does anyone else have a gui like
 this they could explain how they are doing it.

 thanks

 Greg





[flexcoders] Re: Flex SDK2 with Flex Builer 3 ???

2008-04-16 Thread Oscar Cortes



FB 3 has multiple SDK support, so you can add your specific version
under Flex/Installed Flex SDK in Preferences. Click Add and browse for
the SDK's location. Then you can set this SDK as your default SDK or
select it when you create a new Flex project.



Regards,

Oscar

http://www.holaflex.com http://www.holaflex.com


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

 I have one question that can we use Flex SDK 2.0.3 with Flex Builder
 3,if it is possible and any one has done this plz reply.

 Regards,
 Jai Kumar





[flexcoders] Re: Screenshot, someone?

2008-04-16 Thread Oscar Cortes


   Look at the MapCache example in this page :
http://labs.adobe.com/technologies/air/samples/
http://labs.adobe.com/technologies/air/samples/

   I think it has that functionality

   Regards,

Oscar

http://www.holaflex.com http://www.holaflex.com



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


 I forget to tell that it is for a air application :(


 --- In flexcoders@yahoogroups.com, peterflexcoder peterflexcoder@
wrote:
 
  Hi All,
 
  i have a window and with a button i want to make a screenshot from
that window
  How can i make that, or have someone a example
 
  Thanks in advance,
  Peter
 





[flexcoders] Re: Hide calendar for DateField

2008-04-16 Thread Oscar Cortes



Try something like this:

mx:DateField upSkin=mx.skins.ProgrammaticSkin 
overSkin=mx.skins.ProgrammaticSkin/

  The 'empty' skins will be applied to the internal downArrowButton in
the ComboBase class use for that calendar button.

   Regards,

Oscar

http://www.holaflex.com


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

 I'm hoping to hide the icon as well, and reduce the size of the halo
 to just the size of the textbox area.

 Thanks

 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  I would subclass, grab the buttonDown event at a high priority and
  call stopImmediatePropagation
 
 
 
  
 
  From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
  Behalf Of jack_freud
  Sent: Wednesday, April 16, 2008 12:52 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Hide calendar for DateField
 
 
 
  Is it possible to hide the datefield's calendar? I couldn't find a
  property. I tried hiding it with a little canvas but the halo to
 show
  the control has focus extends off to the right where the icon for
 the
  calendar is.
 
  Thanks!
 





[flexcoders] Re: Adding a 'baseline' to a Flex Chart

2008-01-17 Thread Oscar Cortes



  Hi Scott,

I added a recipe in the Flex Cookbook which I think is what you are
looking for:

http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails\
postId=2041productId=2loc=en_US
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetail\
spostId=2041productId=2loc=en_US



Oscar Cortes

http://www.holaflex.com






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

 Hi.

 I am trying to create a LineChart in Flex that has one series and a
 'baseline' (I doubt I am using the correct term there), where the
baseline
 would be a straight line across the chart at a given value.

 For example, let's say that the chart is tracking weight loss or gain
and
 you want to chart a person's weight, this would be the series. If,
however,
 you wanted to show what the suer specifies as their 'goal weight',
have the
 goal weight display as a straight line across the chart at the weight
they
 specify. I have to imagine this is fairly easy to do, but for the life
of
 me, I have been unable to figure it out.

 Thanx in advance for any help.

 --
 Scott Stroz
 Senior Software Architect
 Alagad
 http://www.alagad.com
 1-888 ALAGAD-4 ext.7





[flexcoders] Re: Opening a new BROWSER

2008-01-17 Thread Oscar Cortes


   You can invoke JavaScript with navigateToURL(), so if you know the
JavaScript needed to set up a new window like the one you need, you
should be all set.

See these two links:

http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhel\
p.htm?context=LiveDocs_Book_Partsfile=passingarguments_086_14.html
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhe\
lp.htm?context=LiveDocs_Book_Partsfile=passingarguments_086_14.html

 
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhe\
lp.htm?context=LiveDocs_Book_Partsfile=passingarguments_086_14.html

http://www.pageresource.com/jscript/jwinopen.htm
http://www.pageresource.com/jscript/jwinopen.htm





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



 Hello:

 I am using the following code to open a new browser
 which is triggered by a button click-

 navigateToURL(new URLRequest('http://www.adobe.com'));

 My question is how can I open this new browser without
 the navigation panel and also without all the drop down
 menus of the browser. I just want to have go GO back
 one page and Go forward one page buttons.

 My goal is to hide the url from the users.

 Regards,





[flexcoders] Re: Alert accept html formatting?

2007-11-10 Thread Oscar Cortes


 If you really need this you could access the internal textField and 
use the htmlText property using mx_internal. Of course, this could 
not work with future versions of the Flex SDK.

Example:


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute
   mx:Script
![CDATA[
import mx.controls.Alert;

private var messageAlert:Alert;


private function showAlert():void {
Alert.yesLabel = OK;
Alert.noLabel = Cancel;

messageAlert = Alert.show(
This option is NOT allowed,
   Title,
Alert.NO | Alert.YES
);
/* Access the internal HtmlText. */

messageAlert.mx_internal::alertForm.mx_internal::textField.htmlText=T
his option is bNOT/b allowed;
}
]]
/mx:Script

mx:Style

Alert {
messageStyleName: alertMessageStyle;
}

 .alertMessageStyle {
color: black;
}

/mx:Style

mx:Button label=Show Alert click=showAlert() /

/mx:Application


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

 Kevin,
 
  
 
 You can file an enhancement request (ECR) in the public Flex bug 
base at
 http://bugs.adobe.com/flex/.
 
 File against the Flex SDK, and then select Component: Alert.
 
  
 
 Thanks,
 
 Peter
 
  
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Kevin
 Sent: Saturday, November 10, 2007 8:24 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Alert accept html formatting?
 
  
 
 Is there a simple way to format the text in an alert popup? (I know 
I 
 can always create my own custom PopUps...)
 
 Specifically, it would be nice to bold some words. It might be nice 
 if the Alert had a htmlText property...
 
 - Kevin





[flexcoders] Re: Help! How can I display different colors in one BarSeries?

2007-04-17 Thread Oscar Cortes





See if this entry that I posted while ago on the Flex cookbook helps
you...

http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails\
postId=2021productId=2
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetail\
spostId=2021productId=2

  http://holaflex.ocortes.com


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

 Can somebody help here? I want verticalAxis display different colors
for a single BarSeries. When I tried to use setStyle it does not work.
Is it doable?

 Thanks,
 hq.

 - Original Message 
 From: haiqing7 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Sunday, April 15, 2007 9:59:53 AM
 Subject: [flexcoders] Help! How can I display different colors for one
BarSeries?

 here is part of my sample code and it can only display one color for
 one BarSeries:

 var ls:BarSeries = new BarSeries();
 var colorArray:Array = [0x299C39, 0xFF3118];
 var st:String;
 if(st == pass){
 ls.setStyle( fill,colorArra y[0]);
 }else{
 ls.setStyle( fill,colorArra y[1]);
 }
 currentSeries. push(ls);

 thanks in advance.
 hq.





[flexcoders] Re: expand entire tree?

2007-04-16 Thread Oscar Cortes



   Try adding validateNow() just before calling expandChildrenOf

  myTree.validateNow();

   Oscar Cortes

  http://holaflex.ocortes.com http://holaflex.ocortes.com


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

 Does anyone know how to expand a tree on initialize? I have tried the
 following with no avail:

 private function setPageListTree():void{
 pageListTree.openItems(pageListTree.dataProvider.getItemAt(1));
 pageListTree.expandItem(pageListTree.dataProvider.children(), true);
 pageListTree.expandChildrenOf(pageListTree, true);
 }

 Thanks in advance,



 Joshua Gatcke - Director
 Visua Design Group Inc.
 Cell:(403) 815-3265
 [EMAIL PROTECTED]





[flexcoders] Re: Help need to update datagrid value dynamically

2007-04-16 Thread Oscar Cortes

 Try with HttpService, there are plenty of examples in the help.

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

 Please give me sample code
 
 -Vinoth
 
 --- In flexcoders@yahoogroups.com, shaun etherton shaun@ wrote:
 
  Hi,
  
  Vinoth Babu wrote:
   Hi All,
   
   I have a datagrid, data's are from external XML file.
   
   Once .swf file is created. I changed few values in XML  
  
  reopend .swf file, it's not updating. The values are updating
  
if .mxml is recompiled.
   
   by just reopening the .swf file, the data's must update
   
   Here is my code
   
   xx.mxml
   
   ?xml version=1.0 encoding=utf-8?
   
   mx:XML id=xmlCatalog source=testX.xml/ 
  
  
  The doco says:
  
  
  
  The source property specifies an external source, such as a file, 
for 
  the data model. The external source can contain static data and 
data 
  binding expressions. The compiler reads the source value and 
compiles 
  the source into the application; the source value is not read at
 runtime.
  
  
  
  You need to get your xml some other way.
  
  - shaun
 





[flexcoders] Re: Flex books

2007-02-05 Thread Oscar Cortes

   You need a subscription to http://www.safaribooks.com

   



[flexcoders] Re: Problem setting efects on TitleWindow

2007-02-05 Thread Oscar Cortes


   You need the autoLayout property set to true. If you check the 
help it reads:

   The Zoom effect does not work when the autoLayout property is false

   



[flexcoders] Re: SWFLoader Questions - need help from the gurus!

2007-02-01 Thread Oscar Cortes



Hi Mike,

  The SWFLoader can help to load images or SWF into your Flex
apps. SWFLoader.content is a reference to whatever you have loaded in
the SWFLoader, so the methods and properties that you can use depend of
what it is avaible in the SWF or image that you are loading. On the
other hand, the SWFLoader as Flex control has fixed propierties and
methods. I agree with you, some of the properties are the same, and you
can get the same effect.

 I guess sometimes it is a matter of preference how you want to
handle it. For consistency, I would use the SWFLoader properties.










RE: [Junk E-Mail - LOW] [flexcoders] File Upload

2006-07-14 Thread Oscar . Cortes
What it means is that in addition to importing the class, you need to
instate the FileReference class. Something like ...

var myFM:FileReference = new FileReference();

myFM.browse(new Array());



|-+-
| | |
| |  Shannon Hicks|
| |  [EMAIL PROTECTED]|
| |  Sent by:   |
| |  flexcoders@yahoogroups.com |
| |  07/14/2006 01:56 PM|
| |  Please respond to  |
| |  flexcoders |
| | |
|-+-
  
-|
  | 
|
  |  To: flexcoders@yahoogroups.com   
|
  |  cc:
|
  |  Subject:  RE: [Junk E-Mail - LOW] [flexcoders] File Upload 
|
  
-|




Did you:



   import flash.net.FileReference;
Shan

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ethan Miller
Sent: Friday, July 14, 2006 12:27 PM
To: flexcoders@yahoogroups.com
Subject: [Junk E-Mail - LOW] [flexcoders] File Upload



I'm trying to quickly demonstrate the ability to upload a file. Just
need a button with a click action that invokes a file browser in the
user's OS.

Tried this:

mx:Button label=Upload click=FileReferenceList.browse()/

Per the docs, which gets a compiler error of undefined method
with static type class... 

Any sample code for this kicking around?

thanks! ethan






--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.0/388 - Release Date: 7/13/2006





--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.0/388 - Release Date: 7/13/2006






---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---

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

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

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

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

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


pic06816.gif
Description: GIF image


Re: [flexcoders] ModelLocator - Cairngorm 2

2006-07-14 Thread Oscar . Cortes
What about something like this?



[Bindable]
public class ShopModelLocator implements ModelLocator
{
private static var modelLocator : ShopModelLocator;

public static function getInstance() : ShopModelLocator
{
if ( modelLocator == null )
modelLocator = new ShopModelLocator();

return modelLocator;
}

public function ShopModelLocator()
{
  if ( ShopModelLocator.modelLocator != null )
throw new Error( Only one ShopModelLocatorinstance
should be instantiated );
}

public var products : ICollectionView;
}



|-+-
| | |
| |  jrjazzman23  |
| |  [EMAIL PROTECTED]|
| |  Sent by:   |
| |  flexcoders@yahoogroups.com |
| |  07/14/2006 02:27 PM|
| |  Please respond to  |
| |  flexcoders |
| | |
|-+-
  
-|
  | 
|
  |  To: flexcoders@yahoogroups.com 
|
  |  cc:
|
  |  Subject:  [flexcoders] ModelLocator - Cairngorm 2  
|
  
-|




I can't get the reference implementation to compile (pasted below).
Seems to be missing a constructor. How should this be solved keeping
in mind that private constructors aren't supported?

[Bindable]
public class ShopModelLocator implements ModelLocator
{
private static var modelLocator : ShopModelLocator;

public static function getInstance() : ShopModelLocator
{
if ( modelLocator == null )
modelLocator = new ShopModelLocator();

return modelLocator;
}

public var products : ICollectionView;
}








---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---

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

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

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

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

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


pic01723.gif
Description: GIF image


Re: [flexcoders] File Upload problem?

2006-07-13 Thread Oscar . Cortes
 I have something similar working.  Try something like this .

  private function fileBrowse():void {
var imagesFilter:FileFilter = new FileFilter(Images, *.jpg;*.jpeg);
configureListeners(imageFileRef);
imageName.text = ;
imageFileRef.browse([imagesFilter]);
   }


private function configureListeners(dispatcher:IEventDispatcher):void {
  dispatcher.addEventListener(Event.COMPLETE, onComplete);
  dispatcher.addEventListener(ProgressEvent.PROGRESS, progressHandler);
  dispatcher.addEventListener(Event.SELECT, onSelect);

}







|-+-
| | |
| |  Shannon Hicks|
| |  [EMAIL PROTECTED]|
| |  Sent by:   |
| |  flexcoders@yahoogroups.com |
| |  07/13/2006 01:00 PM|
| |  Please respond to  |
| |  flexcoders |
| | |
|-+-
  
-|
  | 
|
  |  To: flexcoders@yahoogroups.com   
|
  |  cc:
|
  |  Subject:  [flexcoders] File Upload problem?
|
  
-|




Ok... I've been playing with the file upload stuff all morning, and am 80%
of the way there. Here's a quick sample of what my Browse button fires:



   private function fileBrowse():void {
var imagesFilter:FileFilter = new FileFilter(Images, *.jpg;*.jpeg);
imageFileRef.addEventListener(Event.COMPLETE, onComplete);
imageFileRef.addEventListener(ProgressEvent.PROGRESS, progressHandler);
imageFileRef.addEventListener(Event.SELECT, onSelect);
imageName.text = ;
imageFileRef.browse([imagesFilter]);
   }
   private function fileUpload():void {
uploadProgressPopup = uploadProgressBar(PopUpManager.createPopUp(this,
flexComponents.uploadProgressBar, true));
var urlVars:URLVariables = new URLVariables();
urlVars.userID = model.currentUser.userID;
urlVars.mouseID = model.editMouse.mouseID;

uploadTarget.data = urlVars;
uploadTarget.method = URLRequestMethod.POST;

for (var i:int=0; i  imageFileRef.fileList.length; i++){
 imageFileRef.fileList[i].upload(uploadTarget);
}
   }

   private function progressHandler(event:ProgressEvent):void {
var percentLoaded:Number = Number((event.bytesLoaded /
event.bytesTotal) * 100);
uploadProgressPopup.doUpdateProgress(percentLoaded);
Alert.show(The file is  + percentLoaded.toString() + % loaded.);
  }

   private function onComplete(event:Event):void {
Alert.show(Done.);
 PopUpManager.removePopUp(uploadProgressPopup);
   }
Now, I can browse just fine, and my upload button fires off the upload, and
the files make it safely to the server, where ColdFusion saves them to the
filesystem. The only problem is that my progressHandler() and onComplete()
methods never fire.

Is there some trick? Do I need to have ColdFusion return something?

Shan



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.10/387 - Release Date: 7/12/2006






---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---

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

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

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

* To unsubscribe from this group, send an 

RE: [Junk E-Mail - LOW] Re: [flexcoders] File Upload problem?

2006-07-13 Thread Oscar . Cortes
It seems that you need to add listeners for each file individually. Take a
look at the example in here 

http://livedocs.macromedia.com/flex/2/langref/flash/net/FileReferenceList.html





|-+-
| | |
| |  Shannon Hicks|
| |  [EMAIL PROTECTED]|
| |  Sent by:   |
| |  flexcoders@yahoogroups.com |
| |  07/13/2006 03:22 PM|
| |  Please respond to  |
| |  flexcoders |
| | |
|-+-
  
-|
  | 
|
  |  To: flexcoders@yahoogroups.com   
|
  |  cc:
|
  |  Subject:  RE: [Junk E-Mail - LOW] Re: [flexcoders] File Upload 
problem?|
  
-|




Tried it, still nothing.



Is there a bug (or undocumented feature) with the event dispatching when
you're uploading multiple files?

Shan

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Thursday, July 13, 2006 2:02 PM
To: flexcoders@yahoogroups.com
Subject: [Junk E-Mail - LOW] Re: [flexcoders] File Upload problem?



I have something similar working. Try something like this .

private function fileBrowse():void {
var imagesFilter:FileFilter = new FileFilter(Images, *.jpg;*.jpeg);
configureListeners(imageFileRef);
imageName.text = ;
imageFileRef.browse([imagesFilter]);
}

private function configureListeners(dispatcher:IEventDispatcher):void {
dispatcher.addEventListener(Event.COMPLETE, onComplete);
dispatcher.addEventListener(ProgressEvent.PROGRESS, progressHandler);
dispatcher.addEventListener(Event.SELECT, onSelect);

}

|-+-
| | |
| | Shannon Hicks |
| | [EMAIL PROTECTED] |
| | Sent by: |
| | flexcoders@yahoogroups.com |
| | 07/13/2006 01:00 PM |
| | Please respond to |
| | flexcoders |
| | |
|-+-
--|
| |
| To: flexcoders@yahoogroups.com |
| cc: |
| Subject: [flexcoders] File Upload problem? |
--|

Ok... I've been playing with the file upload stuff all morning, and am 80%
of the way there. Here's a quick sample of what my Browse button fires:

private function fileBrowse():void {
var imagesFilter:FileFilter = new FileFilter(Images, *.jpg;*.jpeg);
imageFileRef.addEventListener(Event.COMPLETE, onComplete);
imageFileRef.addEventListener(ProgressEvent.PROGRESS, progressHandler);
imageFileRef.addEventListener(Event.SELECT, onSelect);
imageName.text = ;
imageFileRef.browse([imagesFilter]);
}
private function fileUpload():void {
uploadProgressPopup = uploadProgressBar(PopUpManager.createPopUp(this,
flexComponents.uploadProgressBar, true));
var urlVars:URLVariables = new URLVariables();
urlVars.userID = model.currentUser.userID;
urlVars.mouseID = model.editMouse.mouseID;

uploadTarget.data = urlVars;
uploadTarget.method = URLRequestMethod.POST;

for (var i:int=0; i  imageFileRef.fileList.length; i++){
imageFileRef.fileList[i].upload(uploadTarget);
}
}

private function progressHandler(event:ProgressEvent):void {
var percentLoaded:Number = Number((event.bytesLoaded /
event.bytesTotal) * 100);
uploadProgressPopup.doUpdateProgress(percentLoaded);
Alert.show(The file is  + percentLoaded.toString() + % loaded.);
}

private function onComplete(event:Event):void {
Alert.show(Done.);
PopUpManager.removePopUp(uploadProgressPopup);
}
Now, I can browse just fine, and my upload button fires off the upload, and
the files make it safely to the server, where ColdFusion saves them to the
filesystem. The only problem is that my progressHandler() and onComplete()
methods never fire.

Is there some trick? Do I need to have ColdFusion return something?

Shan

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.10/387 - Release Date: 7/12/2006

--
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that
any dissemination, distribution or 

Re: [flexcoders] arrayCollection.addItemAt How to?

2006-07-07 Thread Oscar . Cortes
Have you tried the prompt property in the Combo Box?




|-+-
| | |
| |  yaagcur  |
| |  [EMAIL PROTECTED] |
| |  Sent by:   |
| |  flexcoders@yahoogroups.com |
| |  07/07/2006 08:48 AM|
| |  Please respond to  |
| |  flexcoders |
| | |
|-+-
  
-|
  | 
|
  |  To: flexcoders@yahoogroups.com 
|
  |  cc:
|
  |  Subject:  [flexcoders] arrayCollection.addItemAt How to?   
|
  
-|




I return a recordset and create a new arraycollection just fine
but wish to add an extra row at the top . The following just produces an
[object, Object] result in the combo box I populate for the additional
entry

public function myFunction(event:ResultEvent):void {
trace (results returned);
teams = new
ArrayCollection(mx.utils.ArrayUtil.toArray(event.result.source));
teams.addItemAt([{FRANCHNAME:'All Teams',FRANCHID:'All'}],0); //
FRANCHNAME and FRANCHID are the two properties in the object
teams.refresh();
}
I would also like the combobox to show the new All teams as default
in the combobox

cheers







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---

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

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

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

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

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


pic18240.gif
Description: GIF image


Re: [flexcoders] Downloading documentation

2006-07-07 Thread Oscar . Cortes
Try this link that appears in www.flex.org

  http://www.adobe.com/go/flex_documentation_zip




|-+-
| | |
| |  Weyert de Boer |
| |  [EMAIL PROTECTED]|
| |  Sent by:   |
| |  flexcoders@yahoogroups.com |
| |  07/07/2006 03:56 PM|
| |  Please respond to  |
| |  flexcoders |
| | |
|-+-
  
-|
  | 
|
  |  To: flexcoders@yahoogroups.com 
|
  |  cc:
|
  |  Subject:  [flexcoders]  Downloading documentation 
|
  
-|




Does anyone know a way to download the livedocs? I will gone from the
internet from a while, and I would love to have a reference.






---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---

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

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

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

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

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


pic00750.gif
Description: GIF image


Re: [flexcoders] Flash Player 8 Upload/Download support

2006-06-21 Thread Oscar . Cortes
Check this out


http://www.macromedia.com/devnet/flex/articles/fp8_features.html



|-+-
| | |
| |  Valy Sivec |
| |  [EMAIL PROTECTED]|
| |  Sent by:   |
| |  flexcoders@yahoogroups.com |
| |  06/21/2006 03:33 PM|
| |  Please respond to  |
| |  flexcoders |
| | |
|-+-
  
-|
  | 
|
  |  To: flexcoders@yahoogroups.com 
|
  |  cc:
|
  |  Subject:  [flexcoders] Flash Player 8 Upload/Download support  
|
  
-|




Hello, I read somewhere that Flash Player 8 adds Download/Upload support. I
was wondering if you can point me to any resource in this regard or any
samples would be greatly appreciated.

I had implemented the upload functionality using HTML - file upload tag -
but I'd like to migrate to Flash if possible.

btw, I use Flex 1.5.

Thanks,
Valy


 Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail Beta.






---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---



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

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

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

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

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




Re: [flexcoders] Grid

2006-06-14 Thread Oscar . Cortes
I think this is known problem with Flex 1.5, check the FAQ list
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt.

On the other hand, I ran once into this and I actually created AS classes
for a couple of the functions that I had in my mxml file.  Another option
is what your colleagues are suggesting which is creating a components. If
you are having problems with that, you can check the online docs and see
the examples on mxml components. I remember that they have a very basic
comboBox component which is easy to understand.




|-+-
| | |
| |  hitch_nj |
| |  [EMAIL PROTECTED]|
| |  m |
| |  Sent by:   |
| |  flexcoders@yahoogroups.com |
| |  06/14/2006 02:56 PM|
| |  Please respond to flexcoders   |
| | |
|-+-
  
-|
  | 
|
  |  To: flexcoders@yahoogroups.com 
|
  |  cc:
|
  |  Subject:  [flexcoders] Grid
|
  
-|




Hi,
I am new to Flex, and am having this problem. Would really appreciate
if anyone can help me.

Overview: I have an excel sheet which I need to replicate in Flex 1.5.
There is a checkbox, a ComboBox and lots of cells with data.
Issue: I tried using the mx:Model tag to populate the cells, and was
successfull partially, till I got an error like this:

A function in the code exceeds the 64K byte limit (actual size =
'74071'). Since the problem occurs in the compiler-generated deferred
instantiation code, please refactor/componentize portions of this
document.

This was when all hell broke loose. I have some colleagues who have
worked on Flex and they told me that I can overcome this problem if I
include another mxml file in the parent. I tried that, but now the
issue is that my parent file refers to an actionScript file. The
ComboBox is in the parent and I am refering to it in the child so the
.as file gives me errors.

I can go on forever, but someone suggested me to create my custom
Grid, and I have no idea how to do that.

Could anyone please tell me what I can do.

Thanks in advance.







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---



 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

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

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

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

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





Re: [flexcoders] flex 1.5 with php

2006-06-14 Thread Oscar . Cortes
I know you can use theJSP tag library shipped with Flex to render Flex in a
JSP page but I am not sure about php, probably not.



|-+-
| | |
| |  Ravindra Suthar  |
| |  [EMAIL PROTECTED]|
| |  m |
| |  Sent by:   |
| |  flexcoders@yahoogroups.com |
| |  06/14/2006 03:22 PM|
| |  Please respond to  |
| |  flexcoders |
| | |
|-+-
  
-|
  | 
|
  |  To: flexcoders@yahoogroups.com   
|
  |  cc:
|
  |  Subject:  [flexcoders] flex 1.5 with php   
|
  
-|




Hi All,





I would like to see output of flex1.5 in php file . Is this possible and
can I use flex tag inside php?





Regards





Ravindra Suthar









---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---



 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] Tree getIsOpen Where is it?

2006-06-09 Thread Oscar . Cortes
There was a getIsOpen method in 1.5 to test if a node was open. How can we
this in F2B3?

Thanks


---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---



 Yahoo! Groups Sponsor ~-- 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
~- 

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

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

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

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





Re: [flexcoders] Migration: What is the F2 equivalent of TreeNode

2006-06-09 Thread Oscar . Cortes
Hi Tracy,

   The Tree component has now a dataDescriptor which you can implement with
your own methods if needed.  For example:

mx:Tree  id=myTree x=10 y=10 width=273 height=559
   dataProvider={something}
dataDescriptor={new MyCustomTreeDataDescriptor()}   
/mx:Tree

--
MyCustomTreeDataDescriptor .as
package
{
import mx.collections.ICollectionView;
import mx.collections.IViewCursor;

import mx.controls.treeClasses.*;

public class MyCustomTreeDataDescriptor implements ITreeDataDescriptor
{
  // The isBranch method simply returns true if the node is an
// Object with a children field.
// It does not support empty branches, but does support null children
// fields.

public function isBranch(node:Object, model:Object=null):Boolean
{
try
{
if (node is Object)
{
if (node.children != null)
{
return true;
}
}
}
catch (e:Error)
{
trace([Descriptor] exception checking for isBranch);
}
return false;
}
}


  There is an example in the livedocs for F2B2 that needs minor changes to
have it working in B3




|-+-
| | |
| |  Tracy Spratt |
| |  [EMAIL PROTECTED]|
| |  Sent by:   |
| |  flexcoders@yahoogroups.com |
| |  06/09/2006 04:11 PM|
| |  Please respond to  |
| |  flexcoders |
| | |
|-+-
  
-|
  | 
|
  |  To: flexcoders@yahoogroups.com   
|
  |  cc:
|
  |  Subject:  [flexcoders] Migration: What is the F2 equivalent of 
TreeNode  |
  
-|




One of my apps uses the 1.5 TreeNode class and the treeDataProvider methods
to build big  complex treeDataProviders.


Is this gone completely in F2?  Is there any legacy support?


Is long term migration goig to require moving to an e4x tree? Any other
suggestions?


Tracy






---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---



 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~- 

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

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

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

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





RE: [flexcoders] Server-Side Architecture for Flex App

2006-05-02 Thread Oscar . Cortes



I would add that this can be seen in terms of portability, performance and
how much knowledge exist in your company in certain technology. Java will
give the greatest portability, it would run seemly in Windows shops as in
Unix shops. The same is true for ColdFusion and PHP. However, this does not
hold true for .Net which only runs in Windows.

As for performance, I would actually analyze what the requirements are for
your application and develop a proof of concept or test unit, to see the
performance in each of them. You should also consider here that
RemoteObject in Flex will only work for Java, for ColdFusion you need the
Event Gateway Adapter. For any others such as .Net and PHP you will need to
use HTTPService or WebService. Consider that your choice might run slower
than others.

Lastly, I think it is highly important to consider if your company is
heading to an specific technology and how many knowledgeable people you
have on the technology of your choice. We are familiar with antagonisms
like Unix vs Windows or SQL Server vs Oracle, and how people go on how one
is better than the other. However, I truly believe that if you have a good
understanding of a technology you can make it work for you independently of
any drawbacks it might have.





|-+-
| | |
| | Kelly @ Dekayd Media Inc.|
| | dekayd |
| | Sent by: |
| | flexcoders@yahoogroups.com |
| | 05/02/2006 01:05 PM |
| | Please respond to |
| | flexcoders |
| | |
|-+-
 -|
 | |
 | To: flexcoders@yahoogroups.com |
 | cc: |
 | Subject: RE: [flexcoders] Server-Side Architecture for Flex App |
 -|




The Flex server is built on Java and I think that Flex was originally
developed to integrate the most efficiently with Java.

That would be my choice.



--Kelly






From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Clarke Bishop
Sent: Tuesday, May 02, 2006 8:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Server-Side Architecture for Flex App

I am in the process of choosing a server-side technology for a Flex App I'm
building, and I'd like to get ideas from the experts on this list. Right
now, my candidates are:

- ColdFusion
- Java
- PHP
- .Net

I'll probably use AMF rather than web services for transfering data back
and forth to the server.

ColdFusion may always offer very tight integration with Flex and it offers
high developer productivity, but there's also the cost of the server
license. The others are free or cheap.

So, my questions are:

- Is there any compelling reason to pick one of these backends --
Especially considering Flex will be on the client-side?

- Is there another backend technology I should be considering?

Thanks,

 Clarke



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



 SPONSORED LINKS


 
 Web site design Computer software Software design and 
 development development development 
 
 Macromedia flex Software development 
 best practice 
 



 YAHOO! GROUPS LINKS

 Visit your group flexcoders on the web.

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

 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.





---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---








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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL 

Re: [flexcoders] Re: Flex2 ButtonBar; Can its buttons be individually enabled or disabled?

2006-04-24 Thread Oscar . Cortes



You need to import the Button class, and then you can try something like
this:



?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
layout=vertical
mx:Script
 ![CDATA[
 import mx.events.ItemClickEvent;
 import mx.events.ListEvent;
 // Add this import
 import mx.controls.Button;

 private function
btnbarEvent(event:ItemClickEvent):void{
 ta.text=btnbar selected index is
+event.index.toString();
 }

 private function dgEvent(event:ListEvent):void{
 ta.text=dg selected index is
+event.rowIndex.toString();
 var childA:Button= btnbar.getChildAt(0) as
Button;
 var childB:Button=
btnbar.getChildAt(1) as Button;
 var childC:Button=
btnbar.getChildAt(2) as Button;
 var childD:Button=
btnbar.getChildAt(3) as Button;



 childB.enabled=false;
 childC.enabled=false;
 childD.enabled=false;


 }


 ]]
/mx:Script
 mx:DataGrid id=dg itemClick=dgEvent(event)
 mx:dataProvider
 mx:ArrayCollection
 mx:source
 mx:Object
item=Something descr=Some thing/
 mx:Object
item=Nothing descr=No thing/
 /mx:source
 /mx:ArrayCollection
 /mx:dataProvider
 /mx:DataGrid
 mx:ButtonBar id=btnbar itemClick=btnbarEvent(event)
 mx:dataProvider
 mx:Array
 mx:StringA/mx:String
 mx:StringB/mx:String
 mx:StringC/mx:String
 mx:StringD/mx:String
 /mx:Array
 /mx:dataProvider
 /mx:ButtonBar
 mx:TextArea id=ta width=200 height=100/
/mx:Application





|-+-
| | |
| | wlbagent |
| | [EMAIL PROTECTED] |
| | Sent by: |
| | flexcoders@yahoogroups.com |
| | 04/24/2006 09:07 AM |
| | Please respond to |
| | flexcoders |
| | |
|-+-
 -|
 | |
 | To: flexcoders@yahoogroups.com |
 | cc: |
 | Subject: [flexcoders] Re: Flex2 ButtonBar; Can its buttons be individually enabled or disabled? |
 -|




Mike, thanks for the reply. I made a couple of attempts at casting to
a button but I must be missing something. Here is a simple example of
what I'm talking about. If any row is selected in dg, then all
buttons except button A should be disabled. What do I need to do to
make this happen?
Thanks, Bill...

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
layout=vertical
mx:Script
 ![CDATA[
 import mx.events.ItemClickEvent;
 import mx.events.ListEvent;
 private function
btnbarEvent(event:ItemClickEvent):void{
 ta.text=btnbar selected index is
+event.index.toString();
 }

 private function dgEvent(event:ListEvent):void{
 ta.text=dg selected index is
+event.rowIndex.toString();
 }


 ]]
/mx:Script
 mx:DataGrid id=dg itemClick=dgEvent(event)
 mx:dataProvider
 mx:ArrayCollection
 mx:source
 mx:Object
item=Something descr=Some thing/
 mx:Object
item=Nothing descr=No thing/
 /mx:source
 /mx:ArrayCollection
 /mx:dataProvider
 /mx:DataGrid
 mx:ButtonBar id=btnbar itemClick=btnbarEvent(event)
 mx:dataProvider
 mx:Array
 mx:StringA/mx:String
 mx:StringB/mx:String
 mx:StringC/mx:String
 mx:StringD/mx:String
 /mx:Array
 /mx:dataProvider
 /mx:ButtonBar
 mx:TextArea id=ta width=200 height=100/
/mx:Application


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

 Hi,

 Did you cast the returned button instance to Button?

 var child:Button = getChildAt(buttonIndex) as Button;

 Peace, Mike

 On 4/20/06, wlbagent [EMAIL PROTECTED] wrote:
 
  I know this can be done using individual buttons but can the
  individual buttons in a ButtonBar component (not the whole ButtonBar)
  be enabled or disabled?
 
  For example. You have a ButtonBar with 4 buttons labeled
  A,B,C,and D. You want button A to always be enabled but the
  remaining buttons would be enabled or disabled based on some other
  condition. You might have a DataGrid and want B,C,and D enabled
  if a row is selected, otherwise they are disabled.
 
  This should be a fairly easy thing to do if its actually possible. I
  can reference the individual buttons but there doesn't seem to be an
  enabled property for them. What have I missed??
 
  Any ideas???
 
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
 
  SPONSORED LINKS
  Web site design
development
http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ

 Computer
  software
development

Re: [flexcoders] i can't use mx.controls - source not found... ( yes...i'm a newbie)

2006-04-21 Thread Oscar . Cortes



Ciao Federico,

 This example worked fine for me. I am using Eclispe though. Is it
something missing in your Flex installation?


|-+-
| | |
| | federico.ferri |
| | [EMAIL PROTECTED] |
| | Sent by: |
| | flexcoders@yahoogroups.com |
| | 04/21/2006 10:21 AM |
| | Please respond to |
| | flexcoders |
| | |
|-+-
 -|
 | |
 | To: flexcoders@yahoogroups.com |
 | cc: |
 | Subject: [flexcoders] i can't use mx.controls - source not found... ( yes...i'm a newbie) |
 -|




My problem is that i can't use the class mx.controls.Menu even if i
import in my script.

i'm looking for the solution till this morning,searching and
searching, but with no resultsthat's why i decide to post this
stupid question

i try to execute the Example: creating a simple Menu control, taken
from the livedocs.macromedia, but it doesn't work.
it seem like it doesn't link the main library of actions scripts 3,
but i tried in all ways to make Flex Builder link to.

envirorment: winxp, Flex Builder
this is the code:
=
?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
 mx:Script
 ![CDATA[
 // Import the Menu control.
 import mx.controls.Menu;
 // Create and display the Menu control.
 private function createAndShow():void {
 // The third parameter sets the showRoot property to
false.
 // You must set this property in the createMenu
method, not later.
 var myMenu:Menu = Menu.createMenu(null, myMenuData,
false); --1st ERROR HERE***
 myMenu.labelField=@label;
 myMenu.show(10, 10);
 }
 ]]
 /mx:Script

 !-- Define the menu data. --
 mx:XML format=e4x id=myMenuData
 menuitem label=MenuItem A 
 menuitem label=SubMenuItem A-1 enabled=False /
 menuitem label=SubMenuItem A-2 /
 /menuitem
 menuitem label=MenuItem B type=check selected=true /
 menuitem label=MenuItem C type=check selected=false/
 menuitem type=separator /
 menuitem label=MenuItem D 
 menuitem label=SubMenuItem D-1 type=radio
groupName=one /
 menuitem label=SubMenuItem D-2 type=radio
groupName=one
 selected=true /
 menuitem label=SubMenuItem D-3 type=radio
groupName=one /
 /menuitem
 /mx:XML

 mx:VBox
 !-- Define a Button control to open the menu --
 mx:Button id=myButton label=Open Menu
click=createAndShow() /
 /mx:VBox
/mx:Application
=
tha's the errors:
1 - Call to a possibly undefined method 'createMenu' through a
reference with static type 'Class'
2 - Access of possibly undefined property 'labelField' through a
reference with static type 'Menu'
3 - Call to a possibly undefined method 'show' through a reference
with static type 'Menu'


tnx!!
FF





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












---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---








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





  




  
  
  YAHOO! GROUPS LINKS



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



  












Re: [flexcoders] flex newbie - dispatchEvent question

2006-04-20 Thread Oscar . Cortes



Try changing


public function onTestEvent()
to
public function onTestEvent(event:Event)


 You should add event:Event in your listener.





|-+-
| | |
| | Andrea Varga |
| | [EMAIL PROTECTED] |
| | Sent by: |
| | flexcoders@yahoogroups.com |
| | 04/20/2006 10:52 AM |
| | Please respond to |
| | flexcoders |
| | |
|-+-
 -|
 | |
 | To: flexcoders@yahoogroups.com |
 | cc: |
 | Subject: [flexcoders] flex newbie - dispatchEvent question |
 -|




Hi!

I have to mention first that I'm new in Flex.
I have started to develop a small application using Cairngorm, just to
get more into it.
But I have faced a problem, my Command is never executed. It seams the
Event I'm sending is lost somewhere.
So I made a small test (to see if I'm getting the whole dispatchEvent
thing):
Below is my code. The onTestEvent() is never called.
What am I doing wrong?
Thanks

Andi

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
layout=absolute applicationComplete=onComplete()
 mx:Script
 ![CDATA[

 [Bindable]
 public var status:String = ;

 public function onComplete():void {
 status += Add Event Listener...\n;
 Application.application.addEventListener(test,
onTestEvent);
 }

 public function onTestEvent():void {
 Application.application.status += Test Event
occured...\n;
 }

 public function dispatchTextEvent():void {
 var event:Event = new Event(test);
 dispatchEvent( event );
 status += Event Dispatched...\n;
 }
 ]]
 /mx:Script

 mx:Button x=66 y=56 label=dispatch event
click=dispatchTextEvent() /
 mx:TextArea x=66 y=123 width=393 height=243 text={status}/

/mx:Application


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











---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---








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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











Re: [flexcoders] Re: flex newbie - dispatchEvent question - Part 2

2006-04-20 Thread Oscar . Cortes



Another alternative would be something like this.,...
1. Add Metadata tag in your component with the name of your event.
 mx:Metadata
 [Event(name=login, type=flash.events.Event)]
 /mx:Metadata
2. Catch that event in your component
 Login x=333 y=56 login=handleTestEvent(event)/
3. Add AS to handle the event.

 public function handleTestEvent(eventObj:Event):void {

 mx.controls.Alert.show(eventObj.currentTarget,'Test');

 }


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
layout=absolute applicationComplete=onComplete()
 mx:Script
 ![CDATA[
 import mx.controls.Alert;

 [Bindable]
 public var status:String = ;

 public function onComplete():void {
 status += Add Event Listener...\n;

Application.application.addEventListener(test,onTestEvent);
 }

 public function onTestEvent(event:Event):void {
 Application.application.status += Test Event
occured...\n;
 }

 public function dispatchTextEvent():void {
 var event:Event = new Event(test);
 dispatchEvent( event );
 status += Event Dispatched...\n;
 }

 public function handleTestEvent(eventObj:Event):void {

 mx.controls.Alert.show(eventObj.currentTarget,'Test');

 }
 ]]
 /mx:Script

 mx:Button x=66 y=56 label=Login1 click=dispatchTextEvent() /
 mx:TextArea x=66 y=123 width=393 height=243 text={status}/
 Login x=333 y=56 login=handleTestEvent(event)/
/mx:Application





?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
mx:Metadata
 [Event(name=login, type=flash.events.Event)]
/mx:Metadata
 mx:Script
 ![CDATA[
 import mx.controls.Alert;
 public function loginUser():void
 {
 var event:Event = new Event(login);
 dispatchEvent( event );

 Application.application.status += Dispatch login
event...\n;
 }

 ]]
 /mx:Script
 mx:ControlBar
 mx:Button label=Login2 click=loginUser() /
 /mx:ControlBar
/mx:Canvas


|-+-
| | |
| | Doug Lowder |
| | [EMAIL PROTECTED] |
| | Sent by: |
| | flexcoders@yahoogroups.com |
| | 04/20/2006 05:22 PM |
| | Please respond to |
| | flexcoders |
| | |
|-+-
 -|
 | |
 | To: flexcoders@yahoogroups.com |
 | cc: |
 | Subject: [flexcoders] Re: flex newbie - dispatchEvent question - Part 2 |
 -|




Hmm, the code you posted for Login.mxml dispatches a login event,
not test, so that's one thing to be aware of. You'll need to add
the listener to the Login object, which you can do by giving the
Login component an id (Login id=loginComponentId ...) and then
calling something similar to:

loginComponentId.addEventListener(login, onLoginEvent).

Doug

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

 Well, this worked, but in the Cairngorm framework this was correct
and
 the problem is somewhere else.
 Below is my new little test.
 This time the button that does the dispatchEvent is not in the
 application, but inside another component

 The Main.mxml code is almost the same as before, just the Login
 component is new.
 The button with Login1 has the same code as the Login2 button
inside the
 Login component (both dispatch a test event).
 But the Application catches just the Login1 event.
 What am I mmissing this time?

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
 layout=absolute applicationComplete=onComplete()
 mx:Script
 ![CDATA[

 [Bindable]
 public var status:String = ;

 public function onComplete():void {
 status += Add Event Listener...\n;

 Application.application.addEventListener(test,onTestEvent);
 }

 public function onTestEvent(event:Event):void {
 Application.application.status += Test Event
occured...\n;
 }

 public function dispatchTextEvent():void {
 var event:Event = new Event(test);
 dispatchEvent( event );
 status += Event Dispatched...\n;
 }
 ]]
 /mx:Script

 mx:Button x=66 y=56 label=Login1
click=dispatchTextEvent() /
 mx:TextArea x=66 y=123 width=393 height=243
text={status}/
 Login x=333 y=56 /
 /mx:Application

 The Login.mxml code:
 ?xml version=1.0 encoding=utf-8?
 mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
 mx:Script
 ![CDATA[
 public function loginUser():void
 {
 var event:Event = new Event(login);
 dispatchEvent( event );
 Application.application.status += Dispatch login
 event...\n;
 }

 ]]
 /mx:Script
 mx:ControlBar
 mx:Button label=Login2 click=loginUser() /
 /mx:ControlBar
 /mx:Canvas


 [EMAIL PROTECTED] wrote:

 Try changing
 
 
 public function onTestEvent()
 to
 public function onTestEvent(event:Event)
 
 
  You should add event:Event in your listener.
 
 
 
 







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

RE: [flexcoders] What upload servlet at server side to use along with FileReference class?

2006-04-05 Thread Oscar . Cortes
I am getting the same error that Andriy reports below. However, the uploads
works fine.  Carson, where can I find more information about Flash Player
sending the request twice. I am assuming that this is a known problem.
I found others forums where they talk about this error and some of them
mention that Flash is not using enctype=multipart/form-data and that that
is causing the problem.

Any ideas?



|-+-
| | |
| |  Carson Hager |
| |  [EMAIL PROTECTED]|
| |  m |
| |  Sent by:   |
| |  flexcoders@yahoogroups.com |
| |  03/27/2006 05:40 PM|
| |  Please respond to flexcoders   |
| | |
|-+-
  
-|
  | 
|
  |  To: flexcoders@yahoogroups.com 
|
  |  cc:
|
  |  Subject:  RE: [flexcoders] What upload servlet at server side to use 
along with FileReference class?   |
  
-|




We've found that the O'Reilly classes work pretty well. The error you're
seeing is likely due to a problem with the Flash Player where it
actually sends the request twice. Normally the second request has
incorrect data. We simply catch the IOException and ignore it.


Carson



Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com

Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY
Mobile: 1.703.489.6466



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andriy Panas
Sent: Monday, March 27, 2006 2:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] What upload servlet at server side to use along
with FileReference class?

Hello flexcoders,

  We are trying to use http://servlets.com/cos/ O'Reily's
file upload package MultipartRequest along with FileReference class.

---
  My question to community is: what it your preferred choice at the
server side to handle uploaded files?
   Cold Fusion page?
   Jakarta's Commons File Upload?
http://jakarta.apache.org/commons/fileupload/
   ... your choice?
---

ps
  Currently, FileReference class with O'Reily's
file upload package combination does not work very well at our setup.

  We receive an error from Java servlet under certain circumstances (
requires more testing to pin those circumstances down)
  error Corrupt form data: premature ending
  java.io.IOException: Corrupt form data: premature ending

--
Best regards,
 Andriy  mailto:[EMAIL PROTECTED]



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








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











---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




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

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

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

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




[flexcoders] Flex/ActionScript/Java and UML

2006-04-05 Thread Oscar . Cortes
Has anyone have any UML diagrams examples that show the interaction among
mxml components, action script classes and Java?



---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




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

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

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

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





Re: [flexcoders] Flex1.5: Refreshing components to display changes in model

2006-04-04 Thread Oscar . Cortes
Have you tried using dataProvider.replaceItemAt()? In this way, you don't
need to refresh the whole grid.



|-+-
| | |
| |  RAMOS CARDONA JESUS   |
| |  SALVADOR  |
| |  [EMAIL PROTECTED]  |
| |  Sent by:   |
| |  flexcoders@yahoogroups.com |
| |  04/04/2006 11:02 AM|
| |  Please respond to  |
| |  flexcoders |
| | |
|-+-
  
-|
  | 
|
  |  To: flexcoders@yahoogroups.com 
|
  |  cc:
|
  |  Subject:  [flexcoders] Flex1.5: Refreshing components to display 
changes in model  |
  
-|




Hi all.

I have a medium-sized app that makes heavy use of DataGrids. Upon
selecting an item from one grid, it is possible to edit the data via a
pop-up form. Once edited, the changes do not appear automatically on the
grid. I am using Cairngorm 0.99, and I wish to know the correct way to
accomplish this. Should I insert the new model back into the backing
array of the grid's data provider?

Please help.

J.


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











---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




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

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

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

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




Re: [flexcoders] Flex 1.5 :: Button MouseOver Color

2006-04-04 Thread Oscar . Cortes

Try fill-colors:

Example:

   fill-colors: #00, #ff;


You can also check the Style Explorer for more attributes.

  http://weblogs.macromedia.com/mc/archives/FlexStyleExplorer.html



|-+--
| |  |
| |  Pablo Apanasionek |
| |  [EMAIL PROTECTED]|
| |  m  |
| |  Sent by:|
| |  flexcoders@yahoogroups.com  |
| |  04/04/2006 01:57 PM |
| |  Please respond to flexcoders|
| |  |
|-+--
  
-|
  | 
|
  |  To: flexcoders@yahoogroups.com 
|
  |  cc:
|
  |  Subject:  [flexcoders] Flex 1.5 :: Button MouseOver Color  
|
  
-|




Does anyone have an idea of how i can change the color of a button (Flex
1.5) when i move the mouse on it?

Already tried: highlight-color, selected-fill-colors and others without
results.

Thanks in advance,
Pablo Gustavo Apanasionek


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



SPONSORED LINKS
   
 Web site design Computer software   Software design and   
 development development development   
   
 Macromedia flex Software development  
 best practice 
   


YAHOO! GROUPS LINKS

   Visit your group flexcoders on the web.

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

   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.





---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




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

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

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

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





Re: [flexcoders] Re: Tree kicking my butt. Need some help

2006-03-23 Thread Oscar . Cortes
In addition,  you might  need labelField or labelFunction.




|-+-
| | |
| |  Doug Lowder  |
| |  [EMAIL PROTECTED]   |
| |  Sent by:   |
| |  flexcoders@yahoogroups.com |
| |  03/23/2006 04:52 PM|
| |  Please respond to  |
| |  flexcoders |
| | |
|-+-
  
-|
  | 
|
  |  To: flexcoders@yahoogroups.com 
|
  |  cc:
|
  |  Subject:  [flexcoders] Re: Tree kicking my butt. Need some help
|
  
-|




One thing you'll want to do is make sure your dataprovider is set to
an array in the case where you are reading a directory that consists
of only a single item.  Flex will interpret that as an object
instead of an array, so you will need the following:

function DocDisplayModdisplayDocsListQryResult( result ){
DocTree.dataProvider = mx.utils.ArrayUtil.toArray(result);
}


Doug

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

 In my app, I have a section that is suposed to display in a tree
all
 documents that are in a specific folder.

 The issue I have is that, when I test the code, the tree has this
 output [object Object].

 Is this because it not formated correctly in my cfc? Or is it
 something more sinister and evil.

 I have this cfc code. This code works.

cffunction name=displayDocsListQry access=remote
 returntype=array output=true
cfargument name=fileNum required=no
type=string /
 cfdirectory action=list recurse=yes

directory=#APPLICATION.storePath##APPLICATION.systemInfo.fld_officeC
ode#/L060001
 name=ListDir /

 cfquery name=ListDirQry dbtype=query
select * from ListDir
where type = 'Dir'
 /cfquery
 cfset dirArray = arrayNew(1)
 cfset dcounter = 1
 cfset fcounter = 1
cfloop query=ListDirQry
cfset dirArray[dcounter] = structnew()
cfset dirArray[dcounter].dir = ListDirQry.name
cfquery name=ListFileQry dbtype=query
select * from ListDir
where type = 'File' and directory =
 '#APPLICATION.storePath##APPLICATION.systemInfo.fld_officeCode#/#ar
guments.fileNum#/#dirArray[dcounter].dir#'
/cfquery
cfloop query=ListFileQry
cfset dirArray[dcounter].file =
ListFileQry.name
/cfloop
   cfif dcounter neq
ListDirQry.RecordCount
cfset dcounter = dcounter + 1
   /cfif
/cfloop
cfreturn dirArray /
 /cffunction

 Now, I call this function like this.

 Webservice --
!-- POPULATES TREE --
mx:WebService id=DocDisplayMod useProxy=false
 wsdl=http://flex.homesmartagent.com/cfc/adminList.cfc?wsdl;
 showBusyCursor=true
mx:operation name=displayDocsListQry

result=DocDisplayModdisplayDocsListQryResult
(
 DocDisplayMod.displayDocsListQry.result )

fault=DocDisplayModdisplayDocsListQryFault(
event ) /
/mx:WebService

 AS Connected to the webservice:

function
DocDisplayModdisplayDocsListQry
(fileNum){

 DocDisplayMod.displayDocsListQry(fileNum);}

// called when results
received
function
DocDisplayModdisplayDocsListQryResult( result ){

DocTree.dataProvider =
result;
}

function
DocDisplayModdisplayDocsListQryFault ( event ){}


 Code for my tree:
 mx:Tree x=10 id=DocTree rootVisible=true y=10 height=75%
 width=85%/







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











---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended 

RE: [flexcoders] getURL problem.

2006-03-22 Thread Oscar . Cortes
Thanks Gordon, we would expect the same but you never are able to get the
Word document. In reality, our application is making RemoteCalls. Last
night, I used a packet sniffer and I could see that the request started by
getURL is stopped when results start getting back from one of the Remote
Calls. Some bytes of the Word document make it to the client, but since the
document is not complete, Word does not open.





|-+-
| | |
| |  Gordon Smith |
| |  [EMAIL PROTECTED]|
| |  Sent by:   |
| |  flexcoders@yahoogroups.com |
| |  03/22/2006 12:59 AM|
| |  Please respond to  |
| |  flexcoders |
| | |
|-+-
  
-|
  | 
|
  |  To: flexcoders@yahoogroups.com 
|
  |  cc:
|
  |  Subject:  RE: [flexcoders] getURL problem. 
|
  
-|




I'd expect the Word doc to start downloading after the nested loops
complete. Maybe counting to 10,000,000 is just taking longer than you
think?

- Gordon

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, March 21, 2006 8:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] getURL problem.

We are having some issues when calling getURL while other processes are
running ( components still being loaded, or RemoteCall returning data).
We
isolated the problem in the application below. Click on Test without
checking off the delay button, and a Word document is downloaded from
the
URL. Click again but now check off the delay button, and the Word
document
is never downloaded. It seems like the request is being aborted somehow.

Any ideas?

Thanks

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
mx:Script
![CDATA[


 public function myInit()
 {


getURL(http://www.shaunakelly.com/word/sharing/test.doc
,_self);
  if( delay.selected)
  for (var i:Number=0; i  1; i++)
  {
for ( var a:Number=0; a  1000 ; a++)
{
}
  }

 }

]]
/mx:Script

  mx:Button label=Test click=myInit()/
  mx:CheckBox label=Delay  id=delay/
/mx:Application


---
This e-mail message (including attachments, if any) is intended for the
use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt
from
disclosure.  If you are not the intended recipient, you are notified
that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.

---




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








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











---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




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

[flexcoders] getURL problem.

2006-03-21 Thread Oscar . Cortes
We are having some issues when calling getURL while other processes are
running ( components still being loaded, or RemoteCall returning data). We
isolated the problem in the application below. Click on Test without
checking off the delay button, and a Word document is downloaded from the
URL. Click again but now check off the delay button, and the Word document
is never downloaded. It seems like the request is being aborted somehow.

Any ideas?

Thanks

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
mx:Script
![CDATA[


 public function myInit()
 {

   getURL(http://www.shaunakelly.com/word/sharing/test.doc
,_self);
  if( delay.selected)
  for (var i:Number=0; i  1; i++)
  {
for ( var a:Number=0; a  1000 ; a++)
{
}
  }

 }

]]
/mx:Script

  mx:Button label=Test click=myInit()/
  mx:CheckBox label=Delay  id=delay/
/mx:Application

---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




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

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

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

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




[flexcoders] Currency Formatter -- formats only numbers up to 15 characters in length?

2006-03-01 Thread Oscar . Cortes

 Could anyone try this code?   Enter a number of 16 characters for
example:123456789012345. Click the button to get the format... you get $1.
Anything below 15 characters works fine.

am I missing something? or is this a bug?

Thanks

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;

mx:Script
![CDATA[
  function getNewFormat()
  {
var str_a:String=USDformatter.format(txt_svDollarAmount.text);
mx.controls.Alert.show(str_a,'str_a');
  }
]]
/mx:Script

mx:CurrencyFormatter id=USDformatter precision=0 currencySymbol=$
useThousandsSeparator=true alignSymbol=left /

mx:TextInput id=txt_svDollarAmount
width=160

maxChars=16 textAlign=left

restrict=[0-9] /

mx:Button label=Button click=getNewFormat()/
/mx:Application

---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




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

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

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

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




Re: [flexcoders] Binding using Boolean expressions

2006-02-22 Thread Oscar . Cortes
What about something like ...



mx:VBox visible={Boolean(someCombo.selectedIndex != 0 *
someOtherCombo.selectedIndex != 0)}





|-+-
| | |
| |  Alberto Albericio |
| |  Salvador  |
| |  [EMAIL PROTECTED]  |
| |  Sent by:   |
| |  flexcoders@yahoogroups.com |
| |  02/22/2006 09:37 AM|
| |  Please respond to  |
| |  flexcoders |
| | |
|-+-
  
-|
  | 
|
  |  To: flexcoders@yahoogroups.com 
|
  |  cc:
|
  |  Subject:  [flexcoders] Binding using Boolean expressions   
|
  
-|




I rewrite my post because it got mixed into another thread (same
subject) , sorry.

Hi all,

I dont know why, but the Flex compiler alerts some error when I try to
use binding with 2 arguments:

mx:VBox visible={someCombo.selectedIndex != 0 
someOtherCombo.selectedIndex != 0}
...
/mx:VBox

And the error is : The entity name must immediately follow the '' in
the entity reference

Using a function, it works fine

mx:VBox visible={isThisVisible()}
...
/mx:VBox

where:

private function isThisVisible():Boolean {
   if (someCombo.selectedIndex != 0  someOtherCombo.selectedIndex !=
0) return true;
   else return false;
}

Why and how to solve this so I dont have to fill my code with these
functions?

--
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática



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











---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




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

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

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

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




Re: [flexcoders] populate datagrid from object of object

2006-02-09 Thread Oscar . Cortes
This worked for me .using Label Function


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
initialize=myInit()

mx:Script
![CDATA[
var arr:Array;
public function myInit()
{
arr = new Array()
arr[0] = new Object()
arr[0].j=10;
arr[0].k=new Object()
arr[0].k.l=20;

}

function getK(oItem:Object)
{
 return oItem.k.l;
}
]]
/mx:Script



mx:DataGrid dataProvider={arr} 
 mx:columns
 mx:Array
   mx:DataGridColumn columnName=j headerText=j /
mx:DataGridColumn columnName=k.l
headerText=k l labelFunction=getK /
/mx:Array
 /mx:columns
 /mx:DataGrid
/mx:Application


|-+-
| | |
| |  deepu_verma  |
| |  [EMAIL PROTECTED]|
| |  Sent by:   |
| |  flexcoders@yahoogroups.com |
| |  02/09/2006 05:32 PM|
| |  Please respond to  |
| |  flexcoders |
| | |
|-+-
  
-|
  | 
|
  |  To: flexcoders@yahoogroups.com 
|
  |  cc:
|
  |  Subject:  [flexcoders] populate datagrid from object of object 
|
  
-|




Hi,
I am trying to populate a datagrid from object object as in the below
example  (this is a dummy example, i am getting the result from a VO)

var arr = new Array()
arr[0] = new Object()
arr[0].j=10;
arr[0].k=new Object()
arr[0].k.l=20;

mx:DataGrid dataProvider={arr} 
 mx:columns
 mx:Array
   mx:DataGridColumn columnName=j headerText=j /
mx:DataGridColumn columnName=k.l
headerText=k l /
/mx:Array
 /mx:columns
 /mx:DataGrid

The second column is not displayed (k.l is not picked by the data grid)





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












---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




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

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

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

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




[flexcoders] how to improve performance when calling a Java remoteobject?

2006-02-07 Thread Oscar . Cortes

 We are doing some searches using a RemoteObject and displaying the result
on a grid.  We noticed that when getting more than 2000 records aprox, it
was taking some time( between 10 and 15 seconds)  before they were
displayed . At the beginning we thought that it was the Grid which was
slowing down the process. We thought that because after making the call the
busy cursor ( clock) would stop, but would not go away for another 10-15
seconds, when we finally were able to see the results in the Grid.

 However, we made another test. We simply made the call to the RemoteObject
and did not bind it to any component. We found that the 10-15 seconds were
still there, so we are wondering what exactly Flex is doing that is taking
that time. We also debugged our backend at we saw that the busy cursor
stops exactly when the server sends back the results to the client. So what
is happening in between?

Is this something related to serialization?   Our RemoteOject returns a VO,
but we are only interested in one of the attributes that holds an Array. So
we do something like this...


var myDataProvider:Array = new Array();

   Onresult ( result )
{

  myDataProvider = result.myArrayAttribute;

}


myDatagrid.dataProvider ={myDataProvider}

Any ideas on how we can improve performance?

Thanks

---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




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

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

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

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




Re: [flexcoders] Re: how to improve performance when calling a Java remoteobject?

2006-02-07 Thread Oscar . Cortes
I guess we are confused because the Onresult should only run when results
are available. We added a timer to see when they are available, and they
are in the first 2 or 3 seconds of the 10-15 that it actually takes to see
the clock go away. If we ask for the length of the result, it is actually
available in those 2-3 first seconds after the clock stops. However, any
other process seems to go to a queue that runs after the 10-15 seconds,
including using the results.

Thanks,




|-+-
| | |
| |  Dmitry Miller|
| |  [EMAIL PROTECTED]   |
| |  Sent by:   |
| |  flexcoders@yahoogroups.com |
| |  02/07/2006 04:31 PM|
| |  Please respond to  |
| |  flexcoders |
| | |
|-+-
  
-|
  | 
|
  |  To: flexcoders@yahoogroups.com 
|
  |  cc:
|
  |  Subject:  [flexcoders] Re: how to improve performance when calling a 
Java remoteobject?|
  
-|




Oscar, hi

I don't think that you can improve RemoteObject performance. I had a
similar problem and I ended up paginating the data. i.e. return the
following object

{
 items:Array;
 hasMoreRecords:Boolean;
}
Hopefully this helps

--- Dmitry



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


  We are doing some searches using a RemoteObject and displaying the
result
 on a grid.  We noticed that when getting more than 2000 records
aprox, it
 was taking some time( between 10 and 15 seconds)  before they were
 displayed . At the beginning we thought that it was the Grid which was
 slowing down the process. We thought that because after making the
call the
 busy cursor ( clock) would stop, but would not go away for another 10-15
 seconds, when we finally were able to see the results in the Grid.

  However, we made another test. We simply made the call to the
RemoteObject
 and did not bind it to any component. We found that the 10-15
seconds were
 still there, so we are wondering what exactly Flex is doing that is
taking
 that time. We also debugged our backend at we saw that the busy cursor
 stops exactly when the server sends back the results to the client.
So what
 is happening in between?

 Is this something related to serialization?   Our RemoteOject
returns a VO,
 but we are only interested in one of the attributes that holds an
Array. So
 we do something like this...


 var myDataProvider:Array = new Array();

Onresult ( result )
 {

   myDataProvider = result.myArrayAttribute;

 }


 myDatagrid.dataProvider ={myDataProvider}

 Any ideas on how we can improve performance?

 Thanks


---
 This e-mail message (including attachments, if any) is intended for
the use
 of the individual or entity to which it is addressed and may contain
 information that is privileged, proprietary , confidential and
exempt from
 disclosure.  If you are not the intended recipient, you are notified
that
 any dissemination, distribution or copying of this communication is
 strictly prohibited.  If you have received this communication in error,
 please notify the sender and erase this e-mail message immediately.

---







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












---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




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

[flexcoders] How to create a Tree row renderer?

2006-02-02 Thread Oscar . Cortes

I tried the example in the Macromedia website, but the tree rows
disappeared as I move the mouse over them. Does anyone has tried to make
this work?



http://www.macromedia.com/support/documentation/en/flex/1/cellrenderers/cellrenderers13.html

Thanks,

---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




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

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

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

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




[flexcoders] Changing Font Color in a Tree Node

2006-01-26 Thread Oscar . Cortes

How can I change the font color or font style in a single Tree node in a
Tree?   I am adding new tree nodes in a tree, and somehow I want a visual
indication that they are new.

Any ideas?


---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




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

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

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

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




Re: [flexcoders] addTreeNode Parameters question

2005-11-30 Thread Oscar . Cortes
You can do something like


var node:Object = new Object();
  node.label = LABELTEST;
  node.data = DATATEST;
  node.url = url
  node.index =1;
  node.state =VI;

var root = treeDP.addTreeNode(node);



  You can later access the values using the getProperty method.



|-+-
| | |
| |  augie|
| |  [EMAIL PROTECTED]  |
| |  Sent by:   |
| |  flexcoders@yahoogroups.com |
| |  11/30/2005 12:54 PM|
| |  Please respond to  |
| |  flexcoders |
| | |
|-+-
  
-|
  | 
|
  |  To: flexcoders@yahoogroups.com 
|
  |  cc:
|
  |  Subject:  [flexcoders] addTreeNode Parameters  question
|
  
-|




Hello,
Can someone point me in the direction of how I would go about adding
more Parameters to addTreeNode beside the regular (label, data)
arguments. (examp.(label, data, url, etc.))

Thanks in advance for all your help.
-Augie Marcello






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











---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




 Yahoo! Groups Sponsor ~-- 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] flashgateway.GatewayException: Error occurred while attempting to convert an input arguments type.

2005-11-21 Thread Oscar . Cortes
I am sending back a AS VO to Java. Originally, I got the AS VO populated
from Java. I made some changes and now I want to send it back, but I am
getting this error message.

  flashgateway.GatewayException: Error occurred while attempting to
convert an input arguments type.

 What does it mean?  What should I be checking to fix the problem?

Thanks

---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] Unresolved symbol, 'NameSymbol', required by __Packages.com.myComponent

2005-11-17 Thread Oscar . Cortes
   I have the SimpleSquare.as, I am trying to embed a symbol it is there in
a component.

 I get this error message:

Unresolved symbol, SimpleSquare, required by
__Packages.commoncomp.Tree2

The thing is that it works in one Flex environment and it does not a
different one.

  [Embed(symbol='SimpleSquare')]
  var simpleSquare:String = SimpleSquare;


Any ideas?




---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~- 

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

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

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

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




RE: [flexcoders] Unresolved symbol, 'NameSymbol', required by __Packages.com.myComponent

2005-11-17 Thread Oscar . Cortes

I am afraid I am not quite following your idea.  SimpleSquare.as is a
programmatic skin file.  Something like 


class SimpleSquare extends UIObject
{
  static var symbolName:String = SimpleSquare;

..
...
..
it is nothing fancy. I compiled it and got a SimpleSquare.swc, which is
sitting at the same level as the  component that is trying to use it. One
Flex environment is my local PC with Windows and I am deploying to a Unix
server, which is where it does not work ..


Thanks,
-Oscar.








   

   
 Roger Gonzalez  To: flexcoders@yahoogroups.com   
   
 [EMAIL PROTECTED]cc: 

 Sent by:  Subject:  RE: [flexcoders] 
Unresolved symbol, 'NameSymbol', required by 
 flexcoders@yahoogroups.com  __Packages.com.myComponent 
   
 11/17/2005 03:40 PM
   
 Please respond to  
   
 flexcoders 
   

   

   




Keep in mind that classes and symbols occupy the same namespace in
AS2, so you may need to rename your class to be different than the
symbol you are embedding.

Where is SimpleSquare coming from?  Is it a Flash asset?  It almost
looks like you're trying to embed a component, which isn't correct.  A
SimpleSquare.as with matching class will result in two symbols,
__Packages.SimpleSquare and SimpleSquare.  However, it doesn't know
about the second one until its been compiled, so unless there is a class
dependency to trigger it to be compiled, it won't work.  But if there is
a class dependency (in the other Flex environment that caused it to be
compiled via a hard dependency, then the incorrect code will
coincidentally work.

Don't try to embed component sprites, just use the class.

Don't overlap your component names with symbols defined in Flash, define
them with different names.

-Roger

Roger Gonzalez
mailto:[EMAIL PROTECTED]


 -Original Message-
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of
 [EMAIL PROTECTED]
 Sent: Thursday, November 17, 2005 11:53 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Unresolved symbol, 'NameSymbol',
 required by __Packages.com.myComponent

I have the SimpleSquare.as, I am trying to embed a symbol
 it is there in
 a component.

  I get this error message:

 Unresolved symbol, SimpleSquare, required by
 __Packages.commoncomp.Tree2

 The thing is that it works in one Flex environment and it does not a
 different one.

   [Embed(symbol='SimpleSquare')]
   var simpleSquare:String = SimpleSquare;


 Any ideas?




 --
 -
 This e-mail message (including attachments, if any) is
 intended for the use
 of the individual or entity to which it is addressed and may contain
 information that is privileged, proprietary , confidential
 and exempt from
 disclosure.  If you are not the intended recipient, you are
 notified that
 any dissemination, distribution or copying of this communication is
 strictly prohibited.  If you have received this communication
 in error,
 please notify the sender and erase this e-mail message immediately.
 --
 -




  Yahoo! Groups Sponsor
 ~--
 Get fast access to your favorite Yahoo! Groups. Make Yahoo!
 your home page
 http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
 --
 --~-

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










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

RE: [flexcoders] AddTreeNode sometimes does not add but instead replaces the top node.

2005-11-16 Thread Oscar . Cortes
I actually found out what was happening. I assigned the selectedNode to two
different local variables, then delete the child nodes from one of them
thinking that it would be independent from the other one. This was actually
not true since although I assigned the node to two different variables both
of them point to the same object in memory. I figured out how to use the
same variable without deleting the child nodes and it is working now.

Example:

   var nodeA = myNode.getTreeNodeAt( location);
   var nodeB=  myNode.getTreeNodeAt( location);

  for ( nodeA lenght)
   delete child Nodes   -   This also changes nodeB, which is the one
I was using for my AddTreeNode










   

   
 Matt Chotin To: flexcoders@yahoogroups.com   
   
 [EMAIL PROTECTED]  cc:   
  
 Sent by:  Subject:  RE: [flexcoders] 
AddTreeNode sometimes does not add but instead replaces the  
 flexcoders@yahoogroups.com  top node.  
   
 11/16/2005 02:01 AM
   
 Please respond to  
   
 flexcoders 
   

   

   




Not that I can see from your description so you might need to give us more
code…


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, November 15, 2005 11:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AddTreeNode sometimes does not add but instead
replaces the top node.


  I created a Tree using something like treeDP= new TreeNode(), and adding
branches and items. I have some functionality that inserts new nodes to an
existent branch. Sometimes, the AddTreeNode works fine and sometimes it
doesn't add a node but instead replaces the top one.   I am using this
syntax.

 node.AddTreeNode(object)

   Is there anything that I am missing?

---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---





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


YAHOO! GROUPS LINKS



   Visit your group flexcoders on the web.

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

   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.





---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---

 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: 

[flexcoders] How to hide the line in a Drag and Drop Operation

2005-11-16 Thread Oscar . Cortes

How can I hide the line that shows when doing Drag and Drop ? My drop
target is a Tree, but we don't want to show the line.

Thanks

---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] AddTreeNode sometimes does not add but instead replaces the top node.

2005-11-15 Thread Oscar . Cortes

  I created a Tree using something like treeDP= new TreeNode(), and adding
branches and items. I have some functionality that inserts new nodes to an
existent branch. Sometimes, the AddTreeNode works fine and sometimes it
doesn't add a node but instead replaces the top one.   I am using this
syntax.

 node.AddTreeNode(object)

   Is there anything that I am missing?

---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] Comparing two Tree nodes.

2005-11-08 Thread Oscar . Cortes
I am doing some DragDrop between trees and I need to validate that an
existing node does not exist more than once in a Tree branch. I am able to
loop in the branch where I am dropping the node and then compare with the
dropped node. However the statement

  if ( NodeinBranch == receiveNode)
do something 

does not work. Both,  NodeinBranch and receiveNode, are declared as
Objects.

How can I compare two Tree nodes to find out if they are the same?   I know
that I could compare some properties of the nodes but I want to have a
generic way of doing it, without depending in specific properties names.

Thanks,


---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] Mapping java.sql.Timestamp to ActionScript

2005-11-04 Thread Oscar . Cortes
We are  reading a collection of Java Value Objects with one of the
attributes being of java.sql.Timestamp datatype.  How can I map this to
ActionScript?

We already have a ActionScript VO mapped to the Java VO using
object.RegisterClass, it seems that it is reading the value OK but when
send the ActionScript VO back to Java we get an error message about a data
type that is not recognized.

Any ideas?

-Oscar.

---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




Re: [flexcoders] Java VO.

2005-10-13 Thread Oscar . Cortes
Omar,

Are you using ColdFusion with Flex? Check out the gateway-config.xml file
and check the serialization section. I had the same problem, and you
actually have different options.

  !-- Determines how complex objects/generic class data types are to
  be
  handled by the gateway. The two options are Classic or Flex.

  Classic mode performs shallow serialization on all non-static
  fields
  for classes implemeting java.io.Serializable.

  Flex mode uses improvements made for Flex's RemoteObject feature
  and performs deep serialization on fields with bean accessors for
  any
   class. --
  serializationClassic/serialization

  !-- ActionScript 1.0 and ColdFusion use case insensitive data
  structures
  to store associative arrays, objects and structs - the Java
  representation
  of these datatypes requires a case-insensitive Map, which the
  gateway
  achieves by looking up all keys in lowercase.  If case
  insensitivity is desired
  then this setting should be set to true.  ActionScript 2.0 is now
  case sensitive,
  but setting this to true will allow ColdFusion to look up keys
  case insensitively, and
  will not actually change the case of the keys.  For AS 2.0 to
  java this should be false,
  since both are case sensitive. --
  lowercase-keystrue/lowercase-keys







 Omar Ramos  To: flexcoders@yahoogroups.com   

 [EMAIL PROTECTED]cc: 
 
 Sent by:  Subject:  Re: [flexcoders] Java 
VO.  
 flexcoders@yahoogroups.com 

 10/13/2005 09:38 AM

 Please respond to  

 flexcoders 









Yes I have both VO identical and registered via registerObject. Java just
seams to put my properties to lowercase. I guess I will have to just go
with lowercase properties.


Omar Ramos
System Developer


On 10/12/05, Kelly Roman [EMAIL PROTECTED] wrote:
Are you making corresponding AS classes to match your Java VO classes?





If so are you declaring the remoteClass so that Flex knows which AS classes
match which Java VO classes?











From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Omar Ramos
Sent: Tuesday, October 11, 2005 9:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Java VO.





Hi all,

I have a simple VO class in java and have a service that returns a
ArrayList of that vo. My question is that when I return this list to flex
via RemoteObject Tag (AMF) java or flash seams to put each property of the
VO in lowercase. For example if on the Java VO it had a property of Name
and LastName when it gets to flex is name and lastName. Any way to make it
return the VO as it is defined on the java class? Thanks for any help.


Omar Ramos
System Developer





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


YAHOO! GROUPS LINKS

   Visit your group flexcoders on the web.

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

   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.







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



SPONSORED LINKS
  
 Web site design  Computer software  Software design  
 development  developmentand development  
  
 Macromedia flex  Software
  development best

Re: [flexcoders] Java VO.

2005-10-13 Thread Oscar . Cortes
If you have the file and the same options it should. We change
serialization to 'Flex' and lowercase-keys to False.  This actually
assigns the name according to the getter in you Java class. Let's say for
example you have an attribute called myFullName but you have a getter for
this attribute called getFullName then Flex will get 'fullName' and not
myFullName. I believe serialization set to Classic would give you
something different. But perhaps someone in the group can comment on this
..








 Omar Ramos  To: flexcoders@yahoogroups.com   

 [EMAIL PROTECTED]cc: 
 
 Sent by:  Subject:  Re: [flexcoders] Java 
VO.  
 flexcoders@yahoogroups.com 

 10/13/2005 01:02 PM

 Please respond to  

 flexcoders 









Hi Oscar,

I am using Flex with JRUN and Java classes. Does this applies too? And what
did you do to fix the problem. Thanks

Omar Ramos
System Developer


On 10/13/05, [EMAIL PROTECTED] [EMAIL PROTECTED]  wrote:
Omar,

Are you using ColdFusion with Flex? Check out the gateway-config.xml file
and check the serialization section. I had the same problem, and you
actually have different options.

  !-- Determines how complex objects/generic class data types are to
  be
  handled by the gateway. The two options are Classic or Flex.

  Classic mode performs shallow serialization on all non-static
  fields
  for classes implemeting java.io.Serializable.

  Flex mode uses improvements made for Flex's RemoteObject feature
  and performs deep serialization on fields with bean accessors for
  any
   class. --
  serializationClassic/serialization

  !-- ActionScript 1.0 and ColdFusion use case insensitive data
  structures
  to store associative arrays, objects and structs - the Java
  representation
  of these datatypes requires a case-insensitive Map, which the
  gateway
  achieves by looking up all keys in lowercase.  If case
  insensitivity is desired
  then this setting should be set to true.  ActionScript 2.0 is now
  case sensitive,
  but setting this to true will allow ColdFusion to look up keys
  case insensitively, and
  will not actually change the case of the keys.  For AS 2.0 to
  java this should be false,
  since both are case sensitive. --
  lowercase-keystrue/lowercase-keys





 Omar Ramos  To:
flexcoders@yahoogroups.com
 [EMAIL PROTECTED] cc:

 Sent by:  Subject:  Re: [flexcoders]
Java VO.
 flexcoders@yahoogroups.com

 10/13/2005 09:38 AM

 Please respond to

 flexcoders







Yes I have both VO identical and registered via registerObject. Java just
seams to put my properties to lowercase. I guess I will have to just go
with lowercase properties.


Omar Ramos
System Developer


On 10/12/05, Kelly Roman [EMAIL PROTECTED] wrote:
Are you making corresponding AS classes to match your Java VO classes?





If so are you declaring the remoteClass so that Flex knows which AS classes
match which Java VO classes?











From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Omar Ramos
Sent: Tuesday, October 11, 2005 9:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Java VO.





Hi all,

I have a simple VO class in java and have a service that returns a
ArrayList of that vo. My question is that when I return this list to flex
via RemoteObject Tag (AMF) java or flash seams to put each property of the
VO in lowercase. For example if on the Java VO it had a property of Name
and LastName when it gets to flex is name and lastName. Any way to make it
return the VO as it is defined on the java class? Thanks for any help.



Re: [flexcoders] Any explanation as to why this would happen( Question about accordions)

2005-10-13 Thread Oscar . Cortes
If the second panel has not been open yet then it has not been created thus
the first panel would not have a way to reach it. Is this the case?







 [EMAIL PROTECTED]  To: flexcoders@yahoogroups.com  
 
 Sent by:  cc:  

 flexcoders@yahoogroups.comSubject:  [flexcoders] Any 
explanation as to why this would happen( Question 
 10/13/2005 02:41 PM about accordions)  

 Please respond to  

 flexcoders 









I am having some problems getting a button on one panel of an accordion to
change the textinput box on another panel of an accordion and I was
wondering if someone can give me some idea as to what could be causing
this?



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


YAHOO! GROUPS LINKS

   Visit your group flexcoders on the web.

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

   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.





---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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






Re: [flexcoders] Any explanation as to why this would happen( Question about ...

2005-10-13 Thread Oscar . Cortes
 I think you can use some binding here. However, I am not sure if you are
using the button in the first panel for testing, or for calling some more
logic. In any case you can trying binding a control in the first panel with
the second. For example:

If you have 
  Panel1
  --- txt_TextInput1
  Panel2
  --- txt_TextInput2

   You can do something like this in the second panel
txt_textInput2.text = {txt_textInput1.text}

  Of course this would not be populated until you have something in
txt_TextInput1.

Another option is to use the creationpolicy in your Accordion, check which
option forces Flex to create all components inside the Accoordion
regardless if thet have been browse or not. However, this might affect your
performance.








 [EMAIL PROTECTED]  To: flexcoders@yahoogroups.com  
 
 Sent by:  cc:  

 flexcoders@yahoogroups.comSubject:  Re: [flexcoders] Any 
explanation as to why this would happen(  
 10/13/2005 03:27 PM Question about ... 

 Please respond to  

 flexcoders 









Is there any way to set it up to wehre I would not have to open the second
panel first though?

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


YAHOO! GROUPS LINKS

   Visit your group flexcoders on the web.

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

   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.





---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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






RE: [flexcoders] Reading the displayed value in a DataGrid - How to

2005-10-13 Thread Oscar . Cortes
Thanks Matt, I might give this a try. I ended up using something like this
which also works:


For (var i:Number=0; I  dg.rowcount; i++)
{

  For (var j:Number=0; I  dg.columns.length; j++)
  {
myHTML += dg.rows[i].cells[j].value;
  }
}


As I said, this works and makes sense. It reads what it is in the cell and
not what it is in the dataprovider for the same position. However, it is
not documented I believe. I found something similar in the Macromedia
forums. Any comments?

Thanks,
-Oscar.








 Matt Chotin To: flexcoders@yahoogroups.com   

 [EMAIL PROTECTED]  cc:   
   
 Sent by:  Subject:  RE: [flexcoders] 
Reading the displayed value in a DataGrid - How   
 flexcoders@yahoogroups.com  to 

 10/11/2005 11:00 PM

 Please respond to  

 flexcoders 









How about something like this?

For (var i:Number=0; I  dg.dataProvider.length; i++)
{
  var cells:Array = [];
  var item:Object = dg.dataProvider.getItemAt(i);
  for (var c:Number=0; c  dg.columns.length; c++)
  {
var col:mx.controls.gridclasses.DataGridColumn = dg.getColumnAt( c );
if (c.labelFunction != undefined)
{
  cells.push(c.labelFunction(item));
}
else
{
   Cells.push(item[c.columnName]);
}
  }
  //do something with cells to build your HTML
}

Matt


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Monday, October 10, 2005 2:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Reading the displayed value in a DataGrid - How
to

Let me reformulate my question. Usually you can use selectedItem.
columnName   to read the value of a row/column of a datagrid. This seems to
work fine as shown in the Flex Sample Explorer ( example below).  But how
can you read the value of a computed column that was added in addition to
the columns returned by the dataprovider?   When I trace the selectedItem
or getItemAt, I only get the dataprovider data and nothing else.

mx:DataGrid id=dg width=100% height=100%
dataProvider={employeeModel.employee}
mx:columns
mx:Array
mx:DataGridColumn columnName=name headerText=Name/
mx:DataGridColumn columnName=phone headerText=Phone/
mx:DataGridColumn columnName=email headerText=Email/
!-- How can I read this?   --
mx:DataGridColumn columnName=myComputedColumn
headerText=All labelFunction=cocanateAll/
!--   No part of the dataprovider, but shows OK   --
/mx:Array
/mx:columns
/mx:DataGrid

mx:Form
mx:FormItem label=Name
mx:Label text={dg.selectedItem.name}/
/mx:FormItem
mx:FormItem label=Email
mx:Label text={dg.selectedItem.email}/
/mx:FormItem
mx:FormItem label=Phone
mx:Label text={dg.selectedItem.phone}/
/mx:FormItem
!-- How can I read this?   --
mx:FormItem label=
mx:Label text={dg.selectedItem.myComputedColumn}/ !--
This doesn't work  --
/mx:FormItem
!--   --


Thanks,
/mx:Form




 [EMAIL PROTECTED]  To:
flexcoders@yahoogroups.com
 Sent by:  cc:

 flexcoders@yahoogroups.comSubject:  [flexcoders]
Reading the displayed value in a DataGrid - How to
 10/10/2005 12:45 PM

 Please respond to

 flexcoders







I am using labelFunction for a column in a datagrid. How can I read the
displayed value and not the real value directly from the dataGrid?

I am also wondering how to get values from the DataGrid in general. I need
to render the DataGrid to a HTML table, I mean, read columns and rows from
the dataGrid and have a string with the HTML syntax. I could not find
anything such as getRow, and then read each column. So I am selecting each
Row and then using 

[flexcoders] Using an extended DataGrid Class - Don't know how to parse element http://www.macromedia.com/2003/mxml:columns

2005-10-12 Thread Oscar . Cortes

Now that I am able to read the DataGrid displayed values, I am facing
another problem. When I try to use my new class, the one that extended the
DataGrid ( GridHTML.as), I am getting this error message:

Don't know how to parse element
http://www.macromedia.com/2003/mxml:columns;. It is not a known type or a
property of mycomp.com.GridHTML.

 I was expecting to be able to use the same syntax for my class.

 Any ideas???

Thanks.


 !-- GridHTML.as--
  class mycom.com.GridHTML extends mx.controls.DataGrid

  {

  // Tranlates the Grid to a HTML table
  function getHTML ():String
  {
.

return strHTML;
 }
  }

!-- main.mxml --
compclass:GridHTML id=dgformshtml dataProvider={searchResult}  
  mx:columns
mx:Array
  mx:DataGridColumn columnName=myFullName headerText=
Name labelFunction=lblFunctionName /
  mx:DataGridColumn columnName=clientID
headerText=Client ID /
/mx:Array
  /mx:columns
/compclass:GridHTML

---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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






RE: [flexcoders] Reading the displayed value in a DataGrid - How to

2005-10-12 Thread Oscar . Cortes

I just noticed that this post never made it to the list ..


- Forwarded by Oscar Cortes/ServiceCenter/US/SunLife on 10/12/2005
02:01 PM -

   

   
Oscar Cortes   To:  
flexcoders@yahoogroups.com 
10/12/2005 09:48 AMcc:  
   
   Subject: RE: [flexcoders] 
Reading the displayed value in a DataGrid - How   
   to(Document link: Oscar Cortes)  
   

   



Thanks Matt, I might give this a try. I ended up using something like this
which also works:


For (var i:Number=0; I  dg.rowcount; i++)
{

  For (var j:Number=0; I  dg.columns.length; j++)
  {
myHTML += dg.rows[i].cells[j].value;
  }
}


As I said, this works and makes sense. It reads what it is in the cell and
not what it is in the dataprovider for the same position. However, it is
not documented I believe. I found something similar in the Macromedia
forums. Any comments?

Thanks,
-Oscar.








 Matt Chotin To: flexcoders@yahoogroups.com   

 [EMAIL PROTECTED]  cc:   
   
 Sent by:  Subject:  RE: [flexcoders] 
Reading the displayed value in a DataGrid - How   
 flexcoders@yahoogroups.com  to 

 10/11/2005 11:00 PM

 Please respond to  

 flexcoders 









How about something like this?

For (var i:Number=0; I  dg.dataProvider.length; i++)
{
  var cells:Array = [];
  var item:Object = dg.dataProvider.getItemAt(i);
  for (var c:Number=0; c  dg.columns.length; c++)
  {
var col:mx.controls.gridclasses.DataGridColumn = dg.getColumnAt( c );
if (c.labelFunction != undefined)
{
  cells.push(c.labelFunction(item));
}
else
{
   Cells.push(item[c.columnName]);
}
  }
  //do something with cells to build your HTML
}

Matt


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Monday, October 10, 2005 2:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Reading the displayed value in a DataGrid - How
to

Let me reformulate my question. Usually you can use selectedItem.
columnName   to read the value of a row/column of a datagrid. This seems to
work fine as shown in the Flex Sample Explorer ( example below).  But how
can you read the value of a computed column that was added in addition to
the columns returned by the dataprovider?   When I trace the selectedItem
or getItemAt, I only get the dataprovider data and nothing else.

mx:DataGrid id=dg width=100% height=100%
dataProvider={employeeModel.employee}
mx:columns
mx:Array
mx:DataGridColumn columnName=name headerText=Name/
mx:DataGridColumn columnName=phone headerText=Phone/
mx:DataGridColumn columnName=email headerText=Email/
!-- How can I read this?   --
mx:DataGridColumn columnName=myComputedColumn
headerText=All labelFunction=cocanateAll/
!--   No part of the dataprovider, but shows OK   --
/mx:Array
/mx:columns
/mx:DataGrid

mx:Form
mx:FormItem label=Name
mx:Label text={dg.selectedItem.name}/
/mx:FormItem
mx:FormItem label=Email
mx:Label text={dg.selectedItem.email}/
/mx:FormItem
mx:FormItem label=Phone
mx:Label text={dg.selectedItem.phone

RE: [flexcoders] Reading the displayed value in a DataGrid - How to

2005-10-12 Thread Oscar . Cortes


I just noticed that this post never made it to the list ..


- Forwarded by Oscar Cortes/ServiceCenter/US/SunLife on 10/12/2005
02:01 PM -

   

   
Oscar Cortes   To:  
flexcoders@yahoogroups.com 
10/12/2005 09:48 AMcc:  
   
   Subject: RE: [flexcoders] 
Reading the displayed value in a DataGrid - How   
   to(Document link: Oscar Cortes)  
   

   



Thanks Matt, I might give this a try. I ended up using something like this
which also works:

   for (var i:Number=0; I  dg.rowcount; i++)
{

  for (var j:Number=0; I  dg.columns.length; j++)
  {
myHTML += dg.rows[i].cells[j].value;
  }
}


As I said, this works and makes sense. It reads what it is in the cell and
not what it is in the dataprovider for the same position. However, it is
not documented I believe. I found something similar in the Macromedia
forums. Any comments?

Thanks,
-Oscar.








 Matt Chotin To: flexcoders@yahoogroups.com   

 [EMAIL PROTECTED]  cc:   
   
 Sent by:  Subject:  RE: [flexcoders] 
Reading the displayed value in a DataGrid - How   
 flexcoders@yahoogroups.com  to 

 10/11/2005 11:00 PM

 Please respond to  

 flexcoders 









How about something like this?

For (var i:Number=0; I  dg.dataProvider.length; i++)
{
  var cells:Array = [];
  var item:Object = dg.dataProvider.getItemAt(i);
  for (var c:Number=0; c  dg.columns.length; c++)
  {
var col:mx.controls.gridclasses.DataGridColumn = dg.getColumnAt( c );
if (c.labelFunction != undefined)
{
  cells.push(c.labelFunction(item));
}
else
{
   Cells.push(item[c.columnName]);
}
  }
  //do something with cells to build your HTML
}

Matt


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Monday, October 10, 2005 2:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Reading the displayed value in a DataGrid - How
to

Let me reformulate my question. Usually you can use selectedItem.
columnName   to read the value of a row/column of a datagrid. This seems to
work fine as shown in the Flex Sample Explorer ( example below).  But how
can you read the value of a computed column that was added in addition to
the columns returned by the dataprovider?   When I trace the selectedItem
or getItemAt, I only get the dataprovider data and nothing else.

mx:DataGrid id=dg width=100% height=100%
dataProvider={employeeModel.employee}
mx:columns
mx:Array
mx:DataGridColumn columnName=name headerText=Name/
mx:DataGridColumn columnName=phone headerText=Phone/
mx:DataGridColumn columnName=email headerText=Email/
!-- How can I read this?   --
mx:DataGridColumn columnName=myComputedColumn
headerText=All labelFunction=cocanateAll/
!--   No part of the dataprovider, but shows OK   --
/mx:Array
/mx:columns
/mx:DataGrid

mx:Form
mx:FormItem label=Name
mx:Label text={dg.selectedItem.name}/
/mx:FormItem
mx:FormItem label=Email
mx:Label text={dg.selectedItem.email}/
/mx:FormItem

Re: [flexcoders] Reading the displayed value in a DataGrid - How to

2005-10-11 Thread Oscar . Cortes
Thanks Ramu, but the columnName is fixed in this case, not binding is
involved. As a matter of fact, I am not sure if you can use binding for a
column name.






 Ramu p  To: flexcoders@yahoogroups.com   

 [EMAIL PROTECTED]cc: 
 
 Sent by:  Subject:  Re: [flexcoders] 
Reading the displayed value in a DataGrid - How   
 flexcoders@yahoogroups.com  to 

 10/11/2005 02:26 AM

 Please respond to  

 flexcoders 









Hi,

U guess there is a mistake in the following line that you used.

  mx:DataGridColumn columnName=myComputedColumn
headerText=All labelFunction=cocanateAll/
The above must be:
  mx:DataGridColumn columnName={myComputedColumn}
headerText=All labelFunction=cocanateAll/

Pls correct me if any worngs!

Thanks.



On 10/11/05, [EMAIL PROTECTED] [EMAIL PROTECTED]  wrote:
Let me reformulate my question. Usually you can use selectedItem.
columnName   to read the value of a row/column of a datagrid. This seems to

work fine as shown in the Flex Sample Explorer ( example below).  But how
can you read the value of a computed column that was added in addition to
the columns returned by the dataprovider?   When I trace the selectedItem
or getItemAt, I only get the dataprovider data and nothing else.

mx:DataGrid id=dg width=100% height=100%
   dataProvider={employeeModel.employee}
   mx:columns
   mx:Array
   mx:DataGridColumn columnName=name headerText=Name/
   mx:DataGridColumn columnName=phone headerText=Phone/
   mx:DataGridColumn columnName=email headerText=Email/
!-- How can I read this?   --
   mx:DataGridColumn columnName=myComputedColumn
headerText=All labelFunction=cocanateAll/
!--   No part of the dataprovider, but shows OK   --
   /mx:Array
   /mx:columns
   /mx:DataGrid

   mx:Form
   mx:FormItem label=Name
   mx:Label text={dg.selectedItem.name}/
   /mx:FormItem
   mx:FormItem label=Email
   mx:Label text={dg.selectedItem.email}/
   /mx:FormItem
   mx:FormItem label=Phone
   mx:Label text={ dg.selectedItem.phone}/
   /mx:FormItem
!-- How can I read this?   --
   mx:FormItem label=
   mx:Label text={dg.selectedItem.myComputedColumn }/ !--
This doesn't work  --
   /mx:FormItem
!--   --


Thanks,
   /mx:Form




 [EMAIL PROTECTED]  To:
flexcoders@yahoogroups.com
Sent by:  cc:
 flexcoders@yahoogroups.comSubject:  [flexcoders]
Reading the displayed value in a DataGrid - How to
10/10/2005 12:45 PM
Please respond to
flexcoders






I am using labelFunction for a column in a datagrid. How can I read the
displayed value and not the real value directly from the dataGrid?

I am also wondering how to get values from the DataGrid in general. I need
to render the DataGrid to a HTML table, I mean, read columns and rows from
the dataGrid and have a string with the HTML syntax. I could not find
anything such as getRow, and then read each column. So I am selecting each
Row and then using the selectedItem property.

I know that I could use the function executed in labelFunction to
reproduce the displayed value, but I am actually trying to extend the
DataGrid class and add a method called getHTMLString for example. This
would require to be agnostic of whether the column has a labelFunction or
not.

Any ideas?

Thanks.

---
This e-mail message (including attachments, if any) is intended for the use

of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this 

[flexcoders] Reading the displayed value in a DataGrid - How to

2005-10-10 Thread Oscar . Cortes
I am using labelFunction for a column in a datagrid. How can I read the
displayed value and not the real value directly from the dataGrid?

I am also wondering how to get values from the DataGrid in general. I need
to render the DataGrid to a HTML table, I mean, read columns and rows from
the dataGrid and have a string with the HTML syntax. I could not find
anything such as getRow, and then read each column. So I am selecting each
Row and then using the selectedItem property.

 I know that I could use the function executed in labelFunction to
reproduce the displayed value, but I am actually trying to extend the
DataGrid class and add a method called getHTMLString for example. This
would require to be agnostic of whether the column has a labelFunction or
not.

Any ideas?

Thanks.

---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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





Re: [flexcoders] Reading the displayed value in a DataGrid - How to

2005-10-10 Thread Oscar . Cortes
 Let me reformulate my question. Usually you can use selectedItem.
columnName   to read the value of a row/column of a datagrid. This seems to
work fine as shown in the Flex Sample Explorer ( example below).  But how
can you read the value of a computed column that was added in addition to
the columns returned by the dataprovider?   When I trace the selectedItem
or getItemAt, I only get the dataprovider data and nothing else.

mx:DataGrid id=dg width=100% height=100%
dataProvider={employeeModel.employee}
mx:columns
mx:Array
mx:DataGridColumn columnName=name headerText=Name/
mx:DataGridColumn columnName=phone headerText=Phone/
mx:DataGridColumn columnName=email headerText=Email/
!-- How can I read this?   --
mx:DataGridColumn columnName=myComputedColumn
headerText=All labelFunction=cocanateAll/
!--   No part of the dataprovider, but shows OK   --
/mx:Array
/mx:columns
/mx:DataGrid

mx:Form
mx:FormItem label=Name
mx:Label text={dg.selectedItem.name}/
/mx:FormItem
mx:FormItem label=Email
mx:Label text={dg.selectedItem.email}/
/mx:FormItem
mx:FormItem label=Phone
mx:Label text={dg.selectedItem.phone}/
/mx:FormItem
!-- How can I read this?   --
mx:FormItem label=
mx:Label text={dg.selectedItem.myComputedColumn}/ !--
This doesn't work  --
/mx:FormItem
!--   --


Thanks,
/mx:Form






 [EMAIL PROTECTED]  To: flexcoders@yahoogroups.com  
 
 Sent by:  cc:  

 flexcoders@yahoogroups.comSubject:  [flexcoders] Reading 
the displayed value in a DataGrid - How to
 10/10/2005 12:45 PM

 Please respond to  

 flexcoders 









I am using labelFunction for a column in a datagrid. How can I read the
displayed value and not the real value directly from the dataGrid?

I am also wondering how to get values from the DataGrid in general. I need
to render the DataGrid to a HTML table, I mean, read columns and rows from
the dataGrid and have a string with the HTML syntax. I could not find
anything such as getRow, and then read each column. So I am selecting each
Row and then using the selectedItem property.

 I know that I could use the function executed in labelFunction to
reproduce the displayed value, but I am actually trying to extend the
DataGrid class and add a method called getHTMLString for example. This
would require to be agnostic of whether the column has a labelFunction or
not.

Any ideas?

Thanks.

---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---





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












---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the 

Re: [flexcoders] Populating values in datagrid from arrays

2005-10-03 Thread Oscar . Cortes
Try casting the result to an Array ...

  myArray= mx.utils.ArrayUtil.toArray(event.result);

It worked for me in a similar case ...









 Parekh, Shweta - BLS CTRTo: 
'flexcoders@yahoogroups.com' flexcoders@yahoogroups.com  
 [EMAIL PROTECTED]   cc:  

 Sent by:  Subject:  [flexcoders] 
Populating values in datagrid from arrays 
 flexcoders@yahoogroups.com 

 10/03/2005 02:19 PM

 Please respond to  

 flexcoders 









Hi,

I am having problem populating values in my datagrid. From my mxml, I make
a
remote call to my controller which returns an array of ItemVOs.
ItemVO has one-dimensional integer array, containing values for columns in
each row in the datagrid. i.e. if my int array in ItemVO1 contains values
1,
2 and array in ItemVO2 contains values 3,4, then my datagrid should display

   12
   34
Instead the code below displays my datagrid as
  1,2   1,2
  3,4   3,4

Code:
mx:RemoteObject id=itemDetailController
source=controllers.ItemDetailController showBusyCursor=true
 mx:method name=getColSpecData
result=result_ColSpecData=event.result
 mx:arguments
 arg1{itemSid}/arg1
 arg2{irMonth}/arg2
 arg3{monthNo}/arg3
 /mx:arguments
 /mx:method
/mx:RemoteObject
mx:VBox
   mx:DataGrid id=colSpec_dg width=600
dataProvider={result_ColSpecData} textAlign=left height=250
headerHeight=50 editable=true 
 mx:columns
   mx:Array
 mx:DataGridColumn headerText=A
columnName=colSpecData width=50 textAlign=left/
 mx:DataGridColumn headerText=B
columnName=colSpecData width=100 textAlign=left/
   /mx:Array
 /mx:columns
   /mx:DataGrid

mx:FormItem direction=horizontal width=100% height=30
 mx:Text text=value: width=90/mx:Spacer height=63/
 mx:Text id=tobEffIrm
text={itemDetailController.getColSpecData.result[0].colSpecData[0]}
width=57/mx:Spacer height=63/
 mx:Text id=tobEffIrm1
text={itemDetailController.getColSpecData.result[0].colSpecData[1]}
width=57/mx:Spacer height=63/
 mx:Text id=tobEffIrm2
text={itemDetailController.getColSpecData.result[1].colSpecData[0]}
width=57/mx:Spacer height=63/
 mx:Text id=tobEffIrm3
text={itemDetailController.getColSpecData.result[1].colSpecData[1]}
width=57/mx:Spacer height=63/
/mx:FormItem

If I replace colSpecData with colSpecData[0] and colSpecData[1], datagrid
does not show any values. But the text field displays values fine as 1 2 3
4.
I fail to understand why the dataprovider in the datagrid does not work
with
indexes specified. Can anybody please help me with this.

Thanks in advance,
Shweta





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











---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!

Re: [flexcoders] populating combo box

2005-09-26 Thread Oscar . Cortes
Are you calling listCities.send() in some place?








 mc2mac2 To: flexcoders@yahoogroups.com   

 [EMAIL PROTECTED]cc: 
 
 Sent by:  Subject:  [flexcoders] 
populating combo box  
 flexcoders@yahoogroups.com 

 09/26/2005 08:58 AM

 Please respond to  

 flexcoders 









hello,

this is my very first post about this new, exciting technology  ;)

I am trying to populate a combo box using a HTTPService rather than the
well documented
array-object method.

here is the code:

?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
  mx:HTTPService id=listCities url=http://localhost/flex/city.php/

mx:ComboBox id=cities
dataProvider={listCities.result.cities.option}/

  /mx:Application

and the city.php file output:

?xml version=1.0 encoding=utf-8?
cities
option
labelChoose City/label
dataNULL/data
/option

option
labelLondon/label
dataLondon/data
/option

option
labelNew York/label
dataNew York/data
/option

/cities

this does not populate the combo box :(

can some body please tell me why?


thanx



Tomek





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











---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




Re: [flexcoders] How to pass value selected from combo box to my Java class method

2005-09-16 Thread Oscar . Cortes
Assuming that you already have a RemoteObject to call your Java Class. This
is what I would do:


 mx:ComboBox id=item dataProvider={listInfo}

  change=myRemoteObject.getMyDataFromJava(item.selectedItem.mydata)/

   where mydata is the attribute name in listInfo and which you wanto to
send to Java.

  You should have a resultHandler to catch the myRemoteObject.result, which
then you can use as a Dataprovider for another control.

-Oscar.







 sandip_patil01  To: flexcoders@yahoogroups.com   

 [EMAIL PROTECTED]cc: 
 
 Sent by:  Subject:  [flexcoders] How to 
pass value selected from combo box to my Java  
 flexcoders@yahoogroups.com  class method   

 09/16/2005 02:16 PM

 Please respond to  

 flexcoders 









Hi all,

Can anybody tell me how to pass value selected from combo box to my
service class method.
Here what I want is depending on the parameter passed to method the
method should fetch records from database.
In this case I want to pass value selected from combo box to my java
class method.So how I can achive this.

My code is ,
 mx:ComboBox id=item dataProvider={listInfo}/

where this listInfo contains some data.
Now I want to pass one selected value from this data to my java
class method sothat accordingly I can fire my select query depending
on the value passed.
So can anybody please help me out.

Thanks in advance.
Sandip Patil







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











---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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





Re: [flexcoders] How to pass value selected from combo box to my Java class method

2005-09-16 Thread Oscar . Cortes
Something like this?

mx:Label text=Enter data /  mx:TextInput id=txt_1/

 mx:ComboBox id=item dataProvider={listInfo}
   change=myRemoteObject.getMyDataFromJava(item.selectedItem.mydata,
 {txt_1.text}/

 -Oscar.







 Sandip PatilTo: flexcoders@yahoogroups.com   

 [EMAIL PROTECTED]cc: 
 
 Sent by:  Subject:  Re: [flexcoders] How 
to pass value selected from combo box to my   
 flexcoders@yahoogroups.com  Java class method  

 09/16/2005 02:51 PM

 Please respond to  

 flexcoders 









Thx Oscar,

For your response.

I know this.
But along with this value selected from combo box i also want to pass
whatever values User enter in text box.

Here what I all want it is,

Suppse I have text box and combo box.
When user enter something in text box  also select value from combo
box(which is already populated with data).I want both these valus to pass
my Java class's another method.

Thx Again.
Sandip Patil












[EMAIL PROTECTED] wrote:
 Assuming that you already have a RemoteObject to call your Java Class.
 This
 is what I would do:


 mx:ComboBox id=item dataProvider={listInfo}

   change=myRemoteObject.getMyDataFromJava(item.selectedItem.mydata)/

where mydata is the attribute name in listInfo and which you wanto to
 send to Java.

   You should have a resultHandler to catch the myRemoteObject.result,
 which
 then you can use as a Dataprovider for another control.

 -Oscar.





  sandip_patil01  To:
 flexcoders@yahoogroups.com
  [EMAIL PROTECTED]cc:

  Sent by:  Subject:  [flexcoders] How
 to pass value selected from combo box to my Java
  flexcoders@yahoogroups.com  class method

  09/16/2005 02:16 PM

  Please respond to

  flexcoders







 Hi all,

 Can anybody tell me how to pass value selected from combo box to my
 service class method.
 Here what I want is depending on the parameter passed to method the
 method should fetch records from database.
 In this case I want to pass value selected from combo box to my java
 class method.So how I can achive this.

 My code is ,
 mx:ComboBox id=item dataProvider={listInfo}/

 where this listInfo contains some data.
 Now I want to pass one selected value from this data to my java
 class method sothat accordingly I can fire my select query depending
 on the value passed.
 So can anybody please help me out.

 Thanks in advance.
 Sandip Patil







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











 ---

 This e-mail message (including attachments, if any) is intended for the
 use
 of the individual or entity to which it is addressed and may contain
 information that is privileged, proprietary , confidential and exempt from
 disclosure.  If you are not the intended recipient, you are notified that
 any dissemination, distribution or copying of this communication is
 strictly prohibited.  If you have received this communication in error,
 please notify the sender and erase this e-mail message immediately.
 ---





__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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


YAHOO! GROUPS LINKS



   Visit your group flexcoders on the web.

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

   Your use of 

Re: [flexcoders] Re: I have an overloaded Java method, How can I call an specific method using Re

2005-09-09 Thread Oscar . Cortes
I am not sure if I am following this idea. I declared the RemoteObject with
a method name, and then the arguments. Something like this:

.. Remote Object ...
  mx:method name=myInsertMethod
  mx:arguments
arg1idNumber/arg1
arg2idName/arg2
.
...
.
where idNumber and idName are variables declared in ActionScript. I
supplied all the parameters that my Y method is expecting but I still get
the same error message.

   Is this what you are talking about?, or should I use something like
RegisterClass?

Thanks,








 Daniel Harfleet To: flexcoders@yahoogroups.com   

 [EMAIL PROTECTED]   cc:   
   
  Subject:  [flexcoders] Re: I 
have an overloaded Java method, How can I call  
 Sent by:an specific method using Re

 flexcoders@yahoogroups.com 

 09/09/2005 04:51 AM

 Please respond to  

 flexcoders 









if you were to map the java params to action script params, what would
the params still be different and if so, you may be able to work out
what param types you need to supply

see the 'Converting data from Java to ActionScript' part of the live docs




--- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote:
 I have a overloaded method in Java which I am calling using
RemoteObject.
 One version of the methods requires X parameters while the other
requires
 Y. I am trying to call the one with Y but it Flex tries to call the one
 with X by the default. How can I tell Flex which to call?

 Thanks


---
 This e-mail message (including attachments, if any) is intended for
the use
 of the individual or entity to which it is addressed and may contain
 information that is privileged, proprietary , confidential and
exempt from
 disclosure.  If you are not the intended recipient, you are notified
that
 any dissemination, distribution or copying of this communication is
 strictly prohibited.  If you have received this communication in error,
 please notify the sender and erase this e-mail message immediately.

---





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











---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

* Your use of Yahoo! Groups is subject to:

[flexcoders] I have an overloaded Java method, How can I call an specific method using RemoteObject?

2005-09-08 Thread Oscar . Cortes
I have a overloaded method in Java which I am calling using RemoteObject.
One version of the methods requires X parameters while the other requires
Y. I am trying to call the one with Y but it Flex tries to call the one
with X by the default. How can I tell Flex which to call?

Thanks

---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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





Re: [flexcoders] How to use the label Function in a Tree that has different labels in the parents and the children - Solved

2005-09-02 Thread Oscar . Cortes
I changed the function to :


private function lblFunc(oItem:Object):String
   {


   if (oItem.hasChildNodes()){
  return oItem.getProperty(deptDesc);
}
else
  { return oItem.getProperty(empName);

   }
}








 [EMAIL PROTECTED]  To: flexcoders@yahoogroups.com  
 
 Sent by:  cc:  

 flexcoders@yahoogroups.comSubject:  [flexcoders] How to 
use the label Function in a Tree that has  
 09/02/2005 01:53 PM different labels in the 
parents and the children.  
 Please respond to  

 flexcoders 









I am trying to populate a Tree with a result that has hierarchical data. It
actually populates correctly but the parent and the children don't have the
same label description, and the children are displaying as
[object][object]. I am using a label function to get the parent label name,
and that's working fine. However, I don't know how to point to the right
label description in the children.

 This is the function I am using. As I said it only works for the parent.
 private function lblFunc(oItem:Object):String
   {

return oItem.getProperty(deptDesc);


   }

This is the hierarchical structure. It is mainly and Array of departments,
and each of them has an attribute called employeeColl which is an Array of
employees for the department. This shows one of the departments.

  employeesColl: [{empCode: emp1,
empName: Emp 1,
empDate: null},
{empCode: emp2,
empName: Emp 2,
empDate: null},
],
  deptCode: Commer,
  deptDesc: Some Department

 How can I change lblFunc  such that it can take empName for label
description in the children?

   So far I am getting something like this:

   -   Some Department
-- [object][object]
-- [object][object]
 what I want to get:

   -   Some Department
-- Emp 1
-- Emp 2
Thanks,

---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---





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











---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

RE: [flexcoders] Calling RemoteObject declared in a mxml component in an application-The property being referenced does not ...

2005-08-19 Thread Oscar . Cortes


It is working but now the Handler is not being called when getMyList() is
called in the initialize of a ComboBox. If I call getMyList() from a button
for example it works.
I didn't have this problem when including the RemoteObject in the same
mxml.


Any ideas?


  // Remote call to getMyData in the Java service. Handler below
   private function getMyList(): Void
   {
 var category:String=something;
  var pendingCall = services.myRemoteObject.getMyData(category);
pendingCall.resultHandler =
mx.utils.Delegate.create(this,resultHandler)
   }


function resultHandler(result): Void
   {
// This is not being called
 myList= result;
}



   

   
 Matt Chotin To: flexcoders@yahoogroups.com   
   
 [EMAIL PROTECTED]  cc:   
  
 Sent by:  Subject:  RE: [flexcoders] 
Calling RemoteObject declared in a   
 flexcoders@yahoogroups.com  mxml component in an 
application-The property being   
 08/18/2005 02:45 AM referenced does not ...
   
 Please respond to  
   
 flexcoders 
   

   

   




You can't use the classname for your id.  Change id=services to something
like id=myServices and then do myServices.myRemoteObject?


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, August 16, 2005 8:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Calling RemoteObject declared in a mxml component in
an application-The property being referenced does not ...



I want to have all my RemoteObject declarations in a mxml component that I
can later use in another application. I created a services.mxml file where
I have something like this:

?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:mx=http://www.macromedia.com/2003/mxml;
  !--
services.mxml=== --
  !--
 --
  !-- Remote Java Objects
--
  !--
 --
mx:RemoteObject id=myRemoteObject
source=com.remote.object
result=event.call.resultHandler(event.result)
mx:method name=getMyData/mx:method
/mx:RemoteObject

  !--
 --
  !-- Web Services
--
  !--
 --

  !--
 --
  !-- HTTP Services
--
  !--
 --

/mx:Canvas



Then I call it like this:


?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
xmlns:i2=*
mx:Script
![CDATA[

 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hcveis0/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124490661/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

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

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

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

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




RE: [flexcoders] How to handle a returned Java Collection in Flex - RemoteObject call

2005-08-19 Thread Oscar . Cortes


It is actually private. The cause might be different.  We have a Flex /CF7
installation and there is a file in ColdFusion 7 called gateway-config.xml,
and with an entry called lowercase-keys.  This seems to explain what we
are seeing.
  I just don't remenber where I read that we should expect an attribute
name equal to the getter in Java.

Here an extract of gateway-config.xml:

  !-- Determines how complex objects/generic class data types are to
  be
  handled by the gateway. The two options are Classic or Flex.

  Classic mode performs shallow serialization on all non-static
  fields
  for classes implemeting java.io.Serializable.

  Flex mode uses improvements made for Flex's RemoteObject feature
  and performs deep serialization on fields with bean accessors for
  any
   class. --
  serializationClassic/serialization

  !-- ActionScript 1.0 and ColdFusion use case insensitive data
  structures
  to store associative arrays, objects and structs - the Java
  representation
  of these datatypes requires a case-insensitive Map, which the
  gateway
  achieves by looking up all keys in lowercase.  If case
  insensitivity is desired
  then this setting should be set to true.  ActionScript 2.0 is now
  case sensitive,
  but setting this to true will allow ColdFusion to look up keys
  case insensitively, and
  will not actually change the case of the keys.  For AS 2.0 to
  java this should be false,
  since both are case sensitive. --
  lowercase-keystrue/lowercase-keys

 By the way, we set it to true to get the same case that in Java, which is
actually the contrary of what it says in the file




   

   
 Matt Chotin To: flexcoders@yahoogroups.com   
   
 [EMAIL PROTECTED]  cc:   
  
 Sent by:  Subject:  RE: [flexcoders] How 
to handle a returned Java
 flexcoders@yahoogroups.com  Collection in Flex - 
RemoteObject call
 08/18/2005 02:19 AM
   
 Please respond to  
   
 flexcoders 
   

   

   




Sorry, I don't know what might be going on here.  Sounds like a
bean-mapping issue though.  Maybe your sDesc was public?


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Monday, August 08, 2005 2:24 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to handle a returned Java Collection in Flex
- RemoteObject call



Hi Matt,

I used XMLObjectOutput and found out that the name returned in the result
was 'sdesc'. I think I was confused by the fact that I was expecting 'Desc'
or 'desc', which is the getter name for this attribute  --getDesc- in the
Java VO. However, it is returning the name of the attribute itself but all
lower case. The original name in Java is 'sDesc', which I originally tried
as well.

Any comments on this?





 Matt Chotin To:
flexcoders@yahoogroups.com
 [EMAIL PROTECTED]  cc:

 Sent by:  Subject:  RE: [flexcoders]
How to handle a returned Java
 flexcoders@yahoogroups.com  Collection in Flex -
RemoteObject call
 08/05/2005 07:45 PM

 Please respond to

 flexcoders







Yep, use fdb or FlexBuilder's debugger or the XMLObjectOutput in the extras
folder or one of the dump utilities that people have been mentioning over
the last few days.

Matt


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Friday, August 05, 2005 10:36 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to handle a returned Java Collection in Flex
- RemoteObject call



Thanks Matt, that makes sense. However, it still doesn't work. It might be
coming with a different name. Is there any way to display the object and
the name of  its attributes?

Thanks,
-Oscar.




 Matt Chotin To:
flexcoders@yahoogroups.com
 [EMAIL PROTECTED]  cc:

   

RE: [flexcoders] Cannot assign selected value from a radiobutton that was created dynamically.

2005-08-18 Thread Oscar . Cortes


Thanks, this worked. I will read more about EventListener and Delegate



   

   
 Matt Chotin To: flexcoders@yahoogroups.com   
   
 [EMAIL PROTECTED]  cc:   
  
 Sent by:  Subject:  RE: [flexcoders] 
Cannot assign selected value from a  
 flexcoders@yahoogroups.com  radiobutton that was created 
dynamically. 
 08/18/2005 02:33 AM
   
 Please respond to  
   
 flexcoders 
   

   

   




addEventListener(click, mx.utils.Delegate.create(this, clickRadioButton);


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, August 16, 2005 12:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cannot assign selected value from a radiobutton that
was created dynamically.



I am creating radioButtons dynamically using an array. When I try to
assign the selected value into a Text or TextArea it doesn't work. It seems
that I am using addEventListener correctly since I am able to see the
event.target.data in an Alert.

  This application shows what I mean:

1. The radiobuttons are created out of an array.
2. When you click on any of them you get an Alert showing the data you
have clicked. However, it doesn't change the text of the TextArea.
Eventually I want to assign this value, to some place else.
3. If you execute the same code  txtReceipt.text=Button - by clicking on
the Button it does change the text.

the code below is runnable and shows the problem ...

Thanks 

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
mx:Script
![CDATA[

 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12h750kns/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124384081/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!/a./font
~- 

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

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

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

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




Re: [flexcoders] horizontalList

2005-08-17 Thread Oscar . Cortes


I am not sure but what about selectedChild



   

   
 Philippe Maegerman  To: flexcoders@yahoogroups.com   
   
 [EMAIL PROTECTED] cc:
 
 Sent by:  Subject:  [flexcoders] 
horizontalList   
 flexcoders@yahoogroups.com 
   
 08/17/2005 10:57 AM
   
 Please respond to  
   
 flexcoders 
   

   

   




I have an horizontalList that has a cellRenderer made of a VBox containing
other components.

Is it possible to 'talk' to the hList selected component?

I tried with hList.getChildAt(index) but it doesn't return anything.
I have tried many other things but I am totaly stuck :((

Any idea?

Philippe Maegerman



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



SPONSORED LINKS
   
 Computer software Macromedia flex  Development
 testing   
   
 Software developer
   


YAHOO! GROUPS LINKS

   Visit your group flexcoders on the web.

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

   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




--
**STATEMENT OF CONFIDENTIALITY**


This e-mail and any attached files are confidential and intended solely for
the use of the individual to whom it is addressed. If you have received
this email in error please send it back to the person that sent it to you.
Any views or opinions presented are solely those of author and do not
necessarily represent those the Emakina Company. Unauthorized publication,
use, dissemination, forwarding, printing or copying of this email and its
associated attachments is strictly prohibited.


We also inform you that we have checked that this message does not contain
any virus but we decline any responsability in case of any damage caused by
an a non detected virus.
--







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---






 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hvlhls9/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124300806/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/a./font
~- 

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

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

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

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




[flexcoders] Calling RemoteObject declared in a mxml component in an application-The property being referenced does not ...

2005-08-16 Thread Oscar . Cortes


I want to have all my RemoteObject declarations in a mxml component that I
can later use in another application. I created a services.mxml file where
I have something like this:

?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:mx=http://www.macromedia.com/2003/mxml;
  !--
services.mxml=== --
  !--
 --
  !-- Remote Java Objects
--
  !--
 --
mx:RemoteObject id=myRemoteObject
source=com.remote.object
result=event.call.resultHandler(event.result)
mx:method name=getMyData/mx:method
/mx:RemoteObject

  !--
 --
  !-- Web Services
--
  !--
 --

  !--
 --
  !-- HTTP Services
--
  !--
 --

/mx:Canvas



Then I call it like this:


?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
xmlns:i2=*
mx:Script
![CDATA[

public var myList:Array= new Array();

  // Remote call to getMyData in the Java service. Handler below
   private function getMyList(): Void
   {
 var category:String=something;
  var pendingCall = services.myRemoteObject.getMyData(category);
pendingCall.resultHandler =
mx.utils.Delegate.create(this,resultHandler)
   }
function resultHandler(result): Void
   {
 myList= result;
}


]]
/mx:Script

  !--
 --
  !-- View --
  !--
 --
  mx:ComboBox  dataProvider={myList}  id=cb_1
initialize=getMyList()  width=200  /

  !--
 --
  !-- Remote Java Objects
--
  !--
 --
  i2:services id=services /



  /mx:Application


  However I get this error message:

The property being referenced does not have the static
attribute.

  I have tried to call it like this,

  var pendingCall =
mx.core.Application.application.services.myRemoteObject.getMyData(category);

  which doesn't give any error but doesn't return any data.

Any ideas?

  Thanks


---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---






 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12he8hip7/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124213196/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/a./font
~- 

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

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

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

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





[flexcoders] Cannot assign selected value from a radiobutton that was created dynamically.

2005-08-16 Thread Oscar . Cortes


 I am creating radioButtons dynamically using an array. When I try to
assign the selected value into a Text or TextArea it doesn't work. It seems
that I am using addEventListener correctly since I am able to see the
event.target.data in an Alert.

  This application shows what I mean:

 1. The radiobuttons are created out of an array.
 2. When you click on any of them you get an Alert showing the data you
have clicked. However, it doesn't change the text of the TextArea.
Eventually I want to assign this value, to some place else.
 3. If you execute the same code  txtReceipt.text=Button - by clicking on
the Button it does change the text.

the code below is runnable and shows the problem ...

Thanks 

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
mx:Script
![CDATA[

public var arrayList:Array= new Array();


   private function getmyList(): Void
   {
arrayList[0]=item1;
arrayList[1]=item2;
arrayList[2]=item3;
 addElement();
}

// Add radiobuttons dynamically
 public function addElement() {
var totalOptions:Number = arrayList.length;
var isSelected:Boolean;
//mx.controls.Alert.show(String(totalOptions),Total Options);
   for(var i:Number=0;itotalOptions;i++) {
 if (i==0)  // Selects the first Radio Button
isSelected=true
   else
 isSelected=false
receiptHBox.createChild(mx.controls.RadioButton, undefined,
{label:item+i , data:item+i ,groupName:group1 ,selected:isSelected}
).addEventListener(click,clickRadioButton);

}
}
  public function clickRadioButton(event)
  {
txtReceipt.text=event.target.data; // This doesn't work
mx.controls.Alert.show(event.target.data,Test); // But the
the data is there .

  }
  public function changeText()
  {
txtReceipt.text=Button;
  }


]]
/mx:Script



   mx:TextArea id=txtReceipt  /
  mx:HBox id=receiptHBox  initialize=getmyList()
!--  Radio buttons are created dynamically --
  /mx:HBox

   mx:Button label=Button click=changeText()/


  /mx:Application



---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---






 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12honjvkp/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124227515/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/a./font
~- 

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

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

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

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





RE: [flexcoders] How to handle a returned Java Collection in Flex - RemoteObject call

2005-08-08 Thread Oscar . Cortes


Hi Matt,

 I used XMLObjectOutput and found out that the name returned in the result
was 'sdesc'. I think I was confused by the fact that I was expecting 'Desc'
or 'desc', which is the getter name for this attribute  --getDesc- in the
Java VO. However, it is returning the name of the attribute itself but all
lower case. The original name in Java is 'sDesc', which I originally tried
as well.

Any comments on this?




   

   
 Matt Chotin To: flexcoders@yahoogroups.com   
   
 [EMAIL PROTECTED]  cc:   
  
 Sent by:  Subject:  RE: [flexcoders] How 
to handle a returned Java
 flexcoders@yahoogroups.com  Collection in Flex - 
RemoteObject call
 08/05/2005 07:45 PM
   
 Please respond to  
   
 flexcoders 
   

   

   




Yep, use fdb or FlexBuilder's debugger or the XMLObjectOutput in the extras
folder or one of the dump utilities that people have been mentioning over
the last few days.

Matt


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Friday, August 05, 2005 10:36 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to handle a returned Java Collection in Flex
- RemoteObject call



Thanks Matt, that makes sense. However, it still doesn't work. It might be
coming with a different name. Is there any way to display the object and
the name of  its attributes?

Thanks,
-Oscar.




 Matt Chotin To:
flexcoders@yahoogroups.com
 [EMAIL PROTECTED]  cc:

 Sent by:  Subject:  RE: [flexcoders]
How to handle a returned Java
 flexcoders@yahoogroups.com  Collection in Flex -
RemoteObject call
 08/05/2005 12:41 AM

 Please respond to

 flexcoders







It's not getProperty(desc) for normal arrays, only when being used for a
TreeDatatProvider.  Try oItem.desc and see if that works.

Matt


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Thursday, August 04, 2005 1:33 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to handle a returned Java Collection in Flex
- RemoteObject call



Sorry for the late response, I actually got it closer to what I need. I can
see the collection that the Remote Object is returning in a ComboBox.
However, I can see all attributes listed in the ComboBox separated by
commas. I only want to show one of them, the Description. So I figured I
will use labelField or labelFuntion, but didn't work. This is what I have:

Any ideas?

Server side:

public class LookupManager {
...
public Collection getTheList() {
// Set up default response
Collection response = null;
 response = theList //  gets the list from a Service
 return response;
}
...
}

client side:

mx:Script
![CDATA[


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


YAHOO! GROUPS LINKS



   Visit your group flexcoders on the web.

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

   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.





---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---






 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 

RE: [flexcoders] How to handle a returned Java Collection in Flex - RemoteObject call

2005-08-04 Thread Oscar . Cortes


Sorry for the late response, I actually got it closer to what I need. I can
see the collection that the Remote Object is returning in a ComboBox.
However, I can see all attributes listed in the ComboBox separated by
commas. I only want to show one of them, the Description. So I figured I
will use labelField or labelFuntion, but didn't work. This is what I have:

Any ideas?

Server side:

 public class LookupManager {
...
public Collection getTheList() {
// Set up default response
Collection response = null;
 response = theList //  gets the list from a Service
 return response;
}
...
}

client side:

 mx:Script
![CDATA[

  public var theList:Array= new Array();

   function resultLookupHandler(result)
   {
theList =  result;
}

   private function lblPriorityCode(oItem:Object):String
   {
   return oItem.getProperty(desc) // The original get in
s called getDesc, I tried both desc' and Desc with no sucess.
   }

]]
/mx:Script




mx:RemoteObject id=lookup
source=com.test.LookupManager
result=resultLookupHandler(event.result) 
/mx:RemoteObject

mx:Button label=Lookup click=lookup.getTheList()/
  mx:ComboBox dataProvider={theList} labelFunction=lblListCode
width=30% height=20%/mx:ComboBox







   

   
 Shahnavaz AlwareTo: flexcoders@yahoogroups.com   
   
 [EMAIL PROTECTED] cc:
 
 Sent by:  Subject:  RE: [flexcoders] How 
to handle a returned Java
 flexcoders@yahoogroups.com  Collection in Flex - 
RemoteObject call
 08/03/2005 02:23 PM
   
 Please respond to  
   
 flexcoders 
   

   

   




Can you post your code snippet? What you described in your email is right
way and should work if your code is doing right thing.

Thanks


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, August 03, 2005 9:32 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to handle a returned Java Collection in Flex -
RemoteObject call



I have a Java function that returns a Collection of VOs. I declared a
RemoteObject in Flex, and tried to assign the event.result to an Array
variable, but it actually didn't work. I want to use this data as the
DataProvider of ComboBoxes, or List, etc.

How can I read this data in Flex?

Thanks,
-Oscar.

---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---







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


YAHOO! GROUPS LINKS



   Visit your group flexcoders on the web.

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

   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.





---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.

RE  : [flexcoders] startDrag() not working

2005-08-03 Thread Oscar . Cortes


Hi Philippe,

  You can probably try using a HorizontalList with a cellrenderer. You can
then use implement Action Scripts functions for the drag and drop events.
The Flex store that comes with the examples shows how to do that.





   

   
 Philippe Maegerman  To: flexcoders@yahoogroups.com   
   
 [EMAIL PROTECTED] cc:
 
 Sent by:  Subject:  RE : [flexcoders] 
startDrag() not working 
 flexcoders@yahoogroups.com 
   
 08/03/2005 01:17 PM
   
 Please respond to  
   
 flexcoders 
   

   

   




Sun Life Financial: An attachment named WINMAIL.DAT was removed.


It doesn' t work in a Canvas either, that is what I was trying to do in
first place, been looking in the archives too.
I won't ask why, I supposed that as playing in the flash player sandbox,
apply a startDrag() on a MovieClip wouldn't be voodoo ;) but I was wrong.
I will go the Manish way, clean and simple, thanks a lot.

Cheers,

Philippe


De: flexcoders@yahoogroups.com de la part de Abdul Qabiz
Date: mer. 3/08/2005 17:23
À: flexcoders@yahoogroups.com
Objet : RE: [flexcoders] startDrag() not working


Hi,

Put Image in Canvas container, your code should work.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; width=100%
height=100%
mx:Canvas width=100% height=100%
mx:Image contentPath=ph_1.jpg id=ph_1_mc width=100 height=100
mouseDown=event.target.startDrag();
mouseUp=event.target.stopDrag()/\

 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hh3ed0m/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123099048/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

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

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

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

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




Re: [flexcoders] Array of VOs class loading issue

2005-08-03 Thread Oscar . Cortes


I think your are missing the parenthesis...

var test:myV0 = new myV0();



   

   
 JesterXLTo: flexcoders@yahoogroups.com   
   
 [EMAIL PROTECTED]cc: 

 Sent by:  Subject:  Re: [flexcoders] Array 
of VOs class loading issue 
 flexcoders@yahoogroups.com 
   
 08/03/2005 02:20 PM
   
 Please respond to  
   
 flexcoders 
   

   

   




myV0 != myVO

One is a zero, the other is the letter o, right?

- Original Message -
From: Rob Rusher [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, August 03, 2005 2:15 PM
Subject: [flexcoders] Array of VOs class loading issue


I'm getting an error when working with a VO that is an array of VOs.
The error is The class 'myV0' could not be loaded. The class is
clearly imported. What am I missing?

 Code for the myListVO.as 
import org.nevis.cairngorm.vo.ValueObject;
import com.company.app.vo.myVO;

class com.company.app.vo.myListVO implements ValueObject
{
public static function fromXML( xml:Object ) : myListVO
{
var newObj = new myListVO;
var displayOrder:Number;
/*error on this line*/ var test:myV0 = new myV0;
...
return newObj;
}

public var qArray:Array = new Array();
}

--
Regards,
Rob Rusher



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









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











---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---






 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12h1akkes/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123100910/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

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

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

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

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




[flexcoders] How to handle a returned Java Collection in Flex - RemoteObject call

2005-08-03 Thread Oscar . Cortes


I have a Java function that returns a Collection of VOs. I declared a
RemoteObject in Flex, and tried to assign the event.result to an Array
variable, but it actually didn't work. I want to use this data as the
DataProvider of ComboBoxes, or List, etc.

 How can I read this data in Flex?

Thanks,
-Oscar.

---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---






 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12h887cvk/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123094162/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

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

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

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

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





[flexcoders] XML as dataprovider : Changes to unknown property, childNodes, will not be detected.

2005-08-02 Thread Oscar . Cortes


I am using a Remote object that returns a string in a XML format, and
converting  this string to XML by using
XMLStr = new XML(Str)

I then use XMLStr as dataProvider in a Tree.
mx:Tree labelFunction=lblFuncCode
  dataProvider={XMLStr.firstChild.childNodes} 
/mx:Tree.

The results are displaying OK, but I get a warning message:

  Changes to unknown property, childNodes, will not be detected

I think I understand that this means that if I change XMLStr that change
will not be reflected on my Tree. I read this data at the beginning and I
don't expect the data to change. This is mainly a look-up.

How can I avoid this warning?




---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---






 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hljdccj/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123032241/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

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

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

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

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





[flexcoders] Binding remoteobject.method.result to a ComboBox or Tree

2005-07-13 Thread Oscar . Cortes


I call a remote object successfully. I can check that because I can dump
the result (XML) in a TextArea control:

mx:TextArea text={functions.getTypesListAll.result}/

However, I want to show the results in a ComboBox or a tree:

This is an example of functions.getTypesListAll.result
-
 ?xml version=1.0 encoding=UTF-8?
FunctionTypes
  FunctionType code=FUNC1 name=Function 1
DocType code=DOC1 name=DocDesc1/
DocType code=DOC2 name=DocDesc2/
  /FunctionType
/FunctionTypes

-

ComboBox:  Bind FunctionType code and name.
Tree: Parent FuntionType, child DocType.

 How can I do that? How can I use functions.getTypesListAll.result and use
specific nodes of the XML?

Thanks,


---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---






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

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

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

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




RE: [flexcoders] Binding remoteobject.method.result to a ComboBox or Tree

2005-07-13 Thread Oscar . Cortes


Thanks Tracy, it seems to be the right solution but I can not get it to
work.

 I created a test.xml with the following:

?xml version=1.0 encoding=UTF-8?
FunctionTypes
  FunctionType code=FUNC1 name=Function 1
DocType code=DOC1 name=DocDesc1/
DocType code=DOC2 name=DocDesc2/
  /FunctionType
FunctionType code=FUNC2 name=Function 2
DocType code=DOC11 name=DocDesc11/
DocType code=DOC22 name=DocDesc22/
  /FunctionType
/FunctionTypes

 and then an application to test it:


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;

  mx:XML id=functionModel source=test.xml/

  mx:ComboBox labelField = codedataProvider={functionModel}
width=150 /
  mx:ComboBox labelField = FunctionType
dataProvider={functionModel}
width=150 /
  mx:ComboBox labelField = FunctionTypes
dataProvider={functionModel}
width=150 /

/mx:Application

All of the Comboboxes are empty.  I actually need to show the list at
the FunctionType level.

  Function 1
  Function 2

 Any advice?

Thanks
Oscar.




   

   
 Tracy SprattTo: flexcoders@yahoogroups.com   
   
 [EMAIL PROTECTED]   cc:  
   
 Sent by:  Subject:  RE: [flexcoders] 
Binding remoteobject.method.result   
 flexcoders@yahoogroups.com  to a ComboBox or Tree  
   
 07/13/2005 07:20 PM
   
 Please respond to  
   
 flexcoders 
   

   

   




Use either labelField of labelFunction.  It looks like labelField will
work in your case.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, July 13, 2005 5:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Binding remoteobject.method.result to a ComboBox
or Tree



I call a remote object successfully. I can check that because I can dump
the result (XML) in a TextArea control:

mx:TextArea text={functions.getTypesListAll.result}/

However, I want to show the results in a ComboBox or a tree:

This is an example of functions.getTypesListAll.result

-
 ?xml version=1.0 encoding=UTF-8?
FunctionTypes
  FunctionType code=FUNC1 name=Function 1
DocType code=DOC1 name=DocDesc1/
DocType code=DOC2 name=DocDesc2/
  /FunctionType
/FunctionTypes


-

ComboBox:  Bind FunctionType code and name.
Tree: Parent FuntionType, child DocType.

 How can I do that? How can I use functions.getTypesListAll.result and
use
specific nodes of the XML?

Thanks,



---
This e-mail message (including attachments, if any) is intended for the
use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt
from
disclosure.  If you are not the intended recipient, you are notified
that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.

---






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










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












---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from