[flexcoders] Mark Shen

2013-02-26 Thread Mark Shen
nbsp;nbsp; 
http://www.multimaticagalega.com/hm/q6wn.1pbu9s?ol0ndfm4p6bz0p4ocfn3afg09mdzcpnbsp;nbsp;nbsp;nbsp;
 nbsp; Mark Shen2/26/2013 6:35:09 PM

Re: [flexcoders] Re: How to extract and save the contents of an image ,audio or video file ?

2008-11-20 Thread Mark Shen
I have a question for this.

How to save image,audio and video data to bytearray?

Thanks

Mark





From: Weyert de Boer [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, November 20, 2008 3:14:18 PM
Subject: Re: [flexcoders] Re: How to extract and save the contents of an image 
,audio or video file ?


You can just try to compress the file first and then just send the 
bytearray to the blob. :)



  

Re: [flexcoders] How to get a item in Arraycollection?

2008-06-07 Thread Mark Shen
It works with trace(acTest.getItemAt(0).first);

Thanks

Mark


- Original Message 
From: Richard Rodseth [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, June 7, 2008 6:04:01 PM
Subject: Re: [flexcoders] How to get a item in Arraycollection?


You can use acTest.getItemAt( 0)

acTest.source[ 0] also compiles.

If you are using Flexbuilder, Cntl-Space (or PC equivalent) gives you
content assist, so just type it after the period and see what you
get.

On Sat, Jun 7, 2008 at 5:57 PM, markflex2007 markflex2007@ yahoo.com wrote:
 Hi,

 I have a demo here:

 acTest = new ArrayCollection( [{first: 'Matt', last:
 'Matthews'}, {first: 'Jame', last: 'Wang'},{first: 'Rey', last:
 'Chang'}]);

 trace(acTest. length.toString( ));
 trace(acTest. list.source[ 0].first) ;

 I want to use 'acTest.list. source[0] .first' to get Matt.but I can not.
 Please let me know the correct syntax.

 I am new for Arraycollection and I like to learn.Please help me.

 Thanks a lot

 Mark

 



  

Re: [flexcoders] coldfusion and Flex?

2008-05-15 Thread Mark Shen
Hi Jeff,
I use CF7.02 and I use default services-config. xml .
Do you mean I do not need change FB project setting and Flex codes? I work in 
local pc, I can not install cf 7 and cf 8 in same system ,right?
Thanks
Mark


- Original Message 
From: Battershall, Jeff [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, May 15, 2008 4:39:10 PM
Subject: RE: [flexcoders] coldfusion and Flex?


If you're using CF 7.02, the differences should be mimimal. The
services-config. xml filea now has things broken out into separate files,
so if you've done anything custom there, you'll have a small amount of
work to do.

Set up a dev instance using the developer edition of CF8 and test things
out to be sure.

Jeff

-Original Message-
From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
Behalf Of markflex2007
Sent: Thursday, May 15, 2008 3:22 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] coldfusion and Flex?

Hi,

I am working with CF7,Flex and Cairngorm.the application works fine.

My manager want to use CF8 now, I do not have idea what I have to 
change from setting up project to Flex coding etc.

I need to know the steps before I switch cf7 to cf8.

Do you have experience for this.Please give me a hit.

Thanks

Mark

 - - --

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

 


  

Re: [flexcoders] binding question?

2008-04-30 Thread Mark Shen
obj is a instance of VO(value object), do you think if the binding is ok?
Thank

Mark


- Original Message 
From: Tracy Spratt [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, April 30, 2008 3:19:33 PM
Subject: RE: [flexcoders] binding question?


Is “obj” type “Object”?
Dynamic Object properties are not bindable.
 
Tracy 
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of markflex2007
Sent: Wednesday, April 30, 2008
2:41 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] binding
question?
 
I have two screens for testing.

a) I set object values in screen 1 (for instance obj.value =abc)
and
go to screen 2
b) I show the value in screen 2 with binding (for instance mx:Label
x=37 y=46 text={obj.value} / and go
to screen 1

it works fine when it excute first time.(from screen 1 to screen 2)

Afater I change from screen 2 to screen 1,the binding value
{obj.value} in screen 2 keep the previous value even if I change 
the object values in screen 1 (for instance obj.value =xyz).

but the binding value {obj.value} should change to xyz,do you know
why this happen.

Thanks for your help.

Mark


  

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

Re: [flexcoders] binding question?

2008-04-30 Thread Mark Shen
I change the obj to static. problem fixed.Thanks

Mark


- Original Message 
From: Tracy Spratt [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, April 30, 2008 4:17:34 PM
Subject: RE: [flexcoders] binding question?


Not if the VO is a dynamic object.  What
is it?
Tracy
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Mark Shen
Sent: Wednesday, April 30, 2008
3:21 PM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] binding
question?
 
obj is a
instance of VO(value object), do you think if the binding is ok?
Thank

Mark
- Original Message

From: Tracy Spratt [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Wednesday, April 30, 2008 3:19:33 PM
Subject: RE: [flexcoders] binding question?
Is “obj” type “Object”? Dynamic Object properties are not bindable.
 
Tracy
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@
yahoogroups. com] On Behalf Of markflex2007
Sent: Wednesday, April 30, 2008
2:41 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] binding
question?
 
