Re: [flexcoders] move and scrollbar

2007-12-17 Thread Lee
nope, sorry if it was messed up but the xml was correct... there is an outer 
canvas with a child vbox which, in turn, has 3 children: 2 vbox components and 
a canvas - whose contents get included during runtime.

i'll try to explain my problem again :) let me clear up the mxml a little... ;)









during runtime, this whole mxml is placed inside a draggable panel. 
"innerCanvas" contains a graph/map representation that is created dynamically 
during runtime. let's forget for the meantime about "vbox1" and "vbox2" 
contents...

anyway, after "innerCanvas" is created during runtime, it is zoomed out. but, 
after zoom out, i need it (the map) to center... or to focus at a certain point 
(but that's another story). i accomplish this by targetting "outermostVbox" 
using an ... so i did that. however, although the map *did* center, 
the problem is that the scrollbars on the "outerCanvas" remained at 0 (and yes, 
the scrollbars belonged to "outerCanvas" and not the draggable panel or the 
other components). the consequence of this is that since the scrollbar is 0 and 
the map centered, whatever fell to the *left* of the viewable area gets 
clipped... that's why i need the scrollbar to move so that it would adjust 
according to the position of the map... which it doesn't in my case.

so i debugged and i found out that the maxHorizontalScrollPosition is 0 so i 
can't pretty much move the scrollbar... no matter where i looked, that position 
is always 0... be it in the parent or the other children, etc. etc. so... the 
part of the map outside of the viewable area is still unviewable...

i tried various means... from manipulating the size of the "innerCavas" so that 
the "outerCanvas" would recognize the child canvas' dimensions (and hopefully 
reassess that there IS a scrollbar so that the maxHorizontalScrollPosition 
would have a value other than 0) to changing values of the scroll policies to 
other things including the use of horizontalCenter and verticalCenter ^^; 
however, it - the scrollbar - just doesn't want to move...

thanks so far for the replies :)

Giles Roadnight <[EMAIL PROTECTED]> wrote:It's not very clear what 
you are asking I'm afraid. Also the xml you supplied is not valid (jsut to be 
picky). I assume you mean:

 
   
 
 
 
   
 

you coudl try horizontalCenter="0" and verticalCenter="0" on the inner canvas 
to keep it centered. I'm not sure what you mean by the scrollbars and clipping.

 On Dec 17, 2007 3:54 AM, callistachan <[EMAIL PROTECTED]> wrote:
hi, i'm relatively new to all this so 
please bear with me... =)
 
 i have something like this in my mxml file:
 
 
   
 
 
 
   
 
 
 now, all of this gets stored inside a draggable panel during runtime.
 also, during this time, the inner canvas gets zoomed out and should
 center after the zoom... i accomplish this using . however,
 even if it does center, the content gets clipped and the horizontal
 scrollbar still stays at 0 (most likely because the
 maxHorizontalScrollPosition is also 0)... i tried various ways of
 moving it already but it doesn't seem to want to since most of the
 dimensions i need are 0 :(
 
 if anyone can help, i would really appreciate it. thanks!
 
 
 
   
  





-- 
Giles Roadnight
http://giles.roadnight.name   


May God bless! Kiwotsukete ^^x
Lee 
Y!M : callistachan
--
Blog: http://www.geocities.com/callistachan
RKFF: http://www26.brinkster.com/callie
RKFF: http://www.geocities.com/himurasan
RK Shrine: http://www.freewebz.com/shinta
   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

[flexcoders] other way of opening a new browser?

2008-01-29 Thread Lee
Hi =)

Is there any other way of opening/creating/launching a new browser window from 
flex aside from using javascript with ExternalInterface? Thanks! :)
 
Lee 






  

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

Re: [flexcoders] other way of opening a new browser?

2008-01-29 Thread Lee
thanks to everyone who replied! =)

Lee


- Original Message 
From: Sherif Abdou <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, January 29, 2008 10:03:45 PM
Subject: Re: [flexcoders] other way of opening a new browser?









navigateToURL(new URLRequest(/*Add the Link*/),"_blank");//_blank,_self



- Original Message 
From: Lee <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, January 29, 2008 3:24:21 AM
Subject: [flexcoders] other way of opening a new browser?





Hi =)

Is there any other way of opening/creating/ launching a new browser window from 
flex aside from using javascript with ExternalInterface? Thanks! :)

 
Lee 








Never miss a thing. Make Yahoo your homepage. 






  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] resizing children of hdividedbox

2008-02-12 Thread Lee
hi, i couldn't do that because the added component had computations and if i 
used percent width/height, i was having problems finding the dimensions needed 
for those computations... so the width and height were set instead of the 
percent values... i know it would be better if i used percentage values but... 
that's what happened... i can't do a recode right now because there are just so 
many child components (they're different views) so i have to find a solution 
(even a temporary one) until i have time to do just that :) Any further help 
will be appreciated :) Thanks!!!
 
May God bless! 
Lee 
--
Y!M : callistachan
Blog: http://callie16.livejournal.com
Multiply: http://callie16.multiply.com

- Original Message 
From: Tom Chiverton <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 13, 2008 12:44:58 AM
Subject: Re: [flexcoders] resizing children of hdividedbox


On 
Tuesday 
12 
Feb 
2008, 
callistachan 
wrote:
> 
anyway, 
when 
i 
do 
drag 
the 
divider, 
and 
i 
resize 
the 
component 
i 
added
> 
dynamically 
to 
panel1, 
it 
still 
sees 
the 
original 
dimensions 
of

Did 
you 
set 
a 
percentWidth 
on 
this 
added 
component 
?

-- 
Tom 
Chiverton
Helping 
to 
authoritatively 
utilize 
open-source 
experiences
on: 
http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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


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

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

settings:
  
  
Individual 
Email 
| 
Traditional

settings 
online 
go 
to:
  
  
http://groups.yahoo.com/group/flexcoders/join
  
  
(Yahoo! 
ID 
required)

settings 
via 
email:
  
  
mailto:[EMAIL PROTECTED] 
  
  
mailto:[EMAIL PROTECTED]

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

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






  

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


Re: [flexcoders] Re: resizing children of hdividedbox

2008-02-17 Thread Lee
hi, i remember that i tried using that but i can't seem to get the children 
(the components, that is) to get the dimensions of the parent... more like, i 
do get to reassign the width and height of the parent but the UI doesn't 
refresh to show the new dimensions... reminds me of caching for some reason...
 
May God bless! Kiwotsukete ^^x
Lee 
--
Y!M : callistachan
Blog: http://callie16.livejournal.com
Multiply: http://callie16.multiply.com

- Original Message 
From: Sherif Abdou <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Monday, February 18, 2008 11:18:37 AM
Subject: Re: [flexcoders] Re: resizing children of hdividedbox








try FlexEvent.UPDATE_COMPLETE


- Original Message 
From: callistachan <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Sunday, February 17, 2008 9:09:38 PM
Subject: [flexcoders] Re: resizing children of hdividedbox



hi, anyone? :( it would help to know that if i have to listen to an
event, which one and where... or something... anything... again,
thanks... 

--- In [EMAIL PROTECTED] ups.com, Lee  wrote:
>
> hi, i couldn't do that because the added component had computations
and if i used percent width/height, i was having problems finding the
dimensions needed for those computations. .. so the width and height
were set instead of the percent values... i know it would be better if
i used percentage values but... that's what happened... i can't do a
recode right now because there are just so many child components
(they're different views) so i have to find a solution (even a
temporary one) until i have time to do just that :) Any further help
will be appreciated :)
 Thanks!!!
> 
> May God bless! 
> Lee 
> --
> Y!M : callistachan
> Blog: http://callie16. livejournal. com
> Multiply: http://callie16. multiply. com
> 
> - Original Message 
> From: Tom Chiverton 
> To: [EMAIL PROTECTED] ups.com
> Sent: Wednesday, February 13, 2008 12:44:58 AM
> Subject: Re: [flexcoders] resizing children of hdividedbox
> 
> 
> On 
> Tuesday 
> 12 
> Feb 
> 2008, 
> callistachan 
> wrote:
> > 
> anyway, 
> when 
> i 
> do 
> drag 
> the 
> divider,
 
> and 
> i 
> resize 
> the 
> component 
> i 
> added
> > 
> dynamically 
> to 
> panel1, 
> it 
> still 
> sees 
> the 
> original 
> dimensions 
> of
> 
> Did 
> you 
> set 
> a 
> percentWidth 
> on 
> this 
> added 
> component 
> ?
> 
> -- 
> Tom 
> Chiverton
> Helping 
> to 
> authoritatively 
> utilize 
> open-source 
> experiences
> on: 
> http://thefalken. livejournal. com
> 
>  * * * * 
> 
> This 
> email 
> is 
> sent 
> for 
> and 
> on 
> behalf 
> of 
> Halliwells 
> LLP.
> 
>
 Halliwells 
> LLP 
> is 
> a 
> limited 
> liability 
> partnership 
> registered 
> in 
> England 
> and 
> Wales 
> under 
> registered 
> number 
> OC307980 
> whose 
> registered 
> office 
> address 
> is 
> at 
> Halliwells 
> LLP, 
> 3 
> Hardman 
> Square, 
> Spinningfields, 
> Manchester, 
> M3 
> 3EB. 
> A 
> list 
> of 
> members 
> is 
> available 
> for 
> inspection 
> at 
> the 
> registered 
> office. 
> Any 
> reference 
> to 
> a 
> partner 
> in 
> relation 
> to 
> Halliwells 
> LLP 
> means 
> a 
> member 
> of 
> Halliwells 
> LLP. 
> Regulated 
> by 
> The 
>
 Solicitors 
> Regulation 
> Authority.
> 
> CONFIDENTIALITY
> 
> This 
> email 
> is 
> intended 
> only 
> for 
> the 
> use 
> of 
> the 
> addressee 
> named 
> above 
> and 
> may 
> be 
> confidential 
> or 
> legally 
> privileged. 
> If 
> you 
> are 
> not 
> the 
> addressee 
> you 
> must 
> not 
> read 
> it 
> and 
> must 
> not 
> use 
> any 
> information 
> contained 
> in 
> nor 
> copy 
> it 
> nor 
> inform 
> any 
> person 
> other 
> than 
> Halliwells 
> LLP 
> or 
> the 
> addressee 
> of 
> its 
> existence 
> or 
> contents. 
> If 
> you 
>
 have 
> received 
> this 
> email 
> in 
> error 
> please 
> delete 
> it 
> and 
> notify 
> Halliwells 
> LLP 
> IT 
> Department 
> on 
> 0870 
> 365 
> 2500.
> 
> For 
> more 
> information 
> about 
> Halliwells 
> LLP 
> visit 
> www.halliwells. com.
> 
> 
> --
> Flexcoders 
> Mailing 
> List
> FAQ: 
> http://groups. y

Re: [flexcoders] Re: resizing children of hdividedbox

2008-02-17 Thread Lee
ok thanks :) i will try that
 
May God bless! Kiwotsukete ^^x
Lee 
--
Y!M : callistachan
Blog: http://callie16.livejournal.com
Multiply: http://callie16.multiply.com

- Original Message 
From: Sherif Abdou <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Monday, February 18, 2008 11:41:54 AM
Subject: Re: [flexcoders] Re: resizing children of hdividedbox








call the validationMethods when that happens, and you shouldnt use width and 
height if we keep assigning just use setActualSize


- Original Message 
From: Lee <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Sunday, February 17, 2008 9:23:50 PM
Subject: Re: [flexcoders] Re: resizing children of hdividedbox





hi, i remember that i tried using that but i can't seem to get the children 
(the components, that is) to get the dimensions of the parent... more like, i 
do get to reassign the width and height of the parent but the UI doesn't 
refresh to show the new dimensions.. . reminds me of caching for some reason...

 
May God bless! Kiwotsukete ^^x
Lee 
--
Y!M : callistachan
Blog: http://callie16. livejournal. com
Multiply: http://callie16. multiply. com



- Original Message 
From: Sherif Abdou <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Monday, February 18, 2008 11:18:37 AM
Subject: Re: [flexcoders] Re: resizing children of hdividedbox



try FlexEvent.UPDATE_ COMPLETE


- Original Message 
From: callistachan 
To: [EMAIL PROTECTED] ups.com
Sent: Sunday, February 17, 2008 9:09:38 PM
Subject: [flexcoders] Re: resizing children of hdividedbox



hi, anyone? :( it would help to know that if i have to listen to an
event, which one and where... or something... anything... again,
thanks... 

--- In [EMAIL PROTECTED] ups.com, Lee  wrote:
>
> hi, i couldn't do that because the added component had computations
and if i used percent width/height, i was having problems finding the
dimensions needed for those computations. .. so the width and height
were set instead of the percent values... i know it would be better if
i used percentage values but... that's what happened... i can't do a
recode right now because there are just so many child components
(they're different views) so i have to find a solution (even a
temporary one) until i have time to do just that :) Any further help
will be appreciated :)
 Thanks!!!
> 
> May God bless! 
> Lee 
> --
> Y!M : callistachan
> Blog: http://callie16. livejournal. com
> Multiply: http://callie16. multiply. com
> 
> - Original Message 
> From: Tom Chiverton 
> To: [EMAIL PROTECTED] ups.com
> Sent: Wednesday, February 13, 2008 12:44:58 AM
> Subject: Re: [flexcoders] resizing children of hdividedbox
> 
> 
> On 
> Tuesday 
> 12 
> Feb 
> 2008, 
> callistachan 
> wrote:
> > 
> anyway, 
> when 
> i 
> do 
> drag 
> the 
> divider,
 
> and 
> i 
> resize 
> the 
> component 
> i 
> added
> > 
> dynamically 
> to 
> panel1, 
> it 
> still 
> sees 
> the 
> original 
> dimensions 
> of
> 
> Did 
> you 
> set 
> a 
> percentWidth 
> on 
> this 
> added 
> component 
> ?
> 
> -- 
> Tom 
> Chiverton
> Helping 
> to 
> authoritatively 
> utilize 
> open-source 
> experiences
> on: 
> http://thefalken. livejournal. com
> 
>  * * * * 
> 
> This 
> email 
> is 
> sent 
> for 
> and 
> on 
> behalf 
> of 
> Halliwells 
> LLP.
> 
>
 Halliwells 
> LLP 
> is 
> a 
> limited 
> liability 
> partnership 
> registered 
> in 
> England 
> and 
> Wales 
> under 
> registered 
> number 
> OC307980 
> whose 
> registered 
> office 
> address 
> is 
> at 
> Halliwells 
> LLP, 
> 3 
> Hardman 
> Square, 
> Spinningfields, 
> Manchester, 
> M3 
> 3EB. 
> A 
> list 
> of 
> members 
> is 
> available 
> for 
> inspection 
> at 
> the 
> registered 
> office. 
> Any 
> reference 
> to 
> a 
> partner 
> in 
> relation 
> to 
> Halliwells 
> LLP 
> means 
> a 
> member 
> of 
> Halliwells 
> LLP. 
> Regulated 
> by 
> The 
>
 Solicitors 
> Regulation 
> Authority.
> 
> CONFIDENTIALITY
> 
> This 
> email 
> is 
> intended 
> only 
> for 
> the 
> use 
> of 
> the 
> addressee 
> named 
> above 
> and 
> may 
> be 
> confidential 
> or 
> legally 
> privileged. 
> If 
> you 
> are 
> not 
> the 
> addressee 
> you 
> must 
> not 
> read 
> it 
> and 
> must 
> not 
> use 
> any 
>

Re: [flexcoders] Re: resizing children of hdividedbox

2008-02-18 Thread Lee
hi again.. i seem to be getting deferred validation because when i call 
validateNow(), the components get the previous dimensions rather than the 
current. and short of using callLater or a timer, is there something i'm 
missing here? thanks again!
 
May God bless! Kiwotsukete ^^x
Lee 
--
Y!M : callistachan
Blog: http://callie16.livejournal.com
Multiply: http://callie16.multiply.com

- Original Message 
From: Sherif Abdou <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Monday, February 18, 2008 11:41:54 AM
Subject: Re: [flexcoders] Re: resizing children of hdividedbox








call the validationMethods when that happens, and you shouldnt use width and 
height if we keep assigning just use setActualSize


- Original Message ----
From: Lee <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Sunday, February 17, 2008 9:23:50 PM
Subject: Re: [flexcoders] Re: resizing children of hdividedbox





hi, i remember that i tried using that but i can't seem to get the children 
(the components, that is) to get the dimensions of the parent... more like, i 
do get to reassign the width and height of the parent but the UI doesn't 
refresh to show the new dimensions.. . reminds me of caching for some reason...

 
May God bless! Kiwotsukete ^^x
Lee 
--
Y!M : callistachan
Blog: http://callie16. livejournal. com
Multiply: http://callie16. multiply. com



- Original Message 
From: Sherif Abdou <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Monday, February 18, 2008 11:18:37 AM
Subject: Re: [flexcoders] Re: resizing children of hdividedbox



try FlexEvent.UPDATE_ COMPLETE


- Original Message 
From: callistachan 
To: [EMAIL PROTECTED] ups.com
Sent: Sunday, February 17, 2008 9:09:38 PM
Subject: [flexcoders] Re: resizing children of hdividedbox



hi, anyone? :( it would help to know that if i have to listen to an
event, which one and where... or something... anything... again,
thanks... 

--- In [EMAIL PROTECTED] ups.com, Lee  wrote:
>
> hi, i couldn't do that because the added component had computations
and if i used percent width/height, i was having problems finding the
dimensions needed for those computations. .. so the width and height
were set instead of the percent values... i know it would be better if
i used percentage values but... that's what happened... i can't do a
recode right now because there are just so many child components
(they're different views) so i have to find a solution (even a
temporary one) until i have time to do just that :) Any further help
will be appreciated :)
 Thanks!!!
> 
> May God bless! 
> Lee 
> --
> Y!M : callistachan
> Blog: http://callie16. livejournal. com
> Multiply: http://callie16. multiply. com
> 
> - Original Message 
> From: Tom Chiverton 
> To: [EMAIL PROTECTED] ups.com
> Sent: Wednesday, February 13, 2008 12:44:58 AM
> Subject: Re: [flexcoders] resizing children of hdividedbox
> 
> 
> On 
> Tuesday 
> 12 
> Feb 
> 2008, 
> callistachan 
> wrote:
> > 
> anyway, 
> when 
> i 
> do 
> drag 
> the 
> divider,
 
> and 
> i 
> resize 
> the 
> component 
> i 
> added
> > 
> dynamically 
> to 
> panel1, 
> it 
> still 
> sees 
> the 
> original 
> dimensions 
> of
> 
> Did 
> you 
> set 
> a 
> percentWidth 
> on 
> this 
> added 
> component 
> ?
> 
> -- 
> Tom 
> Chiverton
> Helping 
> to 
> authoritatively 
> utilize 
> open-source 
> experiences
> on: 
> http://thefalken. livejournal. com
> 
>  * * * * 
> 
> This 
> email 
> is 
> sent 
> for 
> and 
> on 
> behalf 
> of 
> Halliwells 
> LLP.
> 
>
 Halliwells 
