[flexcoders] Big surprise! 4-

2010-05-26 Thread Jon Santos
Dear friend,
How are you doing recently?
One of my Japanese friend recommended me a website(snnsn.com),there they have 
all kinds of electronic products,such as computers,phones,cameras,TVs and so 
on,they have very good quality and competative prices,I just bought a sony 
computer,they have a very speeding delivery,and I have received the product 
now,if you are interested in electronic products,you can log on their 
web(www.snnsn.com), I believe you will find the products you like there!And 
share good deals with friends!
Greeting!
y-


  

Re: [flexcoders] Re: Question about IISTestProjectFlex3 project

2008-05-15 Thread Jon Santos
Ok ok Cato.i imagine that before.
By the wayin other test i try to make with your appplicationi´m using 
Granite to connect with RemoteObjects.but i didn´t change ur source I 
suppose use Flex DataServices2.5.6 or Granite1.0 must be transparent for the 
proper behavior of the applicaiton.i´m right?
Ok.by the wayi´m waiting your new files
Thanks in advance Cato
Really i appreciate your help.


- Original Message 
From: Cato Paus [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, May 15, 2008 6:21:08 PM
Subject: [flexcoders] Re: Question about IISTestProjectFlex3 project


Ah, yes of course, I have the Flex data servises 2.5.6 running in 
this project, sorry I will take that away and send you new files :)

--- In [EMAIL PROTECTED] ups.com, Jon Santos [EMAIL PROTECTED] wrote:

 
 
 
 - Forwarded Message 
 From: Jon Santos [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, May 15, 2008 4:16:11 PM
 Subject: Question about IISTestProjectFlex3 project
 
 
 Hi Cato..
  
 I´m trying to install your application. ...in my Eclipse
  
 I have created the IISTestProjectFlex3 Flex project 
  
 To see the structure of my project in Eclipsesee the attached 
file.
  
 I´m getting one error :
  
 unable to open 'C:\videoclub\ IISTestProjectFl ex3
\LCDS_FLEX_SERVER_ ROOT\WEB- INF\flex\ libs\fds. swc'
  
 I don´t know if i must create the LCDS_FLEX_SERVER_ ROOT or just 
change my properties of my project
 Can you check it.
  
 Thanks in advance


 


  

Re: [flexcoders] Re: Trying to use FileSystemList

2008-05-13 Thread Jon Santos
Hi Catoi already have try ur applicaiton in my project.
When i load the structure directories of my ROOT, if i click one folder i 
always get one error :
ArgumentError: Error #2025: El objeto DisplayObject proporcionado debe ser un 
elemento secundario del llamador.
 at flash.display::DisplayObjectContainer/getChildIndex()
 at 
mx.managers::SystemManager/getChildIndex()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\SystemManager.as:1286]
 at 
mx.managers::SystemManager/mouseDownHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\SystemManager.as:2620]

I also have to tell you one thingi didn´t use your .swc files.i don´t 
know if i need them for use it in my application
Maybe that error is because i need to load one library you sent to me the last 
time
Thanks in advance...