I have
two screens for testing.

a) I set object values in screen 1 (for instance obj.value =abc)
and
go to screen 2
b) I show the value in screen 2 with binding (for instance mx:Label
x=37 y=46 text={obj.value} / and go to
screen 1

it works fine when it excute first time.(from screen 1 to screen 2)

Afater I change from screen 2 to screen 1,the binding value
{obj.value} in screen 2 keep the previous value even if I change 
the object values in screen 1 (for instance obj.value =xyz).

but the binding value {obj.value} should change to xyz,do you know
why this happen.

Thanks for your help.

Mark
 


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


  

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

Re: [flexcoders] Question for creationComplete event?

2008-04-29 Thread Mark Shen
Hi Alex,

I use the following code but the function never execute.why. Can you show me a 
demo?

?xml version=1.0 encoding=utf- 8?
mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxml 
show= getnameList( )

...
Thanks

Mark


- Original Message 
From: Alex Harui [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, April 29, 2008 1:26:30 PM
Subject: RE: [flexcoders] Question for creationComplete event?


Normally, you set visible=false to hide a
screen, so the “show” event will occur when you make it visible
again.
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of markflex2007
Sent: Tuesday, April 29, 2008
10:01 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Question for
creationComplete event?
 
Hi,

I develop a application that have many screen and I develop each
screen with a flex component (*.mxml page).

I use creationComplete event in one screen but the function only
execute when I first access the screen. But I need execute the
function when I access the screen because the database change quickly.

Please give me a idea which event I can use to call the function so
the function can execute when I access the screen.

Thanks

Mark

ps:code for the screen

?xml version=1.0 encoding=utf- 8?
mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxml 
creationComplete= getnameList( )
mx:Script
![CDATA[

import com.sb.CEC_Admin. events.GetStaffl istEven; 

private function getnameList( ):void{

.

}
]]
/mx:Script



/mx:Canvas


  

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

Re: [flexcoders] Question for creationComplete event?

2008-04-29 Thread Mark Shen
Hi Alex,

But I use  mx:ViewStack to switch screens with deferent selectedIndex.

How to make some fuction run in a screen when I access the screen?

Thanks

Mark


- Original Message 
From: Alex Harui [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, April 29, 2008 1:43:51 PM
Subject: RE: [flexcoders] Question for creationComplete event?


There is no “show” unless you’ve been
hidden.  Most folks hook up to both creationComplete and show
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Mark Shen
Sent: Tuesday, April 29, 2008
10:43 AM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] Question
for creationComplete event?
 
Hi Alex,

I use the following code but the function never execute.why. Can you show me a
demo?

?xml version=1.0 encoding=utf- 8?
mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxml 
show= getnameList( )

...
Thanks

Mark
- Original Message

From: Alex Harui [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, April 29, 2008 1:26:30 PM
Subject: RE: [flexcoders] Question for creationComplete event?
Normally, you set visible=false to hide a screen, so the “show”
event will occur when you make it visible again.
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@
yahoogroups. com] On Behalf Of markflex2007
Sent: Tuesday, April 29, 2008
10:01 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Question for
creationComplete event?
 
Hi,

I develop a application that have many screen and I develop each
screen with a flex component (*.mxml page).

I use creationComplete event in one screen but the function only
execute when I first access the screen. But I need execute the
function when I access the screen because the database change quickly..

Please give me a idea which event I can use to call the function so
the function can execute when I access the screen.

Thanks

Mark

ps:code for the screen

?xml version=1.0 encoding=utf- 8?
mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxml 
creationComplete= getnameList( )
mx:Script
![CDATA[

import com.sb.CEC_Admin. events.GetStaffl istEven; 

private function getnameList( ):void{

.

}
]]
/mx:Script



/mx:Canvas
 


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


  

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

Re: [flexcoders] Question for creationComplete event?

2008-04-29 Thread Mark Shen
I try but it doesn't work.

Do you have a simple demo?

Thanks

Mark


- Original Message 
From: Alex Harui [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, April 29, 2008 2:28:35 PM
Subject: RE: [flexcoders] Question for creationComplete event?


Should be the same answer.  Did you try it?
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Mark Shen
Sent: Tuesday, April 29, 2008
10:48 AM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] Question
for creationComplete event?
 
Hi Alex,

But I use  mx:ViewStack to switch screens with deferent selectedIndex.

How to make some fuction run in a screen when I access the screen?

Thanks

Mark
- Original Message

From: Alex Harui [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, April 29, 2008 1:43:51 PM
Subject: RE: [flexcoders] Question for creationComplete event?
There is no “show” unless you’ve been hidden.  Most folks hook
up to both creationComplete and show
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@
yahoogroups. com] On Behalf Of Mark
Shen
Sent: Tuesday, April 29, 2008
10:43 AM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] Question
for creationComplete event?
 
Hi Alex,

I use the following code but the function never execute.why. Can you show me a
demo?

?xml version=1.0 encoding=utf- 8?
mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxml 
show= getnameList( )

...
Thanks

Mark
- Original
Message 
From: Alex Harui [EMAIL PROTECTED] . com
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, April 29, 2008 1:26:30 PM
Subject: RE: [flexcoders] Question for creationComplete event?
Normally, you set visible=false to hide a screen, so the “show”
event will occur when you make it visible again.
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@
yahoogroups. com] On Behalf Of markflex2007
Sent: Tuesday, April 29, 2008
10:01 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Question for
creationComplete event?
 