> LLP 
> is 
> a 
> limited 
> liability 
> partnership 
> registered 
> in 
> England 
> and 
> Wales 
> under 
> registered 
> number 
> OC307980 
> whose 
> registered 
> office 
> address 
> is 
> at 
> Halliwells 
> LLP, 
> 3 
> Hardman 
> Square, 
> Spinningfields, 
> Manchester, 
> M3 
> 3EB. 
> A 
> list 
> of 
> members 
> is 
> available 
> for 
> inspection 
> at 
> the 
> registered 
> office. 
> Any 
> reference 
> to 
> a 
> partner 
> in 
> relation 
> to 
> Halliwells 
> LLP 
> means 
> a 
> member 
> of 
> Halliwells 
> LLP. 
> Regulated 
> by 
> The 
>
 Solicitors 
> Regulation 
> Authority.
> 
> CONFIDENTIALITY
> 
> This 
> email 
> is 
> intended 
> only 
> for 
> the 
> use 
> of 
> the 
> addressee 
> named 
> above 
> and 
> may 
> be 
> conf

Re: [flexcoders] on validateNow() and previous values

2008-02-18 Thread Lee
it's not that... when the hdividedbox's divider gets dragged, the child 
component should follow and resize but since i'm not using percentage for width 
and height in the child component (due to computation needs), it doesn't follow 
suit and i have to force the component's dimension to refresh "manually".

at the moment, the child component sees the previous dimension instead of the 
current even when i use validateNow. i do it on the canvas because the canvas 
contains one or several child components (draggable panels). if the panels are 
dragged and the canvas does not resize to the current dimensions and these 
panels reach the edge of the canvas, a scrollbar appears on both x- and y- 
axes. that's why i need to see the current dimensions once the divider is 
dragged...
 

May God bless! Kiwotsukete ^^x
Lee 
--
Y!M : callistachan
Blog: http://callie16.livejournal.com
Multiply: http://callie16.multiply.com

- Original Message 
From: Sherif Abdou <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 19, 2008 1:14:18 PM
Subject: Re: [flexcoders] on validateNow() and previous values









why are we calling validate now? and if you dont want scroll in the canvas just 
turn them off and the panel should handle them

- Original Message 
From: callistachan <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Monday, February 18, 2008 11:03:20 PM
Subject: [flexcoders] on validateNow() and previous values



hi, since the last post i made on my previous thread was not answered,
i'll post the last issue i got :)

given roughly (in my mxml file):





...








when i drag hdividedbox, i enter some_function( ) and i am supposed to
make sure that panel1 resizes after that drag... BUT when i call
validateNow( ) for canvas1 (because the scrollbars appear here and not
in the panel), the dimensions i get are the previous dimensions
instead of the current. then if i drag again, i still get the
previous. am i missing something?

any help would be seriously appreciated. .. been dealing with
 this
problem for over a week now :(












  Never miss a thing.   Make Yahoo your homepage.









  

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

Re: [flexcoders] on validateNow() and previous values (w/ image links)

2008-02-18 Thread Lee
i just noticed, i'm sorry >.<

image1 -> http://img91.imageshack.us/img91/9453/99384705qi7.png
image2 -> http://img156.imageshack.us/img156/9550/14060237he7.png
image3 -> http://img406.imageshack.us/img406/1728/46939852se7.png

thanks sherif...
 
May God bless! Kiwotsukete ^^x
Lee 
--
Y!M : callistachan
Blog: http://callie16.livejournal.com
Multiply: http://callie16.multiply.com

- Original Message 
From: Sherif Abdou <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 19, 2008 1:58:22 PM
Subject: Re: [flexcoders] on validateNow() and previous values (w/ image links)








where is the link?


- Original Message 
From: Lee <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Monday, February 18, 2008 11:54:17 PM
Subject: Re: [flexcoders] on validateNow() and previous values (w/ image links)





i've uploaded some images (which i will have to take down later on...) to 
demonstrate what i mean... really hoping for help... thanks!

image1 (please click here)
--> this is the "initial" state

image2 (please click here)
--> first drag. you will notice that the panel inside has not resized...

image1 (please click here)
--> next drag. you will notice that the panel inside has resized BUT the size 
it resized to is the dimensions in image 2 after the first drag...

that shouldn't happen. in image 2, the panel should resize and go all the way 
to the divider as should image 3. hoping for help again, thanks!!

 
May God bless! Kiwotsukete ^^x
Lee 
--
Y!M : callistachan
Blog: http://callie16. livejournal. com
Multiply: http://callie16. multiply. com



- Original Message 
From: Lee 
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, February 19, 2008 1:36:02 PM
Subject: Re: [flexcoders] on validateNow( ) and previous values


it's not that... when the hdividedbox' s divider gets dragged, the child 
component should follow and resize but since i'm not using percentage for width 
and height in the child component (due to computation needs), it doesn't follow 
suit and i have to force the component's dimension to refresh "manually".

at the moment, the child component sees the previous dimension instead of the 
current even when i use validateNow. i do it on the canvas because the canvas 
contains one or several child components (draggable panels). if the panels are 
dragged and the canvas does not resize to the current dimensions and these 
panels reach the edge of the canvas, a scrollbar appears on both x- and y- 
axes. that's why i need to see the current dimensions once the divider is 
dragged...

 

May God bless! Kiwotsukete ^^x
Lee 
--
Y!M : callistachan
Blog: http://callie16. livejournal. com
Multiply: http://callie16. multiply. com



- Original Message 
From: Sherif Abdou <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, February 19, 2008 1:14:18 PM
Subject: Re: [flexcoders] on validateNow( ) and previous values




why are we calling validate now? and if you dont want scroll in the canvas just 
turn them off and the panel should handle them

- Original Message 
From: callistachan 
To: [EMAIL PROTECTED] ups.com
Sent: Monday, February 18, 2008 11:03:20 PM
Subject: [flexcoders] on validateNow( ) and previous values



hi, since the last post i made on my previous thread was not answered,
i'll post the last issue i got :)

given roughly (in my mxml file):





...








when i drag hdividedbox, i enter some_function( ) and i am supposed to
make sure that panel1 resizes after that drag... BUT when i call
validateNow( ) for canvas1 (because the scrollbars appear here and not
in the panel), the dimensions i get are the previous dimensions
instead of the current. then if i drag again, i still get the
previous. am i missing something?

any help would be seriously appreciated. .. been dealing with
 this
problem for over a week now :(










Never miss a thing. Make Yahoo your homepage. 






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






Never miss a thing. Make Yahoo your homepage. 







  Never miss a thing.   Make Yahoo your homepage.









  

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

Re: [flexcoders] on validateNow() and previous values (w/ image links)

2008-02-18 Thread Lee
i've uploaded some images (which i will have to take down later on...) to 
demonstrate what i mean... really hoping for help... thanks!

image1 (please click here)
--> this is the "initial" state

image2 (please click here)
--> first drag. you will notice that the panel inside has not resized...

image1 (please click here)
--> next drag. you will notice that the panel inside has resized BUT the size 
it resized to is the dimensions in image 2 after the first drag...

that shouldn't happen. in image 2, the panel should resize and go all the way 
to the divider as should image 3. hoping for help again, thanks!!
 
May God bless! Kiwotsukete ^^x
Lee 
--
Y!M : callistachan
Blog: http://callie16.livejournal.com
Multiply: http://callie16.multiply.com

- Original Message 
From: Lee <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 19, 2008 1:36:02 PM
Subject: Re: [flexcoders] on validateNow() and previous values








it's not that... when the hdividedbox's divider gets dragged, the child 
component should follow and resize but since i'm not using percentage for width 
and height in the child component (due to computation needs), it doesn't follow 
suit and i have to force the component's dimension to refresh "manually".

at the moment, the child component sees the previous dimension instead of the 
current even when i use validateNow. i do it on the canvas because the canvas 
contains one or several child components (draggable panels). if the panels are 
dragged and the canvas does not resize to the current dimensions and these 
panels reach the edge of the canvas, a scrollbar appears on both x- and y- 
axes. that's why i need to see the current dimensions once the divider is
 dragged...
 

May God bless! Kiwotsukete ^^x
Lee 
--
Y!M : callistachan
Blog: http://callie16.livejournal.com
Multiply: http://callie16.multiply.com

- Original Message 
From: Sherif Abdou <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 19, 2008 1:14:18 PM
Subject: Re: [flexcoders] on validateNow() and previous values









why are we calling validate now? and if you dont want scroll in the canvas just 
turn them off and the panel should handle them

- Original Message 
From: callistachan <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Monday, February 18, 2008 11:03:20 PM
Subject: [flexcoders] on validateNow() and previous values



hi, since the last post i made on my previous thread was not answered,
i'll post the last issue i got :)

given roughly (in my mxml file):





...








when i drag hdividedbox, i enter some_function( ) and i am supposed to
make sure that panel1 resizes after that drag... BUT when i call
validateNow( ) for canvas1 (because the scrollbars appear here and not
in the panel), the dimensions i get are the previous dimensions
instead of the current. then if i drag again, i still get the
previous. am i missing something?

any help would be seriously appreciated. .. been dealing with
 this
problem for over a week now :(












  Never miss a thing.   Make Yahoo your homepage.









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







  

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

Re: [flexcoders] how do I loop thru dynamically created UI components?

2008-04-21 Thread Lee
Hi, I replied below =)

-- Lee

- Original Message 
From: hoytlee2000 <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Monday, April 21, 2008 5:21:13 PM
Subject: [flexcoders] how do I loop thru dynamically created UI components?

Hello,

I've created a button to let users add text input fields to the app so they can 
add additional information.  That works fine, however I am at a 
lost on how to loop thru the newly added fields to get the input so I can send 
it to a php script to store in a sqlite database.  I thought I could 
iterate through the container using the numchild attr of the enclosing 
container, but it returns a DisplayObject and that's where I get stuck.

I don't know how to access the individual attrs (such as the .text property) of 
the DisplayObject.  I have the label and textinput components 
wrapped in a hbox for formatting purposes.

Also I noticed that when I try to set the id attr of the textfield explicitly 
the getName method returns something entirely differemt (see output 
after code below).

Any help, tips, or web link would be appreciated.  I'm stumped.

Thanks,
Hoyt

my code:


http://www.adobe.com/2006/mxml"; layout="absolute">



















This is the printout I get from the code:

Index is: 0
sandbox0.myPanel.vbox.hbox0
Index is: 1
sandbox0.myPanel.vbox.HBox89
Index is: 2
sandbox0.myPanel.vbox.HBox96
Index is: 3
sandbox0.myPanel.vbox.HBox104

why is the id of the added HBox's Hbox89, HBox96, and HBox104? instead of 
Hbox1, Hbox2, Hbox3?




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
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: how do I loop thru dynamically created UI components?

2008-04-22 Thread Lee
did you import them? 

- Original Message 
From: hoytlee2000 <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, April 22, 2008 6:38:47 AM
Subject: [flexcoders] Re: how do I loop thru dynamically created UI components?

Unfortunately it didn't work, I get an error saying I am trying to
implicitly coerce a type not defined in Display Object.  

be well,
hoyt

--- In flexcoders@yahoogroups.com, Lee <[EMAIL PROTECTED]> wrote:
>
> Hi, I replied below =)
> 
> -- Lee
> 
> - Original Message 
> From: hoytlee2000 <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Monday, April 21, 2008 5:21:13 PM
> Subject: [flexcoders] how do I loop thru dynamically created UI
components?
> 
> Hello,
> 
> I've created a button to let users add text input fields to the app
so they can add additional information.  That works fine, however I am
at a 
> lost on how to loop thru the newly added fields to get the input so
I can send it to a php script to store in a sqlite database.  I
thought I could 
> iterate through the container using the numchild attr of the
enclosing container, but it returns a DisplayObject and that's where I
get stuck.
> 
> I don't know how to access the individual attrs (such as the .text
property) of the DisplayObject.  I have the label and textinput
components 
> wrapped in a hbox for formatting purposes.
> 
> Also I noticed that when I try to set the id attr of the textfield
explicitly the getName method returns something entirely differemt
(see output 
> after code below).
> 
> Any help, tips, or web link would be appreciated.  I'm stumped.
> 
> Thanks,
> Hoyt
> 
> my code:
> 
> 
> http://www.adobe.com/2006/mxml";
layout="absolute">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> This is the printout I get from the code:
> 
> Index is: 0
> sandbox0.myPanel.vbox.hbox0
> Index is: 1
> sandbox0.myPanel.vbox.HBox89
> Index is: 2
> sandbox0.myPanel.vbox.HBox96
> Index is: 3
> sandbox0.myPanel.vbox.HBox104
> 
> why is the id of the added HBox's Hbox89, HBox96, and HBox104?
instead of Hbox1, Hbox2, Hbox3?
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  

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





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
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] Debugging application

2008-04-22 Thread Lee
you have to download the adobe flashplayer plugin for the browser you will be 
using... yes, you can use the trace function after you get that installed... =)

-- Lee

- Original Message 
From: markgoldin_2000 <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, April 22, 2008 4:13:48 AM
Subject: [flexcoders] Debugging application

How would I debug an app. when I run it as a released version? Is there 
anything like trace() available?

Thanks




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
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: how do I loop thru dynamically created UI components?

2008-04-23 Thread Lee

hmm that's odd... i'm coding a project right now and that's what i use... but i 
don't import everything (*)... hehe
anyway, if you want typecasting, i usually do something like this:

var str:String = TextInput(HBox(vbox.getChildAt(i)).getChildAt(1)).text;

let me know if it's not still working and i'll try to figure it out :)

-Lee

- Original Message 
From: hoytlee2000 <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, April 23, 2008 3:04:29 PM
Subject: [flexcoders] Re: how do I loop thru dynamically created UI components?

Hello Lee,

Yes I did, if you mean by using the statement

import mx.containers.*;

I think the problem is that the getChildAt() method returns a DisplayObject, 
but I don't 
know how to cast it as an HBox or any other UIComponent.  The DisplayObject 
doesn't 
even have a getChildAt() method.

If I could figure out how to cast the returned DisplayObject as a particular UI 
component 
that would be great.  Thanks.

be well,
Hoyt

--- In flexcoders@yahoogroups.com, Lee <[EMAIL PROTECTED]> wrote:
>
> did you import them? 
> 
> - Original Message 
> From: hoytlee2000 <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Tuesday, April 22, 2008 6:38:47 AM
> Subject: [flexcoders] Re: how do I loop thru dynamically created UI 
> components?
> 
> Unfortunately it didn't work, I get an error saying I am trying to
> implicitly coerce a type not defined in Display Object.  
> 
> be well,
> hoyt
> 
> --- In flexcoders@yahoogroups.com, Lee  wrote:
> >
> > Hi, I replied below =)
> > 
> > -- Lee
> > 
> > - Original Message 
> > From: hoytlee2000 
> > To: flexcoders@yahoogroups.com
> > Sent: Monday, April 21, 2008 5:21:13 PM
> > Subject: [flexcoders] how do I loop thru dynamically created UI
> components?
> > 
> > Hello,
> > 
> > I've created a button to let users add text input fields to the app
> so they can add additional information.  That works fine, however I am
> at a 
> > lost on how to loop thru the newly added fields to get the input so
> I can send it to a php script to store in a sqlite database.  I
> thought I could 
> > iterate through the container using the numchild attr of the
> enclosing container, but it returns a DisplayObject and that's where I
> get stuck.
> > 
> > I don't know how to access the individual attrs (such as the .text
> property) of the DisplayObject.  I have the label and textinput
> components 
> > wrapped in a hbox for formatting purposes.
> > 
> > Also I noticed that when I try to set the id attr of the textfield
> explicitly the getName method returns something entirely differemt
> (see output 
> > after code below).
> > 
> > Any help, tips, or web link would be appreciated.  I'm stumped.
> > 
> > Thanks,
> > Hoyt
> > 
> > my code:
> > 
> > 
> > http://www.adobe.com/2006/mxml";
> layout="absolute">
> > 
> > 
> > 
> >  layout="absolute">
> > 
> > 
> >  textAlign="center" height="20"/>
> > 
> > 
> > 
> > 
> > 
> >  wordWrap="true" width="408"/>
> > 
> > 
> > 
> > 
> > 
> > 
> > This is the printout I get from the code:
> > 
> > Index is: 0
> > sandbox0.myPanel.vbox.hbox0
> > Index is: 1
> > sandbox0.myPanel.vbox.HBox89
> > Index is: 2
> > sandbox0.myPanel.vbox.HBox96
> > Index is: 3
> > sandbox0.myPanel.vbox.HBox104
> > 
> > why is the id of the added HBox's Hbox89, HBox96, and HBox104?
> instead of Hbox1, Hbox2, Hbox3?
> > 
> > 
> > 
> > 
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  
> 
> > Be a better friend, newshound, and 
> > know-it-all with Yahoo! Mobile.  Try it now. 
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> >
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFA

[flexcoders] Flex is still supporting UTF-8 character sets only?

2006-06-30 Thread Joonha Lee
See relative Post
http://groups.yahoo.com/group/flexcoders/message/4593

Matt menntioned 'Normally we only support UTF-8 character sets'
we, therefore using another character set writeing 
It working in Flex 1.5

Do you have any chance or tips in Flex 2 ?








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

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

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

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

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




[flexcoders] Reusable Component / Object Oriented Program

2006-07-03 Thread Dong Lee






I'd like to find out if it can be done 
with Flex, the component's skeleton is 
like below code snippet:
 
 
To make this component reusable for different 
search cases like CustomerSearch, OrderSearch, 
following controls, functions have to be worked out at runtime using 
an actionscript class that can evaluate the case and assign appropriate form, 
datagrid.
 
1. Form : formSearch
2. Datagrid : dgSearchResult
3. addRow(), modRow(), delRow()
 

I want to have only one generic search component 
in the application rather than creating multiple of them with specific 
cases using viewstack. I 

How do I instantiate the formSearch 
with specific forms defined in mxlm files e.g.. 
formCustomerSearch.mxlm, formOrderSearch.mxlm?
What about dgSearchResult?
 
 
 
Code Snippet
===
 

 
http://www.adobe.com/2006/mxml" 
xmlns="*" layout="vertical"  height="662" width="664">
 
 
 
         
     
paddingTop="10" paddingBottom="10" paddingLeft="10" 
paddingRight="10">  
  
  
  
  
 
 
            
                
        
    
    

 

__._,_.___





--
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] Using taglib in JSPs

2006-07-19 Thread Joonha Lee
I am not found MxmlTag.class in '/WEB-INF/lib/flex-bootstrap.jar'
Therefore, I found error the past jsp code !!
This code is no use in Flex2 ?



<%@ taglib uri="FlexTagLib" prefix="mm" %>

 http://www.adobe.com/2006/mxml";>
  
   
  
 
 






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

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

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

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

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





[flexcoders] Re: problem with Using the JSP Tag Library

2006-08-02 Thread Joonha Lee
not support JSP Tag Library in Flex 2 !!
flex-bootstrap.jar in Flex 1.5 is not equals Flex 2
Tag Library part is deleted  

--- In flexcoders@yahoogroups.com, "Satish" <[EMAIL PROTECTED]> wrote:
>
> Hi i am trying to embed my mxml page in my jsp. But i was getting 
the 
> following error.
>  File "/FlexTagLib" not found
> .But my flex-bootstrap.jar is locating in right place. Can anybody 
tell me 
> why i am getting this error?
> 
> my sample code:
> <%@ taglib uri="FlexTagLib" prefix="mm" %>
> 
> 
> 
> <%String tree=" label='Option 1.2'/>"; %>
> 
> 
> 
> http://www.macromedia.com/2003/mxml"; 
> initialize="loadme()" >
> 
> ..
> 
> ..
>







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

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

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

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





[flexcoders] Debugging Web Service call

2006-08-10 Thread Tom Lee










Hi guys,

 

