[flexcoders] How to diplay a ticker with Labels

2007-09-01 Thread jitendra jain

Hi,
   
Can anyone tell me how to dispaly a ticker with labels and image
   
  Thanks,
   
  with regards,
  JJain


   
-
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos  more. 

[flexcoders] Ticker tape

2007-09-05 Thread jitendra jain
Hi friends,
   
 I want to build a stock market ticker with components like labels, images 
and also wants them to scroll from right to left . Help me out. 
   
  Thanks in advance for your kind support,
   
  with regards,
  JJain



   
-
Looking for a deal? Find great prices on flights and hotels with Yahoo! 
FareChase.

RE: [flexcoders] using Modules Problem

2007-09-05 Thread jitendra jain


Hi Coders,
   
How to code a ticker in stock market with flex components like 
labels,images as well as moving these components. Please help me. I posted many 
times this question but no replies.
   
  Thanks,
   
  with regards,
  JJain

   
-
Got a little couch potato? 
Check out fun summer activities for kids.

RE: [flexcoders] How to do a Scrolling Display?

2007-09-07 Thread jitendra jain
Gordan,
   
 The question is to display a stock ticker. Sorry to say that first of all 
see what a stock ticker is all about. It includes labels, images etc
   
  Thanks,
   
  jjain

Gordon Smith [EMAIL PROTECTED] wrote:
Funny you should ask, since this was answered 4 hours earlier. 
Google flex stock ticker for some sample code. This functionality isn't 
available out of the box.
   
  - Gordon


-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amit 
Gupta
Sent: Thursday, September 06, 2007 11:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to do a Scrolling Display?


  
Hello,

I'm trying to implement a stock market ticker tape like scrolling 
display for my application. Is there something available out of the 
box in Flex implement this type of feature? I didn't find any. 

I'm also playing with DisplayObject class and mx.effects package. 

I was wondering if anybody has done a similar thing and if I can get 
some design ideas.

Thanks,
Amit Gupta



  

 

   
-
Choose the right car based on your needs.  Check out Yahoo! Autos new Car 
Finder tool.

[flexcoders] Creating a flash container and using in ActionScript

2007-09-10 Thread jitendra jain
Hi coders,
   
 I have created a flash container using eclipse IDE for flex . There i have 
created a class using DisplayObjectConatiner and iam using this file in my 
Action Script. But the application does'nt display anything. But if iam using 
Panel it is displaying. Should I require any other files?
   
  Thanks,
   
  with regards,
  JJain

   
-
Park yourself in front of a world of choices in alternative vehicles.
Visit the Yahoo! Auto Green Center.

[flexcoders] Resizing the component

2007-09-14 Thread jitendra jain
Hi coders,
   
Iam designing a scrolling dispaly using a label. I need to move this label 
only i get data from backend .Iam appending data to this label and moving this 
label by increasing its xpos i.e theLabel.move(xpos,0) everytime by adding some 
distance to the x value. Now after getting 100% width its not crossing its 
boundary limit. Moreover the components which are on the application changes 
it's layout.
   
Help me
   
  Thanks,
   
  with regards,
  JJain

   
-
Luggage? GPS? Comic books? 
Check out fitting  gifts for grads at Yahoo! Search.

[flexcoders] ItemRenderer

2007-11-16 Thread jitendra jain
Hi guys,

Iam using an itemRenderer in DataGridColumn. For some reasons the data is not 
sorted. Please help.

Thanks,

with regards,
Jitendra

   
-
Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.

Re: [flexcoders] Re: ItemRenderer

2007-11-16 Thread jitendra jain
Hi dear,
  
  It worked for me.

  Thanks a lot,

Jitendra

bithroop [EMAIL PROTECTED] wrote:   If you set 
the dataField=name of sortable property in your columns
 like this:
 
   mx:columns
  mx:DataGridColumn 
   headerText=Cards 
   itemRenderer=com.card.CardItemRenderer
   dataField=name/
 /mx:columns
 
 It will know what to sort by.
 
 --- In flexcoders@yahoogroups.com, jitendra jain
 [EMAIL PROTECTED] wrote:
 
  Hi guys,
  
  Iam using an itemRenderer in DataGridColumn. For some reasons the
 data is not sorted. Please help.
  
  Thanks,
  
  with regards,
  Jitendra
  
 
  -
  Be a better pen pal. Text or chat with friends inside Yahoo! Mail.
 See how.
 
 
 
 
   

   
-
Never miss a thing.   Make Yahoo your homepage.

[flexcoders] DataGridColumn width

2007-11-19 Thread jitendra jain
Hi guys,
   
 Iam trying to adjust the width of datagridcolumn. First of all i get all 
the columns using the property of DataGrid i.e dg.columns which return an Array 
then i want to set the width of the column but it throws an error . I even cast 
the Array element into DataGridColumn aobject but that also doesn't worked me.
   
   Please help.
   
  Thanks,
  Jitendra

   
-
Never miss a thing.   Make Yahoo your homepage.

[flexcoders] DataGrid Performance issue

2007-11-21 Thread jitendra jain
Hi guys,

I have 200 rows  and 32 columns on datagrid. I have changed my dataProvider on 
the basis of IndexChangedEvent . I get this data from shared object(Local). Is 
this a performance issue with dataGrid or SharedObject?

 I even tried to put this data into memory. Even thought it is taking the same 
time.

Let me know ur views.

Thanks,
JJain



   
-
Never miss a thing.   Make Yahoo your homepage.

[flexcoders] Number Formatter

2007-11-22 Thread jitendra jain
Hi guys

  I have to show percentage field in my datagrid. I used numberFormatter.
But it gives me output i,e .99 instead of 0.99
please help

Thanks,
JJain

   
-
Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.

Re: [flexcoders] Re: Cannot change button style

2007-11-27 Thread jitendra jain
Hi,

  Take a new button instance,let say Button bt = new Button();. then set the 
styles for this button and assign this button to one you have. Might this will 
work

  Thanks,

with regards,
JJain

Amy [EMAIL PROTECTED] wrote:   --- In 
flexcoders@yahoogroups.com, shaun [EMAIL PROTECTED] wrote:
 
  Amy wrote:
   I have a TileList that has XML as its dataProvider and is using 
 my 
   custom itemrenderer to display the data.  The itemrenderer has 5 
   buttons, labeled A, B, C, D, and E.  These buttons are intended 
 to 
   look like the old ScanTron sheets, or like an SAT or ACT answer 
 sheet.
   
   So I need to be able to change one of the buttons at runtime to 
   appear black if the student has selected the answer before, or 
 set it 
   black when the student clicks it.  I have a style set up, 
   selectedBtn, which simply sets fillColors to #00, #00.  
 If I 
   set the styleName in a button's XML tag to selectedBtn, the 
 button 
   will appear dark (though not black--that is a problem for another 
   day).
   
   However, if I use a.stylename = selectedBtn, I get
   
   TypeError: Error #1009: Cannot access a property or method of a 
 null 
   object reference.
at 
   Does anyone have any idea what I could be doing wrong?
   
  
  'A' is not the same as 'a'. Maybe thats the problem.
  It might be better to give your components more meaningfull ids 
 aswell.
  answerButtonA for example.
  As far as the color goes you might need to set the backgroundAlpha 
 of 
  the button or something like that, to make it a solid color.
 
 A is the label, whereas a is the ID.  The code hinting works, so I 
 have no reason to suspect I've gotten that bit wrong.
 
 
 
   

   
-
Get easy, one-click access to your favorites.  Make Yahoo! your homepage.

Re: [flexcoders] Re: packages adding child to stage

2007-11-27 Thread jitendra jain
Hi,

   U can't add a text directly to the application . U must have a container. 
Add that. In that container add this textInput or text box whatever.

  Thanks,

withregards,
JJain

Rafael Faria [EMAIL PROTECTED] wrote:   I created 
something very simple like that... but still doesnt work =/
 
 can someone help me?!
 
 package
 {
  import mx.controls.TextInput;
  import mx.core.Application;
 
  public class testing extends Application
  {
   public function testing()
   {
 
var i:TextInput = new TextInput();
addChild(i);
   }
  }
  
 } 
 
 --- In flexcoders@yahoogroups.com, Rafael Faria
 [EMAIL PROTECTED] wrote:
 
  I'm coding a package. Lets say i want to add something to the stage,
  how would i do that?
  
  this.addChild inside the package doesnt work.
  
  any ideas?
  
  raf
 
 
 
 
   

   
-
Get easy, one-click access to your favorites.  Make Yahoo! your homepage.

Re: [flexcoders] getElement from scope

2007-11-27 Thread jitendra jain
Look man,

  Before getting TextInput u have to know on which Canvas it resides. For 
example if u ask to go Chicago and meet John . Your question will be where John 
resides. Similarly u have a id to canvas and access the same. U can use same 
loop for id generating.

canvas.id = i;

thanks,
with regars,
JJain

Rafael Faria [EMAIL PROTECTED] wrote:   Friends,
 
 I'm aware that if all the elements are in the stage to get its object
 just use its id.
 
 Like if i create a mx:TextInput id=foo / to work with it on the
 actionscript just use foo.text = 'bla' for example.
 
 The thing is i'm creating a lot of forms dynamically and i'm
 struggling myself with something that it is keeping me awake for
 almost a week.
 
 i wrote the following code so you guys can help me. 
 
 So, looking at this code and suppose that you CAN NOT change not one
 line of this code, how do i work with foo in the myTimer function? i
 can't use getChildren because there is no way to know the name of the
 last canvas. if i trace foo on the runtime of the script i would get
 something like
 
test0.myCanvas.Canvas7.Canvas8.Canvas9.Canvas10.Canvas11.Canvas12.Canvas13.Canvas14.Canvas15.Canvas16.testing
 and that's exactly what i want, BUT i need to get it inside the
 myTimer function, what means later after it creates the textinput. In
 old times on flash i would just use _root['foo'] and it would work, no
 headaches =/
 
 So how could i solve that? why flex don't just let me use foo.text =
 'bla'  like it would be in the stage?
 
 please, someone enlight me because i'm really getting a headache with
 this #*#*#@ =/ 
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=init()
 mx:Script
  ![CDATA[
   import mx.controls.TextInput;
  function init() 
  {
   var last:Canvas = myCanvas;
   for (var i:Number =0;i10;i++)
   {
var cc:Canvas = new Canvas();
last.addChild(cc);
last = cc;
   }
   
   var foo:TextInput = new TextInput();
   foo.id = test;
   foo.name = testing;
   last.addChild(foo);
   
   //trace(foo); // trace something like
 
test0.myCanvas.Canvas7.Canvas8.Canvas9.Canvas10.Canvas11.Canvas12.Canvas13.Canvas14.Canvas15.Canvas16.testing
   
   
   var dialogTimer:Timer = new Timer(2000,1);
   dialogTimer.addEventListener(timer, myTimer); 
   dialogTimer.start();
  }
   
   
  function myTimer(event:TimerEvent):void 
  {
   // i need to work with the object foo
 // do for example something like foo.text = 'test'   
  }
  ]]
 /mx:Script
 mx:Canvas id=myCanvas /
 
 /mx:Application
 
 
 
   

   
-
Get easy, one-click access to your favorites.  Make Yahoo! your homepage.

[flexcoders] Error #1119 Access of undefined property visible through static reference Panel

2007-12-23 Thread jitendra jain
Hi guys,

   Iam getting this error. Manytimes it compiles fine and also runs. But 
sometimes it throws this error. Why this is happening?. If it is compile time 
error then there is no chance to run the application in any circumstances.

  Please reply.


  Thanks,
JJain

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

[flexcoders] DataGrid corruption issue

2008-01-10 Thread jitendra jain
Hi friends,

   I have a issue with datagrid. I have mutiple of itemRenderers for this 
datagrid. Often this datagrid corrupts(while scrolling horizontally) . Why this 
is happening?

  Thanks,

   With regards,
JJain

  

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

RE: [flexcoders] DataGrid corruption issue

2008-01-10 Thread jitendra jain
Thanks for your kind support

This is a renderer code . Does this problem is due to vertialScrollPolicy and 
horizontalScrollPolicy is off? 


?xml version=1.0 encoding=utf-8?
mx:HBox width=100% height=100% xmlns:mx=http://www.adobe.com/2006/mxml; 
backgroundAlpha=.6
verticalScrollPolicy=off horizontalScrollPolicy=off 
horizontalAlign=right
mx:Script
![CDATA[
   import mx.events.FlexEvent;
import mx.controls.Alert;
import com.model.ModelLocator;
override public function set data(value:Object):void {
if(value != null){

super.data = value;
 if(value.mapValue == 0){
map.text=;
}else{
   map.text=nf.format(value.mapValue);
}
}
//dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
}

]]
/mx:Script
mx:NumberFormatter id=nf precision=2/
mx:Text id=map textAlign=right fontWeight=bold/
/mx:HBox

Alex Harui [EMAIL PROTECTED] wrote: 
  If your renderers don’t handle recycling properly they may not display 
properly.  Post some of your renderer code if you still have issues.
   
  
-
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
jitendra jain
 Sent: Thursday, January 10, 2008 3:56 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] DataGrid corruption issue
  
   
Hi friends,
 
I have a issue with datagrid. I have mutiple of itemRenderers for this 
datagrid. Often this datagrid corrupts(while scrolling horizontally) . Why this 
is happening?
 
   Thanks,
 
With regards,
 JJain
 
   


-
  
  Looking for last minute shopping deals? Find them fast with Yahoo! Search.
  
  
  


 
   

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

RE: [flexcoders] DataGrid corruption issue

2008-01-11 Thread jitendra jain
Yes sir,

   I have been using in all columns(aprox. 32 columns). When iam scrolling 
down, then the data grid gets corrupted.

   It overwrites the columns and some columns are empty.


Alex Harui [EMAIL PROTECTED] wrote: 
  Is this renderer used in all columns?  What kind of corruption are you seeing?
   
  
-
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
jitendra jain
 Sent: Thursday, January 10, 2008 9:59 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] DataGrid corruption issue
  
   
Thanks for your kind support
 
 This is a renderer code . Does this problem is due to vertialScrollPolicy and 
horizontalScrollPolicy is off? 
 
 
 ?xml version=1.0 encoding=utf-8?
 mx:HBox width=100% height=100% xmlns:mx=http://www.adobe.com/2006/mxml; 
backgroundAlpha=.6
 verticalScrollPolicy=off horizontalScrollPolicy=off 
horizontalAlign=right
 mx:Script
 ![CDATA[
import mx.events.FlexEvent;
 import mx.controls.Alert;
 import com.model.ModelLocator;
 override public function set data(value:Object):void {
 if(value != null){
! ; 
 super.data = value;
  if(value.mapValue == 0){
 map.text=;
 }else{
map.text=nf.format(value.mapValue);
 }
 }
 //dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
 }
 
 ]]
 /mx:Script
   ! ;  mx:NumberFormatter id=nf precision=2/
 mx:Text id=map textAlign=right fontWeight=bold/
 /mx:HBox
 
 Alex Harui [EMAIL PROTECTED] wrote:
  If your renderers don’t handle recycling properly they may not 
display properly.  Post some of your renderer code if you still have issues.
  
 
  

-
  
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
jitendra jain
 Sent: Thursday, January 10, 2008 3:56 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] DataGrid corruption issue
  
  
 
  
  Hi friends,
 
I have a issue with datagrid. I have mutiple of itemRenderers for this 
datagrid. Often this datagrid corrupts(while scrolling horizontally) . Why this 
is happening?
 
   Thanks,
 
With regards,
 JJain
 
   
  
  
  

-
  
Looking for last minute shopping deals? Find them fast with Yahoo! Search.
  
  
  
  
  
  
   
  

-
  
  Looking for last minute shopping deals? Find them fast with Yahoo! Search.
  
  
  


 
   

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

[flexcoders] Print Preview in Flex

2008-01-17 Thread jitendra jain
Hi Everybody,

   How can we show print preview in Flex? Before printing , i want the user to 
see print preview of the printing document.

  Thanks,

with regards,
JJain

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

[flexcoders] Combox box selected Index

2008-02-02 Thread jitendra jain
Hi guys,

   I have a combo box whose data provider is an array collection. I don't want 
any of the items in the selected index at the time of load. How can I do this. 

   Thanks,

with regards,
JJain


   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

[flexcoders] File Download

2008-02-15 Thread jitendra jain
Hi friends,

   I'm developing an application in which my backend is Java and front end is 
flex. Now i want the java to generate dynamic files and send to the flex . I 
have a method in java that returns the File . Now all i have to do is to get 
this file and convert into the respective object. I tried with FileReference, 
but it hasn't worked for me. Suggest me the best way to convert this incoming 
object(File object (java.io.File)) into the Flex object .

  Replies are highly appreciated.

  Thanks,

with regards,
JJain

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

Re: [flexcoders] File Download

2008-02-15 Thread jitendra jain
I want to store this file on the client machine not just navigate to the URL.

Thanks,

with regards,
JJain

Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 15 Feb 2008, jitendra jain 
wrote:
 FileReference, but it hasn't worked for me. Suggest me the best way to
 convert this incoming object(File object (java.io.File)) into the Flex

Why not just navigateToFile() the Flex client ?

-- 
Tom Chiverton
Helping to apprehensively foster 24/7 experiences
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.


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





   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

[flexcoders] Allow Muitlple Selection with shift key

2008-04-07 Thread jitendra jain
Hi friends,

  I want multiple selection with shift key instead of control key in component 
List.
Control key is defaultly specified by Adobe. 

  Thanks,

with regards,
JJain





   
-
You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.

[flexcoders] itemFocusOut for dataGid ItemRenderer

2008-04-30 Thread jitendra jain
Hi ,

   I have a datagrid with some item renderers. I want to write a function that 
will validate a number when the item lost its focus. But it seems that the item 
calls the destroyItemEditor() which throws an error #1009. And this function is 
called twice.

Thanks,

with regards,
JJain


Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798
   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

RE: [flexcoders] itemFocusOut for dataGid ItemRenderer

2008-05-01 Thread jitendra jain
Its an Datagrid itemFocusOut Event

See what iam doing is.