Hi,

I develop a application that have many screen and I develop each
screen with a flex component (*.mxml page).

I use creationComplete event in one screen but the function only
execute when I first access the screen. But I need execute the
function when I access the screen because the database change quickly.

Please give me a idea which event I can use to call the function so
the function can execute when I access the screen.

Thanks

Mark

ps:code for the screen

?xml version=1.0 encoding=utf- 8?
mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxml 
creationComplete= getnameList( )
mx:Script
![CDATA[

import com.sb.CEC_Admin. events.GetStaffl istEven; 

private function getnameList( ):void{

.

}
]]
/mx:Script



/mx:Canvas
 


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


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


  

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

Re: [flexcoders] Question for creationComplete event?

2008-04-29 Thread Mark Shen
Hi  Derrick,

How to hidden a screen in viewstack? Do you mean just change selectedIndex.?

Please show me a sample,I google this but I can not see any useful result

Thanks

Mark


- Original Message 
From: Derrick Anderson [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, April 29, 2008 3:11:30 PM
Subject: Re: [flexcoders] Question for creationComplete event?


just a stab in the dark here but I've noticed that the first child of a 
viewstack does not dispatch it's 'show' event.  I guess it's because of what 
Alex said earlier, if it's never 'hidden', there is no show event to dispatch.  
that might be why you are expecting 'show' to do something and it's not.

try what Alex suggested, put your function in both event handlers and try it

show= getnameList( ) creationComplete=getnameList( )

d.


On Tue, Apr 29, 2008 at 3:04 PM, Mark Shen markflex2007@ yahoo.com wrote:

I try but it doesn't work.

Do you have a simple demo?

Thanks

Mark


- Original Message 
From: Alex Harui [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com

Sent: Tuesday, April 29, 2008 2:28:35 PM
Subject: RE: [flexcoders] Question for creationComplete event?


Should be the same answer.  Did you try it?
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Mark Shen

Sent: Tuesday, April 29, 2008
10:48 AM

To: [EMAIL PROTECTED] ups.com

Subject: Re: [flexcoders] Question
for creationComplete event? 
 
Hi Alex,

But I use  mx:ViewStack to switch screens with deferent selectedIndex.


How to make some fuction run in a screen when I access the screen?

Thanks

Mark 
- Original Message

From: Alex Harui [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com

Sent: Tuesday, April 29, 2008 1:43:51 PM
Subject: RE: [flexcoders] Question for creationComplete event? 
There is no show unless you've been hidden.  Most folks hook
up to both creationComplete and show
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Mark
Shen
Sent: Tuesday, April 29, 2008
10:43 AM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] Question
for creationComplete event?
 
Hi Alex,

I use the following code but the function never execute.why. Can you show me a
demo?


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

show= getnameList( )


Thanks

Mark 
- Original
Message 
From: Alex Harui [EMAIL PROTECTED] . com
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, April 29, 2008 1:26:30 PM
Subject: RE: [flexcoders] Question for creationComplete event?
Normally, you set visible=false to hide a screen, so the show
event will occur when you make it visible again..
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of markflex2007

Sent: Tuesday, April 29, 2008
10:01 AM
To: [EMAIL PROTECTED] ups.com

Subject: [flexcoders] Question for
creationComplete event? 
 
Hi,

I develop a application that have many screen and I develop each
screen with a flex component (*.mxml page).

I use creationComplete event in one screen but the function only
execute when I first access the screen. But I need execute the
function when I access the screen because the database change quickly.

Please give me a idea which event I can use to call the function so
the function can execute when I access the screen.

Thanks

Mark

ps:code for the screen

?xml version=1.0 encoding=utf- 8?
mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxml 
creationComplete= getnameList( )
mx:Script
![CDATA[

import com.sb.CEC_Admin. events.GetStaffl istEven; 

private function getnameList( ):void{

..

}
]]
/mx:Script

.

/mx:Canvas
 


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


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


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



  

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

Re: [flexcoders] Button in DatGrid problem

2008-04-24 Thread Mark Shen
Please give me a simple demo, what another layer means?

Thanks

Mark

- Original Message 
From: Alex Harui [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, April 24, 2008 3:04:24 PM
Subject: RE: [flexcoders] Button in DatGrid problem








A renderer is always as wide as its
column.  You can wrap it in another layer if you want to center it.
   
 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of markflex2007
Sent: Thursday, April 24, 200811:05 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Button inDatGrid problem
 
  
 Hi,

I add a buttin in datagrid.But why the button always fill the all
column width. I try to set it 20 but the column width is 100.
it always like 100 in the layout. why?

Thanks

Mark

mx:DataGrid id=dg1 dataProvider ={dp}

mx:columns
mx:DataGridColumn width=100 headerText=  
mx:itemRenderer
mx:Component 

mx:Button label=Select it width=20
/ 
/mx:Component
/mx:itemRenderer

/mx:DataGridColumn  

mx:DataGridColumn headerText= namesdataField=names
width=200 /
mx:DataGridColumn headerText= sex dataField=sex
width=300 /

/mx:columns
/mx:DataGrid
 






!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#ff;text-decoration:none;}
--

!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
--

!--

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

#ygrp-reco {
margin-bottom:20px;padding:0px;}
#ygrp-reco #reco-head {
font-weight:bold;color:#ff7900;}

#reco-grpname{
font-weight:bold;margin-top:10px;}
#reco-category{
font-size:77%;}
#reco-desc{
font-size:77%;}

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

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

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






  

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 get current year