- Original Message 
From: Jon Santos [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, May 12, 2008 4:45:03 PM
Subject: Re: [flexcoders] Re: Trying to use FileSystemList


Thanks a lot Cato..i will try to develop using your help 
 
Thanks again for your time.



- Original Message 
From: Cato Paus [EMAIL PROTECTED] no
To: [EMAIL PROTECTED] ups.com
Sent: Monday, May 12, 2008 4:13:44 PM
Subject: [flexcoders] Re: Trying to use FileSystemList


Hi I zip'ed it up for you, you can get it at:

http://flexcoders. no/flex/zip/ classes.zip - WEB-INF Classes!
http://flexcoders. no/flex/zip/ IISTestProjectFl ex3.zip - Flex3 project
http://flexcoders. no/flex/zip/ remoting- config.zip - the remoting-
config.xml file in web-inf - flex.

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

 
 Hi all
 
 In my flex application i try to use the FileSystemList 
component... but i
 don´t have the library flash.filesystem. File
 
 If i see in internet i can read is only for AIR.how i can 
install
 in my Flex application or how i can use it?
 
 Thanks is advance




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


  

Re: [flexcoders] Re: Trying to use FileSystemList

2008-05-12 Thread Jon Santos
Thanks a lot Cato..i will try to develop using your help
Thanks again for your time.



- Original Message 
From: Cato Paus [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, May 12, 2008 4:13:44 PM
Subject: [flexcoders] Re: Trying to use FileSystemList


Hi I zip'ed it up for you, you can get it at:

http://flexcoders. no/flex/zip/ classes.zip - WEB-INF Classes!
http://flexcoders. no/flex/zip/ IISTestProjectFl ex3.zip - Flex3 project
http://flexcoders. no/flex/zip/ remoting- config.zip - the remoting-
config.xml file in web-inf - flex.

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

 
 Hi all
 
 In my flex application i try to use the FileSystemList 
component... but i
 don´t have the library flash.filesystem. File
 
 If i see in internet i can read is only for AIR.how i can 
install
 in my Flex application or how i can use it?
 
 Thanks is advance


 


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: [flexcoders] Re: Trying to use FileSystemList

2008-05-11 Thread Jon Santos
Hi all.thansk for the examplemore or less is what i´m finding for
The unique problemi can not download the source
Someone knowsif the source is available?
Thanks in advance.


- Original Message 
From: Cato Paus [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, May 9, 2008 9:40:13 PM
Subject: [flexcoders] Re: Trying to use FileSystemList


check out the http://flexcoders. no

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

 
 Hi all
 
 In my flex application i try to use the FileSystemList 
component... but i
 don´t have the library flash.filesystem. File
 
 If i see in internet i can read is only for AIR.how i can 
install
 in my Flex application or how i can use it?
 
 Thanks is advance


 


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: [flexcoders] Trying to use FileSystemList

2008-05-09 Thread Jon Santos
Oki chatch you point...
Really i don´t need to use the FileSystemList from AIR classes
I can use other kind of componentsbut i want to develop one thinglet me 
explain you my task.
I want to allow my users to upload some files to my serverfirstly selecting 
in which directory of my share server will be able to upload the files. Before 
i saw the FileSystemList and i liked it a lotbut my application will be Web 
application and i understand AIR project is only for desktopisn´t it?
Can you help me?
Thanks in advance.


- Original Message 
From: Gregor Kiddie [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, May 9, 2008 4:26:00 PM
Subject: RE: [flexcoders] Trying to use FileSystemList


If you are developing a swf to be deployed on a web page using the flash 
player, you cannot use any AIR only classes.
 
If you want or need to use FileSystemList, you will have to create an AIR 
project and deploy it so that is uses the AIR framework.
 
There is no way of getting the Flash Player to use AIR classes.
 
Gk.
Gregor Kiddie
Senior Developer
INPS
Tel:   01382 564343
Registered address: The Bread Factory, 1a Broughton Street, LondonSW8 3QJ
Registered Number: 1788577
Registered in the UK
Visit our Internet Web site at www.inps.co. uk
The information in this internet email is confidential and is intended solely 
for the addressee. Access, copying or re-use of information in it by anyone 
else is not authorised. Any views or opinions presented are solely those of the 
author and do not necessarily represent those of INPS or any of its affiliates. 
If you are not the intended recipient please contact is.helpdesk@ inps.co.uk



From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of txakin
Sent: 09 May 2008 09:45
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Trying to use FileSystemList
 
Hi all
In my flex application i try to use the FileSystemList component... but i don´t 
have the library flash.filesystem. File
If i see in internet i can read is only for AIR.how i can install in my 
Flex application or how i can use it?
Thanks is advance 


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: [flexcoders] Trying to use FileSystemList

2008-05-09 Thread Jon Santos
i know how to use the Filereference and FileReferenceList objects.I already 
have used to upload some files to my server
When i use the FileReferencei use on servlet to upload my filesbut the 
directory is always fixed.like something like that in my servlet :
FileOutputStream fileOutSt = newFileOutputStream(c:/Downloads/test/+ 
fileName);
I would like to allow my users to select one folder from the directory 
structure for save some files therenot fixed path like before.
More or less something like FileSystemList or other object.but only for web 
applicaiton based on Flex 3.0.

Do you understand me?
Thanks again
- Original Message 
From: Gregor Kiddie [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, May 9, 2008 5:24:13 PM
Subject: RE: [flexcoders] Trying to use FileSystemList


“I want to allow my users to upload some files to my serverfirstly 
selecting in which directory of my share server will be able to upload the 
files. Before i saw the FileSystemList and i liked it a lotbut my 
application will be Web application and i understand AIR project is only for 
desktopisn´ t it?”
 
Are you trying to show your server directory structure or the directory 
structure on the client? If it is the server, you will have to write some 
bespoke code for that, there isn’t anything in Flex that I’m aware of that will 
display that automatically. If you are trying to allow the user to select files 
to upload, look at FileReferenceList.
 
Gk.
Gregor Kiddie
Senior Developer
INPS
Tel:   01382 564343
Registered address: The Bread Factory, 1a Broughton Street, LondonSW8 3QJ
Registered Number: 1788577
Registered in the UK
Visit our Internet Web site at www.inps.co. uk
The information in this internet email is confidential and is intended solely 
for the addressee. Access, copying or re-use of information in it by anyone 
else is not authorised. Any views or opinions presented are solely those of the 
author and do not necessarily represent those of INPS or any of its affiliates. 
If you are not the intended recipient please contact is.helpdesk@ inps.co.uk



From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Jon Santos
Sent: 09 May 2008 11:08
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] Trying to use FileSystemList
 
Oki chatch you point...
 
Really i don´t need to use the FileSystemList from AIR classes
I can use other kind of components.. ..but i want to develop one thinglet 
me explain you my task.
 
I want to allow my users to upload some files to my serverfirstly selecting 
in which directory of my share server will be able to upload the files. Before 
i saw the FileSystemList and i liked it a lotbut my application will be Web 
application and i understand AIR project is only for desktopisn´ t it?
 
Can you help me?
 
  


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: [flexcoders] Re: TypeError: Error #2007: The parameter listener must not be NULL + Cairngorm

2008-04-28 Thread Jon Santos
For sure the function loaderCompleteHandler exists.
Any other suggestions?
I have one similar example.and i get the result succesfully.
Here is the soruce.
?xml version=1.0 encoding=utf-8?mx:Canvas
creationComplete=doInit() width=
height=xmlns:mx=http://www.adobe.com/2006/mxml; 100%438 
backgroundAlpha=1.0 
borderStyle=solidmx:Script![CDATA[importcom.cairngorm.events.movieimage.GetCoverEvent;importcom.cairngorm.model.ViewModelLocator;publicvarmodel
 : ViewModelLocator = ViewModelLocator.getInstance();privatevarmyMovieId:String 
= null;privatefunctiondetailMovie():void{  varmyMainAcorName:String;  
varmySecondAcorName:String;  varmyDirectorName:String = 
this.grdMovies.selectedItem.director.directorName;  varmyGenreName:String = 
this.grdMovies.selectedItem.genre.genreName;  ..
  //Set the variable with wich we control if the movie to save is an insert or 
an update  showCover();
 }// Called to display the cover of the selected movie  
getCoverEvent.dispatch();
}
publicfunctionloaderCompleteHandler(event:Event):void{
}
]]  this.coverImg.source = event.currentTarget.content asBitmap; 
/mx:Scriptmx:DataGridid=grdMovies height=199 dataTipField=synopsis 
click=detailMovie() dataProvider={model.listMovies} top=231 left=10 
width=95%    mx:columns mx:DataGridColumnshowDataTips=true 
headerText=Title dataField=title/ 
mx:DataGridColumnheaderText=Director dataField=director 
labelFunction=showDirectorName  
sortCompareFunction=ordenarPorDirector/    
mx:DataGridColumnheaderText=Main Actor dataField=mainActor 
labelFunction=showActorName/    mx:DataGridColumnheaderText=Year 
dataField=movieYear/    
/mx:columns /mx:DataGridprivatefunctionshowCover():void{  
this.coverImg.source = null;   vargetCoverEvent:GetCoverEvent = 
newGetCoverEvent(this.myMovieId);  this.myMovieId = 
this.grdMovies.selectedItem.movieId; 
In this examplei display the image...when i selected one row in the 
datagrid.
 
The event, command and other class are the same as in the other example.
And teh unique thing diferent thing in the ViewModelLocator.as
import
  { 
 loader.loadBytes(
 loader.contentLoaderInfo.addEventListener(Event.COMPLETE,   
Application.application.adminmovies.loaderCompleteHandler);
   } 
}
I hope someone can help me. Thanks in 
advanceflash.display.Loader;publicfunctiondisplayImage():void{   
if(this.movieCover != null this.movieCover.length  0)  varloader:Loader 
= newLoader();this.movieCover);
- Original Message 
From: valdhor [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, April 26, 2008 3:26:28 AM
Subject: [flexcoders] Re: TypeError: Error #2007: The parameter listener must 
not be NULL + Cairngorm


Instead of adding an event listener, just try to call the function -
does it work? Does the function exist? 

--- In [EMAIL PROTECTED] ups.com, Jon Santos [EMAIL PROTECTED] wrote:

 But i don´t understand.. ..i have debug my application. ...i have
traced.. ..but i donñt understand why always this errorfrom
where is generated... .
 please...can you check my source...
 Thanks in advance.
 
 
 
 - Original Message 
 From: valdhor [EMAIL PROTECTED] ..
 To: [EMAIL PROTECTED] ups.com
 Sent: Thursday, April 24, 2008 8:19:27 PM
 Subject: [flexcoders] Re: TypeError: Error #2007: The parameter
listener must not be NULL + Cairngorm
 
 
 Check the value of your listener function:
 
 Application. application. repeatermovies. detailmovie.
loaderCompleteHa ndler
 
 The error says that this is null.
 
 
 
 
 
 _ _ _ _ _ _
 Be a better friend, newshound, and 
 know-it-all with Yahoo! Mobile. Try it now. 
http://mobile. yahoo.com/ ;_ylt=Ahu06i62sR 8HDtDypao8Wcj9tA cJ


 


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: [flexcoders] Granite Data Services 1.1.0 RC1 released

2008-04-27 Thread Jon Santos



- Original Message 
From: fwolff999 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, April 25, 2008 9:05:48 PM
Subject: [flexcoders] Granite Data Services 1.1.0 RC1 released


Hi all, 
 
The new 1.1.0 release candidate 1 of Granite Data Services, the freealternative 
of Adobe LiveCycle Data Services for Flex/J2EE servers, wasreleased. 
 
This release brings many new features, improvements and bug fixes: 

* A tighter Granite/JBossSeam integration (Tide). 
* An improved ActionsScript3 generator (Gas3). 
* A new ActionsScript3/ Java type conversions stack. 
* A (partially) automated configuration for several Flex/Granite 
options. 
See more on GDS forum here. 
 
Best regards, 
Franck.  


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: [flexcoders] Re: TypeError: Error #2007: The parameter listener must not be NULL + Cairngorm

2008-04-25 Thread Jon Santos
But i don´t understandi have debug my applicationi have 
tracedbut i donñt understand why always this errorfrom where is 
generated
please...can you check my source...
Thanks in advance.



- Original Message 
From: valdhor [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, April 24, 2008 8:19:27 PM
Subject: [flexcoders] Re: TypeError: Error #2007: The parameter listener must 
not be NULL + Cairngorm


Check the value of your listener function:

Application. application. repeatermovies. detailmovie. loaderCompleteHa ndler

The error says that this is null.

 


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: [flexcoders] How to download a BLOB from database....using Java

2008-04-12 Thread Jon Santos
Hi Jim.i know how to get the image in my POJO.

The process i´m following: 

I get the image form database throw my servlet. In this class i get the 
ImageObject (POJO), it means the image and other data.
In my FLEX application i have one object ImageObject (Action Script)like 
Remote Object for the java objectthen i able to get the image and the other 
data in my FLEX application

The unique problem i´m finding : I don´t know how to display in my FLEX 
application (it means your B question).i don´t know which component i must 
use to display my image (array of bytes).

Thanks in advanceand i hope u already understad my problem.

- Original Message 
From: Jim Hayes [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, April 11, 2008 11:53:38 PM
Subject: RE: [flexcoders] How to download a BLOB from databaseusing Java


Is your question
a) how to get the byteArray into flex?
b) how to display it once it is in flex?
c) both a and b ?

I can help you with b !

-Original Message-
From: [EMAIL PROTECTED] ups.com on behalf of txakin
Sent: Fri 11/04/2008 14:29
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] How to download a BLOB from database using Java

Hi all

I would like to know...how to download a BLOB (image, file...binary 
data) from my Oralce database to my Flex application.

I think i already have my servlet createdthe souce can be more 
or less like the next one:

Session session = HibernateSessionFac tory.getSession( );

//Here i get my POJO (my movieImage object)
MovieImage myMovieImage = (MovieImage) session.load( MovieImage. class, 
movieId);

//I got the binary data (in this case one image), into array of bytes
byte[] myCover = myMovieImage. getCover( );
ServletOutputStream servletOutputStream = res.getOutputStream ();
res.setContentType( application/ image);
res.setContentLengt h(myCover. length);
servletOutputStream .write(myCover, 0, myCover.length) ;
servletOutputStream .flush();
servletOutputStream .close();

But my problem is how to show that image in my component... .

Can someone help me (with some source or with some steps or some 
example) to get the solution?

Thansk in advance.

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

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

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

Re: [flexcoders] Re: DataGrid with labelfunction + POJO

2007-08-27 Thread Jon Santos
Hi again.

I have tried to make like you told me before :

import bkn.pojo.Formasi;
public function getInstansiNama(item:Object, column:DataGridColumn):String
{ 
var myPOJOFormasi:Formasi = Formasi(item);
Alert.show(Instansi :  + myPOJOFormasi.instansi);
return PPP; 
}

The value of the instansi : NULL

Here i send to you the source of the function where i get the Formasi List, 
because i use that function in dataProvider of my DataGrid:

public Formasi[] getFormasi( String pTahun ) 
throws ClassNotFoundException, SQLException
{
Formasi[] myFormasi = null ;
try
{
Configuration cfg = new Configuration ();
cfg.configure(); 
SessionFactory sessions = cfg.buildSessionFactory();
Session session = sessions.openSession();
Criteria crit = session.createCriteria(Formasi.class);
Integer iTahun = Integer.valueOf(pTahun);
crit.add( Restrictions.eq(tahun, iTahun));
crit.setMaxResults(10);
java.util.List formasis = crit.list();
myFormasi = new Formasi [formasis.size()];
formasis.toArray(myFormasi);

//Here the result never is NULL, always have the correct data
System.out.println(+++ Despues de load:  + 
myFormasi[0].getInstansi().getNama());

return myFormasi;
}
catch (Exception ex)
{
System.out.println(Exception  + ex.getMessage());
}
finally
{
return myFormasi;
}
}

Thanks in advance



- Original Message 
From: simonjpalmer [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, August 26, 2007 10:11:05 AM
Subject: [flexcoders] Re: DataGrid with labelfunction + POJO

what happens if you cast item to a FormasiFlex, e.g.

FormasiFlex( item).istansi;

--- In [EMAIL PROTECTED] ups.com, Jon Santos [EMAIL PROTECTED] wrote:

 If i put one Alert to display ITEM, the value is : item : [object
FormasiFlex]
 
 This is the code i have using to see the value of the ITEM object:
 
 public function myInstansiNama( item:Object,
column:DataGridColu mn):String
 { 
 Alert.show( item :  + item.toString( )); 
 return item.toString( );
 }
 
 In the attached file i send to you one screenshot, you will see my
problem.
 
 If someone can help me...thaks in advance.
 
 
 
 
 - Original Message 
 From: Jon Santos [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] ups.com
 Sent: Thursday, August 23, 2007 8:13:04 PM
 Subject: Re: [flexcoders] Re: DataGrid with labelfunction + POJO
 
 My MXML file is like that :
 
 ?xml version=1.0 encoding=utf- 8?
 mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml
layout=absolute xmlns:ns1=war. pruebas. * creationComplete=
ActivateEvents( )
 mx:Script
 ![CDATA[
 import bkn.pojo.InstansiPe merintah;
 import mx.core.IDataRender er;
 import mx.events.FlexEvent ;
 import mx.core.Container;
 import mx.controls. Alert;
 import mx.collections. ArrayCollection;
 import mx.containers. *;
 import mx.validators. NumberValidator;
 /* [Bindable]
 [RemoteClass( alias=bkn. pojo.JenisFormas i)]
 public class JenisFormasi
 {
 public var kode:String;
 public var deskripsi:String;
 } */
 private var AddOrEdit:String;
 private var DosActivated: Boolean = false;
 private function lihatTahun() :void
 {
 this.srv.getFormasi (this.txtTahun. text) ;
 }
 private function ActivateEvents( ):void
 {
 this.dos.addEventLi sten er(FlexEvent. CREATION_ COMPLETE, setValues) ;
 }
 private function setValues(e: FlexEvent) :void
 {
 this.AddEdit( );
 } 
 private function ActionAdd(): void
 {
 this.AddOrEdit = Add;
 this.vs.selectedChi ld = dos;
 if (this.DosActivated)
 {
 this.AddEdit( );
 }
 }
 private function InsertFormasi ():void
 {
 }
 private function ActionEdit() :void
 {
 this.AddOrEdit = Edit;
 this.vs.selectedChi ld = dos; 
 if (this.DosActivated)
 {
 this.AddEdit( );
 }
 }
 public function AddEdit():void
 {
 if (this.AddOrEdit != Edit) {
 this.myFormasi. tahun. text = ;
 this.myFormasi. jumlah. text = ;
 this.myFormasi. tanggalM enpan.text = ;
 this.myFormasi. Instansi Nama.text = ; 
 }
 else {
 this.myFormasi. tahun. text = this.dg.selectedIte m. tahun;
 this.myFormasi. jumlah. text = this.dg.selectedIte m. jumlah;
 this.myFormasi. tanggalM enpan.text = this.dg.selectedIte m.
tanggalMenpan;
 this.myFormasi. Instansi Nama.text = this.dg.selectedIte m. nomorMenpan; 
 }
 this.DosActivated = true;
 }
 public function ReturnToStart( ):void
 {
 this.vs.selectedChi ld = cero;
 }
 public function myLabelFunc( item:Object, column:DataGridColu
mn):String{
 return item[column. dataField] .toDateString( );
 //return item[column. datafield] .toDateString( );
 }
 //cliente seleccionado
 public function myInstansiNama( item:Object, column:DataGridColu
mn):String
 { 
 Alert.show( item.instansi :  + item.instansi) ; 
 return Jon;
 }
 ]]
 /mx:Script
 mx:RemoteObject id=srv showBusyCursor= true destination= pojo /
 mx:NumberValidator source={txtTahun}  property=text
invalidCharError= This is not a number integerError= Masukan
Integer value
 minValue=1900 maxValue=2007 domain=int 
 trigger={btnLihatT ahun} triggerEvent= click
 valid=lihatTahun( )/
 mx:ViewStack id=vs width=100% height=90% right=0 bottom=0
 mx:Canvas id=cero label