I’m having some trouble with a WebService call and can’t
seem to pinpoint the trouble.  The WSDL loads fine, but any calls to the
web service result in nothing.  No fault, no result, not even the busy
cursor (even though I’ve got showBusyCursor=”true”).  Anyone
have any suggestions for how I might debug this?  Are there any low-level
status events I can hook into?

 

I have better luck with the MXNA web services, so I know my
syntax is right…

 

Thanks!

 

-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] Re: Debugging Web Service call

2006-08-10 Thread Tom Lee
Yeah, I hate generic questions too, sorry about that.  Problem is, I can't
show you the web services due to company policy, and can't show you my code
because it would expose the web services.  I can tell you that I've
connected successfully to other web services using the same syntax, so I'm
pretty sure my code's not at fault.

What I'm really after are general tips on debugging web service calls.
Usually you'd look at the fault message when a call fails, but this failure
isn't generating a fault.  Also, it prevents subsequent function calls from
executing, which I find odd:

function doIt():void{
myWebService.myMethod.send();
//The following will not fire:
Alert.show("Call made to webservice");
}

Sorry I can't post my code.  I appreciate anything you might be able to
offer despite that fact.

-tom

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexnadobe
Sent: Thursday, August 10, 2006 12:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Debugging Web Service call

Hi Tom,

If you want try to post some code so we can see what you are doing?
There are alot of cool bro's on this site that will help but we will
need a starting point.

cya,

Rich

--- In flexcoders@yahoogroups.com, "Tom Lee" <[EMAIL PROTECTED]> wrote:
>
> Hi guys,
> 
>  
> 
> I'm having some trouble with a WebService call and can't seem to
pinpoint
> the trouble.  The WSDL loads fine, but any calls to the web service
result
> in nothing.  No fault, no result, not even the busy cursor (even
though I've
> got showBusyCursor="true").  Anyone have any suggestions for how I might
> debug this?  Are there any low-level status events I can hook into?
> 
>  
> 
> I have better luck with the MXNA web services, so I know my syntax
is right.
> 
>  
> 
> Thanks!
> 
>  
> 
> -tom
>







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



 






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

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

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

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





RE: [flexcoders] Re: Debugging Web Service call

2006-08-10 Thread Tom Lee
Exactly what I was looking for, James!  Thanks so much...  The request was
not being sent at all, so I stepped into the debugger.  It turns out I have
a WSDL error - looks like the WSDLParser is choking on a namespace, saying
it's "not resolvable".  It's one of those ASP.Net default "tempuri.org"
namespaces.  Anyone ever have trouble with ASP.Net web service namespaces?

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of james_dhap
Sent: Thursday, August 10, 2006 3:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Debugging Web Service call

Hi Tom,
There are two places I would recommend starting with.  The first is to
 see if any data is actually being sent out by the player to the
WebService.  The easiest way to do this is to use an HTTP request
debugger to sniff the outgoing/incoming data.  There are a lot of
options out there but I prefer Tamper Data (see my previous post),
mainly because it intergrates with Firefox:

https://addons.mozilla.org/firefox/966/

What you want to do with this app (or any other debugger) is to see if
the request is being sent out to the service by the player.  If you
don't see a request being sent out then you know that there is some
problem in your Flex code or a conflict in the Flex Framework. If the
data never leaves I would set a breakpoint on the send method and
start stepping into the Framework code and see where it goes wrong.

If you see the request is being sent but nothing is being returned
then you can pursue the service and verify that its not hanging or
doing something wrong.

It's kind of hard to recommend other ideas without seeing your code,
but I totally understand why you can't post it.

-- James


--- In flexcoders@yahoogroups.com, "Tom Lee" <[EMAIL PROTECTED]> wrote:
>
> Yeah, I hate generic questions too, sorry about that.  Problem is, I
can't
> show you the web services due to company policy, and can't show you
my code
> because it would expose the web services.  I can tell you that I've
> connected successfully to other web services using the same syntax,
so I'm
> pretty sure my code's not at fault.
> 
> What I'm really after are general tips on debugging web service calls.
> Usually you'd look at the fault message when a call fails, but this
failure
> isn't generating a fault.  Also, it prevents subsequent function
calls from
> executing, which I find odd:
> 
> function doIt():void{
>   myWebService.myMethod.send();
>   //The following will not fire:
>   Alert.show("Call made to webservice");
> }
> 
> Sorry I can't post my code.  I appreciate anything you might be able to
> offer despite that fact.
> 
> -tom
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of flexnadobe
> Sent: Thursday, August 10, 2006 12:29 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Debugging Web Service call
> 
> Hi Tom,
> 
> If you want try to post some code so we can see what you are doing?
> There are alot of cool bro's on this site that will help but we will
> need a starting point.
> 
> cya,
> 
> Rich
> 
> --- In flexcoders@yahoogroups.com, "Tom Lee"  wrote:
> >
> > Hi guys,
> > 
> >  
> > 
> > I'm having some trouble with a WebService call and can't seem to
> pinpoint
> > the trouble.  The WSDL loads fine, but any calls to the web service
> result
> > in nothing.  No fault, no result, not even the busy cursor (even
> though I've
> > got showBusyCursor="true").  Anyone have any suggestions for how I
might
> > debug this?  Are there any low-level status events I can hook into?
> > 
> >  
> > 
> > I have better luck with the MXNA web services, so I know my syntax
> is right.
> > 
> >  
> > 
> > Thanks!
> > 
> >  
> > 
> > -tom
> >
> 
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>






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



 





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

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

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

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




[flexcoders] WebService - What's wrong with this code?

2006-08-11 Thread Tom Lee










I can’t figure this out for the life of me – I’m
following other people’s examples, but still getting errors.  This
must be something obvious… Here’s my code (I’ve removed the
actual WSDL url):

 





    

    

    



 

 

And here’s my error:

 

1061: Call to a possibly undefined method loadWSDL through a
reference with static type WebService.   (Line 9)

 

I’ve tried a bunch of different stuff – here’s
another variation, which throws different errors:

 





    

    

    



 

And the errors:

 

1120: Access of undefined property myWebService. 
(Lines 8 & 9)

 

Thanks!

 

- 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] Re: WebService - What's wrong with this code?

2006-08-11 Thread Tom Lee
Thanks Ben, but no such luck - I get the same error as in my first example.
Does it compile for you without errors?

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Friday, August 11, 2006 12:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: WebService - What's wrong with this code?

For your second example, if you wrap the lines other than the import
inside of a function it should work.

HTH,
Ben