public function handleRendererFocusOut(event: DataGridEvent):void{
 if(event.reason == DataGridEventReason.CANCELLED || 
event.reason == DataGridEventReason.OTHER){
 return; 
 }
   var numValidator : NumberValidator = new NumberValidator()
var validationResult : ValidationResultEvent;

validationResult=numValidator.validate(array.getItemAt(event.rowIndex).num);
if(validationResult.type == ValidationResultEvent.INVALID){
event.preventDefault();
Alert.show(Enter the numeric value);



}

Alex Harui [EMAIL PROTECTED] wrote:   
  You may need to call preventDefault() if you are handling itemEditEnd.
   
  
-
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
jitendra jain
 Sent: Wednesday, April 30, 2008 10:05 PM
 To: flex group flex
 Subject: [flexcoders] itemFocusOut for dataGid ItemRenderer
  
   
Hi ,
 
I have a datagrid with some item renderers. I want to write a function that 
will validate a number when the item lost its focus. But it seems that the item 
calls the destroyItemEditor() which throws an error #1009. And this function is 
called twice.
 
 Thanks,
 
 with regards,
 JJain
 
 
 Thanks,
 
 with Regards,
 Jitendra Jain
 Software Engineer
 91-9979960798


-
  
  Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
  
  
 


 
   


Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798
   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

[flexcoders] itemFocusout in datagrid

2008-05-16 Thread jitendra jain
Hi friends,

 Iam writing itemFocusOut  event for my data grid and the code is as 
follows.

  public function focusOutHandlerEvent(event : DataGridEvent):void{
var validateValue : NumberValidator = new NumberValidator();
var validationResult : ValidationResultEvent;
validationResult = 
validateValue.validate(event.itemRenderer.data.number);
if(validationResult.type ==ValidationResultEvent.INVALID){
errMsg=invalid;
}else{
errMsg=valid;
}

}
// Item Edit End Event
public function preventDefaultMethods(event : DataGridEvent):void{
if(event.reason ==DataGridEventReason.NEW_COLUMN || 
event.reason==DataGridEventReason.NEW_ROW || 
event.reason==DataGridEventReason.CANCELLED){
// keep the data as it is.
return;
}
if(errMsg==invalid){
event.preventDefault();
}
}

Is this a proper way to implement the itemFocusOut event. Moreover when i 
enter the 'Enter' key it throws an error #1009, findNextItemRenderer()


Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798
   

[flexcoders] Data Grid issue

2008-05-23 Thread jitendra jain
Hi Alex,

I read your blog : 
http://blogs.adobe.com/aharui/2008/03/datagrid_doubleclick_to_edit.html

Have u tried dispatching an itemEditEnd event with different 
DataGridEventReasons for submit and cancel ? Please let me know as iam facing 
the same problem. 

Thanks in advance.


  

Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798
   

RE: [flexcoders] Data Grid issue

2008-05-25 Thread jitendra jain
Thanks Alex.

Finally I got it . What i did is itemEditBegining event set the 
dataGridEvent variable in the mxml component. Whenever i goes to the submit 
button i manually calls the itemEditEvent with an argument that is set with the 
help of itemEditBegining.This way i restrict the user for entering invalid data 
while pressing the submit button. I wonder itemEditEnd should fire 
automatically when user clicks on submit button.

Alex Harui [EMAIL PROTECTED] wrote:   
  No, I haven’t.  What happened when you tried it?
   
  
-
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
jitendra jain
 Sent: Friday, May 23, 2008 3:52 AM
 To: flex group flex
 Subject: [flexcoders] Data Grid issue
  
   
Hi Alex,
 
 I read your blog : 
 http://blogs.adobe.com/aharui/2008/03/datagrid_doubleclick_to_edit.html
Have u tried dispatching an itemEditEnd event with different 
DataGridEventReasons for submit and cancel ? Please let me know as iam facing 
the same problem. 
  
  Thanks in advance.
 
 
 
 
 Thanks,
 
 with Regards,
 Jitendra Jain
 Software Engineer
 91-9979960798

  
  
 


 
   


Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798
   

Re: [flexcoders] Help FLEX 3 and jasperReports

2008-05-30 Thread jitendra jain
Well, i have used Jasper Reports with flex. Simply i used navigateToURL method 
to call the required servlet(Java Servlet) that does  the process of creating 
the reports.

Using IReport u have created jrxml. Right

Now using JasperReports API package convert this jrxml into PDF and push the 
contents on the browser.

Let me know if u still have difficulties.

Andrew Westberg [EMAIL PROTECTED] wrote: I 
haven't done it yet, but I'll probably be working on this next week.  I was 
planning on generating the PDF in JasperReports server-side and downloading it 
into an html component for viewing.  Let me know if you find another solution 
for viewing PDFs in Flex.
 
-Andrew


On Thu, May 29, 2008 at 10:54 AM, gf_baggio [EMAIL PROTECTED] wrote:
  I am new to the Flex 3 programming and would 
like to know if someone
 has examples of how to show a jasperReport made with IReport in Flex 3.
 
 I managed to generate a jrxml report but need to know how to show this
 report in Flex.
 
 Thanks again for your help
 
 
 
 
  



 
 
   


Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798
   

Re: [flexcoders] Need array example

2008-06-13 Thread jitendra jain
Use mx.utils.ObjectUtil class, this ObjectUtil has the method copy that will 
allow u to create a new array with the same values.

var arrayCopy=(ArrayCollection)ObjectUtil.copy(arraycollection);

 Thanks,


with Regards,
Jitendra Jain
Software Engineer
91-9979960798



- Original Message 
From: Chilcoat, Dee [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, June 13, 2008 4:20:20 AM
Subject: [flexcoders] Need array example


I need an example of copying fields in an array to another
array, but I don’t want the fields to be pass-by-reference.  I’m
trying to create a “holding”array for input in a datagrid.  This
is code I have used.  
 
holdData[6]
= quickEntryGrid. dataProvider[ i].timerecordTrc PayRateAmount;
 
holdData[7] =
quickEntryGrid. dataProvider[ i].timerecordTrc SickLeaveHours;
 
holdData[8] =
quickEntryGrid. dataProvider[ i].timerecordTrc VacationHours;
   
  holdData[9] =
quickEntryGrid. dataProvider[ i].timerecordTrc RegularHours;
 
holdData[10] =
quickEntryGrid. dataProvider[ i].timerecordTrc StraightOvertmHo urs;
 
holdData[11] =
quickEntryGrid. dataProvider[ i].timerecordTrc PremiumOvertmHou rs;
 
holdData[12] =
quickEntryGrid. dataProvider[ i].timerecordTrc OtherHours;
 
holdData[13] =
quickEntryGrid. dataProvider[ i].timerecordTrc OtherHoursCode;
holdRowData[ i]
= holdData;
 
The problem is that whenever a user inputs data into the
quickEntryGrid, it is reflected in the holdRowData, which I need to contain the
original values before the user enters any data.  If I can’t use a holding
array, do I have other options?
 
Dee
A. Chilcoat
Enterprise
Web Application Development
University
of California San Diego
[EMAIL PROTECTED] edu
(858)
534-0719


  

Re: [flexcoders] LCDS gets Killed !!!

2008-06-13 Thread jitendra jain
Chitra, If ur trying to run an exe from Java then it will run on Server. Well u 
can call the servlet from flex using HttpService(In flex). Put all the stuff 
inside the service method of the servlet.


 Thanks,


with Regards,
Jitendra Jain
Software Engineer
91-9979960798



- Original Message 
From: Chitra S.Pai [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, June 13, 2008 8:45:49 AM
Subject: Re: [flexcoders] LCDS gets Killed !!!


Hi Seth,
 
Actually the server get destroyed when I call the Java function which contain a 
new process. I don't know why? Is this because LCDS doesn't allow child process 
in it ? 
 
I am really confused what is actually happening. As the server command prompt 
get closed also I cannot trace what is going on..
 
Actually I am trying to run an external exe through Java code using LCDS and 
Flex. Flex cannot directly instantiate the exe so I am going through Java and 
all..  And to run Java code with Flex I am using LCDS as interface. Do I have 
some other option to run Java code with Flex and without LCDS
 
Hope there is a solution for this...
 
Chitra

On Fri, Jun 13, 2008 at 12:12 AM, Seth Hodgson [EMAIL PROTECTED] com wrote:

What do you mean by killed? Is your call to exec() throwing an Exception, and 
if so is it showing up in your server logs?

Seth

From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of 
Chitra S.Pai
Sent: Thursday, June 12, 2008 6:36 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] LCDS gets Killed !!! 


Hi,
 
I am trying to run a Java code from LCDS and I am facing the following problem..
 
LCDS process gets killed...  
 
In the Java function I am trying to invoke an exe using runtime.exec( );
 
The Java code is working fine when tested separately.
 
Please...  Help me..
 
Chitra

 



  

Re: [flexcoders] Strange behavior with array filter function

2008-06-13 Thread jitendra jain
U r trying to compare the references instead of actual values. Try to compare 
the actual values and not the references

 Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798



- Original Message 
From: donvoltz [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, June 14, 2008 8:22:24 AM
Subject: [flexcoders] Strange behavior with array filter function


Can anyone tell me what I am doing wrong with this filter function. I
am passing in an array of valueObjects into the following filter function

public static function filterCallSchedule( o:*, index:int,
arr:Array):Boolean {
var modelLocator: AppModelLocator = AppModelLocator. getInstance( );
trace('ooo - ' + o.callDate);
trace('mmm - ' + modelLocator. currentlySelecte dCallDate) ;
trace(ObjectUtil. toString( o));
if (o.callDate == modelLocator. currentlySelecte dCallDate) {
trace(true);
return true;
}
else {
trace(false) ;
return false;
}
}

This is some of the data returned as I trace this functions execution

ooo - Thu Jun 26 00:00:00 GMT-0400 2008
mmm - Mon Jun 30 00:00:00 GMT-0400 2008
(com.dynamicmedical ventures. De2ORApplication .vo::CallSchedul eVO)#0
callDate = Thu Jun 26 00:00:00 GMT-0400 2008
callLocationID = 5
callScheduleID = 985
callScheduleNote = 
createdBy = 1
createdDTS = Wed May 28 04:41:05 GMT-0400 2008
modifiedBy = 0
modifiedDTS = (null)
userID = 25
false

ooo - Fri Jun 27 00:00:00 GMT-0400 2008
mmm - Mon Jun 30 00:00:00 GMT-0400 2008
(com.dynamicmedical ventures. De2ORApplication .vo::CallSchedul eVO)#0
callDate = Fri Jun 27 00:00:00 GMT-0400 2008
callLocationID = 5
callScheduleID = 986
callScheduleNote = 
createdBy = 1
createdDTS = Wed May 28 04:41:05 GMT-0400 2008
modifiedBy = 0
modifiedDTS = (null)
userID = 2
false

ooo - Mon Jun 30 00:00:00 GMT-0400 2008
mmm - Mon Jun 30 00:00:00 GMT-0400 2008
(com.dynamicmedical ventures. De2ORApplication .vo::CallSchedul eVO)#0
callDate = Mon Jun 30 00:00:00 GMT-0400 2008
callLocationID = 5
callScheduleID = 987
callScheduleNote = 
createdBy = 1
createdDTS = Wed May 28 04:41:05 GMT-0400 2008
modifiedBy = 0
modifiedDTS = (null)
userID = 7
false

When this function runs through all of the data, I am left with an
empty array for the filtering. I can not understand why the last group
of data, where the two dates are identical does not return true and
therefore be included in the filtered array. 

Does anyone have an idea of what I am doing wrong with this

Thanks 

Don




  

Re: [flexcoders] Strange behavior with array filter function

2008-06-13 Thread jitendra jain
 === and !== operators to verify that both comparison objects are of the same 
type, with the same content:
 Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798



- Original Message 
From: donvoltz [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, June 14, 2008 8:22:24 AM
Subject: [flexcoders] Strange behavior with array filter function


Can anyone tell me what I am doing wrong with this filter function. I
am passing in an array of valueObjects into the following filter function

public static function filterCallSchedule( o:*, index:int,
arr:Array):Boolean {
var modelLocator: AppModelLocator = AppModelLocator. getInstance( );
trace('ooo - ' + o.callDate);
trace('mmm - ' + modelLocator. currentlySelecte dCallDate) ;
trace(ObjectUtil. toString( o));
if (o.callDate == modelLocator. currentlySelecte dCallDate) {
trace(true);
return true;
}
else {
trace(false) ;
return false;
}
}

This is some of the data returned as I trace this functions execution

ooo - Thu Jun 26 00:00:00 GMT-0400 2008
mmm - Mon Jun 30 00:00:00 GMT-0400 2008
(com.dynamicmedical ventures. De2ORApplication .vo::CallSchedul eVO)#0
callDate = Thu Jun 26 00:00:00 GMT-0400 2008
callLocationID = 5
callScheduleID = 985
callScheduleNote = 
createdBy = 1
createdDTS = Wed May 28 04:41:05 GMT-0400 2008
modifiedBy = 0
modifiedDTS = (null)
userID = 25
false

ooo - Fri Jun 27 00:00:00 GMT-0400 2008
mmm - Mon Jun 30 00:00:00 GMT-0400 2008
(com.dynamicmedical ventures. De2ORApplication .vo::CallSchedul eVO)#0
callDate = Fri Jun 27 00:00:00 GMT-0400 2008
callLocationID = 5
callScheduleID = 986
callScheduleNote = 
createdBy = 1
createdDTS = Wed May 28 04:41:05 GMT-0400 2008
modifiedBy = 0
modifiedDTS = (null)
userID = 2
false

ooo - Mon Jun 30 00:00:00 GMT-0400 2008
mmm - Mon Jun 30 00:00:00 GMT-0400 2008
(com.dynamicmedical ventures. De2ORApplication .vo::CallSchedul eVO)#0
callDate = Mon Jun 30 00:00:00 GMT-0400 2008
callLocationID = 5
callScheduleID = 987
callScheduleNote = 
createdBy = 1
createdDTS = Wed May 28 04:41:05 GMT-0400 2008
modifiedBy = 0
modifiedDTS = (null)
userID = 7
false

When this function runs through all of the data, I am left with an
empty array for the filtering. I can not understand why the last group
of data, where the two dates are identical does not return true and
therefore be included in the filtered array. 

Does anyone have an idea of what I am doing wrong with this

Thanks 

Don




  

Re: [flexcoders] Help with ViewStack Event Listeners for Custom Components

2008-06-27 Thread jitendra jain
instead of  vwChart.selectedIndex=0 make it vwchart.selectedChild=lgch . It 
will work


 Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798



- Original Message 
From: Craig [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, June 28, 2008 10:00:53 AM
Subject: [flexcoders] Help with ViewStack Event Listeners for Custom Components


My Viewstack does not make custom components active (they do not show
up with simple functions like this one... 

vwChrt.selectedinde x=0;

vwChrt.selectedinde x=1;

I suspect I need to add Event Handlers, and would like some guidance.

My MXML code looks like this (shortened) - A viewstack surrounding two
custom components (panels)

mx:ViewStack id=vwChrt
creationPolicy= queued 

mx:Panel id=lgCh label=Long 
width=100% height=100% 
comp:Charts id=Chart
creationPolicy= queued
/comp:Charts
/mx:Panel

mx:Panel id=shCh title=Short
width=100% height=100%  
comp:ShortsChrt id=ShortChart
creationPolicy= queued
/comp:ShortsChrt
/mx:Panel

/mx:ViewStack

I am not sure how to use the following event listeners.

vwChrt.getChildAt( 0).addEventListe ner(FlexEvent. CREATION_ COMPLETE,
getLong); 

vwChrt.getChildAt( 1).addEventListe ner(FlexEvent. CREATION_ COMPLETE,
getShort); 

Can anyone offer any advice?
Thank you in advance for any help.
Craig




  

Re: [flexcoders] How to set up Flex builder 3 with LCDS 2.5?

2008-07-03 Thread jitendra jain
Go to this link http://amitonflex.blogspot.com/search/label/Flex%20Builder%203
 Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798



- Original Message 
From: Sherif Abdou [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 3, 2008 10:50:15 AM
Subject: Re: [flexcoders] How to set up Flex builder 3 with LCDS 2.5?




Are you using Coldfusion cause I am writing a tutorial on that and also check 
http://coenraets. org/blog/ he does alot of stuff with Flex and LCDS

- Original Message 
From: markflex2007 markflex2007@ yahoo.com
To: [EMAIL PROTECTED] ups.com
Sent: Wednesday, July 2, 2008 7:48:11 PM
Subject: [flexcoders] How to set up Flex builder 3 with LCDS 2.5?


Hi,

I plan to use Flex ,LCDS and web service to build a flex application.

But I do not have a idea how to set up the project in Flex builder 3.

LCDS web root is C:\lcds\jrun4\ servers\default.

Please give me a idea.Thanks

Mark


 


  

Re: [flexcoders] blazeds-turnkey doen't work?

2008-07-04 Thread jitendra jain
set JAVA_HOME= D:\Program Files\Java\jdk1. 5.0_15
 Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798



- Original Message 
From: markflex2007 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, July 4, 2008 10:50:18 AM
Subject: [flexcoders] blazeds-turnkey doen't work?


Hi,

I have installed blazeds-turnkey and set JAVA_HOME path to D:\Program 
Files\Java\jdk1. 5.0_15\bin. but I can not start tomcat. the error said 
JDK path error.why.

Please helpme if you know.

Thanks

Mk




  

Re: [flexcoders] Re: textarea with auto height

2008-07-15 Thread jitendra jain
change autoLayout=false

 Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798



- Original Message 
From: prashant194 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 15, 2008 7:06:59 AM
Subject: [flexcoders] Re: textarea with auto height


Thanks for the reply but its still not working for me.
Actually i tried the same u did for my TextArea component but this
time the height takes the full screen.

?xml version=1.0 encoding=utf- 8?
mx:TextArea xmlns:mx=http://www.adobe. com/2006/ mxml
creationComplete= initComponent( )
mx:Script
![CDATA[
private function initComponent( ) : void {
this.height = this.textHeight;
}//
]]
/mx:Script
/mx:TextArea

And i used this in my application using lengthy text. But somehow this
time the height takes the full screen.
My requirement is to adjust the height of the textarea so that the
text exactly fits into it.

--- In [EMAIL PROTECTED] ups.com, Tracy Spratt [EMAIL PROTECTED]  wrote:

 I extended Text like this:
 
 ?xml version=1.0 encoding=utf- 8?
 
 mx:Text xmlns:mx=http://www.adobe. com/2006/ mxml
 
 creationComplete= initComponent( )
 
 mx:Script ![CDATA[
 
 
 
   private function initComponent( ):void
 
   {
 
 this.height = this.textHeight;
 
   }//
 
 ]]/mx:Script
 
 
 
 /mx:Text
 
 
 
 Seemed to work for my situation.  Of course, this.height =
 this.textHeight;  is the core.
 
 
 
 Tracy
 
 
 
  _ _ __
 
 From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
 Behalf Of prashant194
 Sent: Monday, July 14, 2008 1:00 PM
 To: [EMAIL PROTECTED] ups.com
 Subject: [flexcoders] textarea with auto height
 
 
 
 Hello all,
 
 I want to have my textarea auto resize its height based on the length
 of the text it contains. The width of the text area remains fixed. How
 can i do that?





  

[flexcoders] How to do flex profiling in Eclipse?

2008-07-17 Thread jitendra jain
Hi friends,

Can anyone help me how to do Flex profiling using eclipse???

 Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798



  

[flexcoders] FilterFunction is throwing an error #1069

2008-07-29 Thread jitendra jain
Hi friends,

My code is as follows
   public function setVisitor():void{
  
   if(frm_visitType.selectedItem == E){
 visitorList= ObjectUtil.copy(model.visitorList) as 
ICollectionView;
 visitorList.filterFunction = 
filterExisitingVisitorCode;
  visitorList.refresh();
   }else{
  visitorList= ObjectUtil.copy(model.visitorList) 
as ICollectionView;
  visitorList.filterFunction = filterNewVisitorCode;
   visitorList.refresh();
   }

  }
   }
   }
   public function filterExisitingVisitorCode(item : 
Object):Boolean{
   return (item.visitorType==Exisitng)
   }
   public function filterNewVisitorCode(item : Object):Boolean{
   return (item.visitorType==New)
   }
  

When there is no New Visitor it throws this error.

ReferenceError: Error #1069: Property data not found on User and there is no 
default value.
at mx.controls::ComboBase/get value()
at mx.controls::ComboBase/setSelectedItem()
at mx.controls::ComboBase/set selectedItem()
at mx.controls::ComboBox/set selectedItem()
at mx.controls::ComboBase/updateDisplayList()
at mx.controls::ComboBox/updateDisplayList()


Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798



  

[flexcoders] FilterFunction is throwing an error #1069

2008-07-29 Thread jitendra jain
Hi friends,

My code is as follows
   public function setVisitor():void{
  
   if(frm_visitType.selectedItem == E){
 visitorList= ObjectUtil.copy(model.visitorList) as 
ICollectionView;
 visitorList.filterFunction = 
filterExisitingVisitorCode;
  visitorList.refresh();
   }else{
  visitorList= ObjectUtil.copy(model.visitorList) 
as ICollectionView;
  visitorList.filterFunction = filterNewVisitorCode;
   visitorList.refresh();
   }

  }
   }
   }
   public function filterExisitingVisitorCode(item : 
Object):Boolean{
   return (item.visitorType==Exisitng)
   }
   public function filterNewVisitorCode(item : Object):Boolean{
   return (item.visitorType==New)
   }
  

When there is no New Visitor it throws this error.

ReferenceError: Error #1069: Property data not found on User and there is no 
default value.
at mx.controls::ComboBase/get value()
at mx.controls::ComboBase/setSelectedItem()
at mx.controls::ComboBase/set selectedItem()
at mx.controls::ComboBox/set selectedItem()
at mx.controls::ComboBase/updateDisplayList()
at mx.controls::ComboBox/updateDisplayList()


Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798



  

Re: [flexcoders] Help me

2008-08-04 Thread jitendra jain
Use itemEditEnd Event of DataGrid instead of FocusOut event.
 Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798



- Original Message 
From: poorni_agile [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, August 4, 2008 4:57:26 PM
Subject: [flexcoders] Help me


Hi
Iam having some doubts with datagrid. My datagrid values are not
changing if iam using LabelFunction attribute in datagrid column. How
to solve this issue. Iam requesting you to give me ideas how can i
resolve this issue.

My Code:
mx:Form id=editForm label=View and Edit XML Rules
mx:HBox
mx:FormItem label=Rule DocType:
fontWeight= bold
mx:TextInput id=doctype width=280
fontWeight= normal editable=false /
/mx:FormItem
mx:FormItem label=Target:  fontWeight= bold
mx:ComboBox id=target
dataProvider= {targ} width=150 fontWeight= normal/
/mx:FormItem
/mx:HBox
mx:FormItem label=Rule Handler: fontWeight= bold
mx:TextInput id=handler width=280
fontWeight= normal editable=false styleName=wrapme /
/mx:FormItem

mx:FormItem label=Stylesheet:  fontWeight= bold
mx:TextInput id=stylesheet width=280
fontWeight= normal editable=false /
/mx:FormItem

mx:FormItem label=IdLocations:  fontWeight= bold/
mx:DataGrid id=dgrid dataProvider= {b}
width=600 rowCount=5 editable=false wordWrap=true 
mx:columns
mx:DataGridColumn
headerText= IDLocation Description dataField=@ description
width=150 editorDataField= text/
mx:DataGridColumn
headerText= IDLocation Path dataField=@ path editorDataField= text/
mx:DataGridColumn
headerText= Column-Index dataField=@ column-index width=70/
mx:DataGridColumn
headerText= Separator Used dataField=@ separator width=70/
/mx:columns
/mx:DataGrid

mx:FormItem label=Special Cases:
fontWeight= bold/
mx:DataGrid id=dgrid1 dataProvider= {c}
width=600 rowCount=5 editable=false 
mx:columns
mx:DataGridColumn
headerText= Priority dataField=@ priority width=50
editorDataField= text/
mx:DataGridColumn
headerText= Test dataField=@ test/
mx:DataGridColumn
headerText= Handler dataField=@ handler/ 

 mx:DataGridColumn
headerText= SpecialCaseStyle sheet Name labelFunction= displayName /
 mx:DataGridColumn
headerText= SpecialCaseTarge t Destination
labelFunction= displayDestinat ion/

/mx:columns
/mx:DataGrid
mx:HBox 
mx:Button id=edit label=Edit Rule
click=editRule( )/ 
mx:Button id=save label=Save Rule
click=saveRule( )/
/mx:HBox
mx:TextArea id=xmlObj text={externalXML} 
visible=false /


/mx:Form 

In the above code i pointed two lines with arrow mark --- for those
two lines column is not changing.
Even if i change something in that column and once again get focus out
of that column then once again the previous data is only coming what
ever i wrote was vanishing.
What is the problem when iam using labelFunction attribute.

Thanks in advance,
Poornima.

 


  

Re: [flexcoders] Design Patters For Loading Data?

2008-08-12 Thread jitendra jain

 Why don't u go for Cairngorm Framework that is perfectly designed for this 
purposeThanks,

with Regards,
Jitendra Jain
Software Engineer




- Original Message 
From: nwebb [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, August 12, 2008 5:07:47 PM
Subject: [flexcoders] Design Patters For Loading Data?


Hi, hoping for some help on this...

Problem:
I am making multiple asynchronous calls to the server and I want to ensure I 
have the data back from all the calls before calling method x.
I don't want to daisy-chain the calls (i.e.having to wait until service#1 
reurns data before calling service#2 and so on).

I have a solution which will suffice* but I'm sure there must be a tried and 
tested way of handling this kind of scenario - perhaps a design pattern(?).

 - - -
* my current solution is to declare an ArrayCollection and listen to its 
CollectionEvent. COLLECTION_ CHANGE event. 
In each onResult() method I setitemsLoaded. addItem(true) ; and similarly in 
each onFault() method I set itemsLoaded. addItem(false) ;

Each time I add the boolean value to the collection, the change-event handler 
is called. Inside the change handler I check to see whether the collection 
length is equal to the number of results I'm expecting. If it is, I loop 
through the collection and check if all the values are true or not.

 


  

[flexcoders] KeyEvent in Application and in component

2008-08-21 Thread jitendra jain
Hi Friends,

I have a key down listener in my application and also in my component that 
is childeren of this main application.
But when i press a key, it doesn't fire any event. But when i change this to 
key up listener it is firing. I know that the key precedence starts with 
childern. Please help!!!

 Thanks,

with Regards,
Jitendra Jain


  

[flexcoders] Repeater Component

2008-08-27 Thread jitendra jain
Hi friends,

   I have one repeater component that dynamically constructs a Check box and 
two input boxes using a masterDataProvider(array collection). Now i have 
another data provider childDataProvider(array collection). How can i assign 
values of childDataProvider to repeater ?? Please help.

 Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798



  

[flexcoders] BindingUtils, How to detect null values when the data type is Number???

2008-08-31 Thread jitendra jain
Hi Coders,

 I have the following decalration in my User defined component .

prodQty  rawQty are Number datatypes. txtProdLot and txtRawLot are TextInputs 
in a Repeater Container,allItemList is an ArrayCollection

BindingUtils.bindProperty(allItemList[i],prodQty,txtProdLot[i],text);
BindingUtils.bindProperty(allItemList[i],rawQty,txtRawLot[i],text);

Everything works fine. But when my TextInput having no data that is empty, it 
binds zero values. How can I stop that??


 When 
Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798



  

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-21 Thread jitendra jain
Hi,

Instead of this use
BindingUitls.bindProperty(this,xyz,MyModel,getInstance().someVar);
This statement is called in the creationComplete of the component.
Cheers it will work..
 Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798 



- Original Message 
From: Manu Dhanda [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, 22 September, 2008 8:56:09 AM
Subject: Re: [flexcoders] [Bindable] is not getting updated..



Josh,

Is it a right way to do the following:

[Bindable] private var xyz:String = MyModel.getInstance ().someVar; 

Now, if I use xyz in my code then it is not updated. Where as if i use
'MyModel.getInstanc e().someVar' then I am getting perfect result. 

For Ex:

mx:Label text={xyz} / // view not updated with changes in model.
mx:Label text={MyModel. getInstance( ).someVar} / //view updated everytime
with changes in model.

So, I didn't get the difference between two above logically.

Please explain the case as above. Thanks.

Josh McDonald-4 wrote:
 
 I get what you're saying, but you're coming at it from the wrong angle is
 all.
 
 When you have this:
 
 [Bindable]
 public var myvar = someFunction( );
 
 You're making it so that *other code* will be called when myvar changes.
 You're also giving it the initial value of someFunction( ). It won't
 escape
 back into the code for someFunction( ) and alter it so it becomes bindable.
 We need to have a difference betwen X = Y and create a binding from X
 to
 Y, otherwise the entire virtual machine would slow to a crawl.
 
 If you want to create a binding from actionscript from
 sourceObject. someValue to myValue you do this:
 
 BindingUtils. bindProperty( this, myValue, sourceObject, someValue) ;
 
 Then whenever sourceObject tells the word that someValue has been
 updated
 (with events), Flex will set the myValue field on your object.
 
 -Josh
 
 On Mon, Sep 22, 2008 at 1:07 PM, Manu Dhanda
 manuraj.dhanda@ gmail.comwrote:
 

 Hi Paul,

 if [Bindable] works just for initialization, then I think it is loosing
 it's
 existence altogether.

 At least I think it this way.. that [Bindable] changes with every change
 that it is bind to. And not just it's initialization.

 Waiting for expert comments..

 Thanks,
 Manu.


 Paul Andrews-4 wrote:
 
  - Original Message -
  From: Manu Dhanda manuraj.dhanda@ gmail.com
  To: [EMAIL PROTECTED] ups.com
  Sent: Monday, September 22, 2008 3:08 AM
  Subject: [flexcoders] [Bindable] is not getting updated..
 
 
 
  Hii Guyz,
 
  Although it's very strange (even for me), but this [Bindable] tag is
 not
  working for me.
 
  I am following the cairngorm structure and storing a variable in
 Model.
 
  Now, in one of my code file, if I 'll create a local bindable
 variable,
  that
  binds to model.. then it is not being updated with the changes in
 model.
 
  [Bindable] private var xyz:String = MyModel.getInstance ().someVar;
 
  Now, if I use xyz in my code then it is not updated. Where as if i use
  'MyModel.getInstanc e().someVar' then I am getting perfect result.
 
  Any thoughts here...
 
  Yes, some thoughts.
 
  [Bindable] private var xyz:String = MyModel.getInstance ()..someVar
 
  Means that xyz is bindable and is initialised with the value of
  MyModel.getInstance ().someVar .
 
  It does not mean that xyz changes with the value of
  MyModel.getInstance ().someVar .
 
  If you wish to have a binding in an mxml file to
  MyModel.getInstance ().someVar then use {MyModel.getInstan ce().someVar
  },
  alternatively in actionscript you'll have to specifically set up a
 binding
  for it.
 
  Paul
 
 
 
 
 
  Regards,
  Manu.
  --
  View this message in context:
 
 http://www.nabble. com/-Bindable- -is-not-getting- updated.. 
 -tp19600797p1960 0797.html
  Sent from the FlexCoders mailing list archive at Nabble.com.
 
 
   - - --
 
  --
  Flexcoders Mailing List
  FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
  Alternative FAQ location:
 
 https://share. acrobat.com/ adc/document. do?docid= 942dbdc8- e469-446f- 
 b4cf-1e62079f684 7
  Search Archives:
  http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo! Groups
  Links
 
 
 
 
 
 
 

 --
 View this message in context:
 http://www.nabble. com/-Bindable- -is-not-getting- updated.. 
 -tp19600797p1960 1220.html
 Sent from the FlexCoders mailing list archive at Nabble.com.


  - - --

 --
 Flexcoders Mailing List
 FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
 Alternative FAQ location:
 https://share. acrobat.com/ adc/document. do?docid= 942dbdc8- e469-446f- 
 b4cf-1e62079f684 7
 Search Archives:
 http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo! Groups
 Links




 
 
 -- 
 Therefore, send not to know For whom the bell tolls.. It tolls for thee.
 
 http://flex. joshmcdonald. info/
 
 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED] com
 
 

-- 
View

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-21 Thread jitendra jain
sorry, use this 
BindingUtils.bindProperty(this,xyz,MyModel.getInstance,someVar);
 Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798 



- Original Message 
From: jitendra jain [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, 22 September, 2008 9:03:42 AM
Subject: Re: [flexcoders] [Bindable] is not getting updated..


Hi,

Instead of this use
BindingUitls. bindProperty( this,xyz ,MyModel, getInstance( ).someVar) ;
This statement is called in the creationComplete of the component.
Cheers it will work..
 Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798 



- Original Message 
From: Manu Dhanda manuraj.dhanda@ gmail.com
To: [EMAIL PROTECTED] ups..com
Sent: Monday, 22 September, 2008 8:56:09 AM
Subject: Re: [flexcoders] [Bindable] is not getting updated..



Josh,

Is it a right way to do the following:

[Bindable] private var xyz:String = MyModel.getInstance ().someVar; 

Now, if I use xyz in my code then it is not updated. Where as if i use
'MyModel.getInstanc e().someVar' then I am getting perfect result. 

For Ex:

mx:Label text={xyz} / // view not updated with changes in model.
mx:Label text={MyModel. getInstance( ).someVar} / //view updated everytime
with changes in model..

So, I didn't get the difference between two above logically.

Please explain the case as above. Thanks.

Josh McDonald-4 wrote:
 
 I get what you're saying, but you're coming at it from the wrong angle is
 all.
 
 When you have this:
 
 [Bindable]
 public var myvar = someFunction( );
 
 You're making it so that *other code* will be called when myvar changes.
 You're also giving it the initial value of someFunction( ). It won't
 escape
 back into the code for someFunction( ) and alter it so it becomes bindable.
 We need to have a difference betwen X = Y and create a binding from X
 to
 Y, otherwise the entire virtual machine would slow to a crawl.
 
 If you want to create a binding from actionscript from
 sourceObject. someValue to myValue you do this:
 
 BindingUtils. bindProperty( this, myValue, sourceObject, someValue) ;
 
 Then whenever sourceObject tells the word that someValue has been
 updated
 (with events), Flex will set the myValue field on your object.
 
 -Josh
 
 On Mon, Sep 22, 2008 at 1:07 PM, Manu Dhanda
 manuraj.dhanda@ gmail.comwrote:
 

 Hi Paul,

 if [Bindable] works just for initialization, then I think it is loosing
 it's
 existence altogether.

 At least I think it this way.. that [Bindable] changes with every change
 that it is bind to. And not just it's initialization. .

 Waiting for expert comments..

 Thanks,
 Manu.


 Paul Andrews-4 wrote:
 
  - Original Message -
  From: Manu Dhanda manuraj.dhanda@ gmail.com
  To: [EMAIL PROTECTED] ups.com
  Sent: Monday, September 22, 2008 3:08 AM
  Subject: [flexcoders] [Bindable] is not getting updated..
 
 
 
  Hii Guyz,
 
  Although it's very strange (even for me), but this [Bindable] tag is
 not
  working for me.
 
  I am following the cairngorm structure and storing a variable in
 Model.
 
  Now, in one of my code file, if I 'll create a local bindable
 variable,
  that
  binds to model.. then it is not being updated with the changes in
 model.
 
  [Bindable] private var xyz:String = MyModel.getInstance ().someVar;
 
  Now, if I use xyz in my code then it is not updated. Where as if i use
  'MyModel.getInstanc e().someVar' then I am getting perfect result.
 
  Any thoughts here...
 
  Yes, some thoughts.
 
  [Bindable] private var xyz:String = MyModel.getInstance ().someVar
 
  Means that xyz is bindable and is initialised with the value of
  MyModel.getInstance ().someVar .
 
  It does not mean that xyz changes with the value of
  MyModel.getInstance ().someVar .
 
  If you wish to have a binding in an mxml file to
  MyModel.getInstance ()..someVar then use {MyModel.getInstan ce().someVar
  },
  alternatively in actionscript you'll have to specifically set up a
 binding
  for it.
 
  Paul
 
 
 
 
 
  Regards,
  Manu.
  --
  View this message in context:
 
 http://www.nabble. com/-Bindable- -is-not-getting- updated.. 
 -tp19600797p1960 0797.html
  Sent from the FlexCoders mailing list archive at Nabble.com.
 
 
   - - --
 
  --
  Flexcoders Mailing List
  FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
  Alternative FAQ location:
 
 https://share. acrobat.com/ adc/document. do?docid= 942dbdc8- e469-446f- 
 b4cf-1e62079f684 7
  Search Archives:
  http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo! Groups
  Links
 
 
 
 
 
 
 

 --
 View this message in context:
 http://www.nabble. com/-Bindable- -is-not-getting- updated.. 
 -tp19600797p1960 1220.html
 Sent from the FlexCoders mailing list archive at Nabble.com.


  - - --

 --
 Flexcoders Mailing List
 FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
 Alternative FAQ location:
 https://share. acrobat.com/ adc

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-23 Thread jitendra jain
BindingUtils will automatically notify this object about Property change 
event.
Make sure xyz is bindable.


Example look below:

BindingUtils.bindProperty(textBox,text,grpCbx.selectedItem,value);
 Here my textBox ix TextInput control and grpCbx is Combo Box . I used this 
statement in creation complete
So whenever my combo box selected item changes , it automatically binds into 
the TextInput Control.

Let me know your view and also if possible paste some part of the code.

Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798 



- Original Message 
From: Manu Dhanda [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 23 September, 2008 4:43:12 PM
Subject: Re: [flexcoders] [Bindable] is not getting updated...



Do I explicitly need to dispatch any event for BindUtils.bindPrope rty(..) to
happen ??

Cuz, I am not getting my xyz var changed with the change in someVar.

Note: I am putting this line of code
(BindingUtils. bindProperty( this,xyz ,MyModel. getInstance, someVar ) in
creationComplete( ).

Thanks,
Manu.

jitendra jain wrote:
 
 sorry, use this
 BindingUtils. bindProperty( this,xyz ,MyModel. getInstance, someVar );
  Thanks,
 
 with Regards,
 Jitendra Jain
 Software Engineer
 91-9979960798 
 
 
 
 - Original Message 
 From: jitendra jain jitendra_jain_ [EMAIL PROTECTED] com
 To: [EMAIL PROTECTED] ups.com
 Sent: Monday, 22 September, 2008 9:03:42 AM
 Subject: Re: [flexcoders] [Bindable] is not getting updated..
 
 
 Hi,
 
 Instead of this use
 BindingUitls. bindProperty( this,xyz ,MyModel, getInstance( ).someVar) ;
 This statement is called in the creationComplete of the component.
 Cheers it will work..
  Thanks,
 
 with Regards,
 Jitendra Jain
 Software Engineer
 91-9979960798 
 
 
 
 - Original Message 
 From: Manu Dhanda manuraj.dhanda@ gmail.com
 To: [EMAIL PROTECTED] ups..com
 Sent: Monday, 22 September, 2008 8:56:09 AM
 Subject: Re: [flexcoders] [Bindable] is not getting updated..
 
 
 
 Josh,
 
 Is it a right way to do the following:
 
 [Bindable] private var xyz:String = MyModel.getInstance ().someVar; 
 
 Now, if I use xyz in my code then it is not updated. Where as if i use
 'MyModel.getInstanc e().someVar' then I am getting perfect result. 
 
 For Ex:
 
 mx:Label text={xyz} / // view not updated with changes in model.
 mx:Label text={MyModel. getInstance( ).someVar} / //view updated
 everytime
 with changes in model..
 
 So, I didn't get the difference between two above logically.
 
 Please explain the case as above. Thanks.
 
 Josh McDonald-4 wrote:
 
 I get what you're saying, but you're coming at it from the wrong angle is
 all.
 
 When you have this:
 
 [Bindable]
 public var myvar = someFunction( );
 
 You're making it so that *other code* will be called when myvar changes.
 You're also giving it the initial value of someFunction( ). It won't
 escape
 back into the code for someFunction( ) and alter it so it becomes
 bindable.
 We need to have a difference betwen X = Y and create a binding from X
 to
 Y, otherwise the entire virtual machine would slow to a crawl.
 
 If you want to create a binding from actionscript from
 sourceObject. someValue to myValue you do this:
 
 BindingUtils. bindProperty( this, myValue, sourceObject, someValue) ;
 
 Then whenever sourceObject tells the word that someValue has been
 updated
 (with events), Flex will set the myValue field on your object.
 
 -Josh
 
 On Mon, Sep 22, 2008 at 1:07 PM, Manu Dhanda
 manuraj.dhanda@ gmail.comwrote:
 

 Hi Paul,

 if [Bindable] works just for initialization, then I think it is loosing
 it's
 existence altogether.

 At least I think it this way.. that [Bindable] changes with every change
 that it is bind to. And not just it's initialization. .

 Waiting for expert comments..

 Thanks,
 Manu.


 Paul Andrews-4 wrote:
 
  - Original Message -
  From: Manu Dhanda manuraj.dhanda@ gmail.com
  To: flexcoders@ yahoogro ups.com
  Sent: Monday, September 22, 2008 3:08 AM
  Subject: [flexcoders] [Bindable] is not getting updated..
 
 
 
  Hii Guyz,
 
  Although it's very strange (even for me), but this [Bindable] tag is
 not
  working for me.
 
  I am following the cairngorm structure and storing a variable in
 Model.
 
  Now, in one of my code file, if I 'll create a local bindable
 variable,
  that
  binds to model.. then it is not being updated with the changes in
 model.
 
  [Bindable] private var xyz:String = MyModel.getInstance ().someVar;
 
  Now, if I use xyz in my code then it is not updated. Where as if i
 use
  'MyModel.getInstanc e().someVar' then I am getting perfect result.
 
  Any thoughts here...
 
  Yes, some thoughts.
 
  [Bindable] private var xyz:String = MyModel.getInstance ().someVar
 
  Means that xyz is bindable and is initialised with the value of
  MyModel.getInstance ().someVar .
 
  It does not mean that xyz changes with the value of
  MyModel.getInstance ().someVar .
 
  If you wish to have a binding in an mxml file

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-23 Thread jitendra jain
Instead of ProgramModel.getInstance(), use ProgramModel.getInstance Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798 



- Original Message 
From: Manu Dhanda [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, 24 September, 2008 7:52:35 AM
Subject: Re: [flexcoders] [Bindable] is not getting updated..



Ok, here is my concerned code snippet:

mx:Canvas ...
...


[Bindable] public var woCalVO:WOCalVO =
ProgramModel. getInstance( ).woCalSelectedD ayData;

private function onInitialize( ):void{

BindingUtils. bindProperty( this,woCalVO ,ProgramModel.. getInstance( 
),woCalSelected DayData) ;

filterReset( ); // doing some filtering on woCalVO.programList , but it is
useless until i get this updated.
setFilter();
}

mx:List id=lfList dataProvider= {woCalVO. programList} /

...

mx:Canvas/

Now, by assumptions, woCalVO should be updated to woCalSelectedDayDa ta
on every change. But, it doesn't.
OR Do I need to fire any Flex event like Data_CHANGE or something to make it
work. And now, what should be the ideal way to make it work?

Thanks everyone being 'n bearing me for soo long.

-Manu.

Haykel BEN JEMIA wrote:
 
 someVar must be bindable and dispatch an event.If you have a setter and
 getter for the property, or it's a public property, just use the
 [Bindable]
 metatag.
 Otherwise, if you only have a getter, you have to use the
 [Bindable(event= event
 name)] syntax with the getter and dispatch the given event every time the
 property is changed.
 
 
 
 On Tue, Sep 23, 2008 at 1:13 PM, Manu Dhanda
 manuraj.dhanda@ gmail.comwrote:
 

 Do I explicitly need to dispatch any event for BindUtils.bindPrope rty(..)
 to
 happen ??

 Cuz, I am not getting my xyz var changed with the change in someVar.

 Note: I am putting this line of code
 (BindingUtils. bindProperty( this,xyz ,MyModel. getInstance, someVar ) in
 creationComplete( ).

 Thanks,
 Manu.

 
 

-- 
View this message in context: http://www.nabble. com/-Bindable- 
-is-not-getting- updated.. -tp19600797p1964 0742.html
Sent from the FlexCoders mailing list archive at Nabble.com.

 


  Check out the all-new face of Yahoo! India. Go to http://in.yahoo.com/

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-23 Thread jitendra jain

 Make sure ProgramModel is also BindableThanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798 



- Original Message 
From: jitendra jain [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, 24 September, 2008 9:17:14 AM
Subject: Re: [flexcoders] [Bindable] is not getting updated..


Instead of ProgramModel. getInstance( ), use ProgramModel. getInstance Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798 



- Original Message 
From: Manu Dhanda manuraj..dhanda@ gmail.com
To: [EMAIL PROTECTED] ups.com
Sent: Wednesday, 24 September, 2008 7:52:35 AM
Subject: Re: [flexcoders] [Bindable] is not getting updated..



Ok, here is my concerned code snippet:

mx:Canvas ...
...


[Bindable] public var woCalVO:WOCalVO =
ProgramModel. getInstance( ).woCalSelectedD ayData;

private function onInitialize( ):void{

BindingUtils. bindProperty( this,woCalVO ,ProgramModel. getInstance( 
),woCalSelected DayData) ;

filterReset( ); // doing some filtering on woCalVO.programList , but it is
useless until i get this updated.
setFilter();
}

mx:List id=lfList dataProvider= {woCalVO. programList} /

...

mx:Canvas/

Now, by assumptions, woCalVO should be updated to woCalSelectedDayDa ta
on every change. But, it doesn't.
OR Do I need to fire any Flex event like Data_CHANGE or something to make it
work. And now, what should be the ideal way to make it work?

Thanks everyone being 'n bearing me for soo long..

-Manu.

Haykel BEN JEMIA wrote:
 
 someVar must be bindable and dispatch an event.If you have a setter and
 getter for the property, or it's a public property, just use the
 [Bindable]
 metatag.
 Otherwise, if you only have a getter, you have to use the
 [Bindable(event= event
 name)] syntax with the getter and dispatch the given event every time the
 property is changed.
 
 
 
 On Tue, Sep 23, 2008 at 1:13 PM, Manu Dhanda
 manuraj.dhanda@ gmail.comwrote:
 

 Do I explicitly need to dispatch any event for BindUtils.bindPrope rty(..)
 to
 happen ??

 Cuz, I am not getting my xyz var changed with the change in someVar.

 Note: I am putting this line of code
 (BindingUtils. bindProperty( this,xyz ,MyModel. getInstance, someVar ) in
 creationComplete( ).

 Thanks,
 Manu.

 
 

-- 
View this message in context: http://www.nabble. com/-Bindable- 
-is-not-getting- updated.. -tp19600797p1964 0742.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Download prohibited? No problem. CHAT from any browser, without download.  


  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-23 Thread jitendra jain
Hi Manu, may be your pm.woCalSelectedDay is not updated. Please check it first 
...
Because iam damn sure it will work .
 Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798 



- Original Message 
From: Manu Dhanda [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, 24 September, 2008 9:22:43 AM
Subject: Re: [flexcoders] [Bindable] is not getting updated..



Hi.. 

Josh,

The way you said will work as I said earlier that ProgramModel is updated.
But the problem is I want to bind model to a local variable and after that I
want to do some filtering on that. Filtering I don't want to apply to my
model, but want to keep it to my local.

Jitendra,

I tried it both ways. Using ProgramModel. getInstance( ) as well as
ProgramModel. getInstance .

Both results in the same values.

Thanks,
Manu.

Josh McDonald-4 wrote:
 
 [Bindable]
 public var pm : ProgramModel = ProgramModel. getInstance( );
 
 
 
 mx:List id=lfList dataProvider= { pm.woCalSelectedDay Data.programList
 }/
 
 
 On Wed, Sep 24, 2008 at 12:22 PM, Manu Dhanda
 manuraj.dhanda@ gmail.comwrote:
 

 Ok, here is my concerned code snippet:

 mx:Canvas ...
 ...
 .

 [Bindable] public var woCalVO:WOCalVO =
 ProgramModel. getInstance( ).woCalSelectedD ayData;

 private function onInitialize( ):void{


 BindingUtils. bindProperty( this,woCalVO ,ProgramModel. getInstance( 
 ),woCalSelected DayData) ;

 filterReset( ); // doing some filtering on woCalVO.programList , but
 it is
 useless until i get this updated.
 setFilter();
 }

 mx:List id=lfList dataProvider= {woCalVO. programList} /

 ...
 .
 mx:Canvas/

 Now, by assumptions, woCalVO should be updated to
 woCalSelectedDayDa ta
 on every change. But, it doesn't.
 OR Do I need to fire any Flex event like Data_CHANGE or something to make
 it
 work. And now, what should be the ideal way to make it work?

 Thanks everyone being 'n bearing me for soo long.

 -Manu.



 Haykel BEN JEMIA wrote:
 
  someVar must be bindable and dispatch an event.If you have a setter and
  getter for the property, or it's a public property, just use the
  [Bindable]
  metatag.
  Otherwise, if you only have a getter, you have to use the
  [Bindable(event= event
  name)] syntax with the getter and dispatch the given event every time
 the
  property is changed.
 
 
 
  On Tue, Sep 23, 2008 at 1:13 PM, Manu Dhanda
  manuraj.dhanda@ gmail.comwrote:
 
 
  Do I explicitly need to dispatch any event for
 BindUtils.bindPrope rty(..)
  to
  happen ??
 
  Cuz, I am not getting my xyz var changed with the change in someVar.
 
  Note: I am putting this line of code
  (BindingUtils. bindProperty( this,xyz ,MyModel. getInstance, someVar )
 in
  creationComplete( ).
 
  Thanks,
  Manu.
 
 
 

 --
 View this message in context:
 http://www.nabble. com/-Bindable- -is-not-getting- updated.. 
 -tp19600797p1964 0742.html
 Sent from the FlexCoders mailing list archive at Nabble.com.


  - - --

 --
 Flexcoders Mailing List
 FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
 Alternative FAQ location:
 https://share. acrobat.com/ adc/document. do?docid= 942dbdc8- e469-446f- 
 b4cf-1e62079f684 7
 Search Archives:
 http://www..mail- archive.com/ flexcoders% 40yahoogroups. comYahoo! Groups
 Links




 
 
 -- 
 Therefore, send not to know For whom the bell tolls. It tolls for thee.
 
 http://flex. joshmcdonald. info/
 
 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED] com
 
 

-- 
View this message in context: http://www.nabble. com/-Bindable- 
-is-not-getting- updated.. -tp19600797p1964 1557.html
Sent from the FlexCoders mailing list archive at Nabble.com.

__._,_..___ 
Messages in this topic (18) Reply (via web post) | Start a new topic 
Messages 
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
Change settings via the Web (Yahoo! ID required) 
Change settings via email: Switch delivery to Daily Digest | Switch format to 
Traditional 
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe 
Recent Activity
*  64
New MembersVisit Your Group 
Yahoo! Finance
It's Now Personal
Guides, news,
advice  more.
Special K Group
on Yahoo! Groups
Learn how others
are losing pounds.
Yahoo! Groups
Discover healthy
living groups and
live a full life.
. 
 


  Bollywood news, movie reviews, film trailers and more! Go to 
http://in.movies.yahoo.com/

Re: [flexcoders] Refreshing a custom component just after sending datas.

2008-09-24 Thread jitendra jain
Add IResponder interface
 Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798 



- Original Message 
From: quantum_ohm [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, 24 September, 2008 4:31:16 PM
Subject: [flexcoders] Refreshing a custom component just after sending datas.


Hello All,

I have a TitleWindow component with the lightbox or Alert effect
(background blurred) 
from which I insert some news, here is the code :
 / / / / / / ///
import model.NewsManager;
import mx.managers. PopUpManager;

private var nm:NewsManager = new NewsManager( );

private function init():void
{
nm.addEventListener ( NEWS_SENT, refreshNewsHandler ); 
}

public function submitNews() :void
{
var newsSubmitArray: Array = new Array();
// Don't post empty user records to the database
if ( in_titre_news. text=='' || in_txt_news. text=='' )
{
// implémenter logique des champs vides 
return;
} 
newsSubmitArray. in_titre_ news = in_titre_news. text;
newsSubmitArray. in_txt_news = in_txt_news. text;
newsSubmitArray. in_aut_news = in_aut_news. text;
newsSubmitArray. in_src_img = in_src_img.text;

nm.createNewsObj( newsSubmitArray );

in_titre_news. text = '';
in_txt_news. text = '';
in_aut_news. text = '';
in_src_img.text = '';
// indique que la news est créée
lbl_alert.visible = true;
}
private function refreshNewsHandler( evt:Event ):void
{
nm.getNewsObj( );
if ( evt.type == NEWS_SENT ) 
this.parentApplicat ion.updateAffich ageNews() ; 
}
 / / / / / / /// 
The NewsManager is a class which manages the RemoteObject (I'm using
AmfPhp) :
 / / / / / / ///
[Bindable]
public class NewsManager extends EventDispatcher
{
private var ro:RemoteObject;
public var getNewsArray: ArrayCollection;
public var lv:LoginView;
public var _lbl_nook_VISIBLE: int;

public function NewsManager( )
{
ro = new RemoteObject( amfphp );
ro.source = NewsService ;
}

public function createNewsObj( a:Array ):void
{
ro.getOperation( createNews ).addEventListener(
ResultEvent. RESULT, createNewsResultHan dler );
ro.getOperation( createNews ).addEventListener( FaultEvent.FAULT,
faultHandler );
ro.getOperation( createNews ).send( a );
}

private function createNewsResultHan dler( evt:ResultEvent ):void
{
dispatchEvent( new Event( NEWS_SENT ) );
}

public function getNewsObj() :void
{
ro.getOperation( getNews ).addEventListener( ResultEvent. RESULT,
getNewsResultHandle r );
ro.getOperation( getNews ).addEventListener( FaultEvent..FAULT,
faultHandler );
ro.getOperation( getNews ).send();
}

private function getNewsResultHandle r( evt:ResultEvent ):void
{
var obj:Object = evt.result as Object;
getNewsArray = new ArrayCollection( );
var i:int = 0;
for each ( var item:Object in obj )
{
getNewsArray. addItem( item );
i++;
} 
}

public function manageUserObj( u:String, p:String ):void
{
ro.getOperation( manageUser ).addEventListener(
ResultEvent. RESULT, manageUserResultHan dler );
ro.getOperation( manageUser ).addEventListener( FaultEvent.FAULT,
faultHandler );
ro.getOperation( manageUser ).send( u, p );
}

private function manageUserResultHan dler( evt:ResultEvent ) : void
{
if ( evt.result == 0 )
{
dispatchEvent( new Event(VISIBLE_ EVENT) );
}
else if ( evt.result == 1 )
{
dispatchEvent( new Event(INVISIBLE_ EVENT) );
}
}

private function faultHandler( evt:FaultEvent ):void
{
Alert.show( evt.fault.faultStri ng, evt.fault.faultCode .toString( ) );
}
 / / / / / / ///
And in the main the updateAffichageNews () function :
 / / / / / / ///
public function updateAffichageNews ( ):void
{
nm.getNewsObj( );
vb_news.removeAllCh ildren();
afficheNews( );
}
public function afficheNews( ):void
{
for ( var i:int=0; i  nm.getNewsArray. length; i++ )
{
news = new NewsView();
vb_news.addChild( news );
news.lbl_titre_ news.text = nm.getNewsArray[ i].titre_ news;
news.txta_news. text = nm.getNewsArray[ i].txt_news;
news.lbl_aut_ news.text = nm.getNewsArray[ i].aut_news;
if ( nm.getNewsArray[ i].src_img != null )
{
news.img_news. source = nm.getNewsArray[ i].src_img;
}
else
{
news.img_news. visible = false;
}
}
}
 / / / / / / ///
The thing is that I'd like to refresh the whole news (Canvas + VBox)
which are behind the TitleWindow just after I created the news and so
cliked on the submit button...
But things go too fast and the updateAffichageNews () function is
called before all the datas are returned with the new news just created.
I put a dispatchEvent to prevent this but it's not really effective.
Somebody would have a suggestion ?

Thx !


 


  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

Re: [flexcoders] Re: Listen itemClick on MenuBar

2008-09-24 Thread jitendra jain
public function menuHandler(MenuEvent : event){
if(Sting(event.item,@label== File){
//Dispatch Event
}

mx:Menu itemClick=menuHandler(event)/

This will help

Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Tim Hoff [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, 24 September, 2008 8:45:42 PM
Subject: [flexcoders] Re: Listen itemClick on MenuBar



Hi Andres,

The MenuBar uses the click event for the top level. The children use
itemClick. Usually, you have to listen for both.

-TH

--- In [EMAIL PROTECTED] ups.com, Andres Serral [EMAIL PROTECTED]  wrote:

 Hello.
 The MenuBar control doesn't dispatch the itemClick event on items
that has
 childrens.
 Anybody knows how can I capture the click event on any item (with
childrens
 or not)?

 Thanks

 Andres


 


  Bollywood news, movie reviews, film trailers and more! Go to 
http://in.movies.yahoo.com/

Re: [flexcoders] Re: Listen itemClick on MenuBar

2008-09-24 Thread jitendra jain
sorry it is mx:MenuBar
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: jitendra jain [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, 25 September, 2008 9:48:49 AM
Subject: Re: [flexcoders] Re: Listen itemClick on MenuBar


public function menuHandler( MenuEvent : event){
if(Sting(event. item,@label== File){
//Dispatch Event
}

mx:Menu itemClick=menuHand ler(event) /

This will help

Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Tim Hoff [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Wednesday, 24 September, 2008 8:45:42 PM
Subject: [flexcoders] Re: Listen itemClick on MenuBar



Hi Andres,

The MenuBar uses the click event for the top level. The children use
itemClick. Usually, you have to listen for both..

-TH

--- In [EMAIL PROTECTED] ups..com, Andres Serral [EMAIL PROTECTED]  wrote:

 Hello.
 The MenuBar control doesn't dispatch the itemClick event on items
that has
 childrens.
 Anybody knows how can I capture the click event on any item (with
childrens
 or not)?

 Thanks

 Andres




Download prohibited? No problem. CHAT from any browser, without download.  


  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

Re: [flexcoders] Cairngorm Update Problem

2008-09-24 Thread jitendra jain
Either you need to call the ViewStack.callLater(FunctionName)
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: c_higgon [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, 25 September, 2008 4:15:10 AM
Subject: [flexcoders] Cairngorm Update Problem


I am working on a Cairngorm project. I am using a ViewStack component 
to flip the user interface between a graph component and a filter data 
component both in the view layer. The basic concept of the 
application is to have a line graph and allow the users to filter the 
data using an input screen. All of this works the first time the user 
enters the application and uses the filter option. 

The problem I am having is the second or third time the user enters the 
filter screen. I cannot find a way to tell the graph component to 
reset itself after the event is dispatch and the controller takes over 
and new data needs to be displayed in the graph. (IE remove any 
annotationElements that were on the old graph)

Is there a way to notify the component in the view layer of a Cairngorm 
project from the command layer when the results are return from the 
delegate? 

Thanks,
~Chris

 


  Be the first one to try the new Messenger 9 Beta! Go to 
http://in.messenger.yahoo.com/win/

Re: [flexcoders] BlazeDS Integration

2008-09-25 Thread jitendra jain
Where you have put the services-config.xml,remoting-config.xml etc files?
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Patrick McDaniel [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, 25 September, 2008 4:16:56 AM
Subject: [flexcoders] BlazeDS Integration


Hello All - 

I recently have started trying to get BlazeDS implemented in a couple of my 
Flex applications.  I'm running into trouble getting an error that my 
destination doesn't exist.  I have looked all around the internet and can't 
seem to come up with a solution to my problem.  I'm hoping someone on the list 
will see a stupid mistake or head me off in the right direction..

Currently I'm trying to use Spring, BlazeDS, and Flex to make all this work.  
I'm running it all in Tomcat 6.  Also I'm using the spring file found on adobe 
exchange.  I have also included my .mxml file, but it is just a simple test to 
see if I can actually get it to work.  It is exactly the same as the remoting 
example provided by the turnkey download.  There are no errors in any logs so I 
assume that the spring container and webapp itself is loading alright.  I just 
get the error when I click the button to get the data.  Here are my 
configuation files:

WEB.XML
?xml version=1.0 encoding=UTF- 8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN http://java. sun.com/dtd/ web-app_2_ 3.dtd
web-app
    display-nameBuild Reporting Dashboard/display-name
    
    !-- log4j setup --
    context-param
    param-namelog4jConfigLocation/param-name
    param-value/WEB-INF/log4j. xml/param-value
    /context-param
    
    !--applicationConte xt.xml setup --
    context-param
    param-namecontextConfigLocati on/param-name
    param-value/WEB-INF/applicatio nContext. xml/param-value
    /context-param
    
    context-param
  param-nameflex.class.path/param-name
  param-value/WEB-INF/flex/ hotfixes/param-value
/context-param

    
    filter
    filter-nameCharacterEncodingFi lter/filter-name
    filter-class
    org.springframework .web.filter. CharacterEncodin 
gFilter/filter-class
    init-param
    param-nameencoding/param-name
    param-valueUTF-8/param-value
    /init-param
    init-param
    param-nameforceEncoding/param-name
    param-valuetrue/param-value
    /init-param
    /filter
    
    filter-mapping
    filter-nameCharacterEncodingFi lter/filter-name
    url-pattern/*/url-pattern
    /filter-mapping
    filter-mapping
    filter-nameCharacterEncodingFi lter/filter-name
    url-pattern*.do/url-pattern
    /filter-mapping
    
    listener
    listener-class
    org.springframework ..web.util. Log4jConfigListe 
ner/listener-class
    /listener
    
    listener
    listener-class
    org.springframework .web.context.. ContextLoaderLis 
tener/listener-class
    /listener
    
    !-- MessageBroker Servlet(BlazeDS) --
    servlet
    servlet-nameMessageBrokerServle t/servlet-name
    display-nameMessageBrokerServle t/display-name
    servlet-classflex.messaging. MessageBrokerSer vlet/servlet-class
    init-param
    param-nameservices.configurat ion.file/param-name
    param-value/WEB-INF/flex/ services- config.xml/param-value
    /init-param
    init-param
    param-nameflex.write.path/param-name
    param-value/WEB-INF/flex/param-value
  /init-param

    load-on-startup1/load-on-startup
    /servlet
    
    !-- Servlet setup (Spring HTTP) --
    servlet
    servlet-nameccdb/servlet-name
    servlet-class
    org.springframework .web.servlet. DispatcherServle t/servlet-class
    init-param
    param-namecontextConfigLocati on/param-name
    param-value/WEB-INF/servlet. xml/param-value
    /init-param
    load-on-startup1/load-on-startup
    /servlet
    
    servlet-mapping
    servlet-nameccdb/servlet-name
    url-pattern*.do/url-pattern
    /servlet-mapping
    
    servlet-mapping
    servlet-nameMessageBrokerServle t/servlet-name
    url-pattern/messagebroker/ */url-pattern
    /servlet-mapping
    
    welcome-file- list id=WelcomeFileList 
    welcome-fileindex.html/welcome-file
    welcome-fileApplication. html/welcome-file
    welcome-fileDashboard.html/welcome-file
    /welcome-file- list
    
/web-app

REMOTING-CONFIG. XML
?xml version=1.0 encoding=UTF- 8?
service id=remoting- service 
    class=flex. messaging. services. RemotingService

    adapters
    adapter-definition id=java-object class=flex. messaging. services. 
remoting. adapters. JavaAdapter default=true /
    /adapters

    default-channels
    channel ref=my-amf /
    /default-channels
    
    destination id=build
    properties
    factoryspring/factory
    sourcebuildPageFacade/source
    /properties
    /destination

/service

SERVICES-CONFIG. XML

Re: [flexcoders] BlazeDS Integration

2008-09-25 Thread jitendra jain
Also there is no servlet mapping for swf or mxml . what you type in the address 
bar of the browser?
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: jitendra jain [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, 25 September, 2008 11:40:07 AM
Subject: Re: [flexcoders] BlazeDS Integration


Where you have put the services-config. xml,remoting- config.xml etc files?
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Patrick McDaniel [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Thursday, 25 September, 2008 4:16:56 AM
Subject: [flexcoders] BlazeDS Integration


Hello All - 

I recently have started trying to get BlazeDS implemented in a couple of my 
Flex applications.  I'm running into trouble getting an error that my 
destination doesn't exist.  I have looked all around the internet and can't 
seem to come up with a solution to my problem.  I'm hoping someone on the list 
will see a stupid mistake or head me off in the right direction.

Currently I'm trying to use Spring, BlazeDS, and Flex to make all this work.  
I'm running it all in Tomcat 6.  Also I'm using the spring file found on adobe 
exchange.  I have also included my .mxml file, but it is just a simple test to 
see if I can actually get it to work.  It is exactly the same as the remoting 
example provided by the turnkey download.  There are no errors in any logs so I 
assume that the spring container and webapp itself is loading alright.  I just 
get the error when I click the button to get the data.  Here are my 
configuation files:

WEB.XML
?xml version=1.0 encoding=UTF- 8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN http://java. sun.com/dtd/ web-app_2_ 3.dtd
web-app
    display-nameBuild Reporting Dashboard/display-name
    
    !-- log4j setup --
    context-param
    param-namelog4jConfigLocation/param-name
    param-value/WEB-INF/log4j. xml/param-value
    /context-param
    
    !--applicationConte xt.xml setup --
    context-param
    param-namecontextConfigLocati on/param-name
    param-value/WEB-INF/applicatio nContext. xml/param-value
    /context-param
    
    context-param
  param-nameflex.class.path/param-name
  param-value/WEB-INF/flex/ hotfixes/param-value
/context-param

    
    filter
    filter-nameCharacterEncodingFi lter/filter-name
    filter-class
    org.springframework .web.filter. CharacterEncodin 
gFilter/filter-class
    init-param
    param-nameencoding/param-name
    param-valueUTF-8/param-value
    /init-param
    init-param
    param-nameforceEncoding/param-name
    param-valuetrue/param-value
    /init-param
    /filter
    
    filter-mapping
    filter-nameCharacterEncodingFi lter/filter-name
    url-pattern/*/url-pattern
    /filter-mapping
    filter-mapping
    filter-nameCharacterEncodingFi lter/filter-name
    url-pattern*.do/url-pattern
    /filter-mapping
    
    listener
    listener-class
    org.springframework .web.util. Log4jConfigListe ner/listener-class
    /listener
    
    listener
    listener-class
    org..springframewor k .web.context. ContextLoaderLis 
tener/listener-class
    /listener
    
    !-- MessageBroker Servlet(BlazeDS) --
    servlet
    servlet-nameMessageBrokerServle t/servlet-name
    display-nameMessageBrokerServle t/display-name
    servlet-classflex.messaging. MessageBrokerSer vlet/servlet-class
    init-param
    param-nameservices.configurat ion.file/param-name
    param-value/WEB-INF/flex/ services- config.xml/param-value
    /init-param
    init-param
    param-nameflex.write.path/param-name
    param-value/WEB-INF/flex/param-value
  /init-param

    load-on-startup1/load-on-startup
    /servlet
    
    !-- Servlet setup (Spring HTTP) --
    servlet
    servlet-nameccdb/servlet-name
    servlet-class
    org.springframework .web.servlet. DispatcherServle t/servlet-class
    init-param
    param-namecontextConfigLocati on/param-name
    param-value/WEB-INF/servlet. xml/param-value
    /init-param
    load-on-startup1/load-on-startup
    /servlet
    
    servlet-mapping
    servlet-nameccdb/servlet-name
    url-pattern*.do/url-pattern
    /servlet-mapping
    
    servlet-mapping
    servlet-nameMessageBrokerServle t/servlet-name
    url-pattern/messagebroker/ */url-pattern
    /servlet-mapping
    
    welcome-file- list id=WelcomeFileList 
    welcome-fileindex.html/welcome-file
    welcome-fileApplication. html/welcome-file
    welcome-fileDashboard.html/welcome-file
    /welcome-file- list
    
/web-app

REMOTING-CONFIG. XML
?xml version=1.0 encoding=UTF- 8?
service id=remoting- service 
    class=flex. messaging. services. RemotingService

    adapters
    adapter-definition id=java-object class=flex. messaging

Re: [flexcoders]Convert a Java object to an ActionScript object

2008-09-25 Thread jitendra jain
[RemoteClass(alias=com.test.C)]
 public class C {
 public var testVar1:Number;
 public var testVar2:String;
 }

 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Eduardo Souza [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, 25 September, 2008 2:48:15 AM
Subject: [flexcoders]Convert a Java object to an ActionScript object


Hi everyone, I have another question. How can I convert a Java object to an 
ActionScript object without using LiveCycle? 


  Add more friends to your messenger and enjoy! Go to 
http://in.messenger.yahoo.com/invite/

Re: [flexcoders] Re: Using IResponder without Cairngorm

2008-09-25 Thread jitendra jain
Hi,

  The problem is that your code has so many asychronous call to the 
backend. what you have to do it first fire a remote object's method and then in 
result method, fire another remote object's method and so on. This way you can 
create a Sequence of Events. Hope this will help..Let me know.

This can be easily done with Cairngorm framework..
Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: quantum_ohm [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, 25 September, 2008 2:25:30 PM
Subject: [flexcoders] Re: Using IResponder without Cairngorm


Hi Josh,

thx for responding.
I'm tryin' to do this :
http://tech. groups.yahoo. com/group/ flexcoders/ message/126217

--- In [EMAIL PROTECTED] ups.com, Josh McDonald [EMAIL PROTECTED] wrote:

 It's part of Flex, you don't need Cairngorm to use it. What're you
trying to
 do?
 
 On Thu, Sep 25, 2008 at 5:44 PM, quantum_ohm charly.antoine@ ...wrote:
 
  Hello All,
 
  How could I use the IResponder interface without using Cairngorm ?
 
  I know this sounds dummy, but I never used it and am stuck with an
  ASync problem.
 
  Welcome to any help !
 
 
   - - --
 
  --
  Flexcoders Mailing List
  FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
  Alternative FAQ location:
 
https://share. acrobat.com/ adc/document. do?docid= 942dbdc8- e469-446f- 
b4cf-1e62079f684 7
  Search Archives:
  http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo! Groups
  Links
 
 
 
 
 
 
 -- 
 Therefore, send not to know For whom the bell tolls. It tolls for
thee.
 
 http://flex. joshmcdonald. info/
 
 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]


 


  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

Re: [flexcoders] Re: Using IResponder without Cairngorm

2008-09-25 Thread jitendra jain
 
private function manageUserResultHandler( evt:ResultEvent ) : void
{
vb_news.removeAllChildren();  //Here Vb_news is not visible as it is in main , 
pass vb_news object from main to this NewsManager class
afficheNews();
if ( evt.result == 0 )
{
dispatchEvent( new Event(VISIBLE_EVENT) );
}
else if ( evt.result == 1 )
{
dispatchEvent( new Event(INVISIBLE_EVENT) );
}
}



with Regards,
Jitendra Jain




- Original Message 
From: quantum_ohm [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, 25 September, 2008 3:30:29 PM
Subject: [flexcoders] Re: Using IResponder without Cairngorm


Hi Jitendra,

yes, I have several calls, but they are not all called at the same
time. Basically this is just simple CRUD, except the create() news
case which must return the get() news and refresh the page.
So I guess I have only to deal with two calls.

Cairngorm... mmh... I did think to that, but I'll have to rewrite all
the code :-( and I just made some simple tutorials with it...

--- In [EMAIL PROTECTED] ups.com, jitendra jain
jitendra_jain_ [EMAIL PROTECTED] wrote:

 Hi,
 
  The problem is that your code has so many asychronous call to
the backend. what you have to do it first fire a remote object's
method and then in result method, fire another remote object's method
and so on. This way you can create a Sequence of Events. Hope this
will help..Let me know.
 
 This can be easily done with Cairngorm framework..
 Thanks,
 
 with Regards,
 Jitendra Jain
 
 
 
 
 - Original Message 
 From: quantum_ohm charly.antoine@ ...
 To: [EMAIL PROTECTED] ups.com
 Sent: Thursday, 25 September, 2008 2:25:30 PM
 Subject: [flexcoders] Re: Using IResponder without Cairngorm
 
 
 Hi Josh,
 
 thx for responding.
 I'm tryin' to do this :
 http://tech. groups.yahoo. com/group/ flexcoders/ message/126217
 
 --- In [EMAIL PROTECTED] ups.com, Josh McDonald dznuts@ wrote:
 
  It's part of Flex, you don't need Cairngorm to use it. What're you
 trying to
  do?
  
  On Thu, Sep 25, 2008 at 5:44 PM, quantum_ohm charly.antoine@
...wrote:
  
   Hello All,
  
   How could I use the IResponder interface without using Cairngorm ?
  
   I know this sounds dummy, but I never used it and am stuck with an
   ASync problem.
  
   Welcome to any help !
  
  
    - - --
  
   --
   Flexcoders Mailing List
   FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder
sFAQ.txt
   Alternative FAQ location:
  
 https://share. acrobat.com/ adc/document. do?docid= 942dbdc8-
e469-446f- b4cf-1e62079f684 7
   Search Archives:
   http://www.mail- archive.com/ flexcoders% 40yahoogroups.
comYahoo! Groups
   Links
  
  
  
  
  
  
  -- 
  Therefore, send not to know For whom the bell tolls. It tolls for
 thee.
  
  http://flex. joshmcdonald. info/
  
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: josh@
 
 
 
 
 
 Unlimited freedom, unlimited storage. Get it now, on
http://help. yahoo.com/ l/in/yahoo/ mail/yahoomail/ tools/tools- 08.html/


 


  Cricket on your mind? Visit the ultimate cricket website. Enter 
http://in.sports.yahoo.com/cricket/

Re: [flexcoders] Re: Using IResponder without Cairngorm

2008-09-25 Thread jitendra jain

why you can't do this
var nm : NewsManager= new NewsManager(Vb_news);

Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: quantum_ohm [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, 25 September, 2008 4:10:04 PM
Subject: [flexcoders] Re: Using IResponder without Cairngorm


I tried this, but can't pass a VBox in the main.mxml to a class ???

--- In [EMAIL PROTECTED] ups.com, jitendra jain
jitendra_jain_ [EMAIL PROTECTED] wrote:

 Â 
 private function manageUserResultHan dler( evt:ResultEvent ) : void
 {
 vb_news.removeAllCh ildren();Â //Here Vb_news is not visible as it
is in main , pass vb_news object from main to this NewsManager class
 afficheNews( );
 if ( evt.result == 0 )
 {
 dispatchEvent( new Event(VISIBLE_ EVENT) );
 }
 else if ( evt.result == 1 )
 {
 dispatchEvent( new Event(INVISIBLE_ EVENT) );
 }
 }
 
 
 
 with Regards,
 Jitendra Jain
 
 
 
 
 - Original Message 
 From: quantum_ohm charly.antoine@ ...
 To: [EMAIL PROTECTED] ups.com
 Sent: Thursday, 25 September, 2008 3:30:29 PM
 Subject: [flexcoders] Re: Using IResponder without Cairngorm
 
 
 Hi Jitendra,
 
 yes, I have several calls, but they are not all called at the same
 time. Basically this is just simple CRUD, except the create() news
 case which must return the get() news and refresh the page.
 So I guess I have only to deal with two calls.
 
 Cairngorm... mmh... I did think to that, but I'll have to rewrite all
 the code :-( and I just made some simple tutorials with it...
 
 --- In [EMAIL PROTECTED] ups.com, jitendra jain
 jitendra_jain_ 2007@ wrote:
 
  Hi,
  
   The problem is that your code has so many asychronous call to
 the backend. what you have to do it first fire a remote object's
 method and then in result method, fire another remote object's method
 and so on. This way you can create a Sequence of Events. Hope this
 will help..Let me know.
  
  This can be easily done with Cairngorm framework..
  Thanks,
  
  with Regards,
  Jitendra Jain
  
  
  
  
  - Original Message 
  From: quantum_ohm charly.antoine@ ...
  To: [EMAIL PROTECTED] ups.com
  Sent: Thursday, 25 September, 2008 2:25:30 PM
  Subject: [flexcoders] Re: Using IResponder without Cairngorm
  
  
  Hi Josh,
  
  thx for responding.
  I'm tryin' to do this :
  http://tech. groups.yahoo. com/group/ flexcoders/ message/126217
  
  --- In [EMAIL PROTECTED] ups.com, Josh McDonald dznuts@ wrote:
  
   It's part of Flex, you don't need Cairngorm to use it. What're you
  trying to
   do?
   
   On Thu, Sep 25, 2008 at 5:44 PM, quantum_ohm charly.antoine@
 ...wrote:
   
Hello All,
   
How could I use the IResponder interface without using Cairngorm ?
   
I know this sounds dummy, but I never used it and am stuck with an
ASync problem.
   
Welcome to any help !
   
   
 - - --
   
--
Flexcoders Mailing List
FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder
 sFAQ.txt
Alternative FAQ location:
   
  https://share. acrobat.com/ adc/document. do?docid= 942dbdc8-
 e469-446f- b4cf-1e62079f684 7
Search Archives:
http://www.mail- archive.com/ flexcoders% 40yahoogroups.
 comYahoo! Groups
Links
   
   
   
   
   
   
   -- 
   Therefore, send not to know For whom the bell tolls. It tolls for
  thee.
   
   http://flex. joshmcdonald. info/
   
   :: Josh 'G-Funk' McDonald
   :: 0437 221 380 :: josh@
  
  
  
  
  
  Unlimited freedom, unlimited storage. Get it now, on
 http://help. yahoo.com/ l/in/yahoo/ mail/yahoomail/ tools/tools-
08.html/
 
 
 
 
 
 Cricket on your mind? Visit the ultimate cricket website.
Enter http://in.sports. yahoo.com/ cricket/


 


  Be the first one to try the new Messenger 9 Beta! Go to 
http://in.messenger.yahoo.com/win/

Re: [flexcoders] Re: Using IResponder without Cairngorm

2008-09-25 Thread jitendra jain
Either try main.mxml to listen the VISIBLE_EVENT you are firing and put those 
methods in it.


 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: quantum_ohm [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, 25 September, 2008 4:37:00 PM
Subject: [flexcoders] Re: Using IResponder without Cairngorm


tried this, but doesn't work better... :-(

--- In [EMAIL PROTECTED] ups.com, jitendra jain
jitendra_jain_ [EMAIL PROTECTED] wrote:

 
 why you can't do this
 var nm : NewsManager=Â new NewsManager( Vb_news);
 
 Thanks,
 
 with Regards,
 Jitendra Jain
 
 
 
 
 - Original Message 
 From: quantum_ohm charly.antoine@ ...
 To: [EMAIL PROTECTED] ups.com
 Sent: Thursday, 25 September, 2008 4:10:04 PM
 Subject: [flexcoders] Re: Using IResponder without Cairngorm
 
 
 I tried this, but can't pass a VBox in the main.mxml to a class ???
 
 --- In [EMAIL PROTECTED] ups..com, jitendra jain
 jitendra_jain_ 2007@ wrote:
 
  Â 
  private function manageUserResultHan dler( evt:ResultEvent ) : void
  {
  vb_news.removeAllCh ildren();Â //Here Vb_news is not visible as it
 is in main , pass vb_news object from main to this NewsManager class
  afficheNews( );
  if ( evt.result == 0 )
  {
  dispatchEvent( new Event(VISIBLE_ EVENT) );
  }
  else if ( evt.result == 1 )
  {
  dispatchEvent( new Event(INVISIBLE_ EVENT) );
  }
  }
  
  
  
  with Regards,
  Jitendra Jain
  
  
  
  
  - Original Message 
  From: quantum_ohm charly.antoine@ ...
  To: [EMAIL PROTECTED] ups.com
  Sent: Thursday, 25 September, 2008 3:30:29 PM
  Subject: [flexcoders] Re: Using IResponder without Cairngorm
  
  
  Hi Jitendra,
  
  yes, I have several calls, but they are not all called at the same
  time. Basically this is just simple CRUD, except the create() news
  case which must return the get() news and refresh the page.
  So I guess I have only to deal with two calls.
  
  Cairngorm... mmh... I did think to that, but I'll have to rewrite all
  the code :-( and I just made some simple tutorials with it...
  
  --- In [EMAIL PROTECTED] ups.com, jitendra jain
  jitendra_jain_ 2007@ wrote:
  
   Hi,
   
    The problem is that your code has so many
asychronous call to
  the backend. what you have to do it first fire a remote object's
  method and then in result method, fire another remote object's method
  and so on. This way you can create a Sequence of Events. Hope this
  will help..Let me know.
   
   This can be easily done with Cairngorm framework..
   Thanks,
   
   with Regards,
   Jitendra Jain
   
   
   
   
   - Original Message 
   From: quantum_ohm charly..antoine@ ...
   To: [EMAIL PROTECTED] ups.com
   Sent: Thursday, 25 September, 2008 2:25:30 PM
   Subject: [flexcoders] Re: Using IResponder without Cairngorm
   
   
   Hi Josh,
   
   thx for responding.
   I'm tryin' to do this :
   http://tech. groups.yahoo. com/group/ flexcoders/ message/126217
   
   --- In [EMAIL PROTECTED] ups.com, Josh McDonald dznuts@ wrote:
   
It's part of Flex, you don't need Cairngorm to use it. What're you
   trying to
do?

On Thu, Sep 25, 2008 at 5:44 PM, quantum_ohm charly.antoine@
  ...wrote:

 Hello All,

 How could I use the IResponder interface without using
Cairngorm ?

 I know this sounds dummy, but I never used it and am stuck
with an
 ASync problem.

 Welcome to any help !


  - - --

 --
 Flexcoders Mailing List
 FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder
  sFAQ.txt
 Alternative FAQ location:

   https://share. acrobat.com/ adc/document. do?docid= 942dbdc8-
  e469-446f- b4cf-1e62079f684 7
 Search Archives:
 http://www.mail- archive.com/ flexcoders% 40yahoogroups.
  comYahoo! Groups
 Links






-- 
Therefore, send not to know For whom the bell tolls. It tolls for
   thee.

http://flex. joshmcdonald. info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: josh@
   
   
   
   
   
   Unlimited freedom, unlimited storage. Get it now, on
  http://help. yahoo.com/ l/in/yahoo/ mail/yahoomail/ tools/tools-
 08.html/
  
  
  
  
  
  Cricket on your mind? Visit the ultimate cricket website.
 Enter http://in.sports. yahoo.com/ cricket/
 
 
 
 
 
   Be the first one to try the new Messenger 9 Beta! Go to
http://in.messenger .yahoo.com/ win/





  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

Re: [flexcoders] Re: What is equivalent of HttpServletRequest request HttpServletResponse response object in mxml

2008-09-29 Thread jitendra jain
If you need to pass request parameters to a servlet use flash.net.URLVariables 
and flash.net.URLRequest
Hope this might be helpful to you.
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Tracy Spratt [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, 29 September, 2008 12:36:35 PM
Subject: [flexcoders] Re: What is equivalent of HttpServletRequest request  
HttpServletResponse response object in mxml


Please do not hijack threads. It makes things very ugly in a 
threaded reader.

Start your own subject.

Tracy
P.S. I don't do Java but probably you want HTTPService;

--- In [EMAIL PROTECTED] ups.com, Mohit Arora marora_tiet@ ... 
wrote:

 Hi All
 
 I need to pass HttpServletRequest request  HttpServletResponse 
response to a remote object(written in java) function as parameters 
from my mxml file.
 
 I tried many option but nothing worked.
 
 Please help
 
 Thanks in advance
 
 Mohit


 


  Download prohibited? No problem. CHAT from any browser, without download. 
Go to http://in.webmessenger.yahoo.com/

Re: [flexcoders] mx:PopUpMenuButton drop down menu looks blurd when wmode is opaque

2008-09-29 Thread jitendra jain
Google Chrome needs to be more mature. Please avoid using Google Chrome. Try 
with IE7 . Don't waste your time with Google Chrome
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Jonathan Lee [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, 28 September, 2008 4:03:15 PM
Subject: [flexcoders] mx:PopUpMenuButton drop down menu looks blurd when wmode 
is opaque


Hello all:
I'm using the mx:PopUpMenuButton and I set the dataProvider to be a fixed XML 
list in the mxml file

Everything looks fine if the wmode in browser is set as window. But I want to 
use transparent or opaque. Then, when I use Google Chrome, or IE7, the drop 
down menu looks some fuzzy, I need to use mouse to move on it to make it 
finished the drawing function.

Any idea about that?

Thanks.

 


  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

Re: [flexcoders] Rich Text Editor Problem

2008-09-29 Thread jitendra jain
If possible, please paste some code ..

 Thanks,

with Regards,
Jitendra Jain





- Original Message 
From: jainleena82 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, 29 September, 2008 4:17:03 PM
Subject: [flexcoders] Rich Text Editor Problem


Hi,

I am using a Rich Text Editor.My problem is that it is taking the font 
as Arial Embedded from the CSS.And When i try to change the font ,the 
text inside it disappears,the focus goes off from the RTE.

How can i do away with this issue?If i comment out the css everything 
works fine.'

Thanks and Regards,
Leena Jain




  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

Re: [flexcoders] Word wrap doesn't work with a dynamically loaded font.

2008-09-29 Thread jitendra jain
Have u used wordWrap =true of TextArea control??

 Thanks,

with Regards,
Jitendra Jain





- Original Message 
From: Rob Kunkle [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, 29 September, 2008 4:57:55 PM
Subject: [flexcoders] Word wrap doesn't work with a dynamically loaded font.


Hello all -

My application dynamically loads fonts at runtime from separate .swf
files using the StyleManager class.

Everything is working great, except that fonts that are loaded
dynamically won't do word wrap in a TextArea control. I've searched
far and wide on the internet about this, and cant find any obvious
answers for how to fix this.

Has anyone run into something similar?

Thanks!




  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

Re: [flexcoders] Re: Word wrap doesn't work with a dynamically loaded font.

2008-09-29 Thread jitendra jain
Use this properties of TextArea control
verticalScrollPolicy=
horizontalScrollPolicy=off offThanks,

with Regards,
Jitendra Jain




- Original Message 
From: Rob Kunkle [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, 29 September, 2008 7:44:44 PM
Subject: [flexcoders] Re: Word wrap doesn't work with a dynamically loaded font.


Hi Jitendra -

Thanks! This helped. But now I need to get rid of the scroll bars on
the textArea control. Is there a way to just turn them off?

Rob

--- In [EMAIL PROTECTED] ups.com, jitendra jain
jitendra_jain_ [EMAIL PROTECTED] wrote:

 Have u used wordWrap =true of TextArea control??
 
 Thanks,
 
 with Regards,
 Jitendra Jain
 
 
 
 
 
 - Original Message 
 From: Rob Kunkle [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] ups.com
 Sent: Monday, 29 September, 2008 4:57:55 PM
 Subject: [flexcoders] Word wrap doesn't work with a dynamically
loaded font.
 
 
 Hello all -
 
 My application dynamically loads fonts at runtime from separate .swf
 files using the StyleManager class.
 
 Everything is working great, except that fonts that are loaded
 dynamically won't do word wrap in a TextArea control. I've searched
 far and wide on the internet about this, and cant find any obvious
 answers for how to fix this.
 
 Has anyone run into something similar?
 
 Thanks!
 
 
 
 
 Unlimited freedom, unlimited storage. Get it now, on
http://help. yahoo.com/ l/in/yahoo/ mail/yahoomail/ tools/tools- 08.html/


__._,_..___ 
Messages in this topic (3) Reply (via web post) | Start a new topic 
Messages 
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
Change settings via the Web (Yahoo! ID required) 
Change settings via email: Switch delivery to Daily Digest | Switch format to 
Traditional 
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe 
Recent Activity
*  59
New MembersVisit Your Group 
Yahoo! Finance
It's Now Personal
Guides, news,
advice  more.
Yahoo! Groups
Familyographer Zone
Join a group and
share your pictures.
Cat Zone
on Yahoo! Groups
Join a Group
all about cats.
. 
 


  Download prohibited? No problem. CHAT from any browser, without download. 
Go to http://in.webmessenger.yahoo.com/

Re: [flexcoders] URLRequest, ByteArray, and the 0 byte

2008-09-29 Thread jitendra jain
All the request data that is send is String. 
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Troy Gilbert [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 30 September, 2008 9:03:14 AM
Subject: Re: [flexcoders] URLRequest, ByteArray, and the 0 byte


 We're also working around this by Base64-encoding, but this is clearly
 less than ideal. It definitely seems like a Flash Player bug. We ran
 into this when doing AlivePDF REMOTE saves (i.e., bouncing the file off
 the server). Do you know when you ran into this, Troy? I tested our
 particular problem on Windows and on OS X last week, and neither had the
 issue.

// this byte array probably needs to be bigger to actually end up
// with a zero-byte in the compressed data
var bytes:ByteArray = new ByteArray();
bytes.writeUTFBytes (This is just some filler text.);
bytes.compress( );

// URLVariables automatically encodes its dynamic properties
// using a www-form-url- encode format, i.e. %12%34%56%78% 90
var variables:URLVariab les = new URLVariables( );
variables.username = troy;
variables.action = save;
variables.data = bytes;

// when the request is made, 'variables' is converted to a string
// the nulls in the ByteArray are not escaped, so they truncate the data
var request:URLRequest = new URLRequest(http://mywebserver/ myscript. php);
request.method = URLRequestMethod. POST;
request.data = variables;

// Troy.
 


  Be the first one to try the new Messenger 9 Beta! Go to 
http://in.messenger.yahoo..com/win/

Re: [flexcoders] URLRequest, ByteArray, and the 0 byte

2008-09-29 Thread jitendra jain
If you are using Java as server side , then this string need to be converted 
into bytes and then send it to the ServletInputStream. Might this will be help.
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: jitendra jain [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 30 September, 2008 9:13:59 AM
Subject: Re: [flexcoders] URLRequest, ByteArray, and the 0 byte


All the request data that is send is String. 
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Troy Gilbert troy.gilbert@ gmail.com
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, 30 September, 2008 9:03:14 AM
Subject: Re: [flexcoders] URLRequest, ByteArray, and the 0 byte


 We're also working around this by Base64-encoding, but this is clearly
 less than ideal. It definitely seems like a Flash Player bug. We ran
 into this when doing AlivePDF REMOTE saves (i.e., bouncing the file off
 the server). Do you know when you ran into this, Troy? I tested our
 particular problem on Windows and on OS X last week, and neither had the
 issue.

// this byte array probably needs to be bigger to actually end up
// with a zero-byte in the compressed data
var bytes:ByteArray = new ByteArray();
bytes.writeUTFBytes (This is just some filler text.);
bytes.compress( );

// URLVariables automatically encodes its dynamic properties
// using a www-form-url- encode format, i.e. %12%34%56%78% 90
var variables:URLVariab les = new URLVariables( );
variables.username = troy;
variables.action = save;
variables.data = bytes;

// when the request is made, 'variables' is converted to a string
// the nulls in the ByteArray are not escaped, so they truncate the data
var request:URLRequest = new URLRequest(http://mywebserver/ myscript. php);
request.method = URLRequestMethod. POST;
request.data = variables;

// Troy.


Add more friends to your messenger and enjoy! Invite them now.  


  From Chandigarh to Chennai - find friends all over India. Go to 
http://in.promos.yahoo.com/groups/citygroups/

Re: [flexcoders] Problem referring to TextInput in itemRenderer

2008-09-29 Thread jitendra jain
Try itemEditEnd event  of data grid. This event is fired when the data is 
edited and the user is about to lose the  focus. Now in this event try to do 
whatever validation you need to do and if the data is not valid, call 
event.preventDefault() 
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Tracy Spratt [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 30 September, 2008 2:05:29 AM
Subject: RE: [flexcoders] Problem referring to TextInput in itemRenderer


Ah, yes.
 
Item renderers are “recycled”.  Only the ones actually visible even exist.  If 
you have any state in an item renderer that is row / item specific, you must 
ensure that that state is set from a value in the dataProvider item, in the set 
data() override.  Further, if a user interacts with the renderer and changes 
the visual state, like entering a text value in a TextInput, you must update 
the dataProvider item with that value.
 
I would advise doing a bit of reading on itemRenderers before going much 
further.
 
Tracy
 



From:[EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf 
Of oneworld95
Sent: Monday, September 29, 2008 4:05 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Problem referring to TextInput in itemRenderer
 
Hi. I'm trying to refer to the TextInput control of a specific row
when the user clicks a button in that row's itemRenderer. I can change
the text in that row's TextInput, but then when I scroll I noticed
that other rows (at random) have their TextInput control set to the
same value. If I scroll up all the way, the item I had edit no longer
has its new value! I also tried reading the value from the event
parameter but had same result.

Here's the MXML followed by the click handler,

mx:DataGridColumn id=myCol headerText= Test width=250
mx:itemRenderer
mx:Component
mx:HBox horizontalGap= 2
mx:TextInput id=txtPhoto /
mx:Script
![CDATA[
import mx.controls. listClasses. ListBase;
]]
/mx:Script 
mx:Button id=btnBrowse label=Browse click=
outerDocument. doBrowse( event, this )/
mx:Button id=btnUpload label=Upload
click=outerDocumen t.doSubmit( event )/
/mx:HBox
/mx:Component
/mx:itemRenderer
/mx:DataGridColumn 

// Called when the Browse button is clicked
public function doBrowse( event:Event, hbox:HBox ):void
{
var text:TextInput = hbox.getChildAt( 0) as TextInput;
text.text = testing;
return;
} 


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: [flexcoders] How to stop the updateDisplay event propagation?

2008-09-30 Thread jitendra jain
Provide with some test code..
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Manu Dhanda [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 30 September, 2008 2:25:00 PM
Subject: [flexcoders] How to stop the updateDisplay event propagation?



Hi,

I am having mouse pointer flickering issue while one of the component is
still preparing it's data. And that flicking is caused because I am
assigning renderer's through a for loop to a grid.

Can someone give me a pointer like what I need to do?
Because I am really tired of looking for this issue and kinda unable to find
the right approach to resolve this problem :(

Thanks,
Manu.
-- 
View this message in context: http://www.nabble. com/How-to- stop-the- 
updateDisplay- event-propagatio n--tp19738415p19 738415.html
Sent from the FlexCoders mailing list archive at Nabble.com.

 


  Add more friends to your messenger and enjoy! Go to 
http://in.messenger.yahoo.com/invite/

Re: [flexcoders] Debug mode or normal mode?

2008-09-30 Thread jitendra jain
when your application is running on the server while in debug mode you will 
have the following address in your browser window
 
http://localhost:8081/myApp/main.html?debug=true
 
for normal mode it will be:
 
http://localhost:8081/myApp/main.html
 
and also right click on the flash player to see the context menu has option 
debugger. From this u can know that flash player supports debugging. Let me 
know your more questions if any..
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Manu Dhanda [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 30 September, 2008 4:08:01 PM
Subject: [flexcoders] Debug mode or normal mode?



Hii guyz,

How do u identify from inside your application whether your app is running
in Debug Mode or Normal Mode?

Thanks.
-- 
View this message in context: http://www.nabble. com/Debug- mode-or-normal- 
mode--tp19739663 p19739663. html
Sent from the FlexCoders mailing list archive at Nabble.com.

 


  Bollywood news, movie reviews, film trailers and more! Go to 
http://in.movies.yahoo.com/

Re: [flexcoders] determine if image source exists

2008-09-30 Thread jitendra jain
Use Embed keyword that will help embedding the image in a class while 
compiling.[Embed(assets/status.png)]
private var status:Class;Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: bhaq1972 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 30 September, 2008 5:35:19 PM
Subject: [flexcoders] determine if image source exists


How can I check if a the jpg source defined by a string really exists. 
eg

var image1:Image = new Image();
var sHello:String = images/hello. jpg;

if(sHello exists) // this is the bit i need help on
{
image1.source = sHello;
}

tia
bod

  image.source=status; 


  Connect with friends all over the world. Get Yahoo! India Messenger at 
http://in.messenger.yahoo.com/?wm=n/

Re: [flexcoders] determine if image source exists

2008-09-30 Thread jitendra jain
Yes, Paul you are absolutely right. Please take a note of this while handling 
with images specially dealing with Embed keyword.
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Paul Andrews [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, 30 September, 2008 5:55:50 PM
Subject: Re: [flexcoders] determine if image source exists


 
..but understand that it's no longer an external asset and will be embedded in 
your swf. If the png changes after you publish the swf, the change won't be 
picked up until you republish.
- Original Message - 
From: jitendra jain 
To: [EMAIL PROTECTED] ups.com 
Sent: Tuesday, September 30, 2008 1:10 PM
Subject: Re: [flexcoders] determine if image source exists

Use Embed keyword that will help embedding the image in a class while 
compiling..[Embed(assets/ status.png )]
private var status:Class; image.source= status; Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: bhaq1972 [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, 30 September, 2008 5:35:19 PM
Subject: [flexcoders] determine if image source exists


How can I check if a the jpg source defined by a string really exists. 
eg

var image1:Image = new Image();
var sHello:String = images/hello. jpg;

if(sHello exists) // this is the bit i need help on
{
image1.source = sHello;
}

tia
bod



Did you know? You can CHAT without downloading messenger. Click here 
__.._,_.___ 
Messages in this topic (3) Reply (via web post) | Start a new topic 
Messages 
--
Flexcoders Mailing List
FAQ: http://groups.yahoo..com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
Change settings via the Web (Yahoo! ID required) 
Change settings via email: Switch delivery to Daily Digest | Switch format to 
Traditional 
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe 
Recent Activity
*  60
New MembersVisit Your Group 
Yahoo! Finance
It's Now Personal
Guides, news,
advice  more.
Real Food Group
Share recipes,
restaurant ratings
and favorite meals.
Best of Y! Groups
Check it out
and nominate your
group to be featured.
. 
 


  Share files, take polls, and make new friends - all under one roof. Go to 
http://in.promos.yahoo.com/groups/

Re: [flexcoders] URLRequest, ByteArray, and the 0 byte

2008-09-30 Thread jitendra jain
Please check the following and it will clear what i need to say..
 
The way in which the data is used depends on the type of object used:
* If the object is a ByteArray object, the binary data of the ByteArray 
object is used as POST data. For GET, data of ByteArray type is not supported. 
Also, data of ByteArray type is not supported for FileReference.upload() and 
FileReference.download(). 
* If the object is a URLVariables object and the method is POST, the 
variables are encoded using x-www-form-urlencoded format and the resulting 
string is used as POST data. An exception is a call to FileReference.upload(), 
in which the variables are sent as separate fields in a multipart/form-data 
post. 
* If the object is a URLVariables object and the method is GET, the 
URLVariables object defines variables to be sent with the URLRequest object. 
* Otherwise, the object is converted to a string, and the string is 
used as the POST or GET data. 
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Maciek Sakrejda [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 30 September, 2008 9:13:51 PM
Subject: Re: [flexcoders] URLRequest, ByteArray, and the 0 byte


That is not what the documentation says:

If the object is a ByteArray object, the binary data of the ByteArray
object is used as POST data. For GET, data of ByteArray type is not
supported. Also, data of ByteArray type is not supported for
FileReference. upload() and FileReference. download( ).

from
http://livedocs. adobe.com/ flex/3/langref/ flash/net/ URLRequest. html#data

I was doing a POST with a ByteArray as the data. Again, this works
correctly under Windows and OS X, so I'm pretty sure this is a Player
bug under Linux.
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso. com

-Original Message-
From: jitendra jain jitendra_jain_ [EMAIL PROTECTED] com
Reply-To: [EMAIL PROTECTED] ups.com
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] URLRequest, ByteArray, and the 0 byte
Date: Tue, 30 Sep 2008 09:13:59 +0530 (IST)

All the request data that is send is String. 

Thanks,

with Regards,
Jitendra Jain

- Original Message 
From: Troy Gilbert troy.gilbert@ gmail.com
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, 30 September, 2008 9:03:14 AM
Subject: Re: [flexcoders] URLRequest, ByteArray, and the 0 byte

 We're also working around this by Base64-encoding, but this is clearly
 less than ideal. It definitely seems like a Flash Player bug. We ran
 into this when doing AlivePDF REMOTE saves (i.e., bouncing the file
off
 the server). Do you know when you ran into this, Troy? I tested our
 particular problem on Windows and on OS X last week, and neither had
the
 issue.

// this byte array probably needs to be bigger to actually end up
// with a zero-byte in the compressed data
var bytes:ByteArray = new ByteArray();
bytes.writeUTFBytes (This is just some filler text.);
bytes.compress( );

// URLVariables automatically encodes its dynamic properties
// using a www-form-url- encode format, i.e. %12%34%56%78% 90
var variables:URLVariab les = new URLVariables( );
variables.username = troy;
variables.action = save;
variables.data = bytes;

// when the request is made, 'variables' is converted to a string
// the nulls in the ByteArray are not escaped, so they truncate the data
var request:URLRequest = new URLRequest(http://mywebserver/ myscript.
php);
request.method = URLRequestMethod. POST;
request.data = variables;

// Troy.

 _ _ _ _ _ _
Add more friends to your messenger and enjoy! Invite them now.

 


  Be the first one to try the new Messenger 9 Beta! Go to 
http://in.messenger.yahoo.com/win/

[flexcoders] Eclipse not Building

2008-10-06 Thread jitendra jain
Hi Guys,

  I have tried of cleaning and building Flex project using Eclipse. I was 
stunned to see that my debugger points to some commented code. Please help.
Cleaning and building doesn't helped me.. If any other way to do it??
 Thanks,

with Regards,
Jitendra Jain



  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: [flexcoders] Re: FlexBuilder issue

2008-10-07 Thread jitendra jain
Make sure your library path points to WEB-INF/flex/locale/{locale}
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Greg Morphis [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, 6 October, 2008 11:32:49 PM
Subject: [flexcoders] Re: FlexBuilder issue


to complicate matters.. when I go to import a contol, for example
Alert.. I type import mx.
controls inst an option, collections and core others but no mx.controls. .

reinstall in order?

On Mon, Oct 6, 2008 at 11:53 AM, Greg Morphis [EMAIL PROTECTED] com wrote:
 I recently uninstalled the flex builder 2 plugin and reinstalled it.
 I'm having problems with autocomplete in mxml files and when I go to
 create a new MXML Component there's Canvas in the dropdown but nothing
 else.
 I can type in HBox or whatever but it's fairly annoying.. Any ideas to try?

 


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: [flexcoders] Eclipse not Building

2008-10-07 Thread jitendra jain
In fact I did all the things.

At last i deleted the bin-debug folder and it helped me. But even i check 
'Build Automatically'  option from Eclipse. It looks it is not building. 
Everytime i have to delete the bin-debug folder to reflect the changes. It was 
not happening before. But i notice this frequently from couple of days. 
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Ryan Gravener [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, 6 October, 2008 5:33:51 PM
Subject: Re: [flexcoders] Eclipse not Building


make sure you stop the debugger, clear your cache, clean the project
and then set the breakpoint.

On 10/6/08, jitendra jain jitendra_jain_ [EMAIL PROTECTED] com wrote:
 Hi Guys,

 I have tried of cleaning and building Flex project using Eclipse. I was
 stunned to see that my debugger points to some commented code. Please help.
 Cleaning and building doesn't helped me.. If any other way to do it??
 Thanks,

 with Regards,
 Jitendra Jain



 Add more friends to your messenger and enjoy! Go to
 http://messenger. yahoo.com/ invite/

-- 
Ryan Gravener
http://twitter. com/ryangravener
 
Messages in this topic (2) Reply (via web post) | Start a new topic 
Messages 
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
Change settings via the Web (Yahoo! ID required) 
Change settings via email: Switch delivery to Daily Digest | Switch format to 
Traditional 
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe 
Recent Activity
*  57
New MembersVisit Your Group 
Yahoo! Finance
It's Now Personal
Guides, news,
advice  more.
Yahoo! Groups
Join a program
to help you find
balance in your life.
Wellness Spot
on Yahoo! Groups
A resource for living
the Curves lifestyle.
. 
__,_.._,___ 


  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

Re: [flexcoders] handling data within a datagrid

2008-10-07 Thread jitendra jain
Use event.target.selectedItems instead of event.target.selectedItem
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Greg Morphis [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 7 October, 2008 7:22:23 AM
Subject: Re: [flexcoders] handling data within a datagrid


That was a typo instead of copying and pasting..
mySelectedRow is an ArrayCollection
I'm assignin the event.target. selectedItem which is a datagrid row to it..
I want to knmow why it's not working the way it should...

To learn I'm creating a budgetbook of sorts.. so here's what I have
copied and pasted..

public function handleChangeEvent( event:DataGridEv ent):void
{
MyModel..getInstance ().SelectedBudge tAC = event.target. selectedItem as
ArrayCollection;
Alert.show(MyModel. getInstance( ).SelectedBudget AC.getItemAt( 0).payee) ;
var evt:CairngormEvent = new CairngormEvent( MyControl. EVENT_GET_ 
BUDGET_DETAILS) ;
CairngormEventDispa tcher.getInstanc e().dispatchEven t(evt); 

}

public var Budget:BudgetVO;
public var BudgetAC:ArrayColle ction;
public var budgetID:Number;
public var SelectedBudgetAC: ArrayCollection;

sorry about that..

On Mon, Oct 6, 2008 at 9:02 PM, Tracy Spratt [EMAIL PROTECTED] com wrote:
 Then how are you expecting that setting mySelectedRow property will do
 anything regarding the SelectedBudgetAC property?

 Tracy



  _ _ __

 From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
 Behalf Of Greg Morphis
 Sent: Monday, October 06, 2008 8:02 PM
 To: [EMAIL PROTECTED] ups.com
 Subject: Re: [flexcoders] handling data within a datagrid



 No, just global variables

 On Mon, Oct 6, 2008 at 7:13 PM, Tracy Spratt [EMAIL PROTECTED] com wrote:
 Does MyModel handle the relationship between mySelectedRow and
 SelectedBudgetAC? Using setters or getters?

 Tracy



  _ _ __

 From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
 Behalf Of Greg Morphis
 Sent: Monday, October 06, 2008 7:48 PM
 To: [EMAIL PROTECTED] ups.com
 Subject: [flexcoders] handling data within a datagrid



 I've got my datagrid populating but I need to see that data in aother
 location within my app.
 In my MyModel.as
 I have a global variable
 public var mySelectedRow: ArrayCollection;

 I've tried setting this variable in the dataGrid change event...
 public function handleChangeEvent( event:Event) :void
 {
 MyModel.getInstance ().mySelectedRow = event.target. selectedItem as
 ArrayCollection;
 Alert.show(MyModel. getInstance( ).SelectedBudget AC.getItemAt( 0).amount) ;
 var evt:CairngormEvent = new
 CairngormEvent( MyControl. EVENT_GET_ DATA_DETAILS) ;
 CairngormEventDispa tcher.getInstanc e().dispatchEven t(evt);

 }

 The Alert returns a null error.. but it looks like it should be working?
 What I'm trying to do is I have a VO I need to populate.. I was going
 to do that within a command (is that best practice? -- to seperate
 display from logic)
 So anywho I'm trying to populate that arraycollection and then in the
 command do all the fun stuff...
 var myVO:FootVO = MyModel.getInstance ().FooVO;
 myVO.amount = MyModel.getInstance ().SelectedBudge tAC.getItemAt( 0).amount;

 but I'm getting a null error.. is this the proper way to load a VO
 from a selected DataGrid row?

 Thanks



 
 


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: [flexcoders] Re: How to make an RPC call secure

2008-10-10 Thread jitendra jain
If your question is when flex calls a java class and within the java class how 
do I access the associated session, then the code is below and it is in the 
documentation. The FlexSession class is located in the flex-messaging.jar.
 
FlexSession session = FlexContext.getFlexSession();
 
But whats the real question behind your question? what do you want to load?

If you want to secure your calls then try to read J2EE Specs
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Abdul Razak PM [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, 11 October, 2008 9:34:29 AM
Subject: [flexcoders] Re: How to make an RPC call secure


Hi All, 
I'm a newbie in flex, My searches and adobe gives a of links but I
need to get specified in my topic.
Those who are in handling security please give me an answer
(theoretical) whether a flex GUI with J2EE as server and using
remoting (rpc)for server call,
a) In J2EE project we will use session Id to ensure call comes from
the same user.is it necessary in flex client also? if so how we can
achieve session Id in client, some example also.
b) I have a login module in my application, may I need to
authenticate each of my remote call from flex.

Tom please don't loose my chance to get answer from others who could
kindly answer to me , even it's blonder.. all are not genious like but
everybody uses google and adobe docs first..

Regards,
Razak

--- In [EMAIL PROTECTED] ups.com, Tom Chiverton tom.chiverton@ ...
wrote:

 On Thursday 09 Oct 2008, Abdul Razak PM wrote:
  Please provide some links to study more about it.
 
 Is Google and Adobe's docs site broken ?
 
  Also What's the 
  possibility of Hacking our code if we didn't make it secure?
 
 Threat assessment is a whole skill into itself, you'd have to
explain a lot 
 more about what your service is, who is likely to attack it and with
what 
 resources.
 
  It's very helpful to get it's theoretical explanations too.
 
 Schneier's blog and /Beyond Fear/ book are good.
 
 -- 
 Tom Chiverton
 Helping to quickly leverage third-generation e-commerce
 
 
 
  * * * * 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB. A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP. Regulated by The
Solicitors Regulation Authority.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged. If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents. If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 2500.
 
 For more information about Halliwells LLP visit www.halliwells. com.


 


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo..com/invite/

Re: [flexcoders] Components and displaying into a new target

2008-10-10 Thread jitendra jain
Application.application will do the trick..
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Scott [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, 11 October, 2008 10:25:53 AM
Subject: [flexcoders] Components and displaying into a new target


I’ve got an issue that I can’t figure a way around.
 
My main.mxml has a canvas for the main display..  Within that canvas I have 
many different components.  One of which is an accordion control that contains 
several different components.  One of those components I have is a text window 
with a couple of buttons.  When I click a button within that accordion control 
I want it to open a new window on the main.mxml canvas.  Can I do that without 
using a custom event?
 
I tried to figure out if I could use the target=”” on the addChild line but I 
can’t figure out how to reference the canvas in the main.mxml.
 
TIA.
  Scott 


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: [flexcoders] Remote calls are not happening using blazeDS in secured environment

2008-10-10 Thread jitendra jain
Hi Venkat,

  I'm not sure but I think you need to dig out web.xml for https..

  Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: venkateswarlu naidu [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, 11 October, 2008 6:13:36 AM
Subject: Re: [flexcoders] Remote calls are not happening using blazeDS in 
secured environment


Yes Ryan, but its not tomcat, it is weblogic.

Its a secured+clustered environment , dont know how to handle this ..is there 
any setting/configurati on to do for clustering environment.

Please see the below email trail for more details.

Thansk for your time,

Regards,
Venkat. 



- Original Message 
From: Ryan Gravener [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Friday, 10 October, 2008 12:55:16 AM
Subject: Re: [flexcoders] Remote calls are not happening using blazeDS in 
secured environment


Is your apache http server redirecting to http from https?  

Ryan Gravener
http://twitter. com/ryangravener



On Thu, Oct 9, 2008 at 11:23 PM, venkateswarlu naidu contactvenku@ yahoo.co. 
in wrote:

Here is the exact error message that i am seeing in the server console
secure endpoint /messageborker/ secureamf must be contacted via secure protocol

Please help me on this.

Thanks  Regards,
Venkat. 



- Original Message 
From: venkateswarlu naidu contactvenku@ yahoo.co. in
To: [EMAIL PROTECTED] ups.com

Sent: Thursday, 9 October, 2008 9:33:56 PM
Subject: [flexcoders] Remote calls are not happening using blazeDS in secured 
environment


Hi All,

Even after adding my-secure-amf channel to remote-config. xml, our flex 
application coludn,t make remote calls.
I am seeing a failover to HTTP from a HTTPS request in the http url log, dont 
know why it is failing over to 
HTTP://context/messagebroker/ amf from HTTPS://context/messagebroker/ 
secureamf in a secured environment.

Actually this failover is not happening in DEV (in which we have both HTTP and 
HTTPS enabled).

The problem is specific to QA env (weblogic+clustered +secured) , i dont have 
any clues.

Can any body help me on this?

Thanks  Regards,
Venkat. 



- Original Message 
From: venkateswarlu naidu contactvenku@ yahoo.co. in

To: [EMAIL PROTECTED] ups.com
Sent: Wednesday, 8 October, 2008 10:41:13 PM
Subject: [flexcoders] could not establish connection to java data service from 
flex client using blazeDS


Hi All,

We have a flex+blazeDS+ Java based application, after deploying the application 
in QA env, java data service calls are not happening. When i see the URL log in 
HTTP sniffer tool, the request is getting stopped at URL context-root 
/messagebroker/ amf and finally seeing 502 (CANNOT_CONNECT) status.

The same application is working fine in DEV environment.

Our QA environment: secured, HTTPS, running behind firewalls and clustered.

Why the flex client can not connect to the java data services?

Any help is greatly appreciated.

Thanks  Regards,
Venkat.

Add more friends to your messenger and enjoy! Go to http://messenger. 
yahoo.com/ invite/



Add more friends to your messenger and enjoy! Invite them now. 

Be the first one to try the new Messenger 9 Beta! Click here. 


Connect with friends all over the world. Get Yahoo! India Messenger.  


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: [flexcoders] Java-like equals() method?

2008-10-10 Thread jitendra jain
In this case you need to use Bindable

BindingUtils.bindProperty(myUser,assignedToUser,combBox,selectedItem); if 
you want to reflect the changes from myUser.assignedToUser to 
CombBox.selectedItem..
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: frank_sommers [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, 11 October, 2008 8:24:18 AM
Subject: [flexcoders] Java-like equals() method?


Hi, 

I've been searching for a good solution to implementing object equality. I'm 
familiar with 
ObjectUtil, etc., but it still makes things harder than they should be. 

It may be best to illustrate this with an example. Suppose I have a ComboBox 
with an 
ArrayCollection as a data provider. The ArrayCollection is populated with value 
objects 
from the server, e.g., User objects. Suppose that I have a Task class, and a 
Task may 
have an assignedToUser property, which is a User instance. When the someone 
selects a 
Task (say, in a master-detail view), I would like the ComboBox to set its 
selectedItem to 
the user for the given Task, i.e., combBox.selectedIte m = myUser.assignedToUs 
er.

The problem is that no Task in the ComboBox's data provider and the User's 
assignedToUser property are ever equal using the == or === operators. 

So I would like to implement a custom equality for User, and have the ComboBox 
use that 
to set its selectedItem to the specified user. In Java, this is easily done by 
overriding the 
equals() and hashCode() methods of User. 

Any suggestions on how to achieve something similar in Flex would be much 
appreciated.

Thanks, 

-- Frank 

 


  Connect with friends all over the world. Get Yahoo! India Messenger at 
http://in.messenger.yahoo.com/?wm=n/

Re: {Disarmed} Re: [flexcoders] Components and displaying into a new target

2008-10-10 Thread jitendra jain
I thought you want to add dynamically to the Accordion control.
and it can be done like this application.accordionName.
Anyways Great...
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Scott [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, 11 October, 2008 11:18:50 AM
Subject: RE: {Disarmed} Re: [flexcoders] Components and displaying into a new 
target


Oh cool. Thanks!
 
However, that didn’t work…  I realized that the addChild I wanted to reference 
was not the correct component to work with.  The addState within that component 
opens up the dialog box.  Here’s the code:
 
?xml version=1.0 encoding=utf-8?
mx:Canvasxmlns:mx=http://www.adobe. com/2006/ mxml width=400 height=300 
label=AddContact  
mx:TitleWindowy=0 width=400 height=300 title=Add a new Contact Source 
showCloseButton=true fontSize=12 layout=absolute 
 
 
    mx:TextAreawordWrap=true editable=false width=348 
height=71 fontWeight=bold fontSize=12 
      mx:text![CDATA[Enter the name and email 
address.]]/mx:text
    /mx:TextArea
    mx:Labelx=34 y=110 text=Name width=59 fontSize=12/
    mx:TextInputx=120 y=108 id=txtName fontSize=12 width=228 
/
    mx:Labelx=34 y=168 text=Address fontSize=12/
    mx:TextInputx=120 y=166 id=txtAddress fontSize=12 
width=228/
    mx:Buttonx=120 y=209 label=Add/
    
 
  
/mx:TitleWindow
/mx:Canvas
 
How do I open this into the parent of the parent canvas?  I can’t see any place 
where the objects could use target=””.
 
Thanks!
 



From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of jitendra jain
Sent: Friday, October 10, 2008 11:39 PM
To: [EMAIL PROTECTED] ups.com
Subject: {Disarmed} Re: [flexcoders] Components and displaying into a new target
 
Application. application will do the trick..
 
Thanks,

with Regards,
Jitendra Jain
 
 
- Original Message 
From: Scott [EMAIL PROTECTED] us
To: [EMAIL PROTECTED] ups.com
Sent: Saturday, 11 October, 2008 10:25:53 AM
Subject: [flexcoders] Components and displaying into a new target
I’ve got an issue that I can’t figure a way around.
 
My main.mxml has a canvas for the main display.  Within that canvas I have many 
different components.  One of which is an accordion control that contains 
several different components.  One of those components I have is a text window 
with a couple of buttons.  When I click a button within that accordion control 
I want it to open a new window on the main.mxml canvas.  Can I do that without 
using a custom event?
 
I tried to figure out if I could use the target=”” on the addChild line but I 
can’t figure out how to reference the canvas in the main..mxml.
 
TIA.
  Scott





Unlimited freedom, unlimited storage. Get it now
-- 
This message has been scanned for viruses and 
dangerous content by MailScanner, and is 
believed to be clean.  


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: [flexcoders] Re: How to make an RPC call secure

2008-10-12 Thread jitendra jain
1) If you see services-config.xml , following tag

 channel-definition id=my-secure-amf 
class=mx.messaging.channels.SecureAMFChannel
endpoint 
url=https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure;
 class=flex.messaging.endpoints.SecureAMFEndpoint/
properties
!--HTTPS requests on some browsers do not work when pragma 
no-cache are set--
add-no-cache-headersfalse/add-no-cache-headers
/properties
/channel-definition


 Here the endpoints are secure as they are sent via https protocol. But if the 
user (client's browser ) no-cache is set, it fails.

2) Try to create different roles(Security-roles),. For this u need to read some 
J2EE stuff.

3)Form-Based Authentication is least secured.

So we can say that upto some extent we can secure our application. But we can't 
challenge. 
Thanks,

with Regards,
Jitendra Jain





- Original Message 
From: Abdul Razak PM [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, 11 October, 2008 3:04:54 PM
Subject: [flexcoders] Re: How to make an RPC call secure



HI Jitendra, 
Thanks for your kind reply, 
Let me to explain my question in detail .
suppose I have a small banking application 
a)I want ensure user's login
b) user can request a loan
c) admin can approve loan
d) admin can enter payment details etc...
For this I have provided a flex GUI to login , modules to enter loan
request details , approve details, payment details etc..
I gave the following remote calls and implemented with J2ee
createLoanRequest
searchLoanDetls
approveLoanDetails
changeLoanStatus
insertLoanInstallme ntDetls
Also I gave appropriate menus for user and admin depends on their
privilege.
My doubt is like this
i)  Suppose admin logged in the application and doing some
transaction. at the same time some hacker (who understands my remote
methods ) calling some remote methods. trying to change some methods.
It is from a different machine. is it happen...? , commonly J2EE uses
session Id to handle this case, In this case may I need to use
Session(Thanks Jitendra for ur session help).
ii) Have any common method to use a validator for each method call.?
iii) If I'm wrong pls help me with the theoretical reason.

Regards,
Razak


--- In [EMAIL PROTECTED] ups.com, jitendra jain
jitendra_jain_ [EMAIL PROTECTED] wrote:

 If your question is when flex calls a java class and within the
java class how 
 do I access the associated session, then the code is below and it
is in the 
 documentation. The FlexSession class is located in the
flex-messaging. jar.
 
 FlexSession session = FlexContext. getFlexSession( );
 
 But whats the real question behind your question? what do you want
to load?
 
 If you want to secure your calls then try to read J2EE Specs
 Â Thanks,
 
 with Regards,
 Jitendra Jain
 
 
 
 
 - Original Message 
 From: Abdul Razak PM [EMAIL PROTECTED] .
 To: [EMAIL PROTECTED] ups.com
 Sent: Saturday, 11 October, 2008 9:34:29 AM
 Subject: [flexcoders] Re: How to make an RPC call secure
 
 
 Hi All, 
 I'm a newbie in flex, My searches and adobe gives a of links but I
 need to get specified in my topic..
 Those who are in handling security please give me an answer
 (theoretical) whether a flex GUI with J2EE as server and using
 remoting (rpc)for server call,
 a) In J2EE project we will use session Id to ensure call comes from
 the same user.is it necessary in flex client also? if so how we can
 achieve session Id in client, some example also.
 b) I have a login module in my application, may I need to
 authenticate each of my remote call from flex.
 
 Tom please don't loose my chance to get answer from others who could
 kindly answer to me , even it's blonder... all are not genious like but
 everybody uses google and adobe docs first..
 
 Regards,
 Razak
 
 --- In [EMAIL PROTECTED] ups.com, Tom Chiverton tom.chiverton@ ...
 wrote:
 
  On Thursday 09 Oct 2008, Abdul Razak PM wrote:
   Please provide some links to study more about it.
  
  Is Google and Adobe's docs site broken ?
  
   Also What's the 
   possibility of Hacking our code if we didn't make it secure?
  
  Threat assessment is a whole skill into itself, you'd have to
 explain a lot 
  more about what your service is, who is likely to attack it and with
 what 
  resources.
  
   It's very helpful to get it's theoretical explanations too.
  
  Schneier's blog and /Beyond Fear/ book are good.
  
  -- 
  Tom Chiverton
  Helping to quickly leverage third-generation e-commerce
  
  
  
   * * * * 
  
  This email is sent for and on behalf of Halliwells LLP.
  
  Halliwells LLP is a limited liability partnership registered in
 England and Wales under registered number OC307980 whose registered
 office address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
 Manchester, M3 3EB. A list of members is available for inspection at
 the registered office. Any reference

Re: [flexcoders] Re: How to make an RPC call secure

2008-10-13 Thread jitendra jain
Yes you are right.. It is a static method and returns the Session for the 
current request. so you can use getId method of this class.

Moreover if you think of calling the remote methods from other GUI is not 
possible because they are in .class files.

However flex sends the remote method as a string (AMF)to the servlet(I guess) 
and Servlet converts those into the actual calls. 

 
This link will help you how the message is converted:

http://livedocs.adobe.com/flex/201/fds2javadoc/flex/messaging/io/amf/ActionMessageInput.html

Thanks,

with Regards,
Jitendra Jain





- Original Message 
From: Abdul Razak PM [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, 13 October, 2008 1:06:07 PM
Subject: [flexcoders] Re: How to make an RPC call secure


Hi jitendra, 
Thank you for your reply, I'm doing form-based login and different
role creation. My doubt is even if I didn't give role ,  The User who
knows my remote methods can call these methods from his client(suppose
he created a new GUI with my remote methods). How can I block it?,
https also giving secure transmission not blocking to access remote
method.

I think more knowledge in session Id could get a solution , because
if it is a Struts-J2EE transcation J2EE will check session Id. 
FlexContext. getFlexSession( ) is a Static method na? , How It can
give sessionId for each user? These are my doubts.

Regards, 
Razak

--- In [EMAIL PROTECTED] ups.com, jitendra jain
jitendra_jain_ [EMAIL PROTECTED] wrote:

 1) If you see services-config. xml , following tag
 
  channel-definition id=my-secure- amf
class=mx.messaging .channels. SecureAMFChannel 
 endpoint
url=https:/ /{server. name}:{server. port}/{context. root}/messagebro 
ker/amfsecure
class=flex. messaging. endpoints. SecureAMFEndpoin t/
 properties
 !--HTTPS requests on some browsers do not work when
pragma no-cache are set--
 add-no-cache- headersfalse /add-no-cache- headers
 /properties
 /channel-definitio n
 
 
  Here the endpoints are secure as they are sent via https protocol.
But if the user (client's browser ) no-cache is set, it fails.
 
 2) Try to create different roles(Security- roles),. For this u need
to read some J2EE stuff.
 
 3)Form-Based Authentication is least secured.
 
 So we can say that upto some extent we can secure our application.
But we can't challenge. 
 Thanks,
 
 with Regards,
 Jitendra Jain
 
 
 
 
 
 - Original Message 
 From: Abdul Razak PM [EMAIL PROTECTED] .
 To: [EMAIL PROTECTED] ups.com
 Sent: Saturday, 11 October, 2008 3:04:54 PM
 Subject: [flexcoders] Re: How to make an RPC call secure
 
 
 
 HI Jitendra, 
 Thanks for your kind reply, 
 Let me to explain my question in detail .
 suppose I have a small banking application 
 a)I want ensure user's login
 b) user can request a loan
 c) admin can approve loan
 d) admin can enter payment details etc...
 For this I have provided a flex GUI to login , modules to enter loan
 request details , approve details, payment details etc..
 I gave the following remote calls and implemented with J2ee
 createLoanRequest
 searchLoanDetls
 approveLoanDetails
 changeLoanStatus
 insertLoanInstallme ntDetls
 Also I gave appropriate menus for user and admin depends on their
 privilege.
 My doubt is like this
 i)  Suppose admin logged in the application and doing some
 transaction. at the same time some hacker (who understands my remote
 methods ) calling some remote methods. trying to change some methods.
 It is from a different machine. is it happen...? , commonly J2EE uses
 session Id to handle this case, In this case may I need to use
 Session(Thanks Jitendra for ur session help).
 ii) Have any common method to use a validator for each method call.?
 iii) If I'm wrong pls help me with the theoretical reason.
 
 Regards,
 Razak
 
 
 --- In [EMAIL PROTECTED] ups.com, jitendra jain
 jitendra_jain_ 2007@ wrote:
 
  If your question is when flex calls a java class and within the
 java class how 
  do I access the associated session, then the code is below and it
 is in the 
  documentation. The FlexSession class is located in the
 flex-messaging. jar.
  
  FlexSession session = FlexContext. getFlexSession( );
  
  But whats the real question behind your question? what do you want
 to load?
  
  If you want to secure your calls then try to read J2EE Specs
  Â Thanks,
  
  with Regards,
  Jitendra Jain
  
  
  
  
  - Original Message 
  From: Abdul Razak PM it-razak@ .
  To: [EMAIL PROTECTED] ups.com
  Sent: Saturday, 11 October, 2008 9:34:29 AM
  Subject: [flexcoders] Re: How to make an RPC call secure
  
  
  Hi All, 
  I'm a newbie in flex, My searches and adobe gives a of links but I
  need to get specified in my topic..
  Those who are in handling security please give me an answer
  (theoretical) whether a flex GUI with J2EE as server and using
  remoting (rpc)for server call,
  a) In J2EE project we will use session Id

Re: [flexcoders] Where is Alex Ahauri??

2008-10-14 Thread jitendra jain
Thanks Mike,

For your reply. Oh Great. Let him spend some time. Only Alex can give you 
answers.. But he is vey helpful and supportive. I think he is the one of the 
revolutionary guy in the Adobe team.

Even I tried for days to get answers and I struck my head with the walls often. 
But finally Alex's answers rescued me manytimes.

I want him to be here in his group as soon as possible to rescue many others 
.. :))

 Thanks,

with Regards,
Jitendra Jain





- Original Message 
From: Michael Schmalle [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 14 October, 2008 4:29:45 PM
Subject: Re: [flexcoders] Where is Alex Ahauri??


Hi,

He was on vacation for over a month.

If I was him, after that long of vacation not doing anything job related, I 
would be enjoying programming in flex again. I bet that is what he is doing... 
enjoying his work again. :)

I'm sure you will see him around. Personally, I can't see how he can answer so 
much when he still has his framework engineering to do.

Mike


On Tue, Oct 14, 2008 at 6:46 AM, jitendra jain jitendra_jain_ [EMAIL 
PROTECTED] com wrote:

Hi Alex,

So many days we have not witnessed any messages from you... Where are you??

 Thanks,

with Regards,
Jitendra Jain




 Add more friends to your messenger and enjoy! Invite them now. 


-- 
Teoti Graphix, LLC
http://www.teotigra phix.com

Teoti Graphix Blog
http://www.blog. teotigraphix. com

You can find more by solving the problem then by 'asking the question'.



  Share files, take polls, and make new friends - all under one roof. Go to 
http://in.promos.yahoo.com/groups/

[flexcoders] Where is Alex Ahauri??

2008-10-14 Thread jitendra jain
Hi Alex,

So many days we have not witnessed any messages from you... Where are you??

 Thanks,

with Regards,
Jitendra Jain


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

[flexcoders] web compiler

2008-10-17 Thread jitendra jain
Hi coders,

My application compiles well and run if i use the generated main.swf or 
main.html.
But when i run the application with main.mxml in the browser, it throws
Type was not found or a comile-time error... 

Thanks,

with Regards,
Jitendra Jain

Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger.yahoo.com/download.php

Re: [flexcoders] web compiler

2008-10-17 Thread jitendra jain
Paul, its Flex 3.

 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Paul Andrews [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, 17 October, 2008 1:21:03 PM
Subject: Re: [flexcoders] web compiler


 
Jitendra, what version 
of Flex is this? Flex 2  or 3 doesn't compile .mxml files 'on the fly' from 
a browser.
 
If you are using Flex 
2 or 3, why are ou trying to 'run' .mxml files in a browser?
 
Paul
- Original Message - 
From: jitendra jain 
To: flex group flex 
Sent: Friday, October 17, 2008 8:23  AM
Subject: [flexcoders] web compiler

Hi  coders,

My application compiles well and run if i use the generated  main.swf or 
main.html.
But when i run the application with main.mxml in the  browser, it throws
Type was not found or a comile-time error... 

Thanks,

with  Regards,
Jitendra  Jain

 

Send free SMS to your Friends on Mobile from your  Yahoo! Messenger. Download 
Now! http://messenger. yahoo.com/ download. php  

Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger.yahoo.com/download.php

Re: [flexcoders] web compiler

2008-10-17 Thread jitendra jain
I want to do some load testing and that's why iam using .mxml files. Its Flex 
3.1

 Thanks,

with Regards,
Jitendra Jain





- Original Message 
From: Paul Andrews [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, 17 October, 2008 1:21:03 PM
Subject: Re: [flexcoders] web compiler


 
Jitendra, what version 
of Flex is this? Flex 2  or 3 doesn't compile .mxml files 'on the fly' from 
a browser.
 
If you are using Flex 
2 or 3, why are ou trying to 'run' .mxml files in a browser?
 
Paul
- Original Message - 
From: jitendra jain 
To: flex group flex 
Sent: Friday, October 17, 2008 8:23  AM
Subject: [flexcoders] web compiler

Hi  coders,

My application compiles well and run if i use the generated  main.swf or 
main.html.
But when i run the application with main.mxml in the  browser, it throws
Type was not found or a comile-time error... 

Thanks,

with  Regards,
Jitendra  Jain

 

Send free SMS to your Friends on Mobile from your  Yahoo! Messenger. Download 
Now! http://messenger. yahoo.com/ download. php  


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: [flexcoders] Compile error with flex sdk 3.1

2008-10-20 Thread jitendra jain
Your flex build path is not pointing to Flex SDK3.1.0. Replace it if not...

 Thanks,

with Regards,
Jitendra Jain







From: Pankaj Arora [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, 18 October, 2008 10:28:05 AM
Subject: [flexcoders] Compile error with flex sdk 3.1


Hi,
I just upgraded to Flex SDK 3.1.0 and it
gives me error :
 
] Error: Unable to resolve resource bundle
datamanagement for locale en_US.
 
 
It is coming when I use mx.controls. AdvancedDataGrid .
 
Any ideas on how this can be resolved. This
was working fine with Flex SDK 3.0
 
Also in the 3.1 SDK release I don’t
see datavisualization. swc file needed for compiling advancedDataGrid. Any ideas
where I can download the swc file.
 
 
Thanks,
Pankaj Arora
 

Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger.yahoo.com/download.php

Re: [flexcoders] Listem to an event sent by a DataGrid ItemRenderer

2008-10-20 Thread jitendra jain
Where is the Timer control ? Which TimerEvent you are listening to ..

 Thanks,

with Regards,
Jitendra Jain







From: Sébastien Tromp [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, 18 October, 2008 3:48:39 PM
Subject: [flexcoders] Listem to an event sent by a DataGrid ItemRenderer


Hello,

I am stuck with an issue whose solution I cannot find on the Internet.

I have an application with a DataGrid:

mx:DataGrid id=currentConstruc tions
mx:columns
mx:DataGridColumn dataField=building Type/
mx:DataGridColumn dataField=endDate id=remainingTime 
itemRenderer= org.feilun. renderer. CountDownRendere r /
/mx:columns
/mx:DataGrid

where CountDownRenderer is a custom ItemRenderer that can dispatch a 
TimerEvent.TIMER_ COMPLETE event.

I would like to listen in my main application (where the DataGrid is 
defined) to this TIMER_COMPLETE event, but I have not managed to do it.

I have tried things like:
currentConstruction s.addEventListen er(TimerEvent. TIMER_COMPLETE, 
handleTimerComplete );
or
remainingTime. addEventListener (TimerEvent. TIMER_COMPLETE, 
handleTimerComplete );

but in neither case is the event caught.

Do you have any idea on how this could be achieved?

Thanks a lot,
Sébastien



Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger.yahoo.com/download.php

Re: [flexcoders] Refreshing Project

2008-10-21 Thread jitendra jain
Which IDE you are using... If you are using Flex Builder then try to delete 
bin-debug folder. 
It will help

 Thanks,

with Regards,
Jitendra Jain







From: Guilherme Blanco [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 21 October, 2008 10:56:40 AM
Subject: [flexcoders] Refreshing Project


Hi,

After more than 4h trying everything I know and researched until page
25 of Google results, I give up and decided to ask here.

I wrote a piece of code that was trying to do something like that:

AsyncToken(RemoteOb jectInstance. AsyncTokenMethod Name).send. apply(
RemoteObjectInstanc e, args );

This was crashing inside the send method when it was trying to get
remoteObject. concurrency; reporting my the remoteObject == null;

So I changed my code a bit to work around it and leave this call (send
+ unknown number of arguments) to the right place.
Compiled and... nothing. It was referencing to my previous code (the
one with send.apply).

So I started my attempts:

turned off build automatically

refresh + build
refresh + clean + build
clean + build
clean + refresh + build
refresh + build + build
clean + build + build
delete files from filesystem manually + clean + refresh + build + build

turned on build automatically

all previous attempts

I decided then to reboot my system and try again everything. Nothing.

It lasted my attempt to delete the project and import a new one.
I did it no success. Reboot? Ok...

Deleted project again, rebooted, imported again, compiled and... nothing.

Maybe a fresh checkout and merge of patch? Yeah... let's try it and... nothing.
Reboot again? Oh my God! Nothing!

Now I'm asking to you HOW CAN I GET THIS REFRESHED??! ?!??!?!

Regards,

-- 
Guilherme Blanco - Web Developer
CBC - Certified Bindows Consultant
Cell Phone: +55 (16) 9166-6902
MSN: guilhermeblanco@ hotmail.com
URL: http://blog. bisna.com
Rio de Janeiro - RJ/Brazil


Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger.yahoo.com/download.php

Re: [flexcoders] Refreshing Project

2008-10-21 Thread jitendra jain
May be your browser is using cache. Try to clean it also..

 Thanks,

with Regards,
Jitendra Jain







From: jitendra jain [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 21 October, 2008 11:37:48 AM
Subject: Re: [flexcoders] Refreshing Project


Which IDE you are using... If you are using Flex Builder then try to delete 
bin-debug folder. 
It will help

 Thanks,

with Regards,
Jitendra Jain







From: Guilherme Blanco guilhermeblanco@ gmail.com
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, 21 October, 2008 10:56:40 AM
Subject: [flexcoders] Refreshing Project


Hi,

After more than 4h trying everything I know and researched until page
25 of Google results, I give up and decided to ask here.

I wrote a piece of code that was trying to do something like that:

AsyncToken(RemoteOb jectInstance. AsyncTokenMethod Name).send. apply(
RemoteObjectInstanc e, args );

This was crashing inside the send method when it was trying to get
remoteObject. concurrency; reporting my the remoteObject == null;

So I changed my code a bit to work around it and leave this call (send
+ unknown number of arguments) to the right place.
Compiled and nothing. It was referencing to my previous code (the
one with send..apply) .

So I started my attempts:

turned off build automatically

refresh + build
refresh + clean + build
clean + build
clean + refresh + build
refresh + build + build
clean + build + build
delete files from filesystem manually + clean + refresh + build + build

turned on build automatically

all previous attempts

I decided then to reboot my system and try again everything. Nothing.

It lasted my attempt to delete the project and import a new one.
I did it no success. Reboot? Ok...

Deleted project again, rebooted, imported again, compiled and... nothing.

Maybe a fresh checkout and merge of patch? Yeah... let's try it and... nothing.
Reboot again? Oh my God!... Nothing!

Now I'm asking to you HOW CAN I GET THIS REFRESHED??! ?!??!?!

Regards,

-- 
Guilherme Blanco - Web Developer
CBC - Certified Bindows Consultant
Cell Phone: +55 (16) 9166-6902
MSN: guilhermeblanco@ hotmail.com
URL: http://blog. bisna.com
Rio de Janeiro - RJ/Brazil

Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger. yahoo.com/ download. php 

Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger.yahoo..com/download.php

Re: [flexcoders] Re: Which style name control the color

2008-10-21 Thread jitendra jain
I'm damn sure iconColor will work

CheckBox {
   iconColor: #ff;
}

 Thanks,

with Regards,
Jitendra Jain







From: itdanny2002 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 21 October, 2008 8:42:03 AM
Subject: [flexcoders] Re: Which style name control the color


Thanks but I have tried, iconColor doesn't work
Radio-icon is ok but it is a graphic image.

--- In [EMAIL PROTECTED] ups.com, Michael Schmalle 
teoti.graphix@ ... wrote:

 Hi,
 It's the 'iconColor' style.
 
 These are available for the checkbox;
 
 borderColor, iconColor, fillAlphas, fillColors, highlightAlphas
 and themeColor.
 
 Mike
 
 
 
 On Sun, Oct 19, 2008 at 7:20 AM, itdanny2002 [EMAIL PROTECTED] .. wrote:
 
Which style name control the color
  of bullet / checkmark in menu control ?
 
  
 
 
 
 
 -- 
 Teoti Graphix, LLC
 http://www.teotigra phix.com
 
 Teoti Graphix Blog
 http://www.blog. teotigraphix. com
 
 You can find more by solving the problem then by 'asking the 
question'.




Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger.yahoo.com/download.php

Re: [flexcoders] Re: Increase in swf size when upgraded to FlexSDK3

2008-10-21 Thread jitendra jain
Shailesh, Read this 
linkhttp://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:Flex_3_RSLs

 Thanks,

with Regards,
Jitendra Jain







From: Shailesh Mangal [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 21 October, 2008 7:42:42 AM
Subject: [flexcoders] Re: Increase in swf size when upgraded to FlexSDK3


No, and we have tried both command line as well FlexBuilder compiles. Same 
result :(

-Shailesh

--- In [EMAIL PROTECTED] ups.com, Ryan Gravener [EMAIL PROTECTED] wrote:

 are you compiling with debug enabled?
 
 Ryan Gravener
 http://twitter. com/ryangravener
 
 
 On Mon, Oct 20, 2008 at 7:40 PM, Shailesh Mangal
 shailesh.mangal@ ...wrote:
 
We recently moved from Flex 2.0.1/LCDS 2.5.1 to Flex3.1.0/LCDS2. 6 and
  noticed that by
  doing that our swf went from 1.3MB to 1.9MB. This is 50% increase in size.
 
  Is this typical with Flex 3?
 
  -Shailesh
 
  
 




Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger.yahoo.com/download.php

Re: [flexcoders] Re: Repeater control and custom Component

2008-10-21 Thread jitendra jain
Can u paste some code what are you trying to do. Do this favour.. I want to 
work on it Please... I have used Repeater 
component and its the best to use..

 

Thanks,

with Regards,
Jitendra Jain






From: lysfael [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 21 October, 2008 12:15:07 PM
Subject: [flexcoders] Re: Repeater control and custom Component


Hello all,

Finally i decided to do the components myself.
It's easier for me like that than using the repeater.

Finally the repeater isn't that powerful component as i though. When
you wanna do something very generic it doesn't fit to your application
anymore.

Thanks all for the help.

I know this conversation will help me later in another project.

--- In [EMAIL PROTECTED] ups.com, Tracy Spratt [EMAIL PROTECTED]  wrote:

 If that is really what you want to do, it will work.  But still, why not
 let the repeated component handle the formatting?
 
 
 
 Do not subclass repeater, use it normally. 
 
 
 
 Create a component containing your label and text inputs.
 
 
 
 Pass the currentItem into your custom component via a setter and in the
 setter invoke the formatting.
 
 
 
 Tracy
 
 
 
  _ _ __
 
 From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
 Behalf Of Ralf Bokelberg
 Sent: Monday, October 20, 2008 8:00 AM
 To: [EMAIL PROTECTED] ups.com
 Subject: Re: [flexcoders] Re: Repeater control and custom Component
 
 
 
 I see. Have you tried a binding function to do this?
 
 mx:Repeater dataProvider= { formatData( datas as XML )} ..
 
 You need to write a method formatData( x : XML ) : XML which creates a
 new formatted XML from the input xml.
 
 Ralf.
 
 On Mon, Oct 20, 2008 at 1:52 PM, lysfael [EMAIL PROTECTED] .
 mailto:schwazel% 40gmail.com  wrote:
  I wanna format the datas receive before passing them to dataProvider
  of the repeater.
 
  --- In [EMAIL PROTECTED] ups.com
 mailto:flexcoders% 40yahoogroups. com , Ralf Bokelberg
 
  ralf.bokelberg@  wrote:
 
  I'm not sure if you can subclass mx:Repeater. What are you trying to
  do with your repeater subclass?
 
  Ralf.
 
  On Mon, Oct 20, 2008 at 12:16 PM, lysfael schwazel@ wrote:
   Re,
  
   I made a component based on the repeater, to have the control on
 the
   datas.
  
   and i use it like i should use a repeater.
  
   i have an error on the compil.
  
   Symbol
   '_com_probtp_ IG_ContactsModul e_components_ F0010WatcherSetu pUtil' is
   multiply defined in
   _com_probtp_ IG_ContactsModul e_components_ F0010WatcherSetu pUtil.as
   and
  
 
 C:\Code\CC_Views\ PB19664_IG_ ClientLeger- project_Dev1_ View1\vob0003- vob\I
 G_ClientLeger- project-componen t\IG_ModuleCore\ libs\IG_Contacts Components
 ..swc(_com_probtp_ IG_ContactsModul e_components_ F0010WatcherSetu pUtil).
   IG_ModuleCore
  
   i use the component like this
  
   comp:Prep id=F0010_T0056 specialDatas= {datas as XML}
   mx:Button id=F0010_B0031 width=100% /
   /comp:Prep
  
   where the setter specialDatas format the datas and set
   this.dataProvider with the correct datas.
  
   --- In [EMAIL PROTECTED] ups.com
 mailto:flexcoders% 40yahoogroups. com , lysfael schwazel@ wrote:
  
   Hello,
  
   Sorry for the absence,
  
   These datas are an example of the datas that i get from my
  HttpService.
  
   lg ID=F0010_T0056- 0
   c ID=F0010_48- 0OUV/c
   c ID=F0010_49- 0/c
   c ID=F0010_50- 05 /c
   /lg
   lg ID=F0010_T0056- 1
   c ID=F0010_48- 1ETA/c
   c ID=F0010_49- 1/c
   c ID=F0010_50- 15 /c
   /lg
  
   These datas should match the repeater F0010_T0056 which contains
 the
   following components :
   TextInput Id = F0010_48
   Label Id = F0010_49
   TextInput Id = F0010_50.
  
   In the other post Tom Chiverton told me this
  
   You could use a setter method (i.e. public function set
   myDatas(d:*) :void{}). If you need more control over what happens,
  or a
   changeWatcher inside the component observing the public bindable.
  
   Like you said i think i'm making it harder than what it needs to
 be.
   I'll think a bit for a much more simple solution and keep you
 posted.
   I think to do something like Tom said.
  
  
  
  
   --- In [EMAIL PROTECTED] ups.com
 mailto:flexcoders% 40yahoogroups. com , Tracy Spratt tspratt@ wrote:
   
Yes, I still think Lysfael may be approaching this incorrectly,
   probably
making it harder than it needs to be. There is rarely a good
   reason to
use the document model hierarchy to manipulate data driven
  components.
   
   
   
Lysfael, can you explain again what you are trying to do?
   
   
   
What data is the dataProvider for the repeater?
   
   
   
Is that data different from the data you are trying to show in
 the
repeated controls?
   
   
   
Tracy
   
   
   
 _ _ __
   
From: [EMAIL PROTECTED] ups.com
 mailto:flexcoders% 40yahoogroups. com 
   [mailto:[EMAIL PROTECTED] ups.com
 mailto:flexcoders

Re: [flexcoders] Re: How can I make an ItemRenderer on a Datagrid react to a row selection?

2008-10-21 Thread jitendra jain
Use this method and put the stuff inside this function. Here the Object is a row

override public function set data(value :Object){
super.data = value;
//  your code
// your code
}

 Thanks,

with Regards,
Jitendra Jain







From: Tim Hoff [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 21 October, 2008 7:10:02 AM
Subject: [flexcoders] Re: How can I make an ItemRenderer on a Datagrid react to 
a row selection?



Shoot, don't even worry about the rowIndex, just attach the data object
to the event.

-TH

--- In [EMAIL PROTECTED] ups.com, Tim Hoff [EMAIL PROTECTED]  wrote:


 Yeah, you would be hosed if a different type of list was used. If
 you're using CHANGE, which is generic for list base, have the parent
 class dispatch a custom event, on change, with the row index. The
 parent class will always know what kind of list is being used. Then in
 the itemRenderer listen for the custom event and compare the rowIndex
to
 listData.rowIndex. This is so much easier to handle through the data,
 but some don't care for the decorator pattern.

 -TH

 --- In [EMAIL PROTECTED] ups.com, João joao.saleiro@ wrote:
 
  I solved it by implementing the IDropInListItemRend erer and
listening
 to
 
  DataGrid(listData. owner).addEventL istener(ListEven t.CHANGE,
  listChangeHandler)
 
  It's not a best practice, but for now it's enough.
 
  JS
 
  --- In [EMAIL PROTECTED] ups.com, Jo�o joao.saleiro@ wrote:
  
   Hi,
  
   I have a Datagrid with several rows and columns. I am using
   ItemRenderers on the cells. I need that a specific ItemRenderer
   changes the way it looks when the row where he's in is selected.
How
   can I achieve that?
   Is it possible to make the itemrenderer know that and react in
real
   time? Or is it preferable to extend the DataGrid?
  
   Thanks,
  
   João Saleiro
  
 




Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger.yahoo.com/download.php

Re: [flexcoders] Re: Refreshing Project

2008-10-21 Thread jitendra jain
I noted this issue manytimes while I'm running debugger. Look like it uses 
cache once debugging is enabled. Your problem got solved or not??
 Thanks,

with Regards,
Jitendra Jain






From: fotis.chatzinikos [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 21 October, 2008 1:53:00 PM
Subject: [flexcoders] Re: Refreshing Project


I always have a string somewhere visible that says version 0.9.7.a,
then b, c etc IE nearly always caches, and firefox 3 is even worse
:-) It never caches until it decides to do so 3 in the morning when
you have forgot everything about caching and starting beating yourself
on the head debugong something that is not there any more...

--- In [EMAIL PROTECTED] ups.com, jitendra jain
jitendra_jain_ [EMAIL PROTECTED] wrote:

 May be your browser is using cache. Try to clean it also..
 
 Thanks,
 
 with Regards,
 Jitendra Jain
 
 
 
 
 
 
  _ _ __
 From: jitendra jain jitendra_jain_ [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] ups.com
 Sent: Tuesday, 21 October, 2008 11:37:48 AM
 Subject: Re: [flexcoders] Refreshing Project
 
 
 Which IDE you are using... If you are using Flex Builder then try to
delete bin-debug folder. 
 It will help
 
 Thanks,
 
 with Regards,
 Jitendra Jain
 
 
 
 
 
 
  _ _ __
 From: Guilherme Blanco guilhermeblanco@ gmail.com
 To: [EMAIL PROTECTED] ups.com
 Sent: Tuesday, 21 October, 2008 10:56:40 AM
 Subject: [flexcoders] Refreshing Project
 
 
 Hi,
 
 After more than 4h trying everything I know and researched until page
 25 of Google results, I give up and decided to ask here.
 
 I wrote a piece of code that was trying to do something like that:
 
 AsyncToken(RemoteOb jectInstance. AsyncTokenMethod Name).send. apply(
 RemoteObjectInstanc e, args );
 
 This was crashing inside the send method when it was trying to get
 remoteObject. concurrency; reporting my the remoteObject == null;
 
 So I changed my code a bit to work around it and leave this call (send
 + unknown number of arguments) to the right place.
 Compiled and nothing. It was referencing to my previous code (the
 one with send..apply) .
 
 So I started my attempts:
 
 turned off build automatically
 
 refresh + build
 refresh + clean + build
 clean + build
 clean + refresh + build
 refresh + build + build
 clean + build + build
 delete files from filesystem manually + clean + refresh + build + build
 
 turned on build automatically
 
 all previous attempts
 
 I decided then to reboot my system and try again everything. Nothing.
 
 It lasted my attempt to delete the project and import a new one.
 I did it no success. Reboot? Ok
 
 Deleted project again, rebooted, imported again, compiled and
nothing.
 
 Maybe a fresh checkout and merge of patch? Yeah... let's try it
and... nothing.
 Reboot again? Oh my God!... Nothing!
 
 Now I'm asking to you HOW CAN I GET THIS REFRESHED??! ?!??!?!
 
 Regards,
 
 -- 
 Guilherme Blanco - Web Developer
 CBC - Certified Bindows Consultant
 Cell Phone: +55 (16) 9166-6902
 MSN: guilhermeblanco@ hotmail.com
 URL: http://blog. bisna.com
 Rio de Janeiro - RJ/Brazil
 
 Send free SMS to your Friends on Mobile from your Yahoo! Messenger.
Download Now! http://messenger. yahoo.com/ download. php 
 
 Send free SMS to your Friends on Mobile from your Yahoo! Messenger.
Download Now! http://messenger. yahoo..com/ download. php


 

Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger.yahoo.com/download.php

  1   2   >