[flexcoders] Dynamic Image Loading

2006-03-06 Thread shahnavaz Alware










Hi 



I have to create an image in a TitleWindow when User clicks on
one of the button.

* mxml
*/

?xml version=1.0
encoding=utf-8?

 mx:TitleWindow
xmlns:mx=http://www.macromedia.com/2003/mxml

 closeButton=true

 width=600 

  height=600 

 xmlns:attachment=com.hmssoftware.sfm.view.attachment.*

 modalTransparency=20
click=this.deletePopUp();
creationComplete=createImage();   



public var
attachmentImageLocation:String;

public var
attacmentImageTitle:String;

 public
var initObject:Object; 

 

 [Embed(icon=../../../../../images/+attachmentImageLocation)]

 

 var
_imgAttachment;

 

 public
function createImage():Void

 {

 initObject
= new Object();

 initObject.source
= _imgAttachment;

 Image(imageBox.createChild(
Image, undefined, initObject)); 

 

 }



 mx:VBox
id=imageBox height=100% width=100%
hScrollPolicy=on vScrollPolicy=on

 /mx:VBox 

/mx:TitleWindow



I get the following error result Failed to find resource:
../../../../../images/ 



Can show me how to load images dynamically? My attachmentImageLocation
is the full name of the image file without path e.g. Op120.jpg.



Thanks,



Shahn



ShahnavazAlware |Software Engineer| Visiprise
| office: +1 760-929-2300 ext
140| cell: +1 858-366-3440 | www.visiprise.com



It is our company policy not to accept
email of any data controlled by the International Traffic in Arms Regulations
(ITAR). Please contact our Security Officer,Matt Reeves, for instructions
and authorization to transmit such data.











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] Dynamic Image Loading

2006-03-06 Thread shahnavaz Alware










Hi,



I changed my mxml file to have mx:Image
 mx:Loader but still I am not able to see any Image. 



* mxml
*/

?xml version=1.0
encoding=utf-8?

 mx:TitleWindow
xmlns:mx=http://www.macromedia.com/2003/mxml

 closeButton=true
width=600height=600


 modalTransparency=20
click=this.deletePopUp(); 
 



 mx:Script

 ![CDATA[

public var
attachmentImageLocation:String;

public var
attacmentImageTitle:String;



]]

 

/mx:Script



 mx:VBox
id=imageBox height=100% width=100%
hScrollPolicy=on vScrollPolicy=on

 mx:Image
id=imageSource
source=../../../../../images/{attachmentImageLocation}/mx:Image

 mx:Loader
id=imageLoader
source=../../../../../images/{attachmentImageLocation}/mx:Loader

 /mx:VBox 

/mx:TitleWindow





Thanks,









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Roger Gonzalez
Sent: Monday, March 06, 2006 5:31
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Dynamic
Image Loading





Embed is a compile-time directive, not a
runtime directive. You need to use mx:Image or mx:Loader to pull in your
image.



-rg











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of shahnavaz Alware
Sent: Monday, March 06, 2006 1:56
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamic
Image Loading

Hi 



I have to create an image in a TitleWindow when User clicks
on one of the button.

* mxml
*/

?xml version=1.0
encoding=utf-8?

 mx:TitleWindow
xmlns:mx=http://www.macromedia.com/2003/mxml

 closeButton=true


width=600




height=600



xmlns:attachment=com.hmssoftware.sfm.view.attachment.*


modalTransparency=20 click=this.deletePopUp();
creationComplete=createImage(); 
 



public var
attachmentImageLocation:String;

public var
attacmentImageTitle:String;


public var
initObject:Object;






[Embed(icon=../../../../../images/+attachmentImageLocation)]





var _imgAttachment;





public function createImage():Void


{


initObject = new Object();


initObject.source = _imgAttachment;


Image(imageBox.createChild( Image, undefined,
initObject)); 





}




mx:VBox id=imageBox height=100%
width=100% hScrollPolicy=on
vScrollPolicy=on


/mx:VBox 

/mx:TitleWindow



I get the following error result Failed to find resource:
../../../../../images/ 



Can show me how to load images dynamically? My attachmentImageLocation
is the full name of the image file without path e.g. Op120.jpg.



Thanks,



Shahn



ShahnavazAlware |Software Engineer| Visiprise
| office: +1 760-929-2300 ext
140| cell: +1 858-366-3440 | www.visiprise.com



It is our company policy not to accept
email of any data controlled by the International Traffic in Arms Regulations
(ITAR). Please contact our Security Officer,Matt Reeves, for instructions
and authorization to transmit such data.










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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Proxy Server Issue ( lc_id is undefined )

2006-02-27 Thread shahnavaz Alware










Hi All,



I have a following situation



Server A  Flex Application

Server B  Proxy Server (Apache)



Server B has a mapping 



I have following settings on my Proxy Server B



***

DefaultType application/octet-stream



Mime.types file has following line for Flash

application/x-shockwave-flash swf



*

On Server A flex-config.xml has following setting



 external-proxy


locationhmsee.hmssoftware.net/location


/external-proxy



Now when I try to get to the flex application through Proxy
Server it properly forwards the request to Login Screen. Once I pass login
information it tries to open the Flex Application and my browser shows Opening
status forever. 



Is there something I am missing here to get the Flex
Application running using Proxy Server?



I appreciate the replies from flexcoders.



ShahnavazAlware |Software Engineer| Visiprise
| office: +1 760-929-2300 ext
140| cell: +1 858-366-3440 | www.visiprise.com



It is our company policy not to accept
email of any data controlled by the International Traffic in Arms Regulations
(ITAR). Please contact our Security Officer,Matt Reeves, for instructions
and authorization to transmit such data.











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] getUrl() - Can I pass the object/variable

2006-01-27 Thread shahnavaz Alware










Hi,



Is there a way I could pass a whole SelectedItem of DataGrid
from FLEX(1.5) to _javascript_?

Code snippet--



script language=_javascript_

function transferObject ( )

{

 //
Print the Entire Row in HTML

} 

/script

/HEAD

BODY bgcolor=#FF



mm:mxml border=1 id=flexApp
name=flexApp

mx:Script


 ![CDATA[



 
function transport()

 
{

 var
test5:String = dg.selectedItem;

 
 getURL(_javascript_:transferObject(test5));//
I have to pass entire row of the datagrid

 
}  



 ]] 

 /mx:Script



 mx:Model id=employeeModel
source=employees.xml/

 mx:DataGrid id=dg
width=100% height=100%


dataProvider={employeeModel.employee}
change=transport();


mx:columns


mx:Array


mx:DataGridColumn columnName=name
headerText=Name/


mx:DataGridColumn columnName=phone
headerText=Phone/


mx:DataGridColumn columnName=email
headerText=Email/


/mx:Array


/mx:columns

 /mx:DataGrid





Thank you,



Shahnavaz Alware

Software Engineer

Office: 760-929-2300 ext 140

www.visiprise.com





It is our company policy not to accept email of any data
controlled by the International Traffic in Arms Regulations (ITAR).
Please contact our Security Officer, Alexander Houtzeel, for instructions and
authorization to transmit such data.











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





  




  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] ExternalInterface Question

2006-01-25 Thread shahnavaz Alware










Hi,



Is ExternalInterface not available in Flex 1.5? I have to make a
communication between a windows application and my Flex application e.g. Clicking
on an Image in Windows Application passes an object to my flex app and highlights
the values in my Datagrid. What are my options here? Thanks for replies.



Thank you,



Shahnavaz Alware