--- In flexcoders@yahoogroups.com, "Tom Lee" <[EMAIL PROTECTED]> wrote:
>
> I can't figure this out for the life of me - I'm following other
people's
> examples, but still getting errors.  This must be something obvious.
Here's
> my code (I've removed the actual WSDL url):
> 
>  
> 
> 
> 
> http://www.adobe.com/2006/mxml";
layout="absolute">
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
>  
> 
> And here's my error:
> 
>  
> 
> 1061: Call to a possibly undefined method loadWSDL through a
reference with
> static type WebService.   (Line 9)
> 
>  
> 
> I've tried a bunch of different stuff - here's another variation, which
> throws different errors:
> 
>  
> 
> 
> 
> http://www.adobe.com/2006/mxml";
layout="absolute">
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> And the errors:
> 
>  
> 
> 1120: Access of undefined property myWebService.  (Lines 8 & 9)
> 
>  
> 
> Thanks!
> 
>  
> 
> - tom
>






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



 





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

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

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

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




RE: [flexcoders] Re: WebService - What's wrong with this code?

2006-08-14 Thread Tom Lee
Thanks, Ben -

Your code works fine.  My code, even after I manually edited to make it
identical to yours, does not.  I can only conclude that Flex Builder is on
crack.  Seriously, I went over it line by line...  No differences except
whitespace.  I hope this is not going to become a behavioral pattern in
Builder... I work with Visual Studio, and there's no room for more than one
buggy IDE in my life.

Thanks again,

-tom

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Friday, August 11, 2006 10:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: WebService - What's wrong with this code?

> Does it compile for you without errors?

Yep, this exact code works for me.


http://www.adobe.com/2006/mxml";
layout="absolute" creationComplete="init()">






> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of ben.clinkinbeard
> Sent: Friday, August 11, 2006 12:42 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: WebService - What's wrong with this code?
> 
> For your second example, if you wrap the lines other than the import
> inside of a function it should work.
> 
> HTH,
> Ben
> 
> --- In flexcoders@yahoogroups.com, "Tom Lee"  wrote:
> >
> > I can't figure this out for the life of me - I'm following other
> people's
> > examples, but still getting errors.  This must be something obvious.
> Here's
> > my code (I've removed the actual WSDL url):
> > 
> >  
> > 
> > 
> > 
> > http://www.adobe.com/2006/mxml";
> layout="absolute">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  
> > 
> >  
> > 
> > And here's my error:
> > 
> >  
> > 
> > 1061: Call to a possibly undefined method loadWSDL through a
> reference with
> > static type WebService.   (Line 9)
> > 
> >  
> > 
> > I've tried a bunch of different stuff - here's another variation,
which
> > throws different errors:
> > 
> >  
> > 
> > 
> > 
> > http://www.adobe.com/2006/mxml";
> layout="absolute">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  
> > 
> > And the errors:
> > 
> >  
> > 
> > 1120: Access of undefined property myWebService.  (Lines 8 & 9)
> > 
> >  
> > 
> > Thanks!
> > 
> >  
> > 
> > - tom
> >
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>







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



 





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

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

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

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





[flexcoders] XML parser chokes on un-typed xmlns

2006-08-16 Thread Tom Lee










Hi everyone,

 

I am having some difficulty parsing .Net web service
results.  The problem lies in the fact that Flex’s XML parser doesn’t
like un-typed xmlns declarations of the type found by default in .Net web
services.  Try the following:

 

 





    

    

    



 

 

 

This code results in the following traces:

 

Node B from myXML: Hi

Node
B from myXML2:

 

As you can see, the only difference between the two blocks
of XML is that the successful one uses “xmlns:soap=” while the
unsuccessful one uses “xmlns=”.  While I am no SOAP expert, I
don’t believe the 2nd one is invalid syntax, so there should
be no reason for the XML parser to ignore it, right?

 

Anyone have a workaround for me that doesn’t require modifying
the web services? (I don’t have administrative access to them).

 

Thanks!

 

-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
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  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: XML parser chokes on un-typed xmlns

2006-08-16 Thread Tom Lee
Thanks, Ben - I've seen this before (I believe you directed me to this page
on a previous issue).  However, I don't understand how it applies to my
particular problem - how would you fix my example using the namespace
directive?

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Wednesday, August 16, 2006 12:46 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns

http://www.returnundefined.com/2006/07/dealing-with-default-namespaces-in-fl
ex-2as3/

Ben
http://www.returnundefined.com/

--- In flexcoders@yahoogroups.com, "Tom Lee" <[EMAIL PROTECTED]> wrote:
>
> Hi everyone,
> 
>  
> 
> I am having some difficulty parsing .Net web service results.  The
problem
> lies in the fact that Flex's XML parser doesn't like un-typed xmlns
> declarations of the type found by default in .Net web services.  Try the
> following:
> 
>  
> 
>  
> 
> 
> 
> http://www.adobe.com/2006/mxml";
layout="absolute"
> creationComplete="doIt()">
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
>  
> 
>  
> 
> This code results in the following traces:
> 
>  
> 
> Node B from myXML: Hi
> 
> Node B from myXML2:
> 
>  
> 
> As you can see, the only difference between the two blocks of XML is
that
> the successful one uses "xmlns:soap=" while the unsuccessful one uses
> "xmlns=".  While I am no SOAP expert, I don't believe the 2nd one is
invalid
> syntax, so there should be no reason for the XML parser to ignore
it, right?
> 
>  
> 
> Anyone have a workaround for me that doesn't require modifying the web
> services? (I don't have administrative access to them).
> 
>  
> 
> Thanks!
> 
>  
> 
> -tom
>







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



 






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

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

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

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




RE: [flexcoders] Re: XML parser chokes on un-typed xmlns

2006-08-16 Thread Tom Lee












At the risk of seeming dense: how would I
fix my second example?  I’ve been through the help docs and Ben’s
examples, but I’m just not getting it.

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Gordon Smith
Sent: Wednesday, August 16, 2006
1:26 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: XML
parser chokes on un-typed xmlns



 

More explanation...

 

Tom, the behavior you saw was correct.

 

In your first case, defining the soap
namespace prefix on  doesn't affect , because  has
no namespace prefix and is therefore in the undefined default namespace, not in
the soap namespace.

 

In your second case, you are defining a
default namespace on , which affects the child tag . So
descendants("b") doesn't find .

 

I didn't look at Ben's links, but they
presumably explain how to programmatically access tags and attributes when you
define a default namespace.

 

- Gordon

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of ben.clinkinbeard
Sent: Wednesday, August 16, 2006
9:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: XML
parser chokes on un-typed xmlns



 







http://www.returnundefined.com/2006/07/dealing-with-default-namespaces-in-flex-2as3/

Ben
http://www.returnundefined.com/

--- In flexcoders@yahoogroups.com,
"Tom Lee" <[EMAIL PROTECTED]> wrote:
>
> Hi everyone,
> 
> 
> 
> I am having some difficulty parsing .Net web service results. The
problem
> lies in the fact that Flex's XML parser doesn't like un-typed xmlns
> declarations of the type found by default in .Net web services. Try the
> following:
> 
> 
> 
> 
> 
> 
> 
> http://www.adobe.com/2006/mxml"
layout="absolute"
> creationComplete="doIt()">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> This code results in the following traces:
> 
> 
> 
> Node B from myXML: Hi
> 
> Node B from myXML2:
> 
> 
> 
> As you can see, the only difference between the two blocks of XML is
that
> the successful one uses "xmlns:soap=" while the unsuccessful one
uses
> "xmlns=". While I am no SOAP expert, I don't believe the 2nd one
is
invalid
> syntax, so there should be no reason for the XML parser to ignore
it, right?
> 
> 
> 
> Anyone have a workaround for me that doesn't require modifying the web
> services? (I don't have administrative access to them).
> 
> 
> 
> Thanks!
> 
> 
> 
> -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
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  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: XML parser chokes on un-typed xmlns

2006-08-16 Thread Tom Lee
Awesome!  That's got it!  Thanks so much.  Seems odd that we have to
manually declare these namespaces just to parse a little XML, doesn't it?

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Wednesday, August 16, 2006 2:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns

Hi Tom,

Sorry, I've not used the descendants method before and I just assumed
the approach I use would work. If you use .. instead it will work as
expected.

namespace temp = "http://tempuri.org/";;
use namespace temp;
trace("Node B from myXML2: " + myXML2..b);

HTH,
Ben


--- In flexcoders@yahoogroups.com, "Tom Lee" <[EMAIL PROTECTED]> wrote:
>
> Thanks, Ben - I've seen this before (I believe you directed me to
this page
> on a previous issue).  However, I don't understand how it applies to my
> particular problem - how would you fix my example using the namespace
> directive?
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of ben.clinkinbeard
> Sent: Wednesday, August 16, 2006 12:46 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns
> 
>
http://www.returnundefined.com/2006/07/dealing-with-default-namespaces-in-fl
> ex-2as3/
> 
> Ben
> http://www.returnundefined.com/
> 
> --- In flexcoders@yahoogroups.com, "Tom Lee"  wrote:
> >
> > Hi everyone,
> > 
> >  
> > 
> > I am having some difficulty parsing .Net web service results.  The
> problem
> > lies in the fact that Flex's XML parser doesn't like un-typed xmlns
> > declarations of the type found by default in .Net web services. 
Try the
> > following:
> > 
> >  
> > 
> >  
> > 
> > 
> > 
> > http://www.adobe.com/2006/mxml";
> layout="absolute"
> > creationComplete="doIt()">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  
> > 
> >  
> > 
> >  
> > 
> > This code results in the following traces:
> > 
> >  
> > 
> > Node B from myXML: Hi
> > 
> > Node B from myXML2:
> > 
> >  
> > 
> > As you can see, the only difference between the two blocks of XML is
> that
> > the successful one uses "xmlns:soap=" while the unsuccessful one uses
> > "xmlns=".  While I am no SOAP expert, I don't believe the 2nd one is
> invalid
> > syntax, so there should be no reason for the XML parser to ignore
> it, right?
> > 
> >  
> > 
> > Anyone have a workaround for me that doesn't require modifying the web
> > services? (I don't have administrative access to them).
> > 
> >  
> > 
> > Thanks!
> > 
> >  
> > 
> > -tom
> >
> 
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>






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



 






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

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

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

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




RE: [flexcoders] Re: XML parser chokes on un-typed xmlns

2006-08-16 Thread Tom Lee
I've been debating about whether it might not be worth it just to strip out
all the xmlns declarations with a little regex... I talked it over briefly
with the web service developers and they couldn't even really explain why
those are present or what they are for... Just that Visual Studio puts them
in by default.  I understand that they might prevent collisions between
nodes of the same name, but in our case that's irrelevant since we never use
the same node name for multiple purposes.

Another idea I had would be to automagically loop through all the nodes in
the XML, find all the namespaces, and declare them... But frankly, I don't
know enough about the topic to understand the downsides of doing something
like that.  What do you think of the idea?

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Wednesday, August 16, 2006 3:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns

Don't get me started on default namespaces in Flex/AS3... :)

--- In flexcoders@yahoogroups.com, "Tom Lee" <[EMAIL PROTECTED]> wrote:
>
> Awesome!  That's got it!  Thanks so much.  Seems odd that we have to
> manually declare these namespaces just to parse a little XML,
doesn't it?
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of ben.clinkinbeard
> Sent: Wednesday, August 16, 2006 2:31 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns
> 
> Hi Tom,
> 
> Sorry, I've not used the descendants method before and I just assumed
> the approach I use would work. If you use .. instead it will work as
> expected.
> 
> namespace temp = "http://tempuri.org/";;
> use namespace temp;
> trace("Node B from myXML2: " + myXML2..b);
> 
> HTH,
> Ben
> 
> 
> --- In flexcoders@yahoogroups.com, "Tom Lee"  wrote:
> >
> > Thanks, Ben - I've seen this before (I believe you directed me to
> this page
> > on a previous issue).  However, I don't understand how it applies
to my
> > particular problem - how would you fix my example using the namespace
> > directive?
> > 
> > -Original Message-
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of ben.clinkinbeard
> > Sent: Wednesday, August 16, 2006 12:46 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns
> > 
> >
>
http://www.returnundefined.com/2006/07/dealing-with-default-namespaces-in-fl
> > ex-2as3/
> > 
> > Ben
> > http://www.returnundefined.com/
> > 
> > --- In flexcoders@yahoogroups.com, "Tom Lee"  wrote:
> > >
> > > Hi everyone,
> > > 
> > >  
> > > 
> > > I am having some difficulty parsing .Net web service results.  The
> > problem
> > > lies in the fact that Flex's XML parser doesn't like un-typed xmlns
> > > declarations of the type found by default in .Net web services. 
> Try the
> > > following:
> > > 
> > >  
> > > 
> > >  
> > > 
> > > 
> > > 
> > > http://www.adobe.com/2006/mxml";
> > layout="absolute"
> > > creationComplete="doIt()">
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  
> > > 
> > >  
> > > 
> > >  
> > > 
> > > This code results in the following traces:
> > > 
> > >  
> > > 
> > > Node B from myXML: Hi
> > > 
> > > Node B from myXML2:
> > > 
> > >  
> > > 
> > > As you can see, the only difference between the two blocks of XML is
> > that
> > > the successful one uses "xmlns:soap=" while the unsuccessful one
uses
> > > "xmlns=".  While I am no SOAP expert, I don't believe the 2nd one is
> > invalid
> > > syntax, so there should be no reason for the XML parser to ignore
> > it, right?
> > > 
> > >  
> > > 
> > > Anyone have a workaround for me that doesn't require modifying
the web
> > > services? (I don't have administrative access to them).
> > > 
> > >  
> > > 
> > > Thanks!
> > > 
> > >  
> > > 
> > > -tom
> > >
> > 
> > 
> > 
>

RE: [flexcoders] Re: XML parser chokes on un-typed xmlns

2006-08-16 Thread Tom Lee
Thanks for your help on this, Claus and Ben.  I'll keep looking into it and
see if I can come up with something a little more dynamic.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Wednesday, August 16, 2006 4:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns

I went round and round with different ideas about how to deal with
these issues shortly after I started working with Flex. I even had
some issues using namespaceDeclarations() which, as Claus points out,
should work in retrieving them.

The solution I posted on my site was the best I was able to devise
because the 'use namespace' directive provided the most flexible way
to work with XML, but you can only define those types of namespaces
with compile-time constants. For instance, you can't do this:

namespace def = myXML.namespaceDeclarations()[0];
use namespace def;

If someone figures out an easier and/or more flexible way I am
definitely all ears though.

Ben


--- In flexcoders@yahoogroups.com, "Tom Lee" <[EMAIL PROTECTED]> wrote:
>
> I've been debating about whether it might not be worth it just to
strip out
> all the xmlns declarations with a little regex... I talked it over
briefly
> with the web service developers and they couldn't even really
explain why
> those are present or what they are for... Just that Visual Studio
puts them
> in by default.  I understand that they might prevent collisions between
> nodes of the same name, but in our case that's irrelevant since we
never use
> the same node name for multiple purposes.
> 
> Another idea I had would be to automagically loop through all the
nodes in
> the XML, find all the namespaces, and declare them... But frankly, I
don't
> know enough about the topic to understand the downsides of doing
something
> like that.  What do you think of the idea?
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of ben.clinkinbeard
> Sent: Wednesday, August 16, 2006 3:18 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns
> 
> Don't get me started on default namespaces in Flex/AS3... :)
> 
> --- In flexcoders@yahoogroups.com, "Tom Lee"  wrote:
> >
> > Awesome!  That's got it!  Thanks so much.  Seems odd that we have to
> > manually declare these namespaces just to parse a little XML,
> doesn't it?
> > 
> > -Original Message-
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of ben.clinkinbeard
> > Sent: Wednesday, August 16, 2006 2:31 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns
> > 
> > Hi Tom,
> > 
> > Sorry, I've not used the descendants method before and I just assumed
> > the approach I use would work. If you use .. instead it will work as
> > expected.
> > 
> > namespace temp = "http://tempuri.org/";;
> > use namespace temp;
> > trace("Node B from myXML2: " + myXML2..b);
> > 
> > HTH,
> > Ben
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Tom Lee"  wrote:
> > >
> > > Thanks, Ben - I've seen this before (I believe you directed me to
> > this page
> > > on a previous issue).  However, I don't understand how it applies
> to my
> > > particular problem - how would you fix my example using the
namespace
> > > directive?
> > > 
> > > -Original Message-
> > > From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> > > Behalf Of ben.clinkinbeard
> > > Sent: Wednesday, August 16, 2006 12:46 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns
> > > 
> > >
> >
>
http://www.returnundefined.com/2006/07/dealing-with-default-namespaces-in-fl
> > > ex-2as3/
> > > 
> > > Ben
> > > http://www.returnundefined.com/
> > > 
> > > --- In flexcoders@yahoogroups.com, "Tom Lee"  wrote:
> > > >
> > > > Hi everyone,
> > > > 
> > > >  
> > > > 
> > > > I am having some difficulty parsing .Net web service results.  The
> > > problem
> > > > lies in the fact that Flex's XML parser doesn't like un-typed
xmlns
> > > > declarations of the type found by default in .Net web services. 
> > Try the
> > > > following:
> > > > 
> > > >

RE: [flexcoders] Re: WebService - What's wrong with this code?

2006-08-18 Thread Tom Lee
And my personal favorite:

http://groups.yahoo.com/group/flexcoders/message/47493

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Friday, August 18, 2006 10:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: WebService - What's wrong with this code?

Here are a couple.

http://groups.yahoo.com/group/flexcoders/messages/47267?threaded=1&m=e&var=1
&tidx=1
http://groups.yahoo.com/group/flexcoders/messages/46548?threaded=1&m=e&var=1
&tidx=1

I can confirm that I am working with an Adobe engineer to try and
resolve both issues (our company has a support contract with Adobe),
so they are listening and interested in fixing issues people are
having. I think thats a good sign.

Ben


--- In flexcoders@yahoogroups.com, "Samuel D. Colak" <[EMAIL PROTECTED]>
wrote:
>
> Umm ­ Franck ­ what issues with webservices?
> 
> 
> On 15/8/06 20:00, "Franck de Bruijn" <[EMAIL PROTECTED]> wrote:
> 
> >  
> >  
> >  
> > 
> > That¹s exactly what Ben is hammering at.
> >  
> > It¹s too hard to get webservices up and running in a production-like
> > application easy. It¹s true that Adobe is focussing more on FDS
than on the
> > support for webservices, which is truely a pity. Let¹s hope it¹ll
change in
> > the (near) future. I already saw a good sign of an Adobe engineer
trying to
> > look into our problems.
> >  
> > Cheers,
> > Franck
> >  
> > 
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
> > Of Samuel D. Colak
> > Sent: Tuesday, August 15, 2006 10:22 AM
> > To: flexcoders@yahoogroups.com
> > Subject: Re: [flexcoders] Re: WebService - What's wrong with this
code?
> >  
> > 
> > 
> > Hold on VS buggy ?? My god, that¹s amazing news ­ there was I
thinking for a
> > moment that M$oft had got it right at least once - Œfraid to say
im most
> > disappointed ­ my world has surely shattered ­ frankly I would
advise everyone
> > that can to use the Eclipse plugin rather than the IDE under
Windows. I have
> > experienced far fewer issues with Eclipse ;) But I have
experienced SOME !
> > 
> > Im working with both VS.Net 2005 and Eclipse/Flex ­ cant say that
there have
> > been any issues with WebServices AT-ALL categorically using
actionscript. I
> > must admit it wasn¹t easy but its a tad different getting use to
asyncronous
> > webservice calling though Flex¹s event model but I finally managed
to make
> > something very elegant and scalable. Obviously this isnt for the
fainthearted
> > and you might have to unlearn somethings from the VS world (as I
did) to deal
> > with the Flex logic.
> > 
> > If anyone is stuck, give me a shout..
> > Samuel
> > 
> > 
> > On 15/8/06 10:02, "sinatosk" <[EMAIL PROTECTED]> wrote:
> >> 
> >> 
> >>  
> >>  
> >> 
> >> ah white spaces. convert that URL using urlencode can't
remember the
> >> function/method name but it's around
> >> 
> >> thats might do the trick :p
> >> 
> >> On 14/08/06, Tom Lee <[EMAIL PROTECTED]> wrote:
> >> 
> >>  
> >>  
> >> 
> >> Thanks, Ben -
> >> 
> >> Your code works fine.  My code, even after I manually edited to
make it
> >> identical to yours, does not.  I can only conclude that Flex
Builder is on
> >> crack.  Seriously, I went over it line by line...  No differences
except
> >> whitespace.  I hope this is not going to become a behavioral
pattern in
> >> Builder... I work with Visual Studio, and there's no room for
more than one
> >> buggy IDE in my life.
> >> 
> >> Thanks again,
> >> 
> >> -tom
> >> 
> >> 
> >> 
> >> -Original Message-
> >> From: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> >> [mailto: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> ]
> >> On
> >> Behalf Of ben.clinkinbeard
> >> Sent: Friday, August 11, 2006 10:01 PM
> >> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> >> Subject: [flexcoders] Re: WebService - What's wrong with this code?
> >> 
> >>> > Does it compile for you without errors?
> >> 
> >> Yep, this exact code works for me.
> >> 
> >> 
> >> http://www.adobe.com/2006/mxml";
> >> layout="absolute" creationComplete="init()

Re: [flexcoders] Re: How to get the real X & Y of a repeater item

2007-02-23 Thread Keun Lee
Hey you might want to also look into ³localToGlobal²

I.e

var comp : UIComponent = UIComponent( event.target );
var point : Point = comp.localToGlobal( new Point( comp.x, comp.y ) );
trace( point.x + ":" +  point.y );

-Keun


On 2/22/07 9:24 AM, "jer_ela" <[EMAIL PROTECTED]> wrote:

>  
>  
>  
> 
> The following code gets the x and y positions of an image that has
> been clicked on that was generated by a repeater.  Getting the coords
> for a button should be pretty much the same.
> 
> stageX and Y are the x and y coords of the mouse position relative to
> the application stage. mainCanvas is a direct child of the application
> and is the container that I want the coords relative to.  If you have
> additional containers between the stage and the one you need coords
> relative to, you have to subtract the x and y at each level to get
> from stage coords to that container's coords.  Subtracting the mouseX
> and Y moves the coords from the point or the click to the upper left
> corner of the image.
> 
> selectedImage.x = event["stageX"] - mainCanvas.x
>  - event.currentTarget.mouseX;
> selectedImage.y = event["stageY"] - mainCanvas.y
>  - event.currentTarget.mouseY;
> 
> --- In flexcoders@yahoogroups.com  ,
> "zipo13" <[EMAIL PROTECTED]> wrote:
>> >
>> > Hi,
>> > In my app I create a repeater the generats VBoxes each with button
> in it.
>> > When the user clicks on the button I want to generate a small dialog
>> > that will open up under the button.
>> > I know how to get the repeater current item and target and current
>> > target but I can't find the real X & Y of the button.
>> > Am I going in the wrong direction?
>> >
> 
>  
> 




[flexcoders] URL Link in Flex Application

2007-02-23 Thread Lisa Lee
Can you tell me how to be able to have a user click on a link (button, 
whatever) from within a Flex application and have it take the user to a 
non-Flex, regular web page within their browser?  It's probably a 
simple answer but I'm still getting up to speed with Flex.  Thanks!



[flexcoders] Tree Leaf Renderer (TreeItemRenderer)

2007-02-27 Thread Anthony Lee
Hi All,

I'd like to present Tree leaves as value pairs with the first value in
a fixed width space. ie. simple columns.

I attempted to extend TreeItemRender and swap the default
label:UITextField with a VBox containing two UITextFields but am
coming up against a few problems, not the least of which is that I
can't override these:

mx_internal function getLabel():UITextField
protected var label:UITextField

Do I have to write a whole new renderer just for this?

Any tips appreciated.

tonio

//---Attempted
Solution-//

package components
{
import mx.controls.treeClasses.TreeItemRenderer;
import mx.controls.treeClasses.TreeListData;
import mx.containers.VBox;
import mx.core.UITextField;

public class TwoColTreeItemRenderer extends TreeItemRenderer
{
public function TwoColTreeItemRenderer() {
super();
}

override protected function createChildren():void
{   
if (!label)
{
label = new TwoColLabel() as UITextField; //<-- 
Bad idea, I know :(
label.styleName = this;
addChild(label);
}

//hopefully creating the label before calling super
//will prevent the same block from running in the super 
method
//fingers crossed
super.createChildren();
}
}
}

package components
{
import mx.containers.VBox;
import mx.controls.Label;
import mx.core.UITextField;

public class TwoColLabel extends VBox
{
private var _label1:UITextField;
private var _label2:UITextField;
private var _style:Object;
private var _text:String;
private var _multiline:Boolean;
private var _wordWrap:Boolean;

public var delimiter:String = "::";
public var colWidth:Number = 30;

public function TwoColLabel():void
{
super();
this.verticalScrollPolicy = "off";
this.horizontalScrollPolicy = "off";
_label1 = new UITextField();
_label2 = new UITextField();
}


override public function set styleName(value:Object):void
{
_label1.styleName = _label2.styleName = _style = value; 
}

override public function get styleName():Object
{
return _style;
}

public function set text(value:String):void
{
_text = value;
var index:Number= _text.indexOf(delimiter);
if (index>0){
_label1.text= _text.substr(0, 
index);
_label1.width   = colWidth;
_label2.text= 
_text.substr(index+(delimiter.length));
} else {
_label1.text= _text;
_label2.width   = 0;
}
}

public function get text():String
{
return _text;
}

public function set multiline(value:Boolean):void
{
_multiline = value;
_label1.multiline = _multiline;
_label2.multiline = _multiline;
}

public function get multiline():Boolean
{
return _multiline;  
}

public function set wordWrap(value:Boolean):void
{
_wordWrap = value;
_label1.multiline = _wordWrap;
_label2.multiline = _wordWrap;  
}

public function get wordWrap():Boolean
{
return _wordWrap;   
}

public function get textWidth():Number{
return _label1.textWidth+_label2.textWidth; 
}

public function set setColor(color:uint):void
{
_label1.setColor(color);
_la

[flexcoders] how do you call the super's super?

2007-02-27 Thread Anthony Lee
Hi,

Sorry for the lame AS questions, but can anyone tell me how to call
the super method of the class I'm extending? ie. the grandparent and
not the parent.

Thanks,

tonio


[flexcoders] Data Corruption with Multiple Trees

2007-02-27 Thread Anthony Lee
The lack of information about how to populate the Tree component with
a non-XML data source is driving me nuts.

Now I'm having an issue with populating multiple Trees, as soon as I
set the dataProvider for the second Tree the information in both gets
corrupted. I'm about ready to write this off as a bug and convert the
object I pulled with AMF to XML just to comply with what seems
standard.

If anyone can see something wrong with this method for recursing an
Object to make it Tree component complaint please straighten me out.

//---//

private function makeTreeObject(obj:Object, label:String=null):Object
{   
obj['label'] = label;
var children:Array = new Array();

for (var i in obj){
if (i == 'length' || i == 'label') continue;

if (typeof obj[i] == 'object'){
children.push(makeTreeObject(obj[i], i));   
} else {
if (typeof i == 'number'){
children.push({label:obj[i]});
} else {
children.push({label:i+":"+obj[i]});
}
}
if (label!=null) delete obj[i];
}   
if (label!=null) obj['children'] = children;

return obj;
}


[flexcoders] Re: Data Corruption with Multiple Trees

2007-02-27 Thread Anthony Lee
Doing something similar to build an XMLListCollection seems to work fine:

private function makeDataProvider(obj:Object):XMLListCollection
{
var temp:XML = makeTreeXML(obj);
return new XMLListCollection(temp.branch);
}

private function makeTreeXML(obj:Object):XML
{
var top:XML = ;
for (var i in obj){
if (typeof obj[i] == 'object'){
var temp:XML = makeTreeXML(obj[i]);
[EMAIL PROTECTED] = i;  
top.appendChild(temp);
} else {
var temp:XML = ;
[EMAIL PROTECTED] = i+":"+obj[i];
top.appendChild(temp.leaf[0]);
}
}   
return top;
}


Re: [flexcoders] ui design question, ideas for showing the user to wait while a record loads

2007-02-28 Thread Anthony Lee

Is it just me or is the busy cursor not a really bad idea. I mean why lock
up the whole application while you're waiting on data for a single component
to load? Is this Web 2.0 or not ;-)

Sorry, I know this doesn't answer your question.

tonio

On 2/28/07, rumpleminzeflickr <[EMAIL PROTECTED]> wrote:


  Hi there,

I've seen on the mxml remote object a tag that sats:

showbusycursor="true"

For the actionscript version, (RemoteObject) I can't see an equivelant?

My code goes like this:

// call controller to call as remote object
pageController.getPage(selectedItem);

// switch view from a list of records to a record detail
viewstack1.selectedChild = detail;

How can I using this kind of detail put a busycursor up during the
wait period? Do I need to use events? any help would be appreciated.

Many thanks,

 



Re: [flexcoders] how do you call the super's super?

2007-03-01 Thread Anthony Lee

Gordon's suggestion while enlightening isn't that useful since the point of
extension is to not have to touch the super.

Is there no known hack? Is it possible to bolt a new method into a top level
class?

tonio

On 2/27/07, Steve Cox <[EMAIL PROTECTED]> wrote:


   Could be wrong but I'm 99% sure this is not possible.



Steve



-Original Message-
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Anthony Lee
*Sent:* 27 February 2007 04:00
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] how do you call the super's super?



Hi,

Sorry for the lame AS questions, but can anyone tell me how to call
the super method of the class I'm extending? ie. the grandparent and
not the parent.

Thanks,

tonio

 



Re: [flexcoders] Re: how do you call the super's super?

2007-03-01 Thread Anthony Lee

> Can anyone provide any real world examples?






Sure.

I want to extend TreeItemRender, it's a 500 hundred line class so I'd rather
not rewrite it. The only available text presentation object in the class is
a UITextField which is instantiated in the createChildren method. I want to
replace it a VBOX then call grandparent.createChildren(). If I call
super.createChildren() then I have a conflict.

I don't know what the grandparent would do with that call, I don't think I
should have to. It would just be a whole lot more efficient if you could
override a method and not loss access to it place in the scheme of things.

tonio


Re: [flexcoders] Re: how do you call the super's super?

2007-03-01 Thread Anthony Lee
> maybe I want to override (and by that I mean NOT run the code in)
> parent.updateDisplayList. But if I override updateDisplayList,
> then at some point in my method I've got to call super.updateDisplayList
> to get anything to work. But that means I'm going to run all the code in
> super.updateDisplayList, when in reality I just want to run the code in
> grandParent.updateDisplayList.

EXACTLY!

Forgive my nativity but is there no way to hack the required
functionality into the super class or something higher that it
inherits from? This kind of thing went on all the time with AS1.

tonio


Re: [flexcoders] Re: how do you call the super's super?

2007-03-01 Thread Anthony Lee
>  UIComponent has this for createChildren:
>  protected function createChildren():void
>  {
>  }
>
>  Calling it does nothing, you don't need to call it.

Hi Paul,

Okay. I could have looked that up, or just called
super.createChildren() after my code, and in this case the super would
not create the object since it contains a check.

I'm new to AS3 so I'm fishing for more informed opinions than my own,
still it would be nice to just call grandpa not have to worry about
it.

Thanks,

tonio


Re: [flexcoders] Re: how do you call the super's super?

2007-03-01 Thread Anthony Lee
> why not use prototype?

Your example assumes updateDisplayList to be a static method. The
method I'd like to call belong to the instance's grandpa not all
grandparents in general.

tonio

>  class Base {
>  updateDisplayList:Void() { /* some good code */}
>  }
>  class Child {
>  updateDisplayList:Void() {
>  // hundreds of lines of useless code
>  }
>  }
>  class Grandchild {
>   Grandchild() {
> Grandchild.prototype.updateDisplayList = 
> Base.prototype.updateDisplayList;
>
>}
>  }
>
>
>  Anthony Lee wrote:
>
>  maybe I want to override (and by that I mean NOT run the code in)
> parent.updateDisplayList. But if I override updateDisplayList,
> then at some point in my method I've got to call super.updateDisplayList
> to get anything to work. But that means I'm going to run all the code in
> super.updateDisplayList, when in reality I just want to run the code in
> grandParent.updateDisplayList.
>
>   EXACTLY!
>
> Forgive my nativity but is there no way to hack the required
> functionality into the super class or something higher that it
> inherits from? This kind of thing went on all the time with AS1.
>
> tonio
>
>
>
>
>
>
>
>
>
>   


Re: [flexcoders] Re: how do you call the super's super?

2007-03-02 Thread Anthony Lee

Thanks Gordon,

That's pretty much everything I needed to know.

tonio


Re: [flexcoders] AMFPHP & Sessions

2007-03-04 Thread Anthony Lee
> Can someone provide and example of how to use AMFPHP with sessions.
>  I can't seem to get it to work.

Ditto. Sessions are referenced all over the place but I couldn't find
a working example.

tonio


Re: [flexcoders] Disable Clicks while on busyCursor

2007-03-05 Thread Anthony Lee

The obvious solutions would be:

1) Enable/disable a transparent button that's as big as the stage and has
the greatest z depth / lowest childIndex

2) Make all your active components register themselves then loop through and
disable/enable them according to your busy state

I'm sure there are fancier ways to do it but these should get the job done.

tonio


[flexcoders] Set as Default Application: for an AS Class

2007-03-23 Thread Anthony Lee

Hi All,

I'm working through a tutorial that instructs me to right click on my .as
class in the navigator and select "Set as Default Application". The problem
is: This option is grayed out for .as classes in my version of Flex Builder,
2.0.1.

Is there a known reason for this? Is there something I should be doing
differently?

Thanks for any pointers.

Anthony


[flexcoders] Re: Set as Default Application: for an AS Class

2007-03-25 Thread Anthony Lee

Perhaps I should rephrase this question as:

How can I compile a pure AS application from Flex Builder 2.0.1?


Re: [flexcoders] Re: Set as Default Application: for an AS Class

2007-03-26 Thread Anthony Lee

Hope that helps.


Perfect! Thanks.


RE: [flexcoders] Re: How do I reset itemRenderer inside DataGrid when dataProvider is updated?

2006-12-18 Thread Tom Lee
Ben,

Did you ever find a satisfactory answer to this?  I'm facing the same issue.

Thanks,

-tom

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Thursday, July 20, 2006 11:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How do I reset itemRenderer inside DataGrid when
dataProvider is updated?

Hey Tim,

No worries, I didn't think you were being harsh, I just wanted to
clarify what I was referring to. I am very new to Flex, so as long as
it doesn't involve calling me names I am willing to listen to just
about any advice. Actually, I could probably overlook namecalling if
the info was good enough. :)