2008-03-13 Thread Mark Shen
you are right.Thanks

- Original Message 
From: Scott Melby [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, March 13, 2008 4:43:35 PM
Subject: Re: [flexcoders] How to get current year

  Looks like maybe you forgot creationComplete= initApp( ) on 
your 
mx:Application tag.

hth
Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlane sw.com

markflex2007 wrote:
 I get empty string with the following code.why?
 Thanks

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

[Bindable]
public var theYear:String;   

private function initApp():void{

   data1 = new Date();
   theYear = data1.getFullYear( ).toString( ); 
   
}
   ]]
   /mx:Script
   
   mx:Label x=97 y=85 text={theYear} /
   
 /mx:Application



   



  
!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#ff;text-decoration:none;}
--

!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
--

!--

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

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

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

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






  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] An ArrayCollection question ?

2008-02-12 Thread Mark Shen
Hi Ben,

It works.

Thank you for your help

Mark


- Original Message 
From: Ben Marchbanks [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 12, 2008 10:11:42 AM
Subject: Re: [flexcoders] An ArrayCollection question ?

Try,

Alert.show(acDept[ i].DeptID. toString( ));

Ben Marchbanks

::: magazooms :::
digital publishers, taking print beyond paper..

http://www.magazoom s.com

Greenville, SC
864.284.9918

markflex2007 wrote:
 
 
 Hi,
 
 I have a ArrayCollection acDept that saved the data passed from
 coldfusion cfc
 
 cfquery name=getDepartment  datasource= bursary
 SELECT DeptId, Dept FROM DeptList
 /cfquery
 
 I want loop over all the ArrayCollection and show all the DeptId.I use the
 following code and I get error for acDept.valueOf( DeptID) .
 
 for ( var i : int =0; i  acDept.length ; i++)
 {
 Alert.show(acDept. valueOf( DeptID). toString( ));
 
 }
 Please help me to know which method I can use to get DeptID.
 
 Thanks
 
 Mark
 
 

-- 
Ben Marchbanks

::: magazooms :::
digital publishers, taking print beyond paper..

http://www.magazoom s.com

Greenville, SC
864.284.9918




  

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


Re: [flexcoders] An ArrayCollection question ?

2008-02-12 Thread Mark Shen
Hi Sherif 

This doesn't have relation with i.

 Thanks 

Mark


- Original Message 
From: Sherif Abdou [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 12, 2008 10:13:18 AM
Subject: Re: [flexcoders] An ArrayCollection question ?

see what your ArrayCollection looks like but try acDept.getItemAt( DeptID) 
.toString( );


- Original Message 
From: markflex2007 markflex2007@ yahoo.com
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, February 12, 2008 9:07:29 AM
Subject: [flexcoders] An ArrayCollection question ?


Hi,

I have a ArrayCollection acDept that saved the data passed from 
coldfusion cfc

cfquery name=getDepartment  datasource= bursary
SELECT DeptId, Dept FROM DeptList 
/cfquery

I want loop over all the ArrayCollection and show all the DeptId.I use the 
following code and I get error for acDept.valueOf( DeptID) .

for ( var i : int =0; i  acDept.length ; i++)
{ 
Alert.show(acDept. valueOf( DeptID). toString( )); 

}
Please help me to know which method I can use to get DeptID.

Thanks

Mark







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



  

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


Re: [flexcoders] Array function error?

2008-02-06 Thread Mark Shen
I update the code
   
  public var arrFilenames:Array = new Array();
   arrFilenames.push(abc);

but I get same error message.

Access of undefined property arrFilenames.

Thanks


- Original Message 
From: Sherif Abdou [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 6, 2008 3:51:11 PM
Subject: Re: [flexcoders] Array function error?

why do u have  in the array?
public var fileNames1:Array = [];
or just public var fileNames1:Array = new Array();


- Original Message 
From: markflex2007 markflex2007@ yahoo.com
To: [EMAIL PROTECTED] ups.com
Sent: Wednesday, February 6, 2008 2:47:47 PM
Subject: [flexcoders] Array function error?


Hi,

I did a simple code

public var filenames1:Array = new Array(); 
filenames1.push( abc);

but I get a error 

Access of undefined property filenames1.

I do not know what is wrong. Please give me a idea to fix it.

Thanks

Mark







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



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Array function error?

2008-02-06 Thread Mark Shen
Sherif ,

you are right,why it only works in function.

Thanks

Mark


- Original Message 
From: Sherif Abdou [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 6, 2008 4:10:44 PM
Subject: Re: [flexcoders] Array function error?

I am guessin that you are just free floating the arrFilenames. push(abc ); It 
needs to be in a function  or am i missing something?
?xml version=1.0 encoding=utf- 8?
mx:WindowedApplicat ion xmlns:mx=http://www.adobe. com/2006/ mxml 
layout=vertical xmlns:flexlib= flexlib.* 
xmlns:controls= flexlib.controls. * xmlns:tabBarClasses =flexlib.controls. 
tabBarClasses. * creationComplete= initApp( )
mx:Style source=styles.css/
mx:Script
![CDATA[
import mx.containers. Panel;
import mx.collections. ArrayCollection;
[Bindable]
private var myArrayCollection: ArrayCollection = new ArrayCollection( 
[{label:'Adobe'},{label:'Air'},{label:'Flex'}]);
public var fileNames1:Array = new Array();
/**
* I get Access Of Undefined here
*/
fileNames1.push(Adobe);
private function initApp():void{
//works here
fileNames1.push(Adobe);
}
]]
/mx:Script
controls:AdvancedTa bBar dataProvider= {myArrayCollection} 
labelField=label/
/mx:WindowedApplica tion



- Original Message 
From: Mark Shen markflex2007@ yahoo.com
To: [EMAIL PROTECTED] ups.com
Sent: Wednesday, February 6, 2008 3:03:55 PM
Subject: Re: [flexcoders] Array function error?


I update the code
   
  public var arrFilenames: Array = new Array();
   arrFilenames. push(abc );
 
but I get same error message.
 
Access of undefined property arrFilenames. 
 
Thanks


- Original Message 
From: Sherif Abdou [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Wednesday, February 6, 2008 3:51:11 PM
Subject: Re: [flexcoders] Array function error?


why do u have  in the array?
public var fileNames1:Array = [];
or just public var fileNames1:Array = new Array();


- Original Message 
From: markflex2007 markflex2007@ yahoo.com
To: [EMAIL PROTECTED] ups.com
Sent: Wednesday, February 6, 2008 2:47:47 PM
Subject: [flexcoders] Array function error?


Hi,

I did a simple code

public var filenames1:Array = new Array(); 
filenames1.push( abc);

but I get a error 

Access of undefined property filenames1.

I do not know what is wrong. Please give me a idea to fix it.

Thanks

Mark







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





Never miss a thing. Make Yahoo your homepage. 





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



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] Alert Box location??

2008-02-05 Thread Mark Shen
I get two same Alert Box in different location after I call centerPopUp() .

Thanks

Mark


- Original Message 
From: Tom Chiverton [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 5, 2008 11:51:12 AM
Subject: Re: [flexcoders] Alert Box location??

On Tuesday 05 Feb 2008, markflex2007 wrote:
 I use Alert.show to show some text but the Alert box go to coner of the
 screen

Before or after your call to centerPopUp() ?

-- 
Tom Chiverton
Helping to widespreadedly improve six-generation content
on: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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


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




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] print to server

2008-01-11 Thread Mark Shen
which path I can get the flashlog.txt ?Thanks


- Original Message 
From: Tracy Spratt [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, January 11, 2008 2:29:05 PM
Subject: RE: [flexcoders] print to server

Remember, Flex apps do not run on the server like Java, jsp apps.
 
trace() will output to the flashlog.txt file if you are running in a debug 
flash player, and have the mm.cfg file configured.
 
Tracy
 



From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of dominique.bessette
Sent: Friday, January 11, 2008 12:35 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] print to server
 
is there a way to print out statements in a flex application to the 
server? ie. in java it's System.out.println( ERROR);



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] which Flex componet is similar to HTML table?

2008-01-09 Thread Mark Shen
I hear the name DataGrid and I never use it.Do you think if it can build a 
table with line?

Thanks

- Original Message 
From: Sheriff [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, January 9, 2008 1:41:28 PM
Subject: Re: [flexcoders] which Flex componet is similar to HTML table?










  




You mean a DataGrid


- Original Message 
From: markflex2007 markflex2007@ yahoo.com
To: [EMAIL PROTECTED] ups.com
Sent: Wednesday, January 9, 2008 12:06:22 PM
Subject: [flexcoders] which Flex componet is similar to HTML table?




Hi,

I need design table with line to seperate cells,please let me know how to 
do this in Flex.

Thanks

Mark









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

  







!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#ff;text-decoration:none;}
--



!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
--



!--

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

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

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

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








  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Alert window position?

2008-01-02 Thread Mark Shen
What is the  'your alert popup'?

Please give me a demo for this.Thanks

Mark


- Original Message 
From: Savan Patel [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, December 29, 2007 1:21:30 AM
Subject: Re: [flexcoders] Alert window position?

Hi Mark,
 
You can use following property :
PopUpManager. centerPopUp( 'your alert popup');
 
Thanks  Regards,
Savan

- Original Message 
From: Dominique Bessette - Halsema [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Saturday, 29 December, 2007 1:28:36 AM
Subject: Re: [flexcoders] Alert window position?


i created my own popup using TitleWindow and in there you can control the 
placement.
 
//in the main class call the popup
 private  function getAtomPopUp( ):void{
  var helpWindow:IFlexDis playObject;   
  helpWindow = PopUpManager. createPopUp( this, getPopUp, false);
}

 
On 12/28/07, markflex2007 markflex2007@ yahoo.com wrote: 
Hi,

I have the Alert popup window(Alert. show) but it appear in the right side of 
the screen,I want to know how to make it popup at center of the screen.

Thanks

Mark









Explore your hobbies and interests. Click here to begin. 



  

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


Re: [flexcoders] Save data from datagrid to database?

2008-01-02 Thread Mark Shen
Thanks. Mike.

I know how to use mx:RemoteObject .

My question is how to get all the data from datagrid and pass it to 
mx:RemoteObject .Thanks

Mark


- Original Message 
From: Mike Chabot [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, January 2, 2008 1:02:39 PM
Subject: Re: [flexcoders] Save data from datagrid to database?

There are many ways to do this, and no single best way. I would
suggest looking at the mx:RemoteObject tag for starters. You could
send ColdFusion a typed RemoteClass object that directly corresponds
to a CFC, a generic object, an array, a string of data, etc.

One thing to experiment with is the ColdFusion plug-in to FlexBuilder,
which gives you these wizard features that create all the CRUD code
for you. You will probably find that the wizard-generated code needs a
lot of tweaking, but it is a good way to get started. If you were
hoping for some built-in magic where you just data-bind the grid to
the server, similar to what ASP.NET does, you will be disappointed.
You need to write the SQL and CFC at some point, although the wizard
helps.

Good luck,
MIke Chabot

On Jan 2, 2008 12:21 PM, markflex2007 markflex2007@ yahoo.com wrote:




 Hi,

 I have a datagrid that is changed by events.

 I want to save all the data in datagrid to database with coldfusion,I am not
 sure how to get all the data from datagrid and save them to db.

 Please give me a hit.

 Thanks

 Mark




  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] data binding question for Cairngorm?

2007-12-28 Thread Mark Shen
but I already have the following code in ModelLocator

[Bindable]
 public class CESFESFModel implements IModelLocator {
  
  // Single Instance of Our ModelLocator
  private static var instance:CESFESFModel;

 public var personData:PersonVO;

}

Thanks

Mark


- Original Message 
From: Tianzhen Lin [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, December 28, 2007 12:22:51 PM
Subject: RE: [flexcoders] data binding question for Cairngorm?

If personalData is a class itself, its class definition should also declare 
[Bindable], or emptstatus should be [Bindable] at least.  Bindable is not 
recursive, and does not propagate. 
 
From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of markflex2007
Sent: Friday, December 28, 2007 11:59 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] data binding question for Cairngorm?
 
Hi 

I have the carirngorm code here


import ca.sb.CESF.ESF. vo.PersonVO;

[Bindable]
public var modelLocator: CESFESFModel = 
CESFESFModel. getInstance( ); 


mx:TextInput id=eligible_total x=723.5 y=1294 width=82 
text={getEligible
(modelLocator. personData. emptstatus, new_total. text)}/

* personData is a instance of PersonVO and it is defined in 
CESFESFModel.

I get a warning error for modelLocator. personData. emptstatus.

The error message is :

Data binding will not be able to detect assignments to emptstatus. 

I already use the [Bindable] for modelLocator but why I can not 
bind modelLocator. personData. emptstatus

Thanks

Mark



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] data binding question for Cairngorm?

2007-12-28 Thread Mark Shen
yes.

I have the code 


 [Bindable]
 public class PersonVO implements IValueObject
 {
  public var firstname:String;
...
}

But I still have the error.

Mark

- Original Message 
From: Muzak [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, December 28, 2007 1:19:00 PM
Subject: Re: [flexcoders] data binding question for Cairngorm?

PersonVO itself must be Bindable.


- Original Message - 
From: Mark Shen [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, December 28, 2007 6:45 PM
Subject: Re: [flexcoders] data binding question for Cairngorm?


 but I already have the following code in ModelLocator
 
 [Bindable]
 public class CESFESFModel implements IModelLocator {
  
  // Single Instance of Our ModelLocator
  private static var instance:CESFESFModel;

public var personData:PersonVO;
 
 }
 
 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




  

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 pass varible between screens?

2007-12-21 Thread Mark Shen
yes I use singleton and I can bind the variable.

mx:Label id=temp1 x=397.5 y=1549 text={modelLocator.sID}  /

My question is how to use modelLocator.sID in actionscipt.

I use the statement like

filePrefix = modelLocator.sID; 

But no event call the statement .the filePrefix  is empty.

Thanks


- Original Message 
From: Paul Andrews [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, December 21, 2007 12:45:37 PM
Subject: Re: [flexcoders] how to pass varible between screens?

Mark, check out the use of singletons, a singleton will solve your problem.

Paul

- Original Message - 
From: markflex2007 markflex2007@ yahoo.com
To: [EMAIL PROTECTED] ups.com
Sent: Friday, December 21, 2007 5:09 PM
Subject: [flexcoders] how to pass varible between screens?

 Hi,

 I have some screens under ViewStack like this

 mx:ViewStack
 view:Form1View /
 view:Form2View /
 view:Form3View /
 view:ThankyouView /
 /mx:ViewStack

 I have a variable in Form1View but how I can get the variable in
 Form2View.

 backend language have session variables,I am not sure if Flex also
 have the same function like session variable.

 Please help me out.Thanks

 Thanks

 Mark



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



 





  

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 pass varible between screens?

2007-12-21 Thread Mark Shen
I use creationComplete=initVar() in component page .it has same problem,why?

Mark


- Original Message 
From: Mark Shen [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, December 21, 2007 12:51:57 PM
Subject: Re: [flexcoders] how to pass varible between screens?

yes I use singleton and I can bind the variable.
 
mx:Label id=temp1 x=397.5 y=1549 text={modelLocator .sID}  /
 
My question is how to use modelLocator. sID in actionscipt.
 
I use the statement like
 
filePrefix = modelLocator. sID; 
 
But no event call the statement .the filePrefix  is empty.
 
Thanks


- Original Message 
From: Paul Andrews [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Friday, December 21, 2007 12:45:37 PM
Subject: Re: [flexcoders] how to pass varible between screens?


Mark, check out the use of singletons, a singleton will solve your problem.

Paul

- Original Message - 
From: markflex2007 markflex2007@ yahoo.com
To: [EMAIL PROTECTED] ups.com
Sent: Friday, December 21, 2007 5:09 PM
Subject: [flexcoders] how to pass varible between screens?

 Hi,

 I have some screens under ViewStack like this

 mx:ViewStack
 view:Form1View /
 view:Form2View /
 view:Form3View /
 view:ThankyouView /
 /mx:ViewStack

 I have a variable in Form1View but how I can get the variable in
 Form2View.

 backend language have session variables,I am not sure if Flex also
 have the same function like session variable.

 Please help me out.Thanks

 Thanks

 Mark



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



 







Never miss a thing. Make Yahoo your homepage. 



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] how to pass varible between screens?

2007-12-21 Thread Mark Shen
This is for control variable,but I need pass actionscript variable between 
screens.Thanks

Mark


- Original Message 
From: Mike Anderson [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, December 21, 2007 12:44:54 PM
Subject: RE: [flexcoders] how to pass varible between screens?

No matter WHERE you are in your application, you can traverse the tree
by accessing:

Application. application. control1 .
Application. application. control2 . 

etc.

-Original Message-
From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
Behalf Of markflex2007
Sent: Friday, December 21, 2007 11:09 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] how to pass varible between screens?

Hi,

I have some screens under ViewStack like this

mx:ViewStack 
view:Form1View /
view:Form2View / 
view:Form3View / 
view:ThankyouView / 
/mx:ViewStack

I have a variable in Form1View but how I can get the variable in
Form2View.

backend language have session variables,I am not sure if Flex also have
the same function like session variable.

Please help me out.Thanks

Thanks

Mark

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





  

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


Re: [flexcoders] Re: creationComplete question?

2007-12-21 Thread Mark Shen
But createPolicy is empty now but all the createComplate called at beginning?

I need it called when it selected.How to fix this?

Mark


- Original Message 
From: rueter007 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, December 21, 2007 2:04:47 PM
Subject: [flexcoders] Re: creationComplete question?

is the creationPolicy set to 'all' on the viewstack? make sure it is
'auto'('auto' is the default if nothing is specified). This will
create the components the first time they are selected rather than at
the beginning.

- venkat
http://www.venkatj. com

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

 Hi
 
 I have some screens under ViewStack like this
 
 mx:ViewStack
 view:Form1View /
 view:Form2View /
 view:Form3View /
 view:ThankyouView /
 /mx:ViewStack
 
 I have set creationComplete event to call a function for Form2View,
 but the event is actived when I call the app first time(it show 
 Form1View at first).
 
 I hope the creationComplete event work when I reach Form2View, 
 Please help me to know how to control this.
 
 Thanks
 
 Mark






  

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


Re: [flexcoders] ArrayCollection question in Cairngorm?

2007-12-17 Thread Mark Shen
Thanks João Fernandes .

Mark


- Original Message 
From: João Fernandes [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, December 17, 2007 1:28:20 PM
Subject: Re: [flexcoders] ArrayCollection question in Cairngorm?

Mark, your result is just fine, just define a labelField or a 
labelFunction in your combobox.
something like this

mx:ComboBox labelField= DepartmentName 
dataProvider= {modelLocator. acDept}/ 

-- 

João Fernandes

http://www.onflexwi thcf.org
http://www.riapt. org





  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] cairngorm value object type and cfc type do not match,why?

2007-12-05 Thread Mark Shen
Yes

I change the cfc function code like

cffunction name=addPerson displayname=addPerson access=remote 
output=false returntype=boolean
  cfargument name=personVO type=Bursary.cfcs.PersonVO required=true /
   
cfquery name=insertPerson datasource=bursary
INSERT INTO person_info (fname,
 lname, 
 sid) 
   VALUES('#personVO.firstname#', 
  '#tpersonVO.lastname#', 
  '#personVO.sid#')
/cfquery

cfreturn true /
  
 /cffunction

But  I still have same error.

Thanks for your hit

Mark


- Original Message 
From: Jeffry Houser [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, December 5, 2007 9:20:41 AM
Subject: Re: [flexcoders] cairngorm value object type and cfc type do not 
match,why?


Make sure you add properties to the CFC VO using the cfproperty tag. 
Properties case and order must match what is in the AS3 VO.

Additionally, use the full path with dot notation as the argument type.

Basically, Flex+CF is not smart enough to know that PersonVO is 
equal to Bursary.cfcs. PersonVO .

markflex2007 wrote:
 
 
 I have built a cfc vo class and flex vo class
 
 PersonVO.as
 
 package com.abc.CESF. Bursary.vo
 {
 import com.adobe.cairngorm .vo.IValueObject ;
 
 [RemoteClass( alias=Bursary. cfcs.PersonVO )]
 
 public class PersonVO implements IValueObject
 {
 public var firstname:String = ;
 public var lastname:String = ;
 public var sid:String= ;
 
 public function PersonVO(){
 
 this.firstname = ;
 this.lastname = ;
 this.sid = ;
 }
 
 }
 }
 PersonVO.cfc
 
 cfcomponent displayname= PersonVO hint=Login VO For CairngormTest
 output=false 
 
 cfset this.firstname =  /
 cfset this.lastname =  /
 cfset this.sid =  /
 
 /cfcomponent
 
 I have a function in cfc.it is here
 
 cffunction name=addPerson displayname= addPerson access=remote
 output=false returntype= boolean
 cfargument name=personVO type=PersonVO required=true /
 
 cfquery name=insertPerson datasource= bursary
 INSERT INTO person_info (fname,
 lname,
 sid)
 VALUES('#personVO. firstname# ',
 '#tpersonVO. lastname# ',
 '#personVO.sid# ')
 /cfquery
 
 cfreturn true /
 
 /cffunction
 
 but I get the error when I pass flex vo to the cfc function.I am not
 sure how to make flex vo and cfc vo match.the error message is here
 
 RPC Fault faultString= The argument PERSONVO passed to function
 addPerson() is not of type PersonVO. faultCode=Server. Processing
 faultDetail= If the component name is specified as a type of this
 argument, the reason for this error might be that a definition file
 for such component cannot be found or is not accessible. ]
 
 Please help me.Thanks
 
 Mark
 
 

-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer
AIM: Reboog711 | Phone: 1-203-379-0773
--
My Company: http://www.dot- com-it.com
My Podcast: http://www.theflexs how.com
My Blog: http://www.jeffryho user.com





  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

[flexcoders] cfc do not understand cairngorm VO?

2007-12-05 Thread Mark Shen
I have built a cfc vo class and flex vo class

PersonVO.as

package com.abc.CESF.Bursary.vo
{
import com.adobe.cairngorm.vo.IValueObject;

[RemoteClass(alias=Bursary.cfcs.PersonVO)]

public class PersonVO implements IValueObject
{
public var firstname:String = ;
public var lastname:String = ;
public var sid:String= ;

public function PersonVO(){

this.firstname = ;
this.lastname = ;
this.sid = ;
}

}
}
PersonVO.cfc

cfcomponent displayname=PersonVO hint=Login VO For CairngormTest 
output=false

cfset this.firstname =  /
cfset this.lastname =  /
cfset this.sid =  / 

/cfcomponent

I have a function in cfc.it is here

cffunction name=addPerson displayname=addPerson access=remote 
output=false returntype=boolean
cfargument name=personVO type=PersonVO required=true /

cfquery name=insertPerson datasource=bursary
INSERT INTO person_info (fname,
lname, 
sid) 
VALUES('#personVO.firstname#', 
'#tpersonVO.lastname#', 
'#personVO.sid#')
/cfquery

cfreturn true /

/cffunction

but I get the error when I pass flex vo to the cfc function.I am not sure how 
to make flex vo and cfc vo match.the error message is here

RPC Fault faultString=The argument PERSONVO passed to function addPerson() is 
not of type PersonVO. faultCode=Server.Processing faultDetail=If the 
component name is specified as a type of this argument, the reason for this 
error might be that a definition file for such component cannot be found or is 
not accessible.]

Please help me.Thanks

Mark


  

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