Software Engineer

Office: 760-929-2300 ext 140

www.visiprise.com





It is our company policy not to accept email of any data
controlled by the International Traffic in Arms Regulations (ITAR).
Please contact our Security Officer, Alexander Houtzeel, for instructions and
authorization to transmit such data.











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





  




  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] Re: Flex application on PDA

2006-01-20 Thread shahnavaz Alware










I appreciate all the replies from Brendan,
Jester, Bruno, DP, Renaun about the development of application for PDA. 



Thank you,



Shahn











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Renaun Erickson
Sent: Thursday, January 19, 2006
10:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex
application on PDA





As far as Flash Lite 2.0 it says its FlashPlayer 7, but it will not
support Flex. Most likely because the
components are not part of the
player. I hope my information is
wrong, 

On a similiar topic. Is there a flash player
for Microsoft Mobile 5?

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

 As far as #3, you could utilize Flash MX 2004
or Flash 8 and develop
using ActionScript 2 with similiar components to
Flex, and export for
Flash 6. 3 years ago, I saw pretty decent performance
for forms based
apps on a Pocket PC.
 
 - Original Message - 
 From: Bruno Martins 
 To: flexcoders@yahoogroups.com

 Sent: Thursday, January 19, 2006 7:04 AM
 Subject: Re: [flexcoders] Flex application on
PDA
 
 
 
 
 
 On 1/18/06, shahnavaz Alware
[EMAIL PROTECTED] wrote:
 Hi,
 
 
 
 We are developing web application
using Flex 1.5 for desktop. Now
there is planning to make same application
available on PDA's. Flex is
my first encounter with Flash Programming (J2EE
Developer). That's
being said I have few questions for you guys doing
development on
PDA/Mobile devices using Flash/Flex 
 
 
 
 1) Does
Flex 1.5 application can be built for PDA's? 
 
 
 No, because Flex 1.5 if for Flash Player 7
and PDA's has only Flash
Player 6
 
 
 2) If
it's possible is there a Hardware Requirement for PDA?
 
 
 Applications in flash por PDA`s must be very
simple and otimized.
 
 
 3) If
it's NOT possible to build the application for PDA using
Flex 1.5 what are my alternatives using FLASH?
 
 
 It`s is possible to use Flash.
 
 
 4) What
is the direction Flex taking as far as PDA/Mobile
devices are concerned?
 
 Until now macromedia(adobe) Flex 1.5/2 apps
is only PCs, because the
applications in flex requeries a good hardware to
run.
 The proposal of adobe for devices is Flash
Lite 2 and soon the Flash
Player 7SDK for pockets.

http://www.adobe.com/aboutadobe/pressroom/pressreleases/200601/010306FlashLite.html
 
 
 5) Are
there any links I can follow to have a head start on
this mobile development using Flash Architecture?
 
 This subject is very poor on the internet, but
take a look at this:
 http://www.macromedia.com/software/flashplayer_pocketpc/productinfo/faq/
 In some days I'll publish a cairngorm
refactored for pocket pc, I
need only to finish a example. I`ll send when I
finish ok?
 
 Any doubts tell me and sorry for my poor
english...
 
 
 
 
 
 
 Thank you, 
 
 
 
 Shahnavaz Alware
 
 Software Engineer
 
 Office: 760-929-2300 ext 140
 
 www.visiprise.com
 
 
 
 
 
 It is our company policy not to
accept email of any data
controlled by the International Traffic in Arms
Regulations (ITAR). 
Please contact our Security Officer, Alexander
Houtzeel, for
instructions and authorization to transmit such
data. 
 
 
 
 
 
 --
 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 
 
 a.. Visit your
group flexcoders on the web.
 
 b.. To
unsubscribe from this group, send an email to:

[EMAIL PROTECTED]
 
 c.. Your use of
Yahoo! Groups is subject to the Yahoo! Terms of
Service. 
 
 

--
 
 
 
 
 -- 
 Bruno Gustavo Martins
 Mobile:
(55)(11)9585-9587
 [EMAIL PROTECTED] 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com

 
 
 


 YAHOO! GROUPS LINKS 
 
 a.. Visit your group
flexcoders on the web.
 
 b.. To unsubscribe from
this group, send an email to:

[EMAIL PROTECTED]
 
 c.. Your use of Yahoo!
Groups is subject to the Yahoo! Terms of
Service. 
 
 















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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice

[flexcoders] Flex application on PDA

2006-01-18 Thread shahnavaz Alware










Hi,



We are developing web application using Flex 1.5 for desktop.
Now there is planning to make same application available on PDAs. Flex
is my first encounter with Flash Programming (J2EE Developer). Thats being
said I have few questions for you guys doing development on PDA/Mobile devices
using Flash/Flex



1) Does Flex 1.5 application can be
built for PDAs? 

2) If its possible is there a
Hardware Requirement for PDA?

3) If its NOT possible to build
the application for PDA using Flex 1.5 what are my alternatives using FLASH?

4) What is the direction Flex taking as
far as PDA/Mobile devices are concerned?

5) Are there any links I can follow to
have a head start on this mobile development using Flash Architecture?



Thank you, 



Shahnavaz Alware

Software Engineer

Office: 760-929-2300 ext 140

www.visiprise.com





It is our company policy not to accept email of any data
controlled by the International Traffic in Arms Regulations (ITAR).
Please contact our Security Officer, Alexander Houtzeel, for instructions and
authorization to transmit such data.











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





  




  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Interesting article about RIA on theserverside.com

2005-12-12 Thread Shahnavaz Alware










http://www.theserverside.com/news/thread.tss?thread_id=38017



I am hoping to see some detailed replies to
this article on TheServerSide.com.



Thanks















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





  




  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Datagrid Row Color

2005-12-08 Thread Shahnavaz Alware










Hi,

I am trying to change the color of the entire
single row of a datagrid using cellRenderer. I dont have much experience
using CellRenderer or RowRenderer and have not seen any example where a
cellRenderer changes the property or backgroundColor of entire row. The CellRenderer
setValue() below gives me [Fault] recursion_limit. If
anybody has working example to achieve this would be really helpful.



 function
setValue(str:String, item:Object, sel:Boolean) : Void


{ 


text = String(item.Price);


var price:Number = Number(text);


if(price  100)


{

 
listOwner.dataProvider.editField(getCellIndex().itemIndex,
backgroundColor, 0x00);


}


} else 





Thanks,









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Tuesday, December 06, 2005
8:48 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Datagrid
Issue





listOwner.dataProvider.editField(getCellIndex().itemIndex,
backgroundColor, 0x00)



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of shahnavaz Alware
Sent: Tuesday, December 06, 2005
4:11 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Datagrid
Issue





Thanks Matt,



I was under the impression that when
datagrid sort, will clean itself off. Using the same example how I can make the
cellRenderer change the color of entire row where Price  100? I did tried
using listOwner[getCellIndex().itemIndex].setStyle(backgroundColor,
0x00) with no luck.



Thanks,



Shahn











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Monday, December 05, 2005
6:16 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Datagrid
Issue





Well you still need an else so that you
call setBackgroundColor even when price is less than 100. The cell is
re-used, you need to cover all cases in your setValue function. So your
else statement here can be to setCellBackgroundColor(0xff, 0)



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Shahnavaz Alware
Sent: Monday, December 05, 2005
5:17 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Datagrid
Issue





Hi Matt,



The code is not the problem here. I am not
sure if I have to reassign the dataprovider after I click on Price header. I
replaced the script so now I am just checking for Price  100 and when you
sort by price after it renders the result is still the same.







 mx:Script


![CDATA[ 


function setValue(str, item, sel)


{ 


text = String(item.Price);


var price:Number = Number(text);


if(price  100)


{


setCellBackgroundColor(0x00FF00, 100);


}


}





function setCellBackgroundColor(newColor, newAlpha)


{





setStyle(backgroundAlpha, newAlpha==undefined ? 0 :newAlpha);


setStyle(backgroundColor, newColor); 


} 


]]

 /mx:Script











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Monday, December 05, 2005
5:04 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Datagrid
Issue





Dont you need a check for  1000
in your if (price  100) test?











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Shahnavaz Alware
Sent: Monday, December 05, 2005
4:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid
Issue





Hi,



I am using a cellRenderer in my datagrid. Now when I sort by
clicking on header the DatagridColumns on which I have cellRenderer never
cleans up the cell which was rendered by cellRenderer. How can I solve this
issue? Files and screen Image below. 

!Application 

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml

mx:DataGrid id=myGrid width=350
height=100


mx:columns


mx:Array


mx:DataGridColumn columnName=Artist/


mx:DataGridColumn columnName=Price
cellRenderer=SimpleCustomCellRenderer/


mx:DataGridColumn columnName=Album /


/mx:Array


/mx:columns




mx:dataProvider


mx:Array id=arr


mx:Object Artist= Kapil Album=All Time Favourites
Price=101/


mx:Object Artist= Kapil Album=Classic Songs
Price=10/


/mx:Array


/mx:dataProvider




/mx:DataGrid

/mx:Application



!CellRenderer

mx:TextInput
xmlns:mx=http://www.macromedia.com/2003/mxml

borderStyle=none
backgroundAlpha=0

 mx:Script

 function
setValue(str, item, sel)


{ 


text = String(item.Price);


var price:Number = Number(text);


if(price  100)


{


setCellBackgroundColor(0x00FF00, 100);


}


else if(price  1000)


{


setCellBackgroundColor(0x00FF00, 100);


}

 }

 

 function
setCellBackgroundColor(newColor, newAlpha)

 {





setStyle(backgroundAlpha, newAlpha==undefined ? 0 :newAlpha);


setStyle(backgroundColor, newColor); 

 }

 /mx:Script

/mx:TextInput







After Sorting on Price







Thanks,



Shahn


















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

RE: [flexcoders] getting Flex pages to work in Firefox

2005-12-08 Thread Shahnavaz Alware










Nothing wrong with Flex Explorer when I
open it using FireFox 1.7.10



Thanks,











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED]
Sent: Thursday, December 08, 2005
5:05 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] getting
Flex pages to work in Firefox









In a message dated 12/8/2005 7:59:02 PM Eastern Standard
Time, [EMAIL PROTECTED] writes:





http://flexapps.macromedia.com/flex15/explorer/explorer.mxml?versionChecked=true














Does anyone else get a white screen on firefox with this url











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] Datagrid Issue

2005-12-06 Thread shahnavaz Alware










Thanks Matt,



I was under the impression that when datagrid
sort, will clean itself off. Using the same example how I can make the
cellRenderer change the color of entire row where Price  100? I did tried
using listOwner[getCellIndex().itemIndex].setStyle(backgroundColor,
0x00) with no luck.



Thanks,



Shahn











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Monday, December 05, 2005
6:16 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Datagrid
Issue





Well you still need an else so that you
call setBackgroundColor even when price is less than 100. The cell is
re-used, you need to cover all cases in your setValue function. So your
else statement here can be to setCellBackgroundColor(0xff, 0)



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Shahnavaz Alware
Sent: Monday, December 05, 2005
5:17 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Datagrid
Issue





Hi Matt,



The code is not the problem here. I am not
sure if I have to reassign the dataprovider after I click on Price header. I
replaced the script so now I am just checking for Price  100 and when you
sort by price after it renders the result is still the same.







 mx:Script


![CDATA[ 


function setValue(str, item, sel)


{ 


text = String(item.Price);


var price:Number = Number(text);


if(price  100)


{


setCellBackgroundColor(0x00FF00, 100);


}


}





function setCellBackgroundColor(newColor, newAlpha)


{





setStyle(backgroundAlpha, newAlpha==undefined ? 0 :newAlpha);


setStyle(backgroundColor, newColor); 


} 


]]

 /mx:Script











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Monday, December 05, 2005
5:04 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Datagrid
Issue





Dont you need a check for  1000
in your if (price  100) test?











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Shahnavaz Alware
Sent: Monday, December 05, 2005
4:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid
Issue





Hi,



I am using a cellRenderer in my datagrid. Now when I sort by
clicking on header the DatagridColumns on which I have cellRenderer never
cleans up the cell which was rendered by cellRenderer. How can I solve this
issue? Files and screen Image below. 

!Application 

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml

mx:DataGrid id=myGrid width=350
height=100


mx:columns


mx:Array


mx:DataGridColumn columnName=Artist/


mx:DataGridColumn columnName=Price
cellRenderer=SimpleCustomCellRenderer/


mx:DataGridColumn columnName=Album /


/mx:Array


/mx:columns




mx:dataProvider


mx:Array id=arr


mx:Object Artist= Kapil Album=All Time Favourites
Price=101/


mx:Object Artist= Kapil Album=Classic Songs
Price=10/


/mx:Array


/mx:dataProvider




/mx:DataGrid

/mx:Application



!CellRenderer

mx:TextInput
xmlns:mx=http://www.macromedia.com/2003/mxml

borderStyle=none backgroundAlpha=0

 mx:Script

 function
setValue(str, item, sel)


{ 


text = String(item.Price);


var price:Number = Number(text);


if(price  100)


{


setCellBackgroundColor(0x00FF00, 100);


}


else if(price  1000)


{


setCellBackgroundColor(0x00FF00, 100);


}

 }

 

 function
setCellBackgroundColor(newColor, newAlpha)

 {





setStyle(backgroundAlpha, newAlpha==undefined ? 0 :newAlpha);


setStyle(backgroundColor, newColor); 

 }

 /mx:Script

/mx:TextInput







After Sorting on Price







Thanks,



Shahn
















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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Datagrid Issue

2005-12-05 Thread Shahnavaz Alware










Hi,



I am using a cellRenderer in my datagrid. Now when I sort by
clicking on header the DatagridColumns on which I have cellRenderer never
cleans up the cell which was rendered by cellRenderer. How can I solve this
issue? Files and screen Image below. 

!Application 

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml

mx:DataGrid id=myGrid width=350
height=100


mx:columns


mx:Array


mx:DataGridColumn columnName=Artist/


mx:DataGridColumn columnName=Price
cellRenderer=SimpleCustomCellRenderer/


mx:DataGridColumn columnName=Album /


/mx:Array


/mx:columns



 mx:dataProvider


mx:Array id=arr


mx:Object Artist= Kapil Album=All Time Favourites
Price=101/


mx:Object Artist= Kapil Album=Classic Songs
Price=10/

 /mx:Array


/mx:dataProvider




/mx:DataGrid

/mx:Application



!CellRenderer

mx:TextInput
xmlns:mx=http://www.macromedia.com/2003/mxml

borderStyle=none
backgroundAlpha=0

 mx:Script

 function
setValue(str, item, sel)


{ 


text = String(item.Price);


var price:Number = Number(text);


if(price  100)


{


setCellBackgroundColor(0x00FF00, 100);


}


else if(price  1000)


{


setCellBackgroundColor(0x00FF00, 100);


}

 }

 

 function
setCellBackgroundColor(newColor, newAlpha)

 {





setStyle(backgroundAlpha, newAlpha==undefined ? 0 :newAlpha);


setStyle(backgroundColor, newColor); 

 }

 /mx:Script

/mx:TextInput







After Sorting on Price







Thanks,



Shahn













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





  




  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] Datagrid Issue

2005-12-05 Thread Shahnavaz Alware










Hi Matt,



The code is not the problem here. I am not
sure if I have to reassign the dataprovider after I click on Price header. I
replaced the script so now I am just checking for Price  100 and when you
sort by price after it renders the result is still the same.







 mx:Script


![CDATA[ 


function setValue(str, item, sel)


{ 


text = String(item.Price);


var price:Number = Number(text);


if(price  100)


{


setCellBackgroundColor(0x00FF00, 100);


}


}





function setCellBackgroundColor(newColor, newAlpha)


{





setStyle(backgroundAlpha, newAlpha==undefined ? 0 :newAlpha);


setStyle(backgroundColor, newColor); 


} 

 ]]

 /mx:Script











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin
Sent: Monday, December 05, 2005
5:04 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Datagrid
Issue





Dont you need a check for  1000
in your if (price  100) test?











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Shahnavaz Alware
Sent: Monday, December 05, 2005
4:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid
Issue





Hi,



I am using a cellRenderer in my datagrid. Now when I sort by
clicking on header the DatagridColumns on which I have cellRenderer never
cleans up the cell which was rendered by cellRenderer. How can I solve this
issue? Files and screen Image below. 

!Application 

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml

mx:DataGrid id=myGrid width=350
height=100


mx:columns


mx:Array


mx:DataGridColumn columnName=Artist/


mx:DataGridColumn columnName=Price
cellRenderer=SimpleCustomCellRenderer/


mx:DataGridColumn columnName=Album /


/mx:Array


/mx:columns




mx:dataProvider


mx:Array id=arr


mx:Object Artist= Kapil Album=All Time Favourites
Price=101/


mx:Object Artist= Kapil Album=Classic Songs
Price=10/


/mx:Array


/mx:dataProvider




/mx:DataGrid

/mx:Application



!CellRenderer

mx:TextInput xmlns:mx=http://www.macromedia.com/2003/mxml

borderStyle=none
backgroundAlpha=0

 mx:Script

 function
setValue(str, item, sel)


{ 


text = String(item.Price);


var price:Number = Number(text);


if(price  100)


{


setCellBackgroundColor(0x00FF00, 100);


}


else if(price  1000)


{


setCellBackgroundColor(0x00FF00, 100);


}

 }

 

 function
setCellBackgroundColor(newColor, newAlpha)

 {





setStyle(backgroundAlpha, newAlpha==undefined ? 0 :newAlpha);


setStyle(backgroundColor, newColor); 

 }

 /mx:Script

/mx:TextInput







After Sorting on Price







Thanks,



Shahn














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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] htmlText in ToolTip

2005-12-02 Thread Shahnavaz Alware










Hi,



I have a datagrid with one of the column having multiple icons
having tooltips on each one of the icons. What I need to do is pretty up this
ToolTip with some bold, italic, break, image etc. I dont see that I can
use htmlText in here, so I would appreciate if any of you can show me how this
can be achieved.



Thanks,



Shahn 











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





  




  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Datagrid Row Color based on Value in Column

2005-12-02 Thread Shahnavaz Alware










Hi,



Is there a way in which I could change the color of the
entire row in DataGrid based on the value in one of the column?



Thanks,



Shahn









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





  




  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] Datagrid header renderer (F 1.5)

2005-11-30 Thread Shahnavaz Alware










http://www.flexauthority.com/samplesIndex.cfm
 Intermediate  DataGrid Custom HeaderRenderer











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tom Fitzpatrick
Sent: Wednesday, November 30, 2005
12:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid
header renderer (F 1.5)





Can anyone point to a working example of a header renderer for a
dataGrid?

I'd like to be able to style the type and the
background color for an 
individual dataGrid column header. I've looked
through the docs and can't 
locate any code that works.

- Tom












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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] Creating Children in a Dynamic Accordion

2005-10-05 Thread Shahnavaz Alware
Title: Message










Hi Mark,



Try this 



mx:Accordion id=inputDetail
height=100% width=100% 

creationComplete=addStuff(query.input)



 import
mx.controls.Label;

 import
mx.controls.TextArea; 

 import
mx.controls.VBox;



function addStuff(elements) {
 var count:Number = elements.length;
 for (var i=0; icount; i++) {
 var element:String =
elements[i].name;

 var type:String
= elements[i].type;



 var vbox = VBox(inputDetail.createSegment(VBox,
element, element, undefined));



 var newLabel = Label(vbox.createChild(Label,
undefined, Some Data));

 }

}













From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Wales
Sent: Wednesday, October 05, 2005
12:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Creating
Children in a Dynamic Accordion







Hello,











I am trying to dynamically/conditionally add children to a
set of dynamically/conditionally created Accordion segments.











At present,I createthe segments I
wantusing a loop over my array:











mx:Accordion
id=inputDetail height=100% width=100% 





creationComplete=addStuff(query.input)





function addStuff(elements) {
 var count:Number = elements.length;
 for (var i=0; icount; i++) {
 var element:String = elements[i].name;





 var type:String
= elements[i].type;











 var vbox =
inputDetail.createSegment(mx.containers.VBox, element, element, undefined);











 var newLabel =
vbox.createChild(mx.controls.Label, undefined, Some Data);





 }





}











The createChild function does not yield any results. Does
anyone have any suggestions?











Thanks,











-Mark























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





  




  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Render image Dynamically

2005-10-04 Thread shahnavaz Alware










Hi All,



I have byte[] in my Database which I want to render as image
in Flex at runtime, how do I do this?. I am using Java at backend and also I
dont want to create a physical image file on my server. Thanks for the
replying.



Thanks,



Shahn











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Render the image dynamically

2005-10-03 Thread shahnavaz Alware










Hi All,



I have byte[] in my Database which I want to render in Flex
at runtime, how do I do this?. I am using Java at backend and also I dont
want to create a physical image file on my server. Thanks for the replying.



Thanks,



Shahn









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





  




  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] Re: User Infor in Flex Architecture

2005-09-22 Thread shahnavaz Alware










Now when you login is an
Authentication on J2EE server. When a users get authenticated I load my
UserInfo Object. 



Shahn









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Douglas Knudsen
Sent: Wednesday, September 21,
2005 6:51 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: User
Infor in Flex Architecture





curious as to what you
may mean by 
Now when you login
I know your using J2EE and all, but curious as
to how you might be implementing this part as it appears you are using Flex to
call a method in your biz delgate.

DK





On 9/21/05, shahnavaz
Alware [EMAIL PROTECTED]
wrote:



Hi Rishi,



I am assuming you have a fair knowledge of Cairngorm 0.99. In
your ModelLocator you will have a public static var userInfo :
UserInfoVO;. Now when you login you might need to have a method on
backend ( BusinessDelegate.java) which will return you a object of type
UserInfoVO. In your command.as
you will have following




public function onResult( event : Object ) : Void {


ModelLocator.userInfo = event.result;


}



From this point on you can use ModelLocator.userInfo at any
point in your application.

eg. You will render some buttons based on user role.

If ( ModelLocator.userInfo.role == Manager ) {


button.visible=true;

}



I hope this helps.



Thank you,



Shahnavaz









From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of RISHI_SHUKLA
Sent: Thursday, September 15, 2005
11:07 PM




To: flexcoders@yahoogroups.com
Subject:
[flexcoders] Re: User Infor in Flex Architecture









Hi,

First of all thanks for your reply.

What i want to know how have used
remote object for session
managemant , acttual what i want is manage the
state on the client it
self. could you please bit elaborate little more .

Thanks  Regards
Rishi Shukla

--- In flexcoders@yahoogroups.com, shahnavaz Alware
[EMAIL PROTECTED]
wrote:
 Hi Rishi,
 
 
 
 I use Cairngorm 0.99 in my Flex App. When my
user authentication on
the J2EE
 AppServer is successful I return UserInfoVO
and set it to
 ModelLocator.UserInfoVO=event.result. Now
from this point on I have the
 whole userInfo object on the client side so
no worries about
setting/getting
 it to/from HttpSession. 
 
 
 
 Thanks,
 
 
 
 Shahnavaz
 
 
 
 _ 
 
 From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
 Behalf Of RISHI_SHUKLA
 Sent: Thursday, September 15, 2005 4:10 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: User Infor in Flex
Architecture
 
 
 
 Hi ,
 
 I am want know this , if have done it , then
please let me know , it
 would be very nice on your part.
 
 Thanks  Regards
 Rishi Shukla
 
 --- In flexcoders@yahoogroups.com,
Shahnavaz Alware [EMAIL PROTECTED]
 wrote:
  Hi,
  
  I am new programmer in Flex (RIA) using
Cairngrom 0.9 Framework. I
 am using
  Flex with full fledge J2EE Application. 
  My question is How to handle User
Management (User Object as Session
  Variable) in Flex to reap the best
performance possible as my User
 Info is
  massive. Is there any documentation?
Thanks in advance for reply.
  
  Thank you, 
  
  Shahnavaz
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

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

 
 
 
 
 _ 
 
 YAHOO! GROUPS LINKS 
 
 
 
 * Visit your
group flexcoders
 http://groups.yahoo.com/group/flexcoders
 on the web.
 
 * To
unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]?subject=Unsubscribe

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









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












SPONSORED
LINKS 




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










YAHOO!
GROUPS LINKS





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

















-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it? 







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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development

RE: [flexcoders] Dynamic Object Instantiation

2005-09-15 Thread Shahnavaz Alware










I do the similar stuff using getChildAt(i)
instead of childDescriptors[i] and
that works fine if I want to read the properties I set during createChild. Eg parentID.getChildAt(i).id



Thanks,



Shahn









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of chip1062
Sent: Thursday, September 15, 2005
11:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamic
Object Instantiation





Hello All,

I am dynamically instantiating a new VBox in a tab
container
(tbFlyingHours). No problem with that. It
exists and can be
interacted
with. The problem comes when I read the
children of the tab
container.
If I use tbFlyingHours.childDescriptors.length the
new VBox doesn't
show up, but if I use tbFlyingHours.numChildren
the VBox is counted.
Also, I cannot access any of the properties of the
VBox even though I
am setting them when the object is
instantiated. Any help would be
greatly appreciated.

Sincerely,

Chip

Code for Object Instantation:
import mx.containers.VBox;
function addReport(){
 var
cReports:VBox = null;
 var
init:Object = null;

 init =
new Object();

init.id=cnvReports;

init.label=Report Output;


cReports=VBox(tbFlyingHours.createChild(VB
ox,cnvReports,init));

}

Code to see Objects in tbFlyingHours:
function showObjects(){
 for (var i:Number = 0 ; i 
tbFlyingHours.numChildren ; i++){
 mx.controls.Alert.show(tbFlyingHours.childDescriptors[i].id);
 } 











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





  




  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] Re: User Infor in Flex Architecture

2005-09-15 Thread shahnavaz Alware










Hi Rishi,



I use Cairngorm 0.99 in my Flex App. When my user authentication
on the J2EE AppServer is successful I return UserInfoVO and set it to
ModelLocator.UserInfoVO=event.result. Now from this point on I have the whole
userInfo object on the client side so no worries about setting/getting it to/from
HttpSession. 



Thanks,



Shahnavaz











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of RISHI_SHUKLA
Sent: Thursday, September 15, 2005
4:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: User
Infor in Flex Architecture





Hi ,

I am want know this , if have done it , then
please let me know , it
would be very nice on your part.

Thanks  Regards
Rishi Shukla

--- In flexcoders@yahoogroups.com,
Shahnavaz Alware [EMAIL PROTECTED]
wrote:
 Hi,
 
 I am new programmer in Flex (RIA) using
Cairngrom 0.9 Framework. I
am using
 Flex with full fledge J2EE Application. 
 My question is How to handle User Management
(User Object as Session
 Variable) in Flex to reap the best
performance possible as my User
Info is
 massive. Is there any documentation? Thanks
in advance for reply.
 
 Thank you, 
 
 Shahnavaz










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





  




  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] change component name programatically

2005-09-15 Thread shahnavaz Alware










Just a small eg as below.

#

?xml version=1.0
encoding=utf-8?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml

mx:Script

![CDATA[



function changeID(event){

 mx.controls.Alert.show(Original
Id ---  + event.target.id);

 getChildAt(0).id
= testID;

}



 function changeAlert(event){

 mx.controls.Alert.show(Changed
Id ---  + getChildAt(0).id );

}

]]

/mx:Script

mx:Button id=abc label=Button
ABC click=changeID(event);/mx:Button

mx:Button id=testChangeID label=Get
New ID click=changeAlert(event);/mx:Button

/mx:Application





Thanks,



Shahn









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ghislain Simard
Sent: Wednesday, September 14,
2005 7:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] change
component name programatically





How to change the name of a compoent programatically and still keeping 
the same attribute?

Script: Change Comp1 for ComponentA in the
following line

EEfrm:Comp1 id=comp1
var={myVar}/

Thanks










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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Software design and development
  
  
Macromedia flex
  
  


Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] Need help defining named service using HTTPS

2005-08-23 Thread Shahnavaz Alware

Hi,

You will also need to set https-url in Web-Service-proxy element

https-url{context.root}/flashproxy/https-url

Thanks

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of terry_hrtn
Sent: Tuesday, August 23, 2005 8:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Need help defining named service using HTTPS

I have a web service running on HTTPS, and I'm trying to define it as a 
named service in my flex-config.xml file.  How do I change the protocol 
from http to https ( protocol=https) in flex-config.xml?

service name=myService
  wsdlhttps://localhost/myService/MyService.asmx?WSDL/wsdl
    endpoints
  endpointhttps://localhost/myService/myService.asmx/endpoint
    /endpoints
    use-custom-authenticationfalse/use-custom-authentication
/service





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


SPONSORED LINKS 
Computer software testing 
Macromedia flex 
Development 
Software developer 




YAHOO! GROUPS LINKS 

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






 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12h3mrrl3/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124824592/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/a./font
~- 

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

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

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

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





RE: [flexcoders] Error deploying flex application to Weblogic server[ Parekh, Shweta ]

2005-08-23 Thread Shahnavaz Alware










Hi Parekh,



Below is the reply we received recently from Macromedia about
deploying Flex-Apps on Weblogic 8.1. Its a reported bug.





-

Reply from Brian at Macromedia





The bug numbers are only internal to
Macromedia. I provided it here just for reference when talking with
someone from Macromedia. I know of no complete workarounds other than
expanding the war. Idid talk to someone who worked on the issue,
and she said that if you are only using RemoteObject (not
WebService/HTTPServlet) and precompile your SWFs (that is, not using.mxml
directly ever on the production machine, so you have to save the HTML wrapper
as well), then you don't run into this problem. I don't know how widely
this workaround is being used or tested, however, so your mileage may vary.



-Brian









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Shahnavaz Alware
Sent: Thursday, July 28, 2005 7:57
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Trouble
Deploying on WebLogic 8.1 [ Brian Deitte ]

Hi Brian 



Are the
internal bug numbers public, or are they only internal to Macromedia? Are
there any work arounds for this bug besides deploying exploded?



Thanks,



Shahnavaz







From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Brian Deitte
Sent: Tuesday, July 26, 2005 9:40
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Trouble
Deploying on WebLogic 8.1



Yes this is a known issue (internal bug
number 93750). I believe this is documented but don't have a reference to
it. -Brian









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dave Kuncl
Sent: Tuesday, July 26, 2005 11:58
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Trouble
Deploying on WebLogic 8.1

I am having trouble deploying a Flex web
app on WebLogic. It deploys fine if I expand the war file and hot deploy,
but when the app is bundled in a war file inside an ear file the servlets fail
to load.



Can a Flex web app only be deployed
expanded on WebLogic?














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








  
  
SPONSORED LINKS
  
  
  

Computer software testing
  
  
Macromedia flex
  
  
Development
  
  


Software developer
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] ModelLocator

2005-08-23 Thread Shahnavaz Alware
Title: ModelLocator










Hi Mehdi



To use ModelLocator and transfer VO is perfectly fine. 

Eg. I have a Datagrid dp=ModelLocator.organizations
and when I select in the datagrid I have ModelLocator.organization =
SelectedItem which I send to my J2EE server in your case CF.



import com.VO.*;



class model.ModelLocator implements
org.nevis.cairngorm.model.ModelLocator {

 

 public static function initialise()
: Void {

 }



//

 

public static var
organizations : Array;

public static var
organization : OrganizationalUnitVO;



}











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mehdi, Agha
Sent: Tuesday, August 23, 2005
12:15 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
ModelLocator





Great. That sounds exciting and a very
good approach. The way Im implementing is that I have a ModelLocator,
which has models as properties. Now should those individual models make the
ValueObjects available to views or just their own properties? Why I am leaning
towards VOs is so that its easier for me to send them over to CF. Does
that sound ok?



Thanks



Agha Mehdi 
IDT - eBusiness Program Manager 











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mercer, Dustin
Sent: Tuesday, August 23, 2005
11:56 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
ModelLocator





Exactly. I found after implementing
the ModelLocator, I pretty much wiped out the need for ViewHelpers. The
only thing I use the ViewHelpers for now is setting focus on fields! It
makes things a lot more organized and simplified. You are right
though. Just initialize it in the app init event and you will be able to
use it anywhere, anytime.



Dustin Mercer











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mehdi, Agha
Sent: Tuesday, August 23, 2005
11:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ModelLocator





Hi All,

How does ModelLocator work? I am looking at the
sample store and it makes sense but I am kind of confused. What I have understood so far is that ModelLocator Properties are
bound to views and Commands manipulate ModelLocator
to update views. Is ModelLocator available to the entire application once it gets
initialized on the root level? If it works like that then it means that I'd
hardly ever need ViewLocators??? I can create models, initialize them in
ModelLocator and use them wherever I want in the app?

Thanks



Agha Mehdi

IDT - eBusiness Program Manager

Work: 408.284.8239

Fax: 408.284.2766











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








  
  
SPONSORED LINKS
  
  
  

Computer software testing
  
  
Macromedia flex
  
  
Development
  
  


Software developer
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] Re: Need help defining named service using HTTPS

2005-08-23 Thread Shahnavaz Alware
Hi,

In https-url{context.root}/flashproxy/https-url replace the
“{context.root}” with your https://localhost/CONTEXT-ROOT

In my case I have Remote-Object 
amf-https-gatewayhttps://localhost:9443/core-product_web/amfgateway/amf-h
ttps-gateway
So if I would have used web-service 
https-urlhttps://localhost:9443/core-product_web/flashproxy/https-url

Thanks

Shahnavaz

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of terry_hrtn
Sent: Tuesday, August 23, 2005 11:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Need help defining named service using HTTPS

https-url is already set, still no response.  I can hit it directly 
in IE but get an error message that says Could not load WSDL: Server 
java.lang.RuntimeException: Invalid URL - can't access HTTPS URLs 
when accessing proxy via HTTP
tlh

--- In flexcoders@yahoogroups.com, Shahnavaz Alware [EMAIL PROTECTED] 
wrote:
 
 Hi,
 
 You will also need to set https-url in Web-Service-proxy 
element
 
 https-url{context.root}/flashproxy/https-url
 
 Thanks
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of terry_hrtn
 Sent: Tuesday, August 23, 2005 8:56 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Need help defining named service using HTTPS
 
 I have a web service running on HTTPS, and I'm trying to define it 
as a 
 named service in my flex-config.xml file.  How do I change the 
protocol 
 from http to https ( protocol=https) in flex-config.xml?
 
 service name=myService
   wsdlhttps://localhost/myService/MyService.asmx?WSDL/wsdl
     endpoints
   
endpointhttps://localhost/myService/myService.asmx/endpoint
     /endpoints
     use-custom-authenticationfalse/use-custom-authentication
 /service
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com 
 
 
 SPONSORED LINKS 
 Computer software testing 
 Macromedia flex 
 Development 
 Software developer 
 
 
 
 
 YAHOO! GROUPS LINKS 
 
 •  Visit your group flexcoders on the web.
   
 •  To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
   
 •  Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service. 
 
 




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


SPONSORED LINKS 
Computer software testing 
Macromedia flex 
Development 
Software developer 




YAHOO! GROUPS LINKS 

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






 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hilr2vn/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124845368/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

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

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

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

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




RE: [flexcoders] mx:Tree being populated by a CF Array?

2005-08-15 Thread shahnavaz Alware










Yes you can bind the dataprovider of the mx:Tree
to the RemoteObject result. I am using Cairngorm too and returning array of VO.




Thanks,

Shahnavaz











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott Barnes
Sent: Sunday, August 14, 2005
11:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] mx:Tree
being populated by a CF Array?





I can't quite seem to recall
on whether or not you can populate a
mx:TREE via a RemoteObject (which returns an
ArrayOfStructs).

Its possible isn't it? ie i'm using cairngorm
ModelLocator to bind the
view and remote together?


-- 
Regards,
Scott Barnes
http://www.mossyblog.com








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








  
  
SPONSORED LINKS
  
  
  

Computer software testing
  
  
Macromedia flex
  
  
Development
  
  


Software developer
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] How to handle a returned Java Collection in Flex - RemoteObject call

2005-08-03 Thread Shahnavaz Alware










Can you post your code snippet? What you
described in your email is right way and should work if your code is doing
right thing. 



Thanks











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, August 03, 2005
9:32 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to
handle a returned Java Collection in Flex - RemoteObject call







I have a Java function that returns a Collection
of VOs. I declared a
RemoteObject in Flex, and tried to assign the
event.result to an Array
variable, but it actually didn't work. I want to
use this data as the
DataProvider of ComboBoxes, or List, etc.

How can I read this data in Flex?

Thanks,
-Oscar.

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












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





  




  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Problem passing action script VOs using an array

2005-08-02 Thread Shahnavaz Alware










I am having a problem passing action
script VOs to the backend using an Array. Can someone tell me what I am
missing here...



Here is an example of what I am trying to
do:



First I get an array of VOs from the
backend



public function onResult(event:Object) :
Void {

 var infoArray : Array =
event.result;

.

.

.

}



Then later I call the backend and pass
back the array of VOs and this DOESN'T work because I get a class cast
exception...



public function saveUserInfo(userInfoArray
: Array) : Void {



 var call:Object =
service.save(userInfoArray);



}



However, if I do the same thing, but
create an array of new VOs and transfer all the values, this DOES work



public function saveUserInfo(userInfoArray
: Array) : Void {

 var infoArray : Array = new
Array();



 for (var i in userInfoArray) {

 var userIfno : UserInfoVO = new
UserInfoVO();




 userIfno.oid =
userInfoArray[i].oid;

 userIfno.name =
userInfoArray[i].activityId;


 

 infoArray .addItem(activity);



 var call:Object =
service.save(infoArray);



}





I don't understand exactly what the
problem is here, can anyone give insight to this issue?





Thanks,



Dave









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








  
  
SPONSORED LINKS
  
  
  

Computer software testing
  
  
Macromedia flex
  
  
Development
  
  


Software developer
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] Trouble Deploying on WebLogic 8.1 [ Brian Deitte ]

2005-07-28 Thread Shahnavaz Alware










Hi Brian 



Are the
internal bug numbers public, or are they only internal to Macromedia? Are
there any work arounds for this bug besides deploying exploded?



Thanks,



Shahnavaz









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Brian Deitte
Sent: Tuesday, July 26, 2005 9:40
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Trouble
Deploying on WebLogic 8.1





Yes this is a known issue (internal bug
number 93750). I believe this is documented but don't have a reference to
it. -Brian









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dave Kuncl
Sent: Tuesday, July 26, 2005 11:58
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Trouble
Deploying on WebLogic 8.1

I am having trouble deploying a Flex web
app on WebLogic. It deploys fine if I expand the war file and hot deploy,
but when the app is bundled in a war file inside an ear file the servlets fail
to load.



Can a Flex web app only be deployed
expanded on WebLogic?











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








  
  
SPONSORED LINKS
  
  
  

Computer software testing
  
  
Macromedia flex
  
  
Development
  
  


Software developer
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Cache issue on CheckBox( CellRenderer)

2005-07-20 Thread Shahnavaz Alware










Hi,



I have a DataGrid with Checkbox (CellRenderer). I do some checkbox
selection and hit SAVE which brings up a different view. I come back to the
same screen with DataGrid (with Checkbox), my checkbox at same index (I did the
selection last time I came to this page) in the datagrid are already selected. Is
this some kind of Caching issue or is it something I am doing wrong?



Thanks



Shahn









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





  




  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] Naming Conventions..

2005-07-12 Thread Shahnavaz Alware










Hi Scott,



Thats a great idea and very good
move as far as big projects are concerned. The project I am working on has CORE
and REFERENCE implementation as two different teams, where Flex UI development holds
a key for Implementers not on Core Team. I will be able to start sharing my
ideas in a week or so. I am sure everybody is following some sort of directory
structure for Flex Development and mostly Cairngorm. 



Thanks



Shahnavaz











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott Barnes
Sent: Tuesday, July 12, 2005 5:54
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Naming
Conventions..





Hi one and all,

I've been thinking as of late with regards to my
FLEX development,
mainly concerned with sepration of various tiers
into some at-a-glance
naming conventions.

Basicall, for a while i've lived with the
following Concept:

/views/security/AttachUserDialog.mxml
/views/security/SecuritySwitchBoard.mxml
/views/security/LoginForm.mxml

etc.

Thats fine, but i've decided as of late to fine
tune some of the
conventions used, mainly as i'm putting together
the dreaded Flex
Coding Guidelines for internal user.

I've been reading Apples User
Experience documentation (which is
probably the most impressive, freely available
doco online) and i've
been taking a page out of their book in terms of
UI classications
(that and Macromedia partially).

URL:
http://developer.apple.com/documentation/LegacyTechnologies/Conceptual/AquaHIGuidelines/index.html


To ellobrate, i've adopted naming prefixes like
the following:

/views/security/Dialogs/dlAttachUser.mxml
/views/security/Dialogs/dlLogin.mxml
/views/security/swSecurity.mxml

and so on..

Q. What's everyones thoughts on putting together a
Flex Conventions
doco? and anyone care to contribute their ideas
for such an idea? Or
is it a waste of time and really not a widely
requested aspect of
developing in flex?

-- 
Regards,
Scott Barnes
http://www.mossyblog.com


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









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



  
  





  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] TileList withh CellRendere.

2005-07-11 Thread Shahnavaz Alware










Hi All,



I am implementing the TileList with CellRenderer

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml

initialize= loadComplete()/



 mx:Script

 ![CDATA[

 

 import
com.test.model.ModelLocator;

 import
com.test.dto.ActivityDTO;

 import
org.nevis.cairngorm.control.EventBroadcaster;

 import
com.test.control.SfmController; 

 

 public
var activities : Array;

 

 public
var activity : ActivityDTO; 

 

 private
function loadComplete() : Void {

 

 EventBroadcaster.getInstance().broadcastEvent

 (
SfmController.EVENT_GET_ACTIVITIES_WORK_QUEUE ); 

 } 

 

 ]]

 /mx:Script



mx:TileList id=tileListComp
width=100% height=100% 

 dataProvider={
ModelLocator.activities } 

 itemWidth=300
itemHeight=100 

 cellRenderer=com.test.view.activityview.ActivityDetailThumbnail


 change=activityWorkQueueListViewHelper.updateSelectedActivity(
event )/







CellRenderer



 import
com.hmssoftware.sfm.dto.ActivityDTO;

 import
com.hmssoftware.sfm.dto.DeliverableDTO;

 import
com.hmssoftware.sfm.model.ModelLocator; 

 public
var activity : ActivityDTO;

 public
var deliverable : DeliverableDTO;



 public
function setValue( str : String, item : Object ) 

 {

 

   activity
= ActivityDTO( item ); // This is undefined

 mx.core.Application.alert(
activity.activityId:  + activity.activityId );// Resulting
in activity.activityId: Undefined ??

 

 }



I am unsing Cairngorm 0.99. In my onResult() of command when
I check for data ModelLocator.activities its valid.

But the TileList dataprovider when initialized is undefined.
I guess I need some sequence which will help me to initialize CellRenderer 

After the onResult() where I am assigning event.result
to ModelLocator.activities. Thanks in advance for any suggestion
or help.



Thanks,



Shahn














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



  
  
SPONSORED LINKS
  
  
  

Computer software testing
  
  
Macromedia flex
  
  
Development
  
  


Software developer
  

   






  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] Flex with Websphere

2005-07-01 Thread Shahnavaz Alware










Yes we were able use the Websphere 6.0 and
Flex with security turned ON. I am using Custom User registry. 











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Ricardo Menna
Sent: Friday, July 01, 2005 5:35
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex with
Websphere





Hi,

Does anybody has used Flex with Websphere with
security mode turned on ?

Does anybody uses WebsphereLoginCommand ? Is it
really integrated with
Java 2 Security of Websphere ?

Thanks in advance !

Ricardo Menna


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









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



  
  
SPONSORED LINKS
  
  
  

Computer software testing
  
  
Macromedia flex
  
  
Development
  
  


Software developer
  

   






  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Sequence Diagram for Cairngorm 0.99

2005-06-17 Thread Shahnavaz Alware










How can I get the sequence diagram for cairngorm 0.99? Thanks
in advance



Shahn



It is our company policy not to accept email of any data controlled by
the International Traffic in Arms Regulations (ITAR). Please contact our
Security Officer, Alexander Houtzeel, for instructions and authorization to
transmit such data.













Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[flexcoders] Flex Component

2005-06-15 Thread Shahnavaz Alware










Hi All,



This is a repetition of my last email. Does Flex provide
anything for Breadcrumb/trail? Actually I have to replace the
ViewStack implementation by some kind of trailing functionality. So I am trying
to find out how I can achieve the same Viewstack implementation with multiple
PATH to get to the same screen. Any reply would be helpful as I am new to this Flex
UI.



Thank you,



Shahn













Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[flexcoders] BreadCrumb or Trail

2005-06-14 Thread Shahnavaz Alware










Hi All,



Does Flex provide anything for Breadcrumb/trail?
Actually I have to replace the ViewStack implementation by some kind of trailing
functionality. I appreciate any reply in this.



Thanks



Shahn











Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[flexcoders] Synchronous Call

2005-05-13 Thread Shahnavaz Alware










Hi All,



I am using Cairngrom 0.9 Framework. I have the need to have
the ability of synchronous call to remote objects and methods in a particular
sequential flow. I read somewhere that Cairngrom 1.0 going to take care of this
synchronize resources issue. Till than if any of you guys have code
snippet or any documentation for me to handle this would be really helpful.



Thanks,



Shahn











Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[flexcoders] User Infor in Flex Architecture

2005-04-29 Thread Shahnavaz Alware








Hi,I am new programmer in Flex (RIA) using Cairngrom 0.9 Framework. I am using Flex with full fledge J2EE Application. My question is How to handle User Management (User Object as Session Variable) in Flex to reap the best performance possible as my User Info is massive. Is there any documentation? Thanks in advance for reply.Thank you, Shahnavaz













Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[flexcoders] remote object authentication in websphere

2005-04-28 Thread Shahnavaz Alware










Hi,



I have been struggling with Authentication of the remote
object service on Websphere 6.0. This is the first time I am doing this
configuration so not sure what I am doing wrong. I will list what steps I did
so far.



-- Flex-config.xml



named

 object
name=responsibilityAssignmentDelegate


sourcecom.software.ResponsibilityAssignmentDelegate/source

 typestateless-class/type

 use-custom-authenticationtrue/use-custom-authentication

 allow-unnamed-accessfalse/allow-unnamed-access

 roles

 roleadmin/role

 /roles 

 /object

/named





-- Web.xml



 security-constraint

  display-nameTest1/display-name

  web-resource-collection

  web-resource-nameProtected
Page/web-resource-name

  descriptionTest
with J2EE/description

  url-pattern/amfgateway/responsibilityAssignmentDelegate/url-pattern

  http-methodGET/http-method

  http-methodPOST/http-method

  /web-resource-collection

  auth-constraint

  descriptionadmin/description

  role-nameAdmin/role-name

  /auth-constraint

 /security-constraint

 security-role

  descriptionadmin/description

  role-nameAdmin/role-name

 /security-role



In Websphere I am using custom user registry and Global
Authentication is enabled. I can login to Websphere Admin Console using my
user/pwd, but cant get authenticated if I try from flex login.



Thank you, 



Shahn











Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[flexcoders] Data Rows on MXML

2005-03-30 Thread Shahnavaz Alware










Hi, 



I am piloting the application in Flex where I am trying to bring
back 5000 records from backend. The application breaks down in between. I am
new to flex, so I am unaware of Memory management parameters which will allow
me to allot memory to flex which is running out of memory ( FlexServlet MemoryOutError
). So is there a way flex can handle large amount of data. 

Thanks in advance.



Shahn











Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] Flex 1.5 price

2005-03-25 Thread Shahnavaz Alware

With Lazlo around price for Flex should go down or MM looses the ground to
OpenSource.

-Original Message-
From: Thijs Triemstra | Collab [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 25, 2005 9:39 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 1.5 price


Laszlo it is. I expected that the price of Flex would drop, and 
certainly not double, this is crazy!!!


Thijs


Op 25-mrt-05 om 17:36 heeft Dennis Jackson het volgende geschreven:

 Sounds like laszlo time :)
 -Original Message-
 From: Matthew Shirey [EMAIL PROTECTED]
 Date: Fri, 25 Mar 2005 08:32:45
 To:flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex 1.5 price


 Our shop cannot hardly pull the current price... If it goes up I don't
 know what it will mean for us, but I doubt its good.  We're in love
 with flex, but we may have to give it up if they raise the price on it
 like that.

 -- Matthew


 On Fri, 25 Mar 2005 14:25:38 +0200, Robert Stuttaford
 [EMAIL PROTECTED] wrote:



 Ohh lord it's that time again.



 I started freelancing on April 1 2004 . my boss thought I was trying 
 to pull
 his leg!



 I guess that means it's champagne time for me soon .



 


 From: ?? [mailto:[EMAIL PROTECTED]
  Sent: 25 March 2005 01:54 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flex 1.5 price





 I heard bad news today.



 Macromedia will change Flex 1.5 price $12,000(2cpu) to $20,000(1cpu).


 This price will be started at april 1, 2005.


  Is it true?





 yang lim.











  Yahoo! Groups Sponsor

  ADVERTISEMENT


 
  Yahoo! Groups Links


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

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

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



 Yahoo! Groups Links








 Sent via BlackBerry - a service from ATT Wireless.



 Yahoo! Groups Links







 
Yahoo! Groups Links



 








 
Yahoo! Groups Links

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

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

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





[flexcoders] Any Idea about Cairngorm 1.0?

2005-03-25 Thread Shahnavaz Alware










Hi Steven,



I have seen that there is a reference of PDF file along with
Cairngorm 0.9, but unable to find it L . This
architecture is awesome, I read the book and was able to get the application up
and running.



Thanks,



Shahn











Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[flexcoders] ActionScript/Java Data Type Mapping

2005-03-24 Thread Shahnavaz Alware










I am looking for ActionScript/Java data type mapping Document. Can someone
pass me the link or resource where I can refer.











Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[flexcoders] Custom Slider extension.

2005-03-23 Thread Shahnavaz Alware










Hi FlexCoders,



I am a newbie to Flex  RIA playing with the
LoanApplication.mxml (chapeter 18 by Steven Webster) where I have extended
Hslider to have 3 thumbcount and have 3 DataGrids reflecting them respectively.

This LoanApplication worked as is with Slider.swc which is
packaged along. Now when I have my Custom Slider(thumbCount=3) my DataGrids
does not load.



Changes to unknown property, month will not be
detected 

Changes to unknown property, balance will not be
detected

Changes to unknown property, repayment will not be
detected

Changes to unknown property, interest will not be
detected



--This works

custom:MySlider id=loanAmount
minimum=1000 maximum=25000
tickInterval=1000 snapInterval=500 

 width=165
thumbCount=1 initialize=loanAmount.value = 1; /





--This does not work

custom:MySlider id=mySlider
thumbCount=3 minimum=12 maximum=120
labels=[ 12, 60 ] 

 snapInterval=12
tickInterval=12 width=165 liveDragging=true


 initialize=mySlider.values=[12,
60, 120];

 trackColors=[0xEE,0x0099FF]
/



Thanks



Shahn















Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.