I suppose I understand the event firing due to the redraw, it just
seems like a 'dataChange' event should only fire when, you know, data
changes. I will look into your article and custom events when I get
some time, thanks for the tip.

Jesse, going to those lengths seems like a bit of overkill when all
the itemRenderer consists of is a Checkbox with a dynamic label. I
guess for now I will stick with my 'dirty and hackish' flag var, until
I have time to further investigate/implement something like what Tim
showed.

Thanks for everyone's help.

Ben







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







RE: [flexcoders] Re: How do I reset itemRenderer inside DataGrid when dataProvider is updated?

2006-12-18 Thread Tom Lee
Hi Ben,

 

Thanks for your advice - as is so often the case, we have no answer to the
question at hand (why does a dataChange event fire when the datagrid is
scrolled?), but I was able to work around the problem by completely changing
my mindset regarding the data model. and probably made my app significantly
better in the process.  So, thanks for triggering that thought process!

 

-tom

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Monday, December 18, 2006 5:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How do I reset itemRenderer inside DataGrid when
dataProvider is updated?

 

Hey Tom,

This thread is pretty old and I don't have time to read through it all
again to gain context, but I can offer a quick recap of what (I think)
I am doing differently these days. It seems to make things a lot
easier if you use ArrayCollections as your dataProvider rather than
XMLListCollection, especially if your AC is full of bindable class
instances. Check out Darron Schall's ObjectTranslator
(darronschall.com) to ease the process of creating typed objects from
the generic ones returned by a WS.

If this is completely not helpful to your situation due to my lack of
reading the thread I apologize. I am walking out the door so here is
hoping this is useful :)

Ben

--- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com,
"Tom Lee" <[EMAIL PROTECTED]> wrote:
>
> Ben,
> 
> Did you ever find a satisfactory answer to this? I'm facing the
same issue.
> 
> Thanks,
> 
> -tom
> 
> -Original Message-
> From: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com
[mailto:[EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com]
On
> Behalf Of ben.clinkinbeard
> Sent: Thursday, July 20, 2006 11:59 AM
> To: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com
> Subject: [flexcoders] Re: How do I reset itemRenderer inside
DataGrid when
> dataProvider is updated?
> 
> Hey Tim,
> 
> No worries, I didn't think you were being harsh, I just wanted to
> clarify what I was referring to. I am very new to Flex, so as long as
> it doesn't involve calling me names I am willing to listen to just
> about any advice. Actually, I could probably overlook namecalling if
> the info was good enough. :)
> 
> I suppose I understand the event firing due to the redraw, it just
> seems like a 'dataChange' event should only fire when, you know, data
> changes. I will look into your article and custom events when I get
> some time, thanks for the tip.
> 
> Jesse, going to those lengths seems like a bit of overkill when all
> the itemRenderer consists of is a Checkbox with a dynamic label. I
> guess for now I will stick with my 'dirty and hackish' flag var, until
> I have time to further investigate/implement something like what Tim
> showed.
> 
> Thanks for everyone's help.
> 
> Ben
> 
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.
<http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt>
yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail- <http://www.mail-archive.com/flexcoders%40yahoogroups.com>
archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>

 



RE: [flexcoders] Re: How do I reset itemRenderer inside DataGrid when dataProvider is updated?

2006-12-19 Thread Tom Lee
Thanks guys, I suspected that's how it worked - makes a lot of sense.  It'd
be cool if DataGrid had a creationPolicy property like other components do.
Then you could adjust this behavior if you wanted to.  BTW, nice site, Ben!!


 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Tuesday, December 19, 2006 8:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How do I reset itemRenderer inside DataGrid when
dataProvider is updated?

 

Yep. Tom, Lach is correct, and here is an explanation with a bit more
detail.

If your DataGrid's dataProvider has 100 items, but it is only big
enough to display 10 at any given time, the DataGrid only actually
draws 10 items, in order to maximize performance. When you scroll the
DataGrid there aren't any new items being drawn, it is simply swapping
the data properties between the already drawn items. So scrolling down
one row means that the piece of data for the second item is switched
to be the data for the first item, the second item receives the third
item's data, and so on and so on.

I've written a couple of articles on my site about itemRenderers and
some key concepts around them in case you're interested.

HTH,
Ben
http://www.returnun <http://www.returnundefined.com/> defined.com/

--- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com,
Lachlan Cotter <[EMAIL PROTECTED]> wrote:
>
> Sorry if this is out of left field (and wrong), as I haven't read 
> through the rest of the thread, but is it the case that dataChange is 
> fired during scrolling because the item renderers are reused by the 
> list control with different items in the dataProvider?
> 
> Cheers,
> Lach
> 
> 
> On 19/12/2006, at 11:08 AM, Tom Lee wrote:
> 
> > as is so often the case, we have no answer to the question at hand 
> > (why does a dataChange event fire when the datagrid is scrolled?)
>

 



RE: [flexcoders] making simultaneous javascript calls from flex using FABridge

2006-12-19 Thread Tom Lee
Hi Thiru,

 

I haven't used the Flex/Ajax bridge.  However, I have done a lot of work
with Flash/JavaScript communication.  One thing I've learned is that if you
make multiple calls too rapidly, they have a tendency to fail at random in
certain browsers.  If possible, I would suggest that you combine your two
JavaScript calls into one call, or put some delay between them.

 

-tom

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thiru vengadam
Sent: Tuesday, December 19, 2006 3:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] making simultaneous javascript calls from flex using
FABridge

 

Hi Friends

 

I am working on communicating between flex and JavaScript, when I am trying
to call 2 JavaScript method simultaneous my first call fails, I like to know
how to make 2 calls at a same time, or is there any way we can make 2 calls
to JavaScript. 

 

 Regards 

Thiru

 



RE: [flexcoders] Transform XML with external CSS styleSheet via htmlText

2006-12-19 Thread Tom Lee
Jason,

Have you found a solution for this issue?  I can't seem to make this work
either, although I used to do this all the time in Flash.  

Thanks,

-tom

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason
Sent: Thursday, August 03, 2006 10:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Transform XML with external CSS styleSheet via
htmlText

I am looking for a little help.  What was fairly easy to do in AS2 and
Flash 8 is proving to be very tricky in Flex 2 AS3.  What I want to do
is assign a stylesheet to a TextArea component and then add text via
htmlText.  The text is coming from XML.

In AS2/F8 I had a nice system were all my XML element names matched up
to a style name in an external CSS file.
styles.css SNIP
[CODE]
questions {
display: block;
margin-left: 30px;
}
question {
color: #00;
font-family: Arial;
font-size: 10;
display: block;
}
options {
display: block;
margin-left: 30px;
}
option {
color: #00;
font-family: Arial;
font-size: 10;
display: block;
}

[/CODE]

SNIP from XML file
[CODE]


While the nurse is explaining ...


Anger
Denial
Anxiety
Depression

[/CODE]

I could just assign the htmlText of a text field to the XML node, the
XML element tags would be treated as HTML tags and the appropriate
styles would be applied.

I have read through dozens of posts in this forum about this exact
problem, most people are just trying to get  links to underline.  I
have not found any solutions that make sense to me.

The help entry for TextArea.styleSheet just points to the
flash.text.StyleSheet class.  That class has one example,
http://livedocs.macromedia.com/flex/2/langref/flash/text/StyleSheet.html#inc
ludeExamplesSummary
, but I have not had any luck in getting the Example to work.  I am
not exactly sure what to do with the code.  I have tried to build a
StyleSheet object in the  tag, and I have also tried to
make an class file that has a method that returns a StyleSheet.  The
"addChild(label);" line in the example does not seem to be like a
document.write as I thought it was.  I can't get that to output
anything to the screen.  The constructor of the Class is firing however.

I am controlling the styles of all my components with no problem from
an external CSS file with .  I can
assign one specific style to a TextArea, but not an entire StyleSheet.
  does not accept an "id" attribute and there does not seem
to be any way to link that loaded CSS file to a TextArea.styleSheet
property.

I have read that AS 3 cannot currently load a CSS at runtime, that
sucks, but I am open to a work around even if it means having to
define all my styles in AS (ick).

Here is the big QUESTION:
How can I embed an external CSS StyleSheet into my SWF, give it an ID,
and assign it to a TextArea.styleSheet property at runtime?  

If that is not possible, how can I create a Class (Styles.as) that
will house all my styles and somehow return a flash.text.StyleSheet
object that I can assign to my TextArea.styleSheet property?

I seem to have exhausted the help file on this issue.  Thanks for any
insight you can give on this.  

--jason













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






RE: [flexcoders] Transform XML with external CSS styleSheet via htmlText

2006-12-20 Thread Tom Lee
For everyone's benefit: I found the solution to this problem at
http://rantworld.blogs.com/flashlit/2006/08/styling_flex_te.html

 

Ironically, I found it by accident while Googling for something else. :-)

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Lee
Sent: Tuesday, December 19, 2006 5:36 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Transform XML with external CSS styleSheet via
htmlText

 

Jason,

Have you found a solution for this issue? I can't seem to make this work
either, although I used to do this all the time in Flash. 

Thanks,

-tom

-Original Message-
From: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com
[mailto:[EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com]
On
Behalf Of Jason
Sent: Thursday, August 03, 2006 10:15 AM
To: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com
Subject: [flexcoders] Transform XML with external CSS styleSheet via
htmlText

I am looking for a little help. What was fairly easy to do in AS2 and
Flash 8 is proving to be very tricky in Flex 2 AS3. What I want to do
is assign a stylesheet to a TextArea component and then add text via
htmlText. The text is coming from XML.

In AS2/F8 I had a nice system were all my XML element names matched up
to a style name in an external CSS file.
styles.css SNIP
[CODE]
questions {
display: block;
margin-left: 30px;
}
question {
color: #00;
font-family: Arial;
font-size: 10;
display: block;
}
options {
display: block;
margin-left: 30px;
}
option {
color: #00;
font-family: Arial;
font-size: 10;
display: block;
}

[/CODE]

SNIP from XML file
[CODE]


While the nurse is explaining ...


Anger
Denial
Anxiety
Depression

[/CODE]

I could just assign the htmlText of a text field to the XML node, the
XML element tags would be treated as HTML tags and the appropriate
styles would be applied.

I have read through dozens of posts in this forum about this exact
problem, most people are just trying to get  links to underline. I
have not found any solutions that make sense to me.

The help entry for TextArea.styleSheet just points to the
flash.text.StyleSheet class. That class has one example,
http://livedocs.
<http://livedocs.macromedia.com/flex/2/langref/flash/text/StyleSheet.html#in
c> macromedia.com/flex/2/langref/flash/text/StyleSheet.html#inc
ludeExamplesSummary
, but I have not had any luck in getting the Example to work. I am
not exactly sure what to do with the code. I have tried to build a
StyleSheet object in the  tag, and I have also tried to
make an class file that has a method that returns a StyleSheet. The
"addChild(label);" line in the example does not seem to be like a
document.write as I thought it was. I can't get that to output
anything to the screen. The constructor of the Class is firing however.

I am controlling the styles of all my components with no problem from
an external CSS file with . I can
assign one specific style to a TextArea, but not an entire StyleSheet.
 does not accept an "id" attribute and there does not seem
to be any way to link that loaded CSS file to a TextArea.styleSheet
property.

I have read that AS 3 cannot currently load a CSS at runtime, that
sucks, but I am open to a work around even if it means having to
define all my styles in AS (ick).

Here is the big QUESTION:
How can I embed an external CSS StyleSheet into my SWF, give it an ID,
and assign it to a TextArea.styleSheet property at runtime? 

If that is not possible, how can I create a Class (Styles.as) that
will house all my styles and somehow return a flash.text.StyleSheet
object that I can assign to my TextArea.styleSheet property?

I seem to have exhausted the help file on this issue. Thanks for any
insight you can give on this. 

--jason

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

 



[flexcoders] How to Use the Value of a Checkbox in a Component

2006-12-27 Thread Lisa Lee
Hello, I'm very new to Flex so please excuse my "newbie" question if it 
seems a bit dumb...but here is my situation:  I have a Flex 
application - let's call the main application file 'Main.mxml' - I have 
a component file - let's call it 'MyComp.mxml'.  Within 
the 'MyComp.mxml' file I have an  object.  I 
am calling the MyComp component from the Main.mxml file.  The user can 
check or uncheck this checkbox and then click on a 'Submit' button that 
is defined in the Main.mxml file, which will then fire off the 
processing logic.  All I want to do in the processing logic is to be 
able to examine whether the user has checked the chkBox1 checkbox or 
not, so that I can pass that value from the Main.mxml file to a web 
service.  But when I try to do a simple binding {chkBox1.selected} from 
within the Main.mxml file, the error I get is '1120: Access of 
undefined property chkBox1.'  Can anyone help?



[flexcoders] What's been fixed in 2.0.1?

2007-01-05 Thread Tom Lee
Can anyone point me to a list of Flex framework bug fixes for the 2.0.1
release?  I'm interested to know if there have been enhancements to the web
service stack, especially related to .Net web services.

 

Thanks,

 

-tom



RE: [flexcoders] Re: What's been fixed in 2.0.1?

2007-01-05 Thread Tom Lee
Thanks Ben!  It will be nice to scrub some of the hacks out of my WebService
handlers. =)

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Friday, January 05, 2007 1:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: What's been fixed in 2.0.1?

 

Hi Tom,

You can view the release notes here
http://www.adobe.
<http://www.adobe.com/support/documentation/en/flex/2/releasenotes_flex201_s
dk.html> com/support/documentation/en/flex/2/releasenotes_flex201_sdk.html
but I can also tell you from personal experience that 2.0.1 did indeed
enhance the WebService class, including its support for .NET services.
I actually submitted 4 separate bugs (that Adobe confirmed) related to
serialization by the WebService class and all have been fixed. I've
been using the 2.0.1 beta for a few weeks now and everything seems
super solid.

One thing to mention also is that they removed some of the laxness of
the class. For instance, in 2.0 you could pass an object where an
array was expected and it would convert it for you. In 2.0.1, you must
pass an array.

HTH,
Ben

--- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com,
"Tom Lee" <[EMAIL PROTECTED]> wrote:
>
> Can anyone point me to a list of Flex framework bug fixes for the 2.0.1
> release? I'm interested to know if there have been enhancements to
the web
> service stack, especially related to .Net web services.
> 
> 
> 
> Thanks,
> 
> 
> 
> -tom
>

 



[flexcoders] Multiple Selections in a List

2007-01-05 Thread Lisa Lee
I hate asking what I think is probably a very stupid question, but 
being so new to Flex, I am still quite wet behind the earsI have 
an  and I have set the "allowMultipleSelection" property to 
true...my question is, how do I determine what selection(s) the user 
has selected, if they're selected more than one?





http://development/dev1/workspaces/lisa/webservicedata/se
rvicetypedata.xml"
result="serviceTypeHandler2(event)"/>





RE: [flexcoders] Is there a framework function to parse XSD compliant dateTime from XML?

2007-01-05 Thread Tom Lee
I’ve been using a custom formatter that extends mx.formatters.DateFormatter.  
Here’s the code:

 

package tl.formatters

{

import mx.formatters.DateFormatter;

 

public class DateFormatter extends mx.formatters.DateFormatter()

{

super();

}

 

override public function format(value:Object):String{

var str:String = value.toString();

if(str.search(“T”) != -1){

str = str.split(“T”)[0];

return super.format(str);

}else{

return super.format(value);

}

}

}

 

 

If you find something better, definitely let me know.  Hope that helps!

 

-tom

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Samuel 
R. Neff
Sent: Friday, January 05, 2007 1:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is there a framework function to parse XSD compliant 
dateTime from XML?

 


We're using HTTPService to send/receive XML to our server. Some of the XML has 
dates in it in standard XSD dateTime format.

ex: 2002-10-10T12:00:00−05:00

http://www.w3.  
org/TR/xmlschema11-2/#dateTime

Can we access a player or framework function to parse this string into a Date 
object? The functionality must exist since Flex supports SOAP, but I couldn't 
find anything in the help to just parse a date. Date.parse() didn't accept this 
format (and it wouldn't according to the docs).

I have JavaScript code to parse out the format which we can convert to AS but 
we'd prefer to use what's already built-in.

Thanks,

Sam

 



[flexcoders] TextArea Scrollbar doesn't update onMouseWheel

2007-01-08 Thread Tom Lee
Hi guys,

 

Just wondering if any of you have found a workaround to update the thumb
position of a TextArea's Scrollbar when the onMouseWheel event is fired.  It
doesn't seem to update on its own (I happen to think it should) and when you
click the thumb after using your mouse wheel, the TextArea's position resets
to match the thumb position.  Thoughts?

 

-tom



RE: [flexcoders] TextArea Scrollbar doesn't update onMouseWheel

2007-01-11 Thread Tom Lee
Just wanted to give this a bump - anybody else encountered this?

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Lee
Sent: Monday, January 08, 2007 6:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TextArea Scrollbar doesn't update onMouseWheel

 

Hi guys,

 

Just wondering if any of you have found a workaround to update the thumb
position of a TextArea's Scrollbar when the onMouseWheel event is fired.  It
doesn't seem to update on its own (I happen to think it should) and when you
click the thumb after using your mouse wheel, the TextArea's position resets
to match the thumb position.  Thoughts?

 

-tom

 



[flexcoders] Populating List with Data From Web Service

2007-01-17 Thread Lisa Lee
Hi,

I have a list that I want to populate with data from a CFC, but all I 
get with my current code is a list with every row reading '[object 
Object]' instead of actual data from my web service.  The web service 
should just be returning an array (also, is an array the best way to 
return data for a list?).

Main code of CFC that returns data:


SELECT
pkServiceTypeID,
Description
FROM tblSYS_ServiceTypes WITH (NOLOCK)
ORDER BY Description












Main elements of MXML that pertain to the list:


http://www.adobe.com/2006/mxml";
layout="absolute"
creationComplete="perfManWS.GetServiceTypes.send();">




 http://development/dev1/workspaces/lisa/components/perfo
rmancemanagement.cfc?wsdl">


xxx
xxx










[flexcoders] Re: Populating List with Data From Web Service

2007-01-18 Thread Lisa Lee
Thanks very much for the info, Clint.  If I return a query instead of 
an array, do I still cast it as an ArrayCollection?  It doesn't seem 
to be working for me.  The other puzzling thing is that I can use my 
current code and use the result as the data provider for a grid, and 
it works perfectly...it's just when I try to use it as a data 
provider for a list, it doesn't work.

--- In flexcoders@yahoogroups.com, "Clint Tredway" <[EMAIL PROTECTED]> 
wrote:
>
> Web services are not returned liked that. My advice is to use 
remoting with
> CF and your code will work the way it is now.. also, you can return 
the
> query itself without making an array to send back.
> 
> On 1/17/07, Lisa Lee <[EMAIL PROTECTED]> wrote:
> >
> >   Hi,
> >
> > I have a list that I want to populate with data from a CFC, but 
all I
> > get with my current code is a list with every row reading '[object
> > Object]' instead of actual data from my web service. The web 
service
> > should just be returning an array (also, is an array the best way 
to
> > return data for a list?).
> >
> > Main code of CFC that returns data:
> >
> > 
> > SELECT
> > pkServiceTypeID,
> > Description
> > FROM tblSYS_ServiceTypes WITH (NOLOCK)
> > ORDER BY Description
> > 
> >
> > 
> >
> > 
> > 
> >  > pkServiceTypeID>
> > 
> > 
> >
> > 
> >
> > Main elements of MXML that pertain to the list:
> >
> > 
> > http://www.adobe.com/2006/mxml";
> > layout="absolute"
> > creationComplete="perfManWS.GetServiceTypes.send();">
> > 
> > 
> > 
> >
> >  >
> > wsdl="http://development/dev1/workspaces/lisa/components/perfo
> > rmancemanagement.cfc?wsdl">
> >  > result="serviceTypeHandler(event)">
> > 
> > xxx
> > xxx
> > 
> > 
> > 
> >
> >  >
> > dataProvider="{serviceTypeDP}"
> >
> > labelField="description"
> >
> > allowMultipleSelection="true"/>
> >
> > 
> >
> >  
> >
> 
> 
> 
> -- 
> http://indeegrumpee.spaces.live.com/
>




[flexcoders] Re: Populating List with Data From Web Service

2007-01-18 Thread Lisa Lee
Tracy, as always, you rock.  Thanks for the help.  Can you point me 
in the right direction as to where to find information on how to use 
a labelFunction()?  Sorry to be so thick.

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> "...as the data provider for a grid, and it works perfectly...it's 
just
> when I try to use it as a data provider for a list, it doesn't 
work ..."
> 
> Sounds like you should verify your labelField property or use a
> labelFunction().  A labelFunction will let you debug the actual item
> object.
> 
>  
> 
> Tracy
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Lisa Lee
> Sent: Thursday, January 18, 2007 3:45 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Populating List with Data From Web Service
> 
>  
> 
> Thanks very much for the info, Clint. If I return a query instead 
of 
> an array, do I still cast it as an ArrayCollection? It doesn't seem 
> to be working for me. The other puzzling thing is that I can use my 
> current code and use the result as the data provider for a grid, 
and 
> it works perfectly...it's just when I try to use it as a data 
> provider for a list, it doesn't work.
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>
> , "Clint Tredway"  
> wrote:
> >
> > Web services are not returned liked that. My advice is to use 
> remoting with
> > CF and your code will work the way it is now.. also, you can 
return 
> the
> > query itself without making an array to send back.
> > 
> > On 1/17/07, Lisa Lee  wrote:
> > >
> > > Hi,
> > >
> > > I have a list that I want to populate with data from a CFC, but 
> all I
> > > get with my current code is a list with every row 
reading '[object
> > > Object]' instead of actual data from my web service. The web 
> service
> > > should just be returning an array (also, is an array the best 
way 
> to
> > > return data for a list?).
> > >
> > > Main code of CFC that returns data:
> > >
> > > 
> > > SELECT
> > > pkServiceTypeID,
> > > Description
> > > FROM tblSYS_ServiceTypes WITH (NOLOCK)
> > > ORDER BY Description
> > > 
> > >
> > > 
> > >
> > > 
> > > 
> > >  > > pkServiceTypeID>
> > > 
> > > 
> > >
> > > 
> > >
> > > Main elements of MXML that pertain to the list:
> > >
> > > 
> > > http://www.adobe.com/2006/mxml
> <http://www.adobe.com/2006/mxml> "
> > > layout="absolute"
> > > creationComplete="perfManWS.GetServiceTypes.send();">
> > > 
> > > 
> > > 
> > >
> > >  > >
> > > wsdl="http://development/dev1/workspaces/lisa/components/perfo
> <http://development/dev1/workspaces/lisa/components/perfo> 
> > > rmancemanagement.cfc?wsdl">
> > >  > > result="serviceTypeHandler(event)">
> > > 
> > > xxx
> > > xxx
> > > 
> > > 
> > > 
> > >
> > >  > >
> > > dataProvider="{serviceTypeDP}"
> > >
> > > labelField="description"
> > >
> > > allowMultipleSelection="true"/>
> > >
> > > 
> > >
> > > 
> > >
> > 
> > 
> > 
> > -- 
> > http://indeegrumpee.spaces.live.com/
> <http://indeegrumpee.spaces.live.com/> 
> >
>




Re: [flexcoders] Help with Variable ItemRenderer

2007-01-29 Thread northwood Lee

Suppose the dataprovider has two field:
type and text
type will indicate if it should show text or image
text is the content that is should show: for the label, it is the text  for
the image it is the image path .or you can implement another filed callled
path to store image path. it doesn't matter

I think you could write a  something like this:

  
   
   
 
   


 
   
   
   

On 1/26/07, sthdejavu <[EMAIL PROTECTED]> wrote:


  I am trying to create an MXML ItemRenderer that displays a different
state depending on it's data. Its state does not change by any user
interaction. For instance, if data.type = 'text', show the label
state, else show the image state.

Where can I set currentState so that each itemRenderer displays as it
should? Is this even possible? All of my renderers always turn out
one way or the other.

I'm beginning to think I have to do this in ActionScript... or maybe a
hack where I fire a function on creationComplete that changes the
data.type to some other value and back again so that the binding fires??

Any help would be great. Thanks in advance.

 



[flexcoders] Is it possible to replace UI controls in mxml at runtime?

2006-06-20 Thread Dong Lee





Hi,
 
I'm creating a generic Search 
component that contains few buttons, a form, say 'formSearch' to 
capture the search parameters. 
Using the component I need to serach on persons, 
accounts, transactions etc.  and have separate PersonSearch, AccountSearch, 
TransactionSerach
 
1. Is it possible to 
replace the 'formSearch' with another form at runtime? How would you do it 
and at what event?
2. Are there any preference 
between MXML and AS for this purpose?
 
 
Dong
__._,_.___





--
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] Download progress of a remote method call

2007-11-09 Thread northwood Lee
Hi, All

 we currently using a RemoteObject to get data from the Server side.

However, the problem we are facing is that the data returned from the server
is really a lot. but remoteObject dosn't provide a download progress event
like a URLLoader .

My question is that is that possible that i get progress event from the
remoteObject call. and show the progress on the UI.

Thanks


[flexcoders] extending flex builder component panel

2007-11-11 Thread northwood Lee
Hi,
This is a question about how we can extend flex builder itself

 the *component *panel. see attachment(components.jpg).

since flex builder is based on eclipse, I am wondering if we can extend the
Flex Buidler 3 (or build an eclispe plugin)so that the componet panel could
show the customized componets in different groups.

for example, we could have a group button , and uder this group, it shows
the different customized button components see, (components_mockup.jpg).

Many many thanks
<><>

[flexcoders] How to set the modal popup not change the screen to some grayish color?

2007-12-03 Thread Jonathan Lee
Hello all:
I used the modal popup to require user to do something. But the default grayish 
setting that changed the screen make the system not look nice in some situation.

In Flash8, the popup window (for example, Alert, Window) does not have that 
grayish color setting when modal popup is created.

So, how to change that in Flex2?

Thanks a lot!



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

[flexcoders] Where is that flex-config.xml file?

2007-12-03 Thread Jonathan Lee
Hello:
In this article from Adobe: 
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19323&sliceId=2

It says " When the  attribute is set totrue, it reduces the size of 
the Flex application's SWF by 10-15% by compressing the ActionScript code and 
removing all the trace statements. If you have optimize set totrue, then you 
will not see the trace statements in the output file. To see the trace during 
development, you need to set false in the flex-config.xml 
file."

I'm using Flex Builder 2.0.1 (not the plugin version), anyone please tell me 
any place to configure that?

Thanks a lot


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

Re: [flexcoders] Re: How to improve BitmapData processing speed?

2007-12-03 Thread Jonathan Lee
They do not do image manipulation on client side which only have poor API.
Since the source graphic is already on server, they use some tool (for example 
ImageMagick) process it on server, and reload it for you.
Since you only need to see screen DPI photos, the file transfer speed + server 
image processing time will be much less than client bitmap processing.




larryzzl <[EMAIL PROTECTED]> wrote:   My image is 
1024 * 768. It's so slow.
 But the www.picnik.com does it very well. It change the image data so
 fast. Please try the Exposure function it the web. I just want to kown
 how to do this.
 Thanks
 
 --- In flexcoders@yahoogroups.com, DreamCode <[EMAIL PROTECTED]> wrote:
 >
 > How big is the image you're processing in pixels?
 > 
 > You have to consider that processing a 400x400 pixel image is a loop
 > of 160k iterations Now multiply that by the number of cpu cycles
 > pr. pixel and you will start to see scary numbers.
 > 
 > --allan
 > 
 > 
 > On 12/3/07, Alex Harui <[EMAIL PROTECTED]> wrote:
 > > Image processing is always CPU intensive.  Flash is not optimized
 for it
 > > either.
 > >
 > >
 > >
 > > 
 > >
 > > From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
 > > Behalf Of Larry Zhang
 > > Sent: Monday, December 03, 2007 2:03 AM
 > > To: flexcoders@yahoogroups.com
 > > Subject: [flexcoders] How to improve BitmapData processing speed?
 > >
 > >
 > >
 > > Hello all,
 > >
 > >   I am processing a bitmap data in Flex 3 beta 2. I want to do
 > > something to the pixels so I need to get them all and add my action to
 > > them. But I found it is very slow if I get pixels one by one by using
 > > two for loop and getPixel() method. Of course the setPixel() method is
 > > also slow. Then I try the getPixels() to gain a byteArray. It's
 fast but
 > > I still need to loop the byte array and readUnsignedInt() to get every
 > > color pixel and set them back. This also takes me much time.
 > >
 > >
 > >
 > >   Is there any way to make it faster or I just use the wrong
 > > method to do such things?
 > >
 > >
 > >
 > > Thanks.
 > >
 > >
 > >
 > > ==
 > >
 > > Make Every Day Count
 > >
 > >
 > >
 > > Larry Zhang
 > >
 > >
 > >
 > >
 > >
 > >
 >
 
 
 
   

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

[flexcoders] How to do releaseOutside event in Flex2?

2007-12-04 Thread Jonathan Lee
Hello all:
I used to program in Flash8 and get used to the releaseOutside event which is 
very useful.

For example, I mouse down on a object, and without release, I move mouse out of 
the object and release the button.

How to capture this kind of event in Flex2?

Thanks,


   
-
Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now.

[flexcoders] packages start with fl in Flash9 (how to use in Flex2)

2007-12-05 Thread Jonathan Lee
Hello all:
I just got upgraded to Flash9. And there're bunch of packages start from fl.
for example, fl.video.*, fl.container.*

any chance to use it in Flex2?

Seems Adobe does not sync Flash and Flex yet.



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

[flexcoders] divide text in more than 1 column automatically

2007-12-05 Thread Jonathan Lee
Hello all:
I have an application that popup RichTextEditor for user to input text.

Then, after finished, I will have a big textfield (or whatever that can display 
text) to display user's text.

Instead of just display in one big area, that text display area is divided into 
2 columns. Left and right.

So, if text can not fit in the left column, it should automatically flow into 
column 2. (Now, I do not care the situation of if column 2 is also full).

So, anyway to implement this?

Thanks a LOT.



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

[flexcoders] Add textfield error

2007-12-05 Thread Jonathan Lee
Hello all,
I have a application to in creationComplete event to execute a function called 
initApp();

This is initApp()..
import flash.text.TextField;
public var mtTXT:TextField;
public function initApp():void{
myTXT = new TextField();
myTXT.x = 343; myTXT.y = 10; 
myTXT.width = 196; myTXT.height = 300;
myTXT.wordWrap = true; myTXT.border = true;
myTXT.multiline =true;

 
addChild(myTXT);
}

It compiles ok, but when it runs, it says TypeError: Error #1034: Type Coercion 
failed: cannot convert flash.text::[EMAIL PROTECTED] to mx.core.IUIComponent.
at 
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingChild()



But that TextField is inherited from DisplayObject which suppose to be abled to 
used within addChild() function.

Any thoughts.

Thanks.


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

Re: [flexcoders] Component that passes through mouse events (?)

2007-12-06 Thread Jonathan Lee
try bubble, capture kinds of feature.


williamkusumo <[EMAIL PROTECTED]> wrote:   Hi 
fellow flexcoders,
 
 Is it possible to have a component that is on top of another component yet it 
does not block 
 any mouse events, instead it passes them through to the component underneath 
it?
 
 I need to overlay a component over another one for visual treatment, but it is 
blocking the 
 mouse interaction.
 
 Thanks in advance for the help, I appreciate it.
 
 
 
   

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

[flexcoders] extra large line space in textarea if use htmlText to set text

2007-12-21 Thread Jonathan Lee
I used RichTextEditor control to edit text. Then, I save it as a html file.
The issue is when I load the html file in a textarea, something strange will 
happen if I set some character in the text to very large font.

Sample html:
1. Carefully put 
the egg yolk mixture back into the egg whites but do not pack it. There will be 
enough mixture so the whites are overfilled. Sprinkle with paprika. Place on 
bed of lettuce and/or garnish with parsley. Cool before 
serving.



You will see I set the character "1" to 48 point font size. And rest of the 
text uses  point 10. Then, when it displayed in text area, the last several 
words seems have some extra line space between any other words. (Feels like 
there's some line break there). But there's no any line break.

Here is the screen shot: 
http://farm3.static.flickr.com/2013/2128318270_ff89abf4c2_o.jpg

After click on the "Populate" button, I set the htmlText value of the left 
TextArea by using the htmlText value of that RichTextEditor. You will in the 
textarea box, the last line looks like have some extra line break. But actually 
there's no any line break.

Any suggestions? What I'm missing here?

Thanks.




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

Re: [flexcoders] Re: How can I add Sprite / MovieClip to stage without error of not UIComponent

2007-12-23 Thread Jonathan Lee
What I did is just add a UIComponent under the container as a child. The add 
everything meaningful stuff as child of that UIComponent.



helihobby <[EMAIL PROTECTED]> wrote:   This is the 
exact error I get:
 
 Main Thread (Suspended: TypeError: Error #1034: Type Coercion failed:
 cannot convert flash.display::[EMAIL PROTECTED] to mx.core.IUIComponent.) 
  mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingChild
 
  mx.core::Container/addChildAt 
  mx.core::Container/addChild 
  TestAS12344/setFire 
  TestAS12344/onClick 
  TestAS12344/__bb_click 
 
 --- In flexcoders@yahoogroups.com, "helihobby" <[EMAIL PROTECTED]> wrote:
 >
 > 
 > How can I add Sprite / MovieClip to stage without error of not
 > UIComponent ?
 > 
 > Everytine I add a Sprite or MC I get the error ... even if I try to
 > cast to a DisplayObject ...
 > 
 > Any help is greatly appreciated ...
 > 
 > Sean.
 >
 
 
 
   

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

[flexcoders] Smooth graphic for button skin?

2008-02-15 Thread Jonathan Lee
Hello all:
I apply some graphic skin to the button's up, down and over state.
The issue is when I rotate the button, the image looks not smooth at all.

I tried to use BitmapAsset, but it seems can not apply to the skin style for 
button.

Any solution?





   
-
Never miss a thing.   Make Yahoo your homepage.

RE: [flexcoders] Download physical file with URLLoader

2008-02-21 Thread Lee Evans
There is a sample Flex App called FileIO that demonstrates downloading
and uploading files at 

 

http://www.adobe.com/support/documentation/en/flex/#content

 

It is part of the .zip download under Actionscript 3.0 examples

 

Lee

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Fidel Viegas
Sent: Wednesday, February 20, 2008 4:31 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Download physical file with URLLoader

 

Have a look at flash.net.FileReference

that has a download method. That is what you should use to download or
upload files.

Fidel.

On Wed, Feb 20, 2008 at 5:23 PM, Eric Cobb <[EMAIL PROTECTED]
<mailto:flexcoders%40ecartech.com> > wrote:
>
>
>
>
>
>
> I'm trying to figure out a way to connect to a remote URL, and
download
> a file from that URL. I'm already using URLLoader to connect to the
URL
> and read an XML file, would I use URLLoader for this as well? I want
my
> Flex 3 /AIR app to be able to hit this URL and download a .db file for
> updates.
>
> What's the best way to go about this?
>
> Thanks!
>
> Eric
>
> 

 



RE: [flexcoders] images dissappearing on zoom

2008-02-26 Thread Lee Evans
Can you provide any details as to how you are doing the zooming?   Is it
a dynamic variable zoom or a one-time one click to a preset zoom level?
If you "zoom" to the same image size do you have the same problem?

 

Lee

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mr.octopz
Sent: Tuesday, February 26, 2008 9:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] images dissappearing on zoom

 

Hi All

I am porting a flash 8/avm1 app to flex/avm2. The app loads images and 
allows the user to zoom in on them. In the flex/avm2 app the image 
dissappears if you zoom in a long way. This did not happen the the 
flash 8/avm1 version.

I have tried zooming using scaleX and scaleY, width and height, and 
matrix, but the result is the same in all cases. The problem goes away 
if I wrap the image in a swf before it is loaded in the app. Loading it 
into a swf in the already in the app does not solve the problem. I 
would prefer not to wrap the image in a swf before I load it.

Has anyone seen this problem before, or know of a solution?

Thanks

 



[flexcoders] Preventing User Action While Waiting for Page to Update

2007-05-09 Thread Lisa Lee
Hi - another "newbie" question, I'm sure but here goes:

I have a Flex app that allow the user to drag and drop an item from one 
box to another.  Once they drop the item, both boxes refresh with the 
correct data.  Sometimes it can take a few seconds for the boxes to 
refresh.  In the meantime, if the user tries to perform another 
drag/drop before the data is refreshed, they get an ugly Flash error.  
Is there a way to make them wait while the data is being processed by 
the back end?



Re: [flexcoders] Disable Clicks while on busyCursor

2007-05-31 Thread Anthony Lee

- Make all your active components register themselves then loop through
and disable/enable them according to your busy state

Too taxing on cpu...


How many components are we talking about?

Hack #3
Generate an Alert and position it outside the viewable area. They're modal
by default... meaning the user shouldn't be able to click on anything till
you clear it.

Anthony


[flexcoders] DataGrid data object: strong typing?

2007-09-07 Thread Tom Lee
Hi guys,

I'd like to pass the entire data object from a DataGrid ItemRenderer  
to a method in my controller, when the row is clicked.  The controller  
method requires an object of a specific type.  I have filled the  
DataGrid dataprovider with strongly typed objects, but when I access  
them via the data property of the item renderer, they come through as  
plain objects.  I can't seem to cast them to their original type  
either.  If this description makes any sense, has anyone dealt with  
this before?  Any suggestions?

Thanks a million


Re: [flexcoders] DataGrid data object: strong typing?

2007-09-07 Thread Tom Lee
As often happens, the answer came to me the minute I posted.  Turns  
out you can cast the data object to something else: but if you're  
using an inline component declaration in your item renderer, you have  
to include a script block and import the necessary classes.  Like  
always.  Like an intelligent person would. :)


On Sep 7, 2007, at 3:41 PM, Tom Lee <[EMAIL PROTECTED]> wrote:


Hi guys,

I'd like to pass the entire data object from a DataGrid ItemRenderer
to a method in my controller, when the row is clicked. The controller
method requires an object of a specific type. I have filled the
DataGrid dataprovider with strongly typed objects, but when I access
them via the data property of the item renderer, they come through as
plain objects. I can't seem to cast them to their original type
either. If this description makes any sense, has anyone dealt with
this before? Any suggestions?

Thanks a million




[flexcoders] Problem with Cairngorm and RemoteObject

2006-08-20 Thread Dong Lee





Hi,
 
Not using ColdFusion I'm trying to retrieve login 
related data from the server through RemoteObject, and getting this 
fault error message 
faultCode:InvokeFailed 
faultString:'[MessagingError 
message='Unknown destination 'mylogin'.']' 
faultDetail:'Couldn't establish a 
connection to 'mylogin''
 
However the destination of 'mylogin' is 
defined in remoting-config.xml. I did a little testing without using 
Cairngorm and it works fine with following tag
 
destination="mylogin"fault="faultHandler(event)"  
  

  
{loginVO}
 

  

 
Am I missing something? My 
program follows the typical Cairngorm flow as below:
 
1. Services.mxlm
destination="mylogin"result="event.token.resultHandler(event)"   fault="event.token.faultHandler(event)"  showBusyCursor="true"  
> 
 
 
2. LoginDelegate.as
 public class 
LoginDelegate {   private var responder : 
Responder;   private var service : 
AbstractService;
   public function LoginDelegate( 
p_responder : Responder )   { 
this.service = ServiceLocator.getInstance().getService( "loginService" 
); this.responder = p_responder;   
}   public function login( p_loginVO : LoginVO ): 
void  {    var call:AsyncToken = service.LoginService(p_loginVO);   
   call.resultHandler = 
responder.onResult;   call.faultHandler = 
responder.onFault;  }
}
 
 
3. LoginEvent.as
 public class LoginEvent extends 
CairngormEvent  {   public static const 
EVENT_LOGIN   : String = "login";  public var loginVO : 
LoginVO;
 
  public function LoginEvent( p_loginVO : LoginVO ) 
  {   super( EVENT_LOGIN, false, true 
);   this.loginVO = 
p_loginVO;  } } 
 
4. LoginCommand.as
 
    public function execute( p_event 
: CairngormEvent ) : void    
{   var delegate   : 
LoginDelegate = new LoginDelegate( this );   
   var loginEvent : LoginEvent = 
LoginEvent( p_event );    
   delegate.login( loginEvent.loginVO 
);    } public function 
onResult( event : * = null ) : void  
    {        

    }
 
    public function onFault( event : 
* = null ) : void       {    
    
    }
 

 
__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides

2006-08-23 Thread Tom Lee
In my world, 300 milliseconds does matter.  10 sequential calls and you have
3 seconds of latency, which is definitely in the realm of something the end
user would notice.

Sometimes the end user is a key decision maker comparing two apps
side-by-side and making a judgment call as to which one will be further
developed.  Sometimes the one that feels "snappier" wins.

Do I think I should have to be making 10 sequential web service calls? No.
But then again, I don't develop web services.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Wolf
Sent: Tuesday, August 22, 2006 4:20 PM
To: flexcoders@yahoogroups.com
Subject: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems -
which provides

I simply have to disagree here.  We can demonstrate several in
production applications which we have developed using SOAP XML
WebServices and they perform like a champ.  One of them was the runner
up for last years MAX award.  The majority of the applications we
develop use this architecture and to date not a single time has a
client nor a user complained about the performance of runtime data
services based on SOAP.

There are a few false rumors that continue to creep up in the Flex
community about the performance issues around SOAP.

There are benchmarks which show that AMF can be drastically faster
than a SOAP call for the same data.  Sometimes even 100% faster.  Yup
that's true there are.  But you have to peel away the layers of the
onion to see the reality.  Statistics can be misleading.  For
instance, if AMF is 300 milliseconds and SOAP is 600 milliseconds the
100% difference isnt even relative.  How many people do you know who
can even see 1/3 of a seconds difference?  In the end raw marshalling
isnt the issue, it is the user and their experience.  Flex2 made
DRASTIC improvements it the performance of XML parsing and in our own
benchmarks the delta between the two services choices is often as low
as 10%.

Of a much greater impact that the marshalling time is the UI
"shredding" and binding of the data.  Most badly performing RIA's
suffer from data being returned from the back-end in a format that
holds no fidelity with the RIA.  This requires the RIA to tear apart
the returned structural data and place it into its own structures and
objects and bind those to UI controls.  Developing your user
experience in a front-to-back approach which assures great fidelity
between the data formats of the tiers can account for an order of
magnitude performance increase.  That is the kind of performance
increase users will actually experience.  

There are many other very smart things you can do like extending
existing controls to do streaming rendering of data to provide the
perception of speed, server side paging, caching, etc.  

In the end perception is reality.  All that matters from the UI
perspective is the experience that the user has.  Worring about 300
milliseconds is like trying to debate the number of angels that could
dance on the end of a pin.  If the user can't see them, it doesn't
matter how many there are.

The running rumor that you simply cannot develop first class RIAs in
Flex using a SOAP web services back-end is simply not accurate, and we
have the apps in production with our clients to prove it.


-- 
Dave Wolf
Cynergy Systems, Inc.
Adobe Flex Alliance Partner
http://www.cynergysystems.com
http://www.cynergysystems.com/blogs

Email:  [EMAIL PROTECTED]
Office: 866-CYNERGY





--- In flexcoders@yahoogroups.com, "Shannon Hicks" <[EMAIL PROTECTED]> wrote:
>
> Bob-
>  
> Web Services / HTTP services are not built to be the primary backend
of your
> flex applications. Because they are XML based, they have quite a bit
more
> overhead than flex's built-in AMF (Action Message Format). AMF is
smaller,
> faster and uses less bandwidth than XML. AMF is what FDS and ColdFusion
> 7.0.2 use to communicate to a Flex app.
>  
> So let's say that your question is narrowed down to "FDS or CF?".
Adobe's
> ideal answer is "yes." They are complimentary to each other, CF
allows for
> wonderful rapid development of Flex apps, and FDS brings some amazing
> features to the table through it's Messaging an Data Management
services.
>  
> Web Services (SOAP) support is in Flex primarily to consume third-party
> data, allowing you to add it to your app.
>  
> Hope this points you in the right direction.
>  
> Shan
> 
>_  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of rhlarochelle
> Sent: Tuesday, August 22, 2006 10:27 AM
> To: flexcoders@yahoogroups.com
> Subject: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend
systems -
> which provides best functionality
> 
> 
> 
> Franck,
> 
> I appreciate your respons. When you say Remote Objects/Flex Data
> Services provides the most advanced way of interoperating with the
> backend, what specifically is possible?
> 
> What are the capabilities that I would get leveraging Remote
> Objects/Fl

RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides

2006-08-23 Thread Tom Lee
I'm sure someone already pointed this out, but network latency is also a
factor.  AMF is a compressed format, so it can load faster and in that sense
make your app more responsive.  With XML web services, the tags themselves
add a degree of overhead.  There are schemes for compressing web services
which can help.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Martin Wood
Sent: Wednesday, August 23, 2006 11:27 AM
To: flexcoders@yahoogroups.com
Subject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems
- which provides



Jack Caldwell wrote:
> Martin:
>  
> OK . . . . so the lag time is when the data gets back to the end-user?

exactly, its the time it takes for the flash player or actionscript code to 
convert the incoming data into a format usable by the application.

Before in the flash world that was a big deal as XML processing was
expensive 
and often tedious to code whilst remoting was natively implemented and
provided 
you with typed business objects as a result of the call.

With Flex 2 the differences are not so important as the features like data 
binding and e4x pretty much level the playing field for the data formats.


> Bottom line . . . . with all things being equal . . . .
>  
> Does a web service request take longer to process on the server than
> a AMF request?
>  
> If the answer is . . . . in general yes, then that can be an issue with an
> increase in users.
>  
> If the answer is . . . . it depends on the data being requested and/or the
> data format then that seems to suggest that everyone must run tests to 
> compare results and then test again based on scaling up.

I suppose one of the main factors would be the server code that handles the 
incoming request and then transforms the business data into the required
format 
to send back to the client.

That could be anything from some hand written php code to a commercial
remoting 
gateway.

Its so context dependent that its impossible to make a general statement of
the
type 'Remoting performs better than Web Services'

It would be interesting to see a comparison of the throughput you could
expect 
when comparing different solutions on the same server hardware, e.g. PHP 
Nu-Soap against AMFPHP.. Jrun's remoting vs. OpenAMF vs JAX-WS etc..

and where they each perform the same business operation and return the same
data..

but then there are other concerns such as memory usage and what else the
server 
is used for and how it performs for those use cases.

thats what i mean by you have to take it on a case by case basis.

:)

martin


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



 





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

<*> 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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides

2006-08-23 Thread Tom Lee
Exactly so.  My experience has been that some folks expect the Flash
platform to be a means of improving the user experience for legacy systems.
The data services themselves can't change: they're in use already by
partners, or by other front ends.  So, you end up going through a lot of
client-side gyrations to give the illusion of better performance.  Using AMF
to squeeze every last bit of performance out of the data transfer can be an
option, because you can implement as middleware.

It looks like the original message was dealing with starting from scratch
though... So I won't hijack the thread any further. ;)

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Wolf
Sent: Wednesday, August 23, 2006 11:34 AM
To: flexcoders@yahoogroups.com
Subject: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems -
which provides

--- In flexcoders@yahoogroups.com, "Tom Lee" <[EMAIL PROTECTED]> wrote:

> Do I think I should have to be making 10 sequential web service
calls? No.
> But then again, I don't develop web services.
> 


Which is an interesting loop back to my initial reply to this thread
where I discussed developing RIA's from  the "front to the back" or as
DK pointed out, using the UI to drive out the middle tier API's.  

See the issue you have isnt with the choice of marshalling prototcol.
 The issue is with an API that holds no fidelity with the user
experience you are trying to present.  In your case having to make
multiple sequential calls.  In other cases it can be much worse where
the RIA has to shread and re-combine data feeds to match the experience.  

This is exactly what I pointed out as being one of the largest
contributors to a poorly peforming RIA.  It is the elephant in the room. 

-- 
Dave Wolf
Cynergy Systems, Inc.
Adobe Flex Alliance Partner
http://www.cynergysystems.com
http://www.cynergysystems.com/blogs

Email:  [EMAIL PROTECTED]
Office: 866-CYNERGY




> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Dave Wolf
> Sent: Tuesday, August 22, 2006 4:20 PM
> To: flexcoders@yahoogroups.com
> Subject: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend
systems -
> which provides
> 
> I simply have to disagree here.  We can demonstrate several in
> production applications which we have developed using SOAP XML
> WebServices and they perform like a champ.  One of them was the runner
> up for last years MAX award.  The majority of the applications we
> develop use this architecture and to date not a single time has a
> client nor a user complained about the performance of runtime data
> services based on SOAP.
> 
> There are a few false rumors that continue to creep up in the Flex
> community about the performance issues around SOAP.
> 
> There are benchmarks which show that AMF can be drastically faster
> than a SOAP call for the same data.  Sometimes even 100% faster.  Yup
> that's true there are.  But you have to peel away the layers of the
> onion to see the reality.  Statistics can be misleading.  For
> instance, if AMF is 300 milliseconds and SOAP is 600 milliseconds the
> 100% difference isnt even relative.  How many people do you know who
> can even see 1/3 of a seconds difference?  In the end raw marshalling
> isnt the issue, it is the user and their experience.  Flex2 made
> DRASTIC improvements it the performance of XML parsing and in our own
> benchmarks the delta between the two services choices is often as low
> as 10%.
> 
> Of a much greater impact that the marshalling time is the UI
> "shredding" and binding of the data.  Most badly performing RIA's
> suffer from data being returned from the back-end in a format that
> holds no fidelity with the RIA.  This requires the RIA to tear apart
> the returned structural data and place it into its own structures and
> objects and bind those to UI controls.  Developing your user
> experience in a front-to-back approach which assures great fidelity
> between the data formats of the tiers can account for an order of
> magnitude performance increase.  That is the kind of performance
> increase users will actually experience.  
> 
> There are many other very smart things you can do like extending
> existing controls to do streaming rendering of data to provide the
> perception of speed, server side paging, caching, etc.  
> 
> In the end perception is reality.  All that matters from the UI
> perspective is the experience that the user has.  Worring about 300
> milliseconds is like trying to debate the number of angels that could
> dance on the end of a pin.  If the user can't see them, it doesn't
> matter how many there are.
> 
> The running rumor that you simpl

RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides

2006-08-24 Thread Tom Lee












>> I’d like to hear the first
story that changing webservices by AMF increased the user experience
significantly and sealed a certain business proposition.

 

I was developing a Flash front-end for an
existing .Net application.  The Flash app used web services, whereas the
.Net app was able to access SQL stored procedures and such directly.  The
.Net app was slightly more responsive, due to the fact that less data was being
sent over the wire, as well as the extra parsing time.  Long story short,
the Flash app got canned because it was being compared side by side to a faster
alternative.  If I could have convinced them to give AMF a shot, I’m
sure we could’ve got those performance issues ironed out.

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Franck de Bruijn
Sent: Thursday, August 24, 2006
1:33 AM
To: flexcoders@yahoogroups.com
Subject: RE: [Junk E-Mail - LOW]
[flexcoders] Re: Choice of backend systems - which provides



 

Hi Ted,

 

We all understand your arguments 1 and 2.
But in the end, and that’s already identified in this topic, it’s the
user experience that counts. If it does not suffer by using web services,
it’s not an issue! I’d like to hear the first story that changing
webservices by AMF increased the user experience significantly and sealed a
certain business proposition.

 

For argument 3 ‘Developer
Productivity’ it’s true that developers need to program more lines
of code to obtain the same result (having your webservice result as an
ActionScript object), which is, I admit, error prone. But in the total view of
the costs of a development project ... it will not make much of a difference.
The actual additional lines of code I’m talking about, however, are very
easy to generate from a model if you wish.

 

Again, FDS is cool, really true and it
does have its place. But for many applications FDS (including the extra
features messaging and data management) is neither an option nor necessary.

 

Cheers,

Franck 

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ted Patrick
Sent: Wednesday, August 23, 2006
6:47 PM
To: flexcoders@yahoogroups.com
Subject: RE: [Junk E-Mail - LOW]
[flexcoders] Re: Choice of backend systems - which provides



 









AMF is
faster in 3 fundamental ways:

 


 Bandwidth Size – Smaller, lighter,
 faster!!!


 


 Parsing Speed – Less work on both client
 and server!!!


 


 Developer Productivity – Less work for
 developers!!!


 

Web
Services are dependent on XML Parsing on both the client and server side.
Although it’s a good story, XML parsers are not very efficient as parsing
documents is an interpreted process. The Flash Player XML parser will always be
dramatically slower than AMF parsing, binary formats are notoriously faster in
this regard. 

 

XML
parsing additionally decays rapidly as the file size increases. Flash Player XML
parsing time increase non-linearly with larger XML documents. With AMF parsing
times are linear with data size. The XML decay can be attributed to the number
of inner objects that need to be created during a parsing run. AMF objects are
1:1 with the data received where XML data is 1:N per Elements/Attribute.

 

Comparing
XML to AMF is an unfair race, AMF wins every time. When you add in the overhead
of WS SOAP parsing atop the base XML parser speed you begin to see performance
issues. With SOAP, you interpret an XML document back into typed objects
depending on the SOAP specifics used. Sure 350ms is ok once or twice, but try
doing 200 transactions in this format and you will see performance issues
arise. Using Web Services you are forcing the Flash Player to do allot of
unneeded work. The goal is to build richer applications, not burn up player
performance in crud operations.

 

Additionally
non-proxied Web Service use suffers with Flash Player because of the browser
variation in the plug-in APIS. You cannot get the 500 Errors response content
in IE and thus the SOAP fault standard breaks down. In SOAP there are important
messages that arrive with 500 Errors and the inability of the Flash Player to
receive these is a problem. Unfortunately there is no seamless way to get 500
Errors into the Flash Player other then rewriting an HTTP Client in the Socket
class. This effort would also require a new SOAP library within Flex and socket
use on low ports requires a more complex crossdomain.xml configuration.
Even then you still suffer the same performance issues.

 

Performance
aside, the productivity discussion is much more important. AMF3 and Flex Data
Services are wildly productive. Once you compile your Java Class and configure
a destination in FDS (1 XML Element), you are done. All typing is handled, All
methods are ready to run with any number of client applications. It is the
easiest way to create a server side API that I know of. Actually most cases,
implementing FDS will removes $20,000 of developer time

RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides

2006-08-24 Thread Tom Lee
I can vouch for that statement, from my own personal experience.  If you're
working with large amounts of data, the lag is quite unacceptable.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claus Wahlers
Sent: Thursday, August 24, 2006 1:00 PM
To: flexcoders@yahoogroups.com
Subject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems
- which provides


> On a high quality machine, WS can take 400ms, but on a slower 
> machine it can take 3-10 seconds for a single call and the larger 
> the data exchanged, the worse it gets. Not good.

Aren't you exaggerating a bit here? Can you give a real world example of 
a SOAP XML that takes 400ms to parse/consume on a high end machine? I 
mean, we're talking Flash Player 9, aren't we?

Cheers,
Claus.



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



 






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

<*> 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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides

2006-08-24 Thread Tom Lee
> One key enterprise objection to using AMF is the lack of AMF  clients for 
> integration.

> Would non-flash clients for AMF and Messaging help?

I can understand why it would be difficult to shell out $20K per proc for 
something that is solely for the Flash platform.  That's almost as much as SQL 
licenses.  Not feasible where I work.  If you have to use Flex Data Services to 
realize the full benefits of Flex, that high cost can lead teams to shy away 
from the Flash Platform because the remaining benefits may be less clear.

However, aside from the cost, I don't see why anyone would have a problem with 
putting middleware in place for a specific client.  Non-Flash clients can use 
whatever other communications protocols you like, which are possibly already in 
place.  Granted, you've got to test things thoroughly to make sure your 
existing environment is not affected by the installation of FDS (which can be a 
daunting task).

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ted 
Patrick
Sent: Thursday, August 24, 2006 12:50 PM
To: flexcoders@yahoogroups.com
Subject: RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - 
which provides

Frank,

RPC IS LESS THAN 25% OF FLEX DATA SERVICES!!!

Flex Data Services is so much more that RPC. This entire discussion is really 
FDS.RPC to WebServices. 

FDS contains 4 major parts:

1. Messaging - ASMessaging and JMSMessaging
2. Data Management - Data Synchronization and Distributed ArrayCollections
3. Web Tier Compiler - Compilation of AS/MXML on the server side.
4. RPC - Remoting and WebService Proxy

Using Web Services directly affects user experience!!! 
Using Web Services directly affects user experience!!! 
Using Web Services directly affects user experience!!! 

Web Services burns up player performance that you could be using to make the 
user experience better. When working in Flash Player, everything affects 
performance. If you abuse the player in one area, you limit what you can do 
elsewhere before the player starts to slow down. The Flash Player (like all 
software) is limited in capability; if you spend that capability doing hard 
things (read Web Services) then you will not be able to do other things. On a 
high quality machine, WS can take 400ms, but on a slower machine it can take 
3-10 seconds for a single call and the larger the data exchanged, the worse it 
gets. Not good.

With Flash Player it is important to keep things light and fast. Web Services 
are abusive to the Flash Player runtime. Support is included for integration 
purposes but it was really not designed as an optimized way to exchange data. 

Web Services view:

Flash Player Receives XML ASCII Text
XML Parsing → XML Parsing!!!
SOAP Parsing occurs to AS Objects → Traverse SOAP Objects Recursively!!!
Objects are passed into events

RemoteObject:
Flash Player Receives AMF Data
AMF Binary Decoding → Direct to typed objects.
Objects are passed into events

I am sure there are many smart people out there who will get WebServices to 
work well for them with Flex. It is a lot of hard work to make this work well 
and I have only seen one company do it really well. I do not doubt that others 
will make this work reliably but I question its use. It will affect performance 
which is why AMF was created in the first place as an optimized data exchange 
format for Flash Player. 

One of the key advantages for WebServices is the wide availability of Web 
Service clients for any language. With AMF we only have one client( Flash 
Player ) and several AMF servers. One key enterprise objection to using AMF is 
the lack of AMF  clients for integration. 

Cases:
- PHP form could remote to FDS
- C++ application joins FDS messaging as a client
- Java process remotes to FDS
- Python process remotes to Data Services for Ruby (MidnightCoders)
- C# remotes data with FDS as a client

Part of the distributed computing revolution is the realization that anything 
can be both a client and a server. One of the problem areas in FDS is that only 
Flash and Java:JMS can participate within the FDS as clients.

Would non-flash clients for AMF and Messaging help?

Regards,

Ted Patrick
Flex Evangelist
Adobe Systems Incorporated


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Franck 
de Bruijn
Sent: Wednesday, August 23, 2006 10:33 PM
To: flexcoders@yahoogroups.com
Subject: RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - 
which provides

Hi Ted,
 
We all understand your arguments 1 and 2. But in the end, and that’s already 
identified in this topic, it’s the user experience that counts. If it does not 
suffer by using web services, it’s not an issue! I’d like to hear the first 
story that changing webservices by AMF increased the user experience 
significantly and sealed a certain business proposition.
 
For argument 3 ‘Developer Productivity’ it’s true that develop

RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides

2006-08-24 Thread Tom Lee
Several of these posts now have seemed to indicate environments where the
Flex developer has the capability to manipulate the server side to their
liking.  Yes, you can squeeze a lot of performance out of any transport
method if you can manipulate it as you see fit.  I wonder if that scenario
is typical.

In my case, every modification to the web services must be done with extreme
care, as we have partners who also consume those services.  It doesn't make
sense to optimize the services just for Flex, as it is only a small part of
our total picture.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ryanm
Sent: Thursday, August 24, 2006 2:05 PM
To: flexcoders@yahoogroups.com
Subject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems
- which provides

> I am sure there are many smart people out there who will
> get WebServices to work well for them with Flex. It is a
> lot of hard work to make this work well and I  have only
> seen one company do it really well. I do not doubt that
> others will make this work reliably but I question its use.
> It will affect performance which is why AMF was created
> in the first place as an optimized data exchange format for
> Flash Player.
>
I got around this problem by abstraction and preemptively loading data 
that was likely to be loaded. I made up template-like objects that the 
client loaded that describe what makes a "page" of data, which included all 
of the possible design elements and whatnot. That way, when you actually go 
to load the data, the size of the data going to and from the server was 
minimal (and compressed). And I preloaded large blocks of commonly used data

and cached them on the client side, keeping it updated by sending an MD5 
hash back to the server-side to be compared to the current data set on a 
regular basis or whenever that data was accessed. For a dial-up user that 
might be a problem, but for a business app it didn't even cause a noticable 
bump in their bandwidth usage. You just have to plan appropriately and do 
thorough use cases, so that you can develop a set of rules that will tell 
you what data is likely to be needed next. All the most common usage paths 
through the app were fast and responsive, and only the really heavy stuff, 
like real time reports that go back over tons of db records and stuff, took 
any noticable time to load. The end result was 100% compatible with either 
an AJAX front end or a Flash front end, the back end didn't know or care 
which it was talking to.

With appropriate planning and a good architecture, which transport 
method you use is almost irrelevant as long as it is flexible and 
compatible. ;-)

ryanm 



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



 






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

<*> 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] POP3 by Socket

2006-08-25 Thread Tom Lee
Sometimes it's not obvious from debugging that the lack of a crossdomain.xml
file is at issue.  Perhaps you could list some common symptoms of malformed
or non-existent crossdomain.xml files?

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ted Patrick
Sent: Friday, August 25, 2006 2:20 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] POP3 by Socket

I will get that added ASAP. Great feedback.

Anyone else?

Ted Patrick
Flex Evangelist
Adobe Systems Incorporated



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Friday, August 25, 2006 10:09 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] POP3 by Socket

Ted, that is a handy site.
 
A suggestion:  An issue that is not obvious to those who are not web/network
administratiors is: "Where do I put the crossdomain.xml file".  While I bet
this is discussed on more than one of the links you provide, consider a
quick paragraph on the subject, for additional convenience.
 
The usual response: "In the root of the web server" is not enough for
non-experts.  Include an example path for, say the default integrated Flex
1.5 install, one for a default Tomcat install, and one for a default IIS
install.
 
I figured mine out by putting a full access crossdomain file in every
possible folder until  my call worked, then deleting them until I broke it
again.  This showed me the right place.  You see why I am not offering to
provide the examples!
 
Tracy
 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ted Patrick
Sent: Friday, August 25, 2006 12:14 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] POP3 by Socket
 
Rogerio,
 
http://www.crossdomainxml.org
 
http://www.crossdomainxml.org
 
With Socket operations you will need to have a crossdomain.xml file on the
server you are connecting to, in this case the POP server! This particular
crossdomain.xml file needs to permit access to use low/high ports for
inbound connections. It is identical to the process needed to support
XMLSocket servers.
 
The use of crossdomain policy files prevents Flash/Flex clients from abusing
other peoples servers. As permission is delegated to the server owner, they
can decide what ports Flash Player can connect to.
 
Example:
 

  
  
  
  
  

 
 
I put together this small site on crossdomain policy files. It doesn't have
any glits and gives you the bare bones knowledge on using crossdomain.
 
http://www.crossdomainxml.org
 
http://www.crossdomainxml.org
 
IFBIN on Flexcoders 
You just made my day!
Go IFBIN!
 
Cheers,
 
Ted Patrick
Flex Evangelist
Adobe Systems Incorporated
 
 
 
 
 
 
 
 
 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Santo
Sent: Friday, August 25, 2006 6:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] POP3 by Socket
 
Bom dia pessoal,
Hi folks,

I want to know if anyone of you try make the POP3 by Socket example,
from IFBIN(Flex by Example), work with final version of Flex 2.
Now that he´s free, I try to test something but it just don´t work.
Don´t give me any errors. Seems to be a security issue, like
crossdomain, but I can´t figure out the real problem.

Thanks

Rogerio Gonzalez
 


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



 







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

<*> 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: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides

2006-08-25 Thread Tom Lee










Speaking of that – I’ve always
wondered, is the gzip decompression handled by the browser, or by the Flash
player?  I’ve assumed it was the browser (HTTP Compression, right?). 
That being the case, aren’t there some browsers which don’t have
gzip support, or are they all dead?

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Carson Hager
Sent: Wednesday, August 23, 2006
12:53 PM
To: flexcoders@yahoogroups.com
Subject: RE: [Junk E-Mail - LOW]
[flexcoders] Re: Choice of backend systems - which provides



 

Simply turing on gzip compression has an
amazing effect here dramatically reducing the total payload size of web service
calls.

 

 

Carson


 
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com
 
Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY
Mobile:
1.703.489.6466



 



 







From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tom Lee
Sent: Wednesday, August 23, 2006
9:22 AM
To: flexcoders@yahoogroups.com
Subject: RE: [Junk E-Mail - LOW]
[flexcoders] Re: Choice of backend systems - which provides



I'm sure someone already pointed this out, but network
latency is also a
factor. AMF is a compressed format, so it can load faster and in that sense
make your app more responsive. With XML web services, the tags themselves
add a degree of overhead. There are schemes for compressing web services
which can help.

-Original Message-
From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
Behalf Of Martin Wood
Sent: Wednesday, August 23, 2006 11:27 AM
To: [EMAIL PROTECTED]ups.com
Subject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems
- which provides

Jack Caldwell wrote:
> Martin:
> 
> OK . . . . so the lag time is when the data gets back to the end-user?

exactly, its the time it takes for the flash player or actionscript code to 
convert the incoming data into a format usable by the application.

Before in the flash world that was a big deal as XML processing was
expensive 
and often tedious to code whilst remoting was natively implemented and
provided 
you with typed business objects as a result of the call.

With Flex 2 the differences are not so important as the features like data 
binding and e4x pretty much level the playing field for the data formats.

> Bottom line . . . . with all things being equal . . . .
> 
> Does a web service request take longer to process on the server than
> a AMF request?
> 
> If the answer is . . . . in general yes, then that can be an issue with an
> increase in users.
> 
> If the answer is . . . . it depends on the data being requested and/or the
> data format then that seems to suggest that everyone must run tests to 
> compare results and then test again based on scaling up.

I suppose one of the main factors would be the server code that handles the 
incoming request and then transforms the business data into the required
format 
to send back to the client.

That could be anything from some hand written php code to a commercial
remoting 
gateway.

Its so context dependent that its impossible to make a general statement of
the
type 'Remoting performs better than Web Services'

It would be interesting to see a comparison of the throughput you could
expect 
when comparing different solutions on the same server hardware, e.g. PHP 
Nu-Soap against AMFPHP.. Jrun's remoting vs. OpenAMF vs JAX-WS etc..

and where they each perform the same business operation and return the same
data..

but then there are other concerns such as memory usage and what else the
server 
is used for and how it performs for those use cases.

thats what i mean by you have to take it on a case by case basis.

:)

martin

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

Yahoo! Groups Links









__._,_.___





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








   






  
  
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] TileList columnWidth = widest item?

2006-08-26 Thread Tom Lee










Hi guys,

 

By default, the width of a column in a TileList component is
equal to the width of the first item in that column.  This is weird, because if
any subsequent item is wider, it gets clipped.  Does anyone know of a way to
make the column width fit the widest item?

 

Thanks!!



-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
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  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] TileList columnWidth = widest item?

2006-08-28 Thread Tom Lee










Thanks Sam – Was hoping there was a “fitToWidestItemInColumn”
property that I just wasn’t seeing in the docs ;)

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Samuel Reuben
Sent: Monday, August 28, 2006 5:59
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] TileList
columnWidth = widest item?



 



Hi Tom,





 





You can use a combination of maxColumns,columnWidth and
rowHeight to achieve what you are trying to do. 





You could make a customized Tile list if you want it all done.





 





Regards,





-sam

 





On 8/27/06, Tom Lee
<[EMAIL PROTECTED]> wrote:














Hi guys,

 

By default, the width of a column in a TileList
component is equal to the width of the first item in that column.  This is
weird, because if any subsequent item is wider, it gets clipped.  Does
anyone know of a way to make the column width fit the widest item? 

 

Thanks!!

-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] Zlib Compression was Backend Choice...

2006-08-28 Thread Tom Lee












Very useful – 

 

So, for clarification, under what
circumstances will the browser handle decompression of HTTP Compressed data,
and when is it necessary to use ByteArray.compress/uncompress?  I’m
under the impression that the Flash Player handles communication for the URLStream
and Socket class and the browser handles other communications.  Therefore,
I would assume that the ByteArray methods would only be needed for URLStream
and Socket… Right?

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ted Patrick
Sent: Monday, August 28, 2006
10:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Zlib
Compression was Backend Choice...



 

Flash Player 9 supports direct use of zlib compression
independent of the browser!!!

 

flash.util.ByteArray.compress 

flash.util.ByteArray.uncompress

 

You can retrieve a ByteArray from flash.net.URLStream and flash.net.Socket.
These allow you to get a bytearray of data directly from any url or TCP based
socket server.

 

Some useful use patterns:

 

ZLIB XML > HTTP > URLStream >
ByteArray.uncompress > ByteArray.UTFReadBytes

 

ZLIB SWF/GIF/JPG/PNG > HTTP > URLStream >
ByteArray.uncompress > Loader.writeBytes( ByteArray.readBytes )

 

ZLIB AMF > HTTP > URLStream >
ByteArray.uncompress > ByteArray.readObject

 

ZLIB XML > TCPSocket > Socket >
ByteArray.uncompress > ByteArray.UTFReadBytes

 

ZLIB SWF/GIF/JPG/PNG > TCPSocket > Socket >
ByteArray.uncompress > Loader.writeBytes( ByteArray.readBytes )

 

ZLIB AMF > TCPSocket > Socket >
ByteArray.uncompress > ByteArray.readObject

 

I explored all these patterns in depth during the
evolution of AS3 AVM2 and Flash Player 9.

 

I have some zlib tools in Python and some examples of
these patterns. I will clean them up and post them to my blog.

 

Cheers,

 

Ted Patrick

Flex Evangelist

Adobe Systems Incorporated

 

 

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tom Lee
Sent: Wednesday, August 23, 2006
11:20 AM
To: flexcoders@yahoogroups.com
Subject: RE: [Junk E-Mail - LOW]
[flexcoders] Re: Choice of backend systems - which provides



 









Speaking of that – I’ve always wondered, is the gzip
decompression handled by the browser, or by the Flash player?  I’ve
assumed it was the browser (HTTP Compression, right?).  That being the
case, aren’t there some browsers which don’t have gzip support, or
are they all dead?

  















__._,_.___





--
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] Embedding fonts at runtime

2006-08-30 Thread Tom Lee
Title: Re: [flexcoders] Embedding fonts at runtime










Just wondering, is [Embed] directive
compile-time, or run-time?

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Brian Deitte
Sent: Wednesday, August 30, 2006
2:43 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Embedding fonts at runtime



 

One addition to this, which is that we
always include the space character when you specify the unicode range. 
I'm not sure the original reasoning for this, but I just noticed it in the
code.  Also, you can specify multiple ranges, separated by commas. 
-Brian



 







From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dirk Eismann
Sent: Wednesday, August 30, 2006
2:07 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Embedding fonts at runtime





Yes, this is possible:





 





[Embed(source="Arial.ttf",
fontName="myArial", unicodeRange="U+0041-U+005A" )]





public var myClass:Class;





 





Dirk.





 







Von: flexcoders@yahoogroups.com im Auftrag von Daniel
Wabyick
Gesendet: Mi 30.08.2006 18:58
An: flexcoders@yahoogroups.com
Betreff: Re: [flexcoders]
Embedding fonts at runtime







Awesome! I'll definitely have to check this out.

On a related note, I wonder if its possible to embed fonts with a
specific unicode range via this syntax.  It doesn't appear to be.

[Embed(systemFont='Symbol', fontName='mySymbol',
mimeType='application/x-font')]
var myFont:Class;

I know you can use @font-face, which appears to automatically generate a
variable in the class, but its not a consistently named variable. I am
sure a utility function in the class could be used to ferret out that
variable name.


Daniel Freiman wrote:
>
> I altered the code a little and got it half working.  It works if
> you're setting the imported font using setStyle, but not if you're
> setting the font through the TextFormat object.  Simply add the
lines:
>
>
var content:DisplayObject = ldr.content;
>
var c:Class = content["myFont"];
>
Font.registerFont(c);
>
> to the begining of onloadercomplete.
>
> I'm going to continue working on how to get the font to show up
> through TextFormat.
>
>
> On 8/29/06, * Daniel Wabyick* <[EMAIL PROTECTED]
> >
wrote:
>
> I just tried to dynamically load a font at
runtime, and the
> results are
> not too promising.
>
> For other's benefits, here is what I did:
>
> - Created an AS3 project and generated a SWF
(SymbolEmbed.swf)
> with the
> Symbol font embedded.
>
> - Verified the font is available in the SWF via
Font.enumerateFonts();
>
> - Loaded SymbolEmbed.swf into a Flex app using the
Loader class,
> following instructions to keep the SWF's on the
same
> applicationDomain.
>
> - Checked if the font is available to the Flex
app, it is not.
>
> Please let me know if anyone has any ideas,
>
> -Daniel
>
>
>
>
> Code: AS3 project with embedded font.
> ---
> public class SymbolInclude
extends Sprite
> {
>
public function SymbolInclude()
> {
>
[Embed(systemFont='Symbol', fontName='mySymbol',
> mimeType='application/x-font')]
>
var myFont:Class;
>
>
trace("here in SymbolInclude");
>
var fontList : Array = Font.enumerateFonts();
>
for ( var i:String in fontList )
>
{
>
trace("font: " + Font( fontList[i] ).fontName);
>
}
> }
> }
>
>
> Code: Loader code in Flex app.
> ---
>
> 
> 

>  
>
>
>
>
>
>
> Daniel Freiman wrote:
> >
> > I have this question too but it hasn't
reached the top of my to-do
> > list yet.  What I'm hoping is that is
that you can embed a font
> in a
> > swf and then load that swf at runtime using a
swfloader.
> >
> > On 8/28/06, *Daniel Wabyick* <
[EMAIL PROTECTED]
> 
> > >> wrote:
> >
> > Hey guys,
> >
> > Is there any way to
include a font at runtime using Flex
> 2?  There
> > was a
> > weird hack that works
in Flash 8 where you load a movie that
> loads an
> > RSL. Does anything
like this work in Flex 2 ?
> >
> > Thanks,
> > -Daniel
> >
> >
> > --
> > Flexcoders Mailing
List
> > FAQ:
> >   
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> 
> > <
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >
> > Search Archives:
> > http://www.mail-archive.com/flexcoders

  1   2   >