[flexcoders] Re: DataGridColumn id attrubute is gone??

2006-07-14 Thread Suzy Lawson
Thanks Dimitrios...yeah, that solution will solve my problem. 

ALthough it doesn't seem ideal since I will have some of the same
columns stored in each Array. Oh well,as long as it's working right!? 

How come the mxml tag DataGridColumn has an 'id' attribute though
but the programatic way does not? Seems odd.


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

 Hi,
 
 I've done this, but in a different way. The DataGrid's column
property takes an array DataGridColumn objects, so what u do is create
two sets of arrays:
 
 mx:Array id=columns1
   mx:DataGridColumn ... /
   mx:DataGridColumn ... /
   ...
 /mx:Array
 
 mx:Array id=columns2
   mx:DataGridColumn ... /
   mx:DataGridColumn ... /
   ...
 /mx:Array
 
 Then, when u need to, switch the columns being attached to the grid,
like so:
 
 if( ... ) {
   dg.columns = columns1;
 }
 else {
   dg.columns = columns2;
 }
 
 dg.dataProvider = values;
 
 That should be enough to get u going.
 
 Regards,
 
 Dimitrios
 Optimal Payments
 
 -Original Message-
 From: flexcoders@yahoogroups.com on behalf of Suzy Lawson
 Sent: Thu 7/13/2006 6:04 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] DataGridColumn id attrubute is gone??
  
 I have a view state that hides/shows datagrid columns. I need the id
 attribute in order to identify to the State which column to set the
 'visible' value to.
 
 In mxml, there is a mx: DataGridColumn id= ../ attribute, HOWEVER,
 there is not one when you do this:
 
 var dataGridColumn : DataGridColumn = new DataGridColumn();   
 dataGridColumn.id=fromColumn;// COMPILER ERROR 'id' does not exist
 
 How is this possible? I appreciate your help in advance.
 
 Thanks.
   
 
 
 
 
 
 -- 
 WARNING
 ---
 This electronic message and its attachments may contain
confidential, proprietary or legally privileged information, which is
solely for the use of the intended recipient.  No privilege or other
rights are waived by any unintended transmission or unauthorized
retransmission of this message.  If you are not the intended recipient
of this message, or if you have received it in error, you should
immediately stop reading this message and delete it and all
attachments from your system.  The reading, distribution, copying or
other use of this message or its attachments by unintended recipients
is unauthorized and may be unlawful.  If you have received this e-mail
in error, please notify the sender.
 
 AVIS IMPORTANT
 --
 Ce message électronique et ses pièces jointes peuvent contenir des
renseignements confidentiels, exclusifs ou légalement privilégiés
destinés au seul usage du destinataire visé.  L'expéditeur original ne
renonce à aucun privilège ou à aucun autre droit si le présent message
a été transmis involontairement ou s'il est retransmis sans son
autorisation.  Si vous n'êtes pas le destinataire visé du présent
message ou si vous l'avez reçu par erreur, veuillez cesser
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces
jointes, de votre système.  La lecture, la distribution, la copie ou
tout autre usage du présent message ou de ses pièces jointes par des
personnes autres que le destinataire visé ne sont pas autorisés et
pourraient être illégaux.  Si vous avez reçu ce courrier électronique
par erreur, veuillez en aviser l'expéditeur.







 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/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] DataGridColumn id attrubute is gone??

2006-07-13 Thread Suzy Lawson
I have a view state that hides/shows datagrid columns. I need the id
attribute in order to identify to the State which column to set the
'visible' value to.

In mxml, there is a mx: DataGridColumn id= ../ attribute, HOWEVER,
there is not one when you do this:

var dataGridColumn : DataGridColumn = new DataGridColumn(); 
dataGridColumn.id=fromColumn;// COMPILER ERROR 'id' does not exist

How is this possible? I appreciate your help in advance.

Thanks.







 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: Spring Enable Flex

2006-07-13 Thread suzy lawson



There isn't much to do to get Flex to talk with Spring! All you need to do is put a delegate class in the middle which is nothing more than a simple POJOFlex calls Pojo, Pojo invokes Spring Beans... 
		How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.
__._,_.___





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








   



  




  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] SecurityErrorEvent thrown on server but not when run locally. Why?????

2006-07-12 Thread Suzy Lawson
I have a Flex (final release) mail client that uploads attachments to
an external mailserver (using FileReference). 

It works fine when I run/debug locally, but it fails with the
following error when I drop the swf file on my local webserver.

SecurityErrorEvent text=Error #2049 type=securityError

Obviously I need to look at the crossdomain.xml, but my question is
though if the cross domian policy is not therethen how is it
working in debug mode? Magic?! :-)

I'm experiencing quite a few problems that work great when launching
from FB but fail on the webserver. Some insight into how FB deploys
these apps would help me a lot. 

THanks.








 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/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: SecurityErrorEvent thrown on server but not when run locally. Why?????

2006-07-12 Thread Suzy Lawson
Carson, thanks. 

Interesting, but I really doubt that FlexBuilder can persist SWF files
to other companies webservers. In my case, I'm accessing a physical
server (via socket) that is hosted on another continent.

Hopefully one of the Adobe's developers has a free second to respond.

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

 In debug mode, are you pushing the file locally or out to this external
 mail server?
  
  
 Carson
 
  
 Carson Hager
 Cynergy Systems, Inc.
 http://www.cynergysystems.com http://www.cynergysystems.com/ 
  
 Email:  [EMAIL PROTECTED]
 Office:  866-CYNERGY
 Mobile: 1.703.489.6466
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Suzy Lawson
 Sent: Wednesday, July 12, 2006 10:21 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] SecurityErrorEvent thrown on server but not when
 run locally. Why?
 
 
 
 I have a Flex (final release) mail client that uploads attachments to
 an external mailserver (using FileReference). 
 
 It works fine when I run/debug locally, but it fails with the
 following error when I drop the swf file on my local webserver.
 
 SecurityErrorEvent text=Error #2049 type=securityError
 
 Obviously I need to look at the crossdomain.xml, but my question is
 though if the cross domian policy is not therethen how is it
 working in debug mode? Magic?! :-)
 
 I'm experiencing quite a few problems that work great when launching
 from FB but fail on the webserver. Some insight into how FB deploys
 these apps would help me a lot. 
 
 THanks.







 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/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: Validating inputs

2006-07-02 Thread Suzy Lawson
You need a root level XML tag...it should be like this:
mx:Model id=CheckModel
   myData
   StreetNum{propNum.text}/StreetNum
Street{propStreet.text}/Street
City{propCity.text}/City
 State{propState.text}/State
Zip{propZip.text}/Zip
 Price{propPrice.text}/Price
ListDate{listDate.text}/ListDate
ExpDate{expDate.text}/ExpDate
/myData
 /mx:Model
--- In flexcoders@yahoogroups.com, Jeremy Rottman [EMAIL PROTECTED]
wrote:

 I have just gotten Flex 2, and I am trying to convert my code from
 f2b3, and I have run into this error on my vaidation.
 
 I keep getting this error: Only one root tag is allowed.
 
 I get this on my models I use for validation. Here is a sample of on
 of my models. Anyone know how I can fix this?
 
   !-- VALIDATOR MODEL --
   mx:Model id=CheckModel
 StreetNum{propNum.text}/StreetNum
 Street{propStreet.text}/Street
 City{propCity.text}/City
 State{propState.text}/State
 Zip{propZip.text}/Zip
 Price{propPrice.text}/Price
 ListDate{listDate.text}/ListDate
 ExpDate{expDate.text}/ExpDate
 /mx:Model








 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/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: Custom Validator woes....

2006-06-28 Thread Suzy Lawson
Jason,
 Thanks. I guess I just got mixed up since it's a little unnatural to
instantiate a class to call a method that should be static! Also,
adding text to the errorString field automatically sets everything
redhere's my method should anyone search upon this message at a
future date:

private function validateField() : void {
var emails : Array = toField.text.split(,);
for(var j:uint=0; j  emails.length; j++)
{
   var emailVal : EmailValidator = new EmailValidator();
   var valResult : ValidationResultEvent =
emailVal.validate(emails[j]);
   if(valResult.type == ValidationResultEvent.INVALID)
   {
  toField.errorString=' + emails[j] + ' is not a valid
e-mail address.;
  return;
   }
}
}

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

 Suzy,
 
  
 
 The listener, source and trigger are all optional properties
 of Validators. You can just call the validate() function. Pass in the
 string you want to validate and it will return the ValidationResult. The
 validate() function is on the base class, Validator. 
 
  
 
 Jason
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Suzy Lawson
 Sent: Tuesday, June 27, 2006 10:54 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Custom Validator woes
 
  
 
 I'm building an e-mail client where the To: field can have a comma
 delimited array of e-mail addresses: [EMAIL PROTECTED]
 mailto:bob%40yahoo.com , [EMAIL PROTECTED] mailto:sarah%40yahoo.com 
 
 I have the validation occuring in the focusOut event, where I split
 the To: field so I get an Array of e-mail addresses. 
 var emails : Array = value.split(,);
 
 I then want to loop through and validate each value. However, there is
 no easy way to do this using the Flex SDK EmailValidator.as.
 
 Ideally, I would think I could call a static method which would return
 me a ValidationResultEvent, which I could then add to my component.
 However, everything with the SDK EmailValidator class requires a
 listener/source/trigger to be bound to it and no matter what I try to
 doit looks at that To: field as one big String...I can't give it
 just the iterated split value. 
 
 Any ideas on this?? Is there a way to statically call a method without
 having to pass in a reference to the EmailValidator object?








 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/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] Custom Validator woes....

2006-06-27 Thread Suzy Lawson
I'm building an e-mail client where the To: field can have a comma
delimited array of e-mail addresses: [EMAIL PROTECTED], [EMAIL PROTECTED]

I have the validation occuring in the focusOut event, where I split
the To: field so I get an Array of e-mail addresses. 
var emails : Array = value.split(,);

I then want to loop through and validate each value. However, there is
no easy way to do this using the Flex SDK EmailValidator.as.

Ideally, I would think I could call a static method which would return
me a ValidationResultEvent, which I could then add to my component.
However, everything with the SDK EmailValidator class requires a
listener/source/trigger to be bound to it and no matter what I try to
doit looks at that To: field as one big String...I can't give it
just the iterated split value. 

Any ideas on this?? Is there a way to statically call a method without
having to pass in a reference to the EmailValidator object?







 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/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: RTE htmlText img tags

2006-06-20 Thread Suzy Lawson
Here's a blog that allows you to display html within a browser. I was
able to combine this with an embedded iframe which I can hide and
display...to the user, it looks like a normal TextArea within Flash.

http://ebaggg.blogspot.com/

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

 --- In flexcoders@yahoogroups.com, phillmidwinter
 phillmidwinter@ wrote:
 
  Flex could be the one if they sort that issue.
 
 I agree. Once Adobe addresses this issue, they should also finally get
 rid of the font tag (in favour of a CSS solution) and add support
 for some more HTML tags. I don't ask for tables but ol should be
 supported at least.
 
 Stefan







 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/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] Aligning the control bar of a RichTextEditor

2006-06-20 Thread Suzy Lawson
I feel silly asking this question b/c it seems like something too
easy...but I can't get the control bar of a rich text editor to be
ABOVE the text field (by default it sits below the text box). 

I've tried everything including adding a style for controlBarStyleName
with vertical-align:top but that didn't work. Any ideas?

mx:RichTextEditor id=bodyField width=100%  height=100% /

Thanks in advance.





 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/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] Can we move Flexcoders to a new forum??

2006-06-16 Thread Suzy Lawson
Is anyone else pulling their teeth trying to find messages they posted
several days ago? I can see it in the mail-archives no problem, but
when I go back to yahoo to post a reply to a message...it's quite the
b*tch to find. I ended up just doing a search on my username and
clicking through all the pages of results and of course it wasn't there. 

Yahoo could at least have a link that says My Posts or something.
It'd also be nice if the posts were listed out like theserverside.com
(although more stable :-)

Since we're all developing in a slick technology, can't we dump tyhe
legacy forum?

Anyone else feel this way?

Cheers.





 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: mx.resources.Locale not compiling

2006-06-16 Thread Suzy Lawson
The compiler says that getCurrent() requires a parameter...the API
doesn't.

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

 On Thursday 15 June 2006 16:57, Suzy Lawson wrote:
  Locale.getCurrent().language
 
  However, this line doesn't compile. (I have it in a function called by
  the creationComplete method of my main mxml.
 
 In what way doesn't ?
 
 -- 
 Tom Chiverton
 
 
 
 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 St James's Court Brown Street Manchester M2 2JF.
 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 Law Society.
 
 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 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.
 
 We are pleased to announce that Halliwells LLP has been voted AIM
Lawyer of the Year at the 2005 Growth Company Awards








 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/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] mx.resources.Locale not compiling

2006-06-15 Thread Suzy Lawson
Directly from the Flex docs it says that you can get the current
Localeby calling:
 
Locale.getCurrent().language 

However, this line doesn't compile. (I have it in a function called by
the creationComplete method of my main mxml. 

Also, I have an international application where I want to swap in the
correct ResourceBundle upon the language a user selects upon login. 

The Flex 2.0 Beta 3 'Flex Developer's Guide' says that you need to
compile a seperate SWF file for each locale (language). Is that really
true???

That would make my life a nightmare anytime I need to make a change to
the application.

I also saw in a previous posting in this forum from Matt Chotin that
the method Locale.getCurrent().language returns the COMPILE-TIME
locale...that can't be true right? I guess I could use the
ExternalInterface API to get the real locale right?? 

Thanks in advance for your help/suggestions.






 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/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] Cannot debug or preview in browser

2006-06-13 Thread Suzy Lawson
I all of a sudden starting getting this error. I can no longer debug
or run any of my applications. I tried even re-installing FB 3 Beta
but no luck and creating a new Flex Project with code from CVS that I
know works. I do not have any warnings or compilation problems before
trying to debug. None of my methods are in the stack trace so I don't
know where to even begin:

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at
mx.containers::Panel/mx.containers:Panel::layoutChrome()[C:\dev\beta3\sdk\frameworks\mx\containers\Panel.as:1182]
at
mx.core::Container/mx.core:Container::updateDisplayList()[C:\dev\beta3\sdk\frameworks\mx\core\Container.as:2960]
at
mx.containers::Panel/mx.containers:Panel::updateDisplayList()[C:\dev\beta3\sdk\frameworks\mx\containers\Panel.as:1069]
at
mx.core::UIComponent/validateDisplayList()[C:\dev\beta3\sdk\frameworks\mx\core\UIComponent.as:5590]
at
mx.core::Container/validateDisplayList()[C:\dev\beta3\sdk\frameworks\mx\core\Container.as:2781]
at
mx.managers::LayoutManager/mx.managers:LayoutManager::validateDisplayList()[C:\dev\beta3\sdk\frameworks\mx\managers\LayoutManager.as:571]
at
mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation()[C:\dev\beta3\sdk\frameworks\mx\managers\LayoutManager.as:623]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\beta3\sdk\frameworks\mx\core\UIComponent.as:7554]
at
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\beta3\sdk\frameworks\mx\core\UIComponent.as:7497]





 Yahoo! Groups Sponsor ~-- 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/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: Viewing HTML

2006-06-09 Thread Suzy Lawson
Drome-
  Thank you so much for your help. I was able to modify your regEx to
make it work for my needs. I just needed to add in a piece for return
characters and form feeds as well. 

The regex i used was:
 var pattern:RegExp = /\n|\r|\f/gi
 var htmlstr : String  = htmlTextString.replace(pattern,  );
 var m:String = ExternalInterface.call(changeDocumentTitle,htmlstr);

And the code for the js method being:

SCRIPT LANGUAGE=JavaScript
function changeDocumentTitle(a) {
var generator=window.open('','name','height=400,width=500');
generator.document.write(a);
generator.document.close();
return successful;//this gets assigned to flex variable 'm'
above
}
/SCRIPT
--- In flexcoders@yahoogroups.com, drome.dario [EMAIL PROTECTED] wrote:

 Just a thing I missed: I think that the effect being experienced by 
 Suzy is a bug in the flex/flash serializer used by ExternalInterface.
 Let's hope that some adobe engineer read this or may exist any 
 effective place where to send a request for bug consideration?
 
 --- In flexcoders@yahoogroups.com, drome.dario drome.dario@ 
 wrote:
 
  Hi,
  It is not a problem with whitespace between tags, as Suzy said, it 
 is 
  a problem because of the cr/lf in the html code, let me explain:
  Supose that we have a string variable named param whose value 
  is hello Brian\nHow are you?, then when one uses, i.e., 
  ExternalInterface.call(jsFunc, param) flex tell the browser to 
  evaluate a chunk of javascript code similar to this one:
  
  jsFunc(hello Brian
  How are you?);
  
  that is a totally illegal javascript sentence.
  However, if the value of param is hello Brian\\nHow are you?, 
  then, the javascript code being evaluated would be:
  
  jsFunc(hello Brian\nHow are you?);
  
  which is good for the javascript interpreter.
  
  Thus, the solution is to replace all newline-chars with \\n 
 string:
  
  var pattern:RegExp = /\n/gi;
  htmlstr = htmlstr.replace(pattern, \\n );
  ExternalInterface.call(ShowHTML, htmlstr);
  
  In that way, the html's original layout is not changed and, the 
  most important: IT WORKS!
  
  --- In flexcoders@yahoogroups.com, Brian Riggs bringrags@ 
  wrote:
  
   One thing you could try is to assign the String to an (e4x) XML 
   object, set XML.ignoreWhitespace to true, and then output the 
  result 
   using XML.toXMLString().  This should cause whitespace between 
 tags 
   to be stripped out.
   
   -- Brian
   
   --- In flexcoders@yahoogroups.com, Suzy Lawson suzylawson@ 
   wrote:
   
Christophe's blog in this case doesn't help. His iFrame points 
 to 
  a
static HTML page.

I have a String like this:

//whether it be js or Flex...and my string has spaces b/w lines 
  just
like this
var htmlString : String = htmlhead

titletest/testbodymy 
body 
body/html;

there's no way I know of to assign this to a new window or Flex 
   object
and have it display correctly. If I make the String above lal 
 one
line, then it works OK.

--- In flexcoders@yahoogroups.com, tonyx_788 tonyx_788@ 
 wrote:

 hi Suzy i think Phil is talking about coenraets blog,
 this is the link   hope it helps
 
 http://www.coenraets.com/apps/iframe/index.htm
 
 **Saludos**
 Tony
 
 --- In flexcoders@yahoogroups.com, Phil Marston p.marston@ 
   wrote:
 
  Hi Suzy,
  
  I can't remember which blog I saw it on (one of the Adobe 
  guys I
 think), 
  but I saw an example using an IFrame to load the HTML in.  
  Then 
   a
 custom 
  component in the Flex movie sent messages to Javascript so 
  the 
   IFrame 
  always appeared in the right place and the right size over 
  the 
   Flex
 page 
  - it worked really nicely and sound like just what you 
 need - 
   sorry I 
  can't be more help, but perhaps this'll jog the memory of 
   someone
 who as 
  a memory!
  
  HTH
  
  Phil
  
  Suzy Lawson wrote:
   Hello Group-
 I have an app that receives XML data over the socket.
Specifically,
   it is data that is in 2 formats (plain text and HTML).
  
   The HTML that gets sent represents the FULL html code 
 (i.e. 
   the
   top-level 'html', 'meta', 'head', 'style', 'div', 'body' 
  tags
etc..).
  
   Sometimes the tags have namespaces and even 'class' 
  attributes
   assigned to them which relate to styles defined w/i the 
   style tag.
  
   For this reason, I can't just set the XML value to 
   the 'htmlText'
   attribute of a text field. 
  
   I tried using the ExternalInterface API and pass the HTML 
  (see
example
   below) to a javscript method which opens a new window and 
   calls
   'document.write(passedValueFromFlex)', but that does not 
  work 
   b/c of
   the extra rows between tags. If I manually remove the 
 white 
   spaces
   from each row where

[flexcoders] Re: Viewing HTML

2006-06-08 Thread Suzy Lawson
Yeah, that was Christophe's blog I believe. The problem with that is
the iFrame is loading an HTML page that already exists on a server. 

What I need is a way to display HTML stored in client-side memory as a
String. (wether it be in javascript or FLex).

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

 Hi Suzy,
 
 I can't remember which blog I saw it on (one of the Adobe guys I
think), 
 but I saw an example using an IFrame to load the HTML in.  Then a
custom 
 component in the Flex movie sent messages to Javascript so the IFrame 
 always appeared in the right place and the right size over the Flex
page 
 - it worked really nicely and sound like just what you need - sorry I 
 can't be more help, but perhaps this'll jog the memory of someone
who as 
 a memory!
 
 HTH
 
 Phil
 
 Suzy Lawson wrote:
  Hello Group-
I have an app that receives XML data over the socket. Specifically,
  it is data that is in 2 formats (plain text and HTML).
 
  The HTML that gets sent represents the FULL html code (i.e. the
  top-level 'html', 'meta', 'head', 'style', 'div', 'body' tags etc..).
 
  Sometimes the tags have namespaces and even 'class' attributes
  assigned to them which relate to styles defined w/i the style tag.
 
  For this reason, I can't just set the XML value to the 'htmlText'
  attribute of a text field. 
 
  I tried using the ExternalInterface API and pass the HTML (see example
  below) to a javscript method which opens a new window and calls
  'document.write(passedValueFromFlex)', but that does not work b/c of
  the extra rows between tags. If I manually remove the white spaces
  from each row where the HTML is one long String...it works fine. 
 
  Using a parser to handle that would be near impossible to create
  though. Does anyone have any ideas for a solution (to display
HTML) 
 
  Thanks.
 
 
 
  message
plainTextThis is the message./plainText
htmlTextlt;htmlgt;
 
 
 
  lt;headgt;
 
  lt;/headgt;
 
 
 
  lt;body lang=EN-USgt;
 
  This is the lt;bgt;messagelt;/bgt;.
 
  lt;/bodygt;
 
 
 
  lt;/htmlgt;
  /htmlText
  /message
 
 
 
 
 
 
 
  --
  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
 
 
 
   
 
 

 
 -- 
 __ 
 Phil Marston 
 Learning Technologist
 Learning Technology Unit 
 Edward Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, UK
 [EMAIL PROTECTED] Tel: +44(0)1224 273329 / +44(0)7798 723660 
 http://www.abdn.ac.uk/diss/ltu/pmarston/
 http://www.abdn.ac.uk/diss/ltu/
 __
 
 The University of Aberdeen Open Day 29th August 2006
 Booking is essential
 www.abdn.ac.uk/openday
 email [EMAIL PROTECTED]
 or call 0800 027 1495








 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/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] Viewing HTML

2006-06-07 Thread Suzy Lawson
Hello Group-
  I have an app that receives XML data over the socket. Specifically,
it is data that is in 2 formats (plain text and HTML).

The HTML that gets sent represents the FULL html code (i.e. the
top-level 'html', 'meta', 'head', 'style', 'div', 'body' tags etc..).

Sometimes the tags have namespaces and even 'class' attributes
assigned to them which relate to styles defined w/i the style tag.

For this reason, I can't just set the XML value to the 'htmlText'
attribute of a text field. 

I tried using the ExternalInterface API and pass the HTML (see example
below) to a javscript method which opens a new window and calls
'document.write(passedValueFromFlex)', but that does not work b/c of
the extra rows between tags. If I manually remove the white spaces
from each row where the HTML is one long String...it works fine. 

Using a parser to handle that would be near impossible to create
though. Does anyone have any ideas for a solution (to display HTML) 

Thanks.



message
  plainTextThis is the message./plainText
  htmlTextlt;htmlgt;



lt;headgt;

lt;/headgt;



lt;body lang=EN-USgt;

This is the lt;bgt;messagelt;/bgt;.

lt;/bodygt;



lt;/htmlgt;
/htmlText
/message






 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/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: Instantiation and setting problems - Example included

2006-06-06 Thread Suzy Lawson
OK, yeah, thanks. I was also facing the problem when I was
instantiating classes and setting properties w/o URLLoader. I created
a very simple example and I realized the problem was my misuse of
[Bindable]. I'm using Cairngorm and have all my VO objects in the
ModelLocator...well, my many VO objects don't have [Bindable] declared
within those classes. I lazily assumed that having [Bindable] declared
in the ModelLocator would take care of everything for me. Not the
case...once I added [Bindable] to each VO, everything appeared in the
UI correctly. Which makes sense b/c my trace statements had the value
but the UI was not updating. Sorry for the newbie brain fart!!  
Thanksa again Pete.

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

 Ah, right, much clearer now that I see this code.
 
 
 The issue is that a request to an HTTP URL via something like URLLoader
 is asynchronous, so the SWF script is not held up waiting for the
 network to respond. This means you will need to wait until the response
 comes back some time later, i.e. when the result handler is called,
 before accessing the generateXML property.
 
 So, I would architect this a little differently.
 
 Decouple the logic for loading XML into a service helper class and then
 when you get back a response pass that to a utility method to actually
 generate the XML.
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Suzy Lawson
 Sent: Monday, June 05, 2006 11:52 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Instantiation and setting problems - Example
 included
 
   Thanks for your response...this error is still haunting so I included
 a simple example to show my problem of class variables not being able to
 be set after I initialize a new class. Even if I move the generateXML
 method into the complete Handlerthe same null pointer is still
 thrown. Any ideas why??
 
 Top-level MXML file:
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
   mx:Script
   ![CDATA[
   private function setValue() : void
   {
   var testA : TestA = new TestA();
   xmlValue.text =
 testA.generateXML(55).toXMLString();
   }
   ]]
   /mx:Script
   mx:Button label=Set Value click=setValue()/
   mx:Label id=xmlValue/
 /mx:Application
 
 _-
 //TestA class
 package
 {
   import flash.events.Event;
   import flash.net.URLLoader;
   import flash.net.URLRequest;
 
   
   public class TestA
   {
   private var sampleXML : XML ;
   
   public function TestA() : void
   {
   var loader : URLLoader = new URLLoader();
 loader.addEventListener(Event.COMPLETE, completeHandler);
   loader.load(new URLRequest(sample.xml));
   }
   
   private function completeHandler(event:Event):void {
 sampleXML = new XML(event.target.data);
   }
   
   public function generateXML(value : String) : XML
   {
   [EMAIL PROTECTED] = value; // error is here b/c
 sampleXML is 'null'
   return sampleXML;
   }
   }
 }
 
 sample.xml file:
 test id= data=/
 --
 The exact error I get is:
 TypeError: Error #1009: Cannot access a property or method of a null
 object reference.
   at TestA/generateXML()[C:\flex\TestA.as:25]
   at sampleBug/sampleBug::setValue()[C:\flex\sampleBug.mxml:8]
   at sampleBug/___Button1_click()[C:\flex\sampleBug.mxml:12] 
 
 --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote:
 
  I'd have to see the code to really understand what is going on, but
 can you avoid doing anything in a constructor and use a button or
 something to trigger the work to see if that's the issue?
  
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of Suzy Lawson
  Sent: Friday, June 02, 2006 4:54 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Instantiation and setting problems
  
  I'm using the Cairngorm framework, so in the implented Command
 classes...
  
  For the XML problem, it's in a class that the Command class calls.
 The constructor load the XML file stored locally, then the
 completeHandler  calls XML(event.target.data) and assigns the XML to a
 local variable.
  
  However, when I instantiate this object, then call a method on it,
 the XML is still null. If I put a timer on it to stall for a second,
 it's there
  
  --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote:
  
   
   Where are you declaring these classes?

   
   -Original Message-
   From: flexcoders

[flexcoders] Re: Instantiation and setting problems - Example included

2006-06-05 Thread Suzy Lawson



 Thanks for your response...this error is still haunting so I
included a simple example to show my problem of class variables not
being able to be set after I initialize a new class. Even if I move
the generateXML method into the complete Handlerthe same null
pointer is still thrown. Any ideas why??

Top-level MXML file:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
layout=absolute
 mx:Script
  ![CDATA[
  private function setValue() : void
  {
   var testA : TestA = new TestA();
   xmlValue.text = testA.generateXML(55).toXMLString();
  }
  ]]
 /mx:Script
 mx:Button label=Set Value click=setValue()/
 mx:Label id=xmlValue/
/mx:Application

_-
//TestA class
package 
{
 import flash.events.Event;
 import flash.net.URLLoader;
 import flash.net.URLRequest;

 
 public class TestA
 {
  private var sampleXML : XML ;
  
  public function TestA() : void
  {
   var loader : URLLoader = new URLLoader();
 loader.addEventListener(Event.COMPLETE, completeHandler);
   loader.load(new URLRequest(sample.xml));
  }
  
  private function completeHandler(event:Event):void {
 sampleXML = new XML(event.target.data);
  }
  
  public function generateXML(value : String) : XML
  {
   [EMAIL PROTECTED] = value; // error is here b/c sampleXML is 'null'
   return sampleXML;
  }
 }
}

sample.xml file:
test id= data="">
--
The exact error I get is:
TypeError: Error #1009: Cannot access a property or method of a null
object reference.
 at TestA/generateXML()[C:\flex\TestA.as:25]
 at sampleBug/sampleBug::setValue()[C:\flex\sampleBug.mxml:8]
 at sampleBug/___Button1_click()[C:\flex\sampleBug.mxml:12] 

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

 I'd have to see the code to really understand what is going on, but
can you avoid doing anything in a constructor and use a button or
something to trigger the work to see if that's the issue?
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Suzy Lawson
 Sent: Friday, June 02, 2006 4:54 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Instantiation and setting problems
 
 I'm using the Cairngorm framework, so in the implented Command
classes...
 
 For the XML problem, it's in a class that the Command class calls.
The constructor load the XML file stored locally, then the
completeHandler calls XML(event.target.data) and assigns the XML to a
local variable.
 
 However, when I instantiate this object, then call a method on it,
the XML is still null. If I put a timer on it to stall for a second,
it's there
 
 --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote:
 
  
  Where are you declaring these classes?
  
  
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of Suzy Lawson
  Sent: Friday, June 02, 2006 12:01 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Instantiation and setting problems
  
  I anyone else having issues trying to set values on objects for
 newly instantiated objects in an object graph with 3 or more layers? 
  
  I have the following:
  
  ClassA {
  public var classB : ClassB;
  public var classC : ClassC;
  }
  
  ClassB {
  public var classD : ClassD;
  }
  
  ClassC {
  public var textVal : String='';
  }
  
  and i have a value sets in the ModelLocator (cairngorm) class like so:
  public var allClassAs : ArrayCollection; public var selectedClassA :
 ClassA;
  
  The problem is if I retrieve a single 'ClassA' from the collection
 of allClassAs using the ID of the selectedClassA, then try to make a
call like this:
  classA.classC.text=Whatever;
  
  The mxml field I have bound to that value never displays and I get
 the following debug error.
  
  error during evaluation
  no such variable: classA.classC.textVal
  
  This kind of makes sense since classC wasn't initialized yet, so
 even if I change ClassA to be:
  ClassA {
  public var classB : ClassB = new ClassB(); public var classC :
 ClassC = new ClassC(); }
  
  I still get the same error. In the UI, if I click back, it appears
 correctly, but the first time it always fails. It seems like the set
  (classA.classC.text=Whatever;) is getting called faster then the
 object can be initialized (constructed). 
  
  I've had similar problems when calling:
  var myXML = new XML(event.target.data); [EMAIL PROTECTED]3232;
  
  When I debug this, myXML is still null when the 2nd line is called.
 A work around is to instantiate the XML on startup so the XML is
there before calling the set on @ID, but means more memory. 
  
  Anyone else hitting these issues? 
  
  
  
  
  
  
   Yahoo! Groups Sponsor
 ~-- Everything you need is one click away. 
Make Yahoo! your home page now.
  http://us.click.yahoo.com/AHchtC/4FxNAA/yQL

[flexcoders] Instantiation and setting problems

2006-06-02 Thread Suzy Lawson



I anyone else having issues trying to set values on objects for newly
instantiated objects in an object graph with 3 or more layers? 

I have the following:

ClassA {
 public var classB : ClassB;
 public var classC : ClassC;
}

ClassB {
 public var classD : ClassD;
}

ClassC {
 public var textVal : String='';
}

and i have a value sets in the ModelLocator (cairngorm) class like so:
public var allClassAs : ArrayCollection;
public var selectedClassA : ClassA;

The problem is if I retrieve a single 'ClassA' from the collection of
allClassAs using the ID of the selectedClassA, then try to make a call
like this:
classA.classC.text=Whatever;

The mxml field I have bound to that value never displays and I get the
following debug error.

error during evaluation 
no such variable: classA.classC.textVal

This kind of makes sense since classC wasn't initialized yet, so even
if I change ClassA to be:
ClassA {
 public var classB : ClassB = new ClassB();
 public var classC : ClassC = new ClassC();
}

I still get the same error. In the UI, if I click back, it appears
correctly, but the first time it always fails. It seems like the set
(classA.classC.text=Whatever;) is getting called faster then the
object can be initialized (constructed). 

I've had similar problems when calling:
var myXML = new XML(event.target.data);
[EMAIL PROTECTED]3232;

When I debug this, myXML is still null when the 2nd line is called. A
work around is to instantiate the XML on startup so the XML is there
before calling the set on @ID, but means more memory. 

Anyone else hitting these issues? 










--
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] Re: flex 1.5 : how to lock Application during popup creation process ?

2006-06-02 Thread Suzy Lawson



You can create a global public variable Boolean that you set to true
when the window is open and set to false when it closeed.

var public isPoppedOpen : Boolean = false;

Then when a user clicks the button, set it to true.
Have logic in your window pop method that checks if this value is
true, if so, then do nothing.

Then in the close button of the PopUp Window, set the variable back to
false;

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

 I use a lot of PopUpManager.createPopUp( ) in order to avoid 
 background interface's buttons etc.. this works well ! the use can 
 only interact with the PopUp-ed object...
 
 But I noticed that when a user click a second time on the same button 
 well... the popup is created two times ...
 I tried to use, like shown on Flex Explorer Example :
 
 this is called just because calling createPopUp :
 
 function setBlockingCursor() {
 // Create an empty UIObject popup that blocks user input
 inputBlocker = popupWindow(UIObject);
 CursorManager.setBusyCursor();
 }
 
 then with the popup-ed creationcomplete event :
 
 function removeBlockingCursor() {
 // Remove our blocking popup
 inputBlocker.deletePopUp();
 CursorManager.removeBusyCursor();
 }
 
 so I got the cursor but the user still can double click on the
button ...
 
 Any go way to avoid this ?
 
 I also do not understand how I can 'place' the popUp as my application 
 is centered on the window browser ... so using .x = 0 from the
popup it 
 will appear at left when someOtherCanvasInApplication.x = 0 but it 
 rights (relative to its parent)











--
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] Re: FLEX 1.5 TabNavigator issue

2006-06-01 Thread Suzy Lawson



The RIA book has a lot of help in this. Here's a code example I use to
change a Button's fontSize at runtime. You can adjust accordingly.

mx.styles.StyleManager.styles.Button.setStyle(fontSize, 9);

One note, doing style changes on the fly in 1.5 is very expensive. I
had an app where I change the entire layout with a button click and it
took approx. 10 seconds. 

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

 Thanks for reply
 
 css is a static solution ,what i need is to change it in runtime
using 
 ActionScript
 
 
 
 From: Tom Chiverton [EMAIL PROTECTED]
 Reply-To: flexcoders@yahoogroups.com
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] FLEX 1.5 TabNavigator issue
 Date: Thu, 1 Jun 2006 11:52:11 +0100
 
 On Thursday 01 June 2006 11:40, naveen kumar wrote:
   Hi
  
   Trying form a long time , if knows pls help me,
  
   How to change the tab font color in the TabNavigator
Container in
   FLEX1.5
 
 http://weblogs.macromedia.com/mc/archives/FlexStyleExplorer.html
any help ?
 
 I imagine you just need a style sheet linked in with something like
 TabNavigator {
  font-family: times
  }
 in it.
 --
 Tom Chiverton
 
 
 
 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society.
 
 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 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.
 
 We are pleased to announce that Halliwells LLP has been voted AIM
Lawyer of 
 the Year at the 2005 Growth Company Awards
 
 
 _
 Shah Rukh fan? Know all about the Baadshah of Bollywood. On MSN Search 
 http://server1.msn.co.in/profile/shahrukh.asp












--
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] Re: Trouble getting started with cairngorm-0.99

2006-05-16 Thread Suzy Lawson



Doug,
 You have a namespace issue. Few things to check:

1.) Make sure that in your flex-config.xml, you have this in your
namespaces area:
namespace uri=http://www.iterationtwo.com/cairngorm
 manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest
/namespace

2.) make sure the cairngorm-manifest.xml file is actually in the
web-inf/flex dir.

3.) That the 'cairngorm.swc' file is in the dir:
\WEB-INF\flex\user_classes

restart your server and you should be good to go.

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

 Hi,
 
 I'm having trouble getting started with cairngorm. I tried to run
the login
 example, and it bombed on me. I'm running Flex 1.5. Below is the error.
 
 
 7 Errors found.
 
 Error *D:\inetpub\daaroot\testbed\Flex\cairngorm-

0.99\samples\login\webapp\org\nevis\cairngorm\samples\login\business\Services.mxml:22
 * Namespace http://www.iterationtwo.com/cairngorm has not been
associated
 with component manifest.
 
 
 
 Error *D:\inetpub\daaroot\testbed\Flex\cairngorm-

0.99\samples\login\webapp\org\nevis\cairngorm\samples\login\business\Services.mxml:22
 * No type for element
http://www.iterationtwo.com/cairngorm:ServiceLocator
 
 
 
 Error *D:\inetpub\daaroot\testbed\Flex\cairngorm-

0.99\samples\login\webapp\org\nevis\cairngorm\samples\login\business\Services.mxml:22
 * Unexpected root element 
 http://www.iterationtwo.com/cairngorm:ServiceLocator does not extend
 MovieClip
 
 
 
 Error *D:\inetpub\daaroot\testbed\Flex\cairngorm-
 0.99\samples\login\webapp\Index.mxml:43* Don't know how to parse
element 
 org.nevis.cairngorm.samples.login.business.*:Services. It is not a
known
 type or a property of mx.core.Application.
 
 
 
 Error *D:\inetpub\daaroot\testbed\Flex\cairngorm-
 0.99\samples\login\webapp\Index.mxml:46* Don't know how to parse
element 
 org.nevis.cairngorm.samples.login.control.*:DemoControl. It is not
a known
 type or a property of mx.core.Application.
 
 
 
 Error *D:\inetpub\daaroot\testbed\Flex\cairngorm-
 0.99\samples\login\webapp\Index.mxml:50* Don't know how to parse
element 
 org.nevis.cairngorm.samples.login.view.*:IndexViewHelper. It is not
a known
 type or a property of mx.core.Application.
 
 
 
 Error *D:\inetpub\daaroot\testbed\Flex\cairngorm-
 0.99\samples\login\webapp\Index.mxml:53* Don't know how to parse
element 
 http://www.macromedia.com/2003/mxml:ViewStack. It is not a known
type or a
 property of mx.core.Application.











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





  




  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Re: xml framework

2006-05-15 Thread Suzy Lawson



Sorry, for clarification, I'm very familar with the Cairngorm
framework. This would be *completely* outside of it. This XML
framework would handle solely converting xml to objects and vice
versa. In my mind, the xml framework would be called from the Command
class of caingorm before calling URLLoader

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

 I'm building a Flex 2 app that has all incoming/outgoing data as XML
 (custom structured...not like an RSS for example). The XML requires
 namespaces and will likely have changes in structure. There will be
 multiple incoming XML formats (e.g, Product, Customer, Contact,
 Calendar Entry).
 
 With that said, it seems I need to build a framework to handle
 incoming XML, forward it to the correct handler to transfer the data
 to it's related typed class, and add the typed class to the view. The
 framework will also re-create the XML before sending the request.
 Should be easy with E4x.
 
 Seems straight-forward enough but seems odd there doesn't seem to be
 any documentation or existing frameworks that completely abstract the
 xml layer from the UI. Being a java developer, I look forward to
 writing it (and posting it publicly)...just want to make sure I'm not
 re-inventing the wheel. Seems like a common need that no one has
 addressed. 
 
 If people are using the returned XML as your data object in the view,
 it could be cumbersome to fix in all the views if the structure changes.











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





  




  
  
  YAHOO! GROUPS LINKS



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



  












[flexcoders] Re: xml framework

2006-05-15 Thread Suzy Lawson



Xavi, that's exactly what I was thinking. An external xml (config)
file would have a list of items, where each item contains a regular
_expression_ and the handler AS class name. Then the framework would
implement a Strategy to forward the XML object to the correct handler
based on the name space and the reg _expression_. Should be slick! 


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

 I'm also interested on some kind of library like this. Today I've been
 looking at how digester
(http://jakarta.apache.org/commons/digester/) could
 be implemented on AS3
 
 Cheers
 x.
 
 On 5/15/06, Suzy Lawson [EMAIL PROTECTED] wrote:
 
  Sorry, for clarification, I'm very familar with the Cairngorm
  framework. This would be *completely* outside of it. This XML
  framework would handle solely converting xml to objects and vice
  versa. In my mind, the xml framework would be called from the Command
  class of caingorm before calling URLLoader
 
  --- In flexcoders@yahoogroups.com, Suzy Lawson suzylawson@ wrote:
  
   I'm building a Flex 2 app that has all incoming/outgoing data as XML
   (custom structured...not like an RSS for example). The XML requires
   namespaces and will likely have changes in structure. There will be
   multiple incoming XML formats (e.g, Product, Customer, Contact,
   Calendar Entry).
  
   With that said, it seems I need to build a framework to handle
   incoming XML, forward it to the correct handler to transfer the data
   to it's related typed class, and add the typed class to the
view. The
   framework will also re-create the XML before sending the request.
   Should be easy with E4x.
  
   Seems straight-forward enough but seems odd there doesn't seem to be
   any documentation or existing frameworks that completely
abstract the
   xml layer from the UI. Being a java developer, I look forward to
   writing it (and posting it publicly)...just want to make sure
I'm not
   re-inventing the wheel. Seems like a common need that no one has
   addressed.
  
   If people are using the returned XML as your data object in the
view,
   it could be cumbersome to fix in all the views if the structure
changes.
  
 
 
 
 
 
 
 
  --
  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
 
 
 
 
 
 
 
 
 
 
 -- 
 Xavi Beumala
 http://www.code4net.com











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





  




  
  
  YAHOO! GROUPS LINKS



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



  












[flexcoders] newbie: Binary Socket general functionality

2006-05-11 Thread Suzy Lawson



I've been reading through the livedocs and still have very basic
questions regarding how the (binary) flash.net.Socket is used.

I think I'm getting confused b/w sending binary data over the socket
and sending binary (or text) data over a binary protocol.

For example, is it possible to send binary documents (e.g. pdfs and
jpegs) through this socket via the writeUTFBytes() method? If so, when
something binary is sent/received...how does it know what type it
is...i.e. jpeg/video stream. 

Also, can I stream video through this socket if I have a non Flash
Media Server implementation managing everything? Got a lot to work out
so I appreciate any feedback. 

Thanks in advance for any help.

 











--
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] Re: Data Grid Probles

2006-05-11 Thread Suzy Lawson



You can also try making the dataprovider point to a variable type of
ArrayCollection in a static class that used the [Bindable] tag (like
in Cairngorm's ModelLocator.as). Any changes to the items in this
variable will be instantly updated in the datagrid.

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

 try re-assigning the xml data source to Datagrid.dataProvider
 
 or call DataGrid.modelChangedHandler().
 
 
 
 On 5/11/06, jymy788 [EMAIL PROTECTED] wrote:
 
  Hi, only a question that it's very important to me:
 
  How can i refresh data in DataGrid?
 
  I have an xml data file in a xmModel. When i assign it to my datagrid
  there is no problem but when i modify this xml file or when i rebuilt
  it i can't refresh datagrid data that it's binding by dataprovider.
 
  An ideas?
 
  Any example to solve it please?
 
 
 
 
 
 
 
 
 
  --
  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] Re: mx:ComboBox selectedItem ={blah} (flex 2)

2006-04-28 Thread Suzy Lawson



selectedItem={items.getItemAt(3).fieldName}

--- In flexcoders@yahoogroups.com, John C. Bland II 
[EMAIL PROTECTED] wrote:

 I am working with some a combo and the custom component listing the 
states
 works perfectly fine for simply saying: selectedItem={
 items.selectedItem.state}. It will change and work as expected 
(when the
 grid is clicked).
 
 Well, that component is nothing but a mx:dataProvider with 
mx:String
 values inside. So the selectedItem is a string (when calling
 mycombo.selectedItem) as opposed to an object.
 
 My question is, when you have an object as the dp to a combo (or 
any other
 component with selectedItem) how do you set the selected item 
without doing
 a loop + if to find the proper selectedIndex?
 
 Thanks,
 
 --
 John C. Bland II
 I do what I can do when I can do it. - Chris Tucker, Money Talks
 
 http://www.gotoandstop.org - Home of FMUG.az











--
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] Re: Full Screen Flex App

2006-04-27 Thread Suzy Lawson



run this command from DOS (you could make it a batch file too)

iexplore -k http://yourdomain/myapp.mxml

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

 Alex MacCaw wrote:
  I was just wondering if anyone had a few tips on making a flex app
fullscreen (that is when the swf is run directly without a browser).
  I've tried this under the Application tag:
  fscommand(fullscreen,true); 
  When the application is initially loaded it isn't full screen, but
if you click on a menu item, it becomes so.
  Basically what I'm saying is that fscommand fullscreen works, but
not on the initial load.
  Is there a way of doing this?
  Thanks in advance
  Alex
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
 

  YAHOO! GROUPS LINKS
 
  * Visit your group flexcoders
  http://groups.yahoo.com/group/flexcoders on the web.
  * To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
  
mailto:[EMAIL PROTECTED]
  * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
  Service http://docs.yahoo.com/info/terms/.
 
 
 

 
 try puttin fscommand under initlize or creationcomplete












--
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] List dataProvider issue (don't wanna say bug!!)

2006-04-27 Thread Suzy Lawson



I broke this issue down to a VERY simple example and the problem is
still there.
When I create an ArrayCollection of items and assign it to the data
provider of a List. The very first item in the list cannot be
selected. Very Weird. If I change my collection of custom VO objects
to generic {} type objects, it works fine. I've tried messing with the
[Bindable] meta tag to no avail. Anyone come across anything like
this?? I don't want to use generic objects as a work around.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
 xmlns=* layout=absolute creationComplete=sampleData();
mx:Script
 ![CDATA[
  import mx.collections.ArrayCollection;
  import org.ItemVO;
  
  [Bindable] 
  private var items : ArrayCollection ;
   
 private function sampleData()
  {
   var item1 : ItemVO = new ItemVO();
   var item2 : ItemVO = new ItemVO();
   item1.name = item1 name;
   item1.type = one; 
   item2.name = item2 name;
   item2.type = two; 
   items = new ArrayCollection([item1,item2]);
  }
  
 ]]
/mx:Script
 mx:Panel id=test title=Item Title
  mx:List id=columnList dataProvider={items} labelField=name/
 /mx:Panel
/mx:Application


the ItemVO class..
--
package org {
 //I have the same effect whether [Bindable] is here or not
 public class ItemVO {
  public var name : String;
  public var type : String;
 }
}










--
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] Re: List dataProvider issue

2006-04-27 Thread Suzy Lawson



Thanks Gordon. Changing the class to dynamic also fixed it per a
blog i found from your help.

http://www.simb.net/blog/index.cfm/2006/4/19/Using-Flex-2-List-Controls-with-ColdFusion-Components

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

 Make ItemVO implement IUID.
 
 - Gordon
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Suzy Lawson
 Sent: Thursday, April 27, 2006 5:48 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] List dataProvider issue (don't wanna say bug!!)
 
 I broke this issue down to a VERY simple example and the problem is
 still there.
 When I create an ArrayCollection of items and assign it to the data
 provider of a List. The very first item in the list cannot be
 selected. Very Weird. If I change my collection of custom VO objects
 to generic {} type objects, it works fine. I've tried messing with the
 [Bindable] meta tag to no avail. Anyone come across anything like
 this?? I don't want to use generic objects as a work around.
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
  xmlns=* layout=absolute creationComplete=sampleData();
 mx:Script
  ![CDATA[
   import mx.collections.ArrayCollection;
   import org.ItemVO;
   
   [Bindable] 
   private var items : ArrayCollection ;

  private function sampleData()
   {
var item1 : ItemVO = new ItemVO();
var item2 : ItemVO = new ItemVO();
item1.name = item1 name;
item1.type = one; 
item2.name = item2 name;
item2.type = two; 
items = new ArrayCollection([item1,item2]);
   }
   
  ]]
 /mx:Script
  mx:Panel id=test title=Item Title
   mx:List id=columnList dataProvider={items}
 labelField=name/
  /mx:Panel
 /mx:Application
 
 
 the ItemVO class..
 --
 package org {
 //I have the same effect whether [Bindable] is here or not
  public class ItemVO {
   public var name : String;
   public var type : String;
  }
 }
 
 
 
 
 
 
 --
 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] Re: How to user setInterval() to call the remoteobject method?

2006-04-25 Thread Suzy Lawson



Or changing the method to like this would work: (notice the 
parenthesis)

function test(){
 setInterval(getUser(),3000);
}

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

 Try calling setInterval like this, intervalID =
 setInterval(this,getUser,1); Also, in the getUser function 
add
 clearInterval(intervalID);
 
 --Josh
 
 On 4/25/06, loveewind [EMAIL PROTECTED] wrote:
 
  Hi All,
  I have a piece of code below:
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml
  initialize=test()
  mx:RemoteObject id=EJBUserProxy
  source=net.wind.proxy.UserProxy 
  mx:method name=getUserInfo result=setCurrentUser
  (event.result)/mx:method
 
  /mx:RemoteObject
  mx:Script
  ![CDATA[
 
  function test(){
  setInterval(getUser,1);
  }
  function getUser(){
  EJBUserProxy.getUserInfo(qaz);
  }
  function setCurrentUser(obj){
  if(obj!=null)
  mx.controls.Alert.show(execute);
  }
 
 
 
  ]]
  /mx:Script
  /mx:Application
 
  it seems the setInterval function can't execute remoteobject 
method,
  Who has such experience,wait for your help,
  Thanks
 
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 
 
 
 
 











--
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] Re: Autocompletion textfield

2006-04-25 Thread Suzy Lawson



Sho posted a nice example in Flex 2.0. It works pretty much the same 
way in 1.5. 
http://weblogs.macromedia.com/sho/archives/2006/04/new_version_of.cfm

mx:TextInput id=myBox keyDown=callWebService();/

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

 Dear all, 
 is there any help about the autocompletion textfield in Flex
 1.5, basically i want to use web service to refresh ,can somebody have
 any resource about that?
 thx
 capho











--
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] Re: Autocompletion textfield

2006-04-25 Thread Suzy Lawson



Capho-
 Sorry, to elaborate more. You could have a canvas below the text 
box that by default is set to visible=false...and then appears as 
data comes back...something like this. Hope this helps get you 
going

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml
mx:Script
![CDATA[

function callIt()
{
 //call webservice
 //myList.dataprovider=...
} 
]]
/mx:Script
mx:TextInput id=myTextBox keyDown=callIt();/
mx:Canvas visible={myTextBox.text.length  0} width=100 
height=50
 mx:List id=myList /mx:List
/mx:Canvas
/mx:Application 

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

 Sho posted a nice example in Flex 2.0. It works pretty much the 
same 
 way in 1.5. 
 
http://weblogs.macromedia.com/sho/archives/2006/04/new_version_of.cfm
 
 mx:TextInput id=myBox keyDown=callWebService();/
 
 --- In flexcoders@yahoogroups.com, sinacapho capmatch@ wrote:
 
  Dear all, 
  is there any help about the autocompletion textfield in 
Flex
  1.5, basically i want to use web service to refresh ,can somebody 
have
  any resource about that?
  thx
  capho
 











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





  




  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Re: Flex 1.5 - Cairngorm .99 - Binding VO to TextInput help please

2006-04-25 Thread Suzy Lawson



Have you tried debugging? set a breakpoint in your onResult of the 
Command class and where you explictly set the selectedUser in the 
model locator. Once that line has passed, you should stop again then 
check your text box to see if it has the value. I find I get a lot 
further debugging then using trace statements. Then repeat the 
process with the second hit when the behavior works OK. This should 
hopefully identify your issue.

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

 Thanks Suzy but my problem isn't with populating a combobox...my
 combobox of users populates just fine, when I select a user from the
 list and the user is fetched, the user object whose fields are 
bound to
 various textinput fields in my form are not shown...it's only when I
 'touch' the file and refresh my browser, is the user information 
shown
 correctly in the textinput components of my form...I can't grasp why
 this would be happening...
 
 robert l. brueckmann
 vice president
 merlin securities
 595 madison avenue
 new york, ny 10022
 p: 212.822.4821
 f: 212.822.4820
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Suzy Lawson
 Sent: Monday, April 24, 2006 7:32 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flex 1.5 - Cairngorm .99 - Binding VO to
 TextInput help please
 
 Roger,
 I have faced the same problem. The reason is that when you deploy 
it
 the server for the first time, nothing is compiled. So in your 
initial
 request, your application returns the users before it has compiled 
and
 created the component...so your call to set the combo box with user
 silenty fails. When you hit refresh, since everything is already
 compiled, it can set the combobox with the data in time.
 
 Put your logic to fetch the XML user in the creationComplete method 
of
 your mx:Combobox...or somewhere where you know it is created. 
 
 hope this helps. cheers.
 
 --- In flexcoders@yahoogroups.com, Robert Brueckmann
 rbrueckmann@ wrote:
 
  I tried searching the archives and couldn't find anything 
relevant to
  what we're doing here, so I'm hoping someone can explain 
something:
  
  
  
  
  
  1. User logs in
  
  2. XML is returned with all applications user has access to
  
  3. Tab Navigator component is generated on the fly with tabs
  labeled according to application names in XML returned from DB.
 Actual
  MXML component each tab is linked to is not yet created upon 
creation
 of
  the TabNavigator...ONLY when the user clicks on a tab, is the
  appropriate MXML component created.
  
  4. One of the tabs is a user admin form where an admin user 
can
  select any of the system users from a list and edit their 
information
  
  5. All fields in this form are bound to
  ModelLocator.selectedUser.someField
  
  6. Admin user selects user from list and in the result 
method of
 my
  command class that retrieves the user, the code is simply
  ModelLocator.selectedUser = UserAdminVO(event.result);
  
  7. The VERY first time the application is deployed and the
  application server restarted, and the application compiles for the
 first
  time, the TextInput components DO not get updated with the bound
  selectedUser's information. My trace statements in the command 
class
  SHOW the selectedUser object getting set and the field values 
there,
 but
  my TextInput components do not reflect this information.
  
  8. If I open up FlexBuilder and open my UserAdmin.mxml file,
 simply
  hit the spacebar, and save it (the file is automatically uploaded 
to
 my
  app server) and I hit the refresh button on my browser, go to the 
User
  Admin tab and select a user, magically, the user info is 
displayed as
 it
  should.
  
  9. If I try to redploy the code and restart the app server 
again,
  I'm back to square one.
  
  
  
  
  
  What the HECK is going on here? It's like a bug in the binding 
of a
 VO
  to the TextInput components does not work upon initial 
compilation on
  dynamically created components...not until I TOUCH the component 
MXML
  file and refresh the browser, forcing the Flex compiler to 
recompile
 the
  app, do the fields actually show the properly bound information.
  
  
  
  Any thoughts?
  
  
  
  robert l. brueckmann
  
  vice president
  
  merlin securities
  
  595 madison avenue
  
  new york, ny 10022
  
  p: 212.822.4821
  
  f: 212.822.4820
  
  
  
  This message contains information from Merlin Securities, LLC, or
 from one of its affiliates, that may be confidential and privileged.
 If you are not an intended recipient, please refrain from any
 disclosure, copying, distribution or use of this information and 
note
 that such actions are prohibited. If you have received this
 transmission in error, please notify the sender immediately by
 telephone or by replying to this transmission.
  
  Merlin Securities, LLC is a registered broker-dealer. Services

[flexcoders] Cairngorm and TitleWindow issue

2006-04-13 Thread Suzy Lawson
I have a screen where a user can click an item in a List which pops
open a TitleWindow containing a form to update and save the data of
the items clicked. When the user clicks Save...the dispatched event
never reaches the FrontController (with the code like so):

// MyEvent extends CairngormEvent
var event : MyEvent = new MyEvent ( eventVO );
dispatchEvent( event );

HOWEVER...it does work if I do this. 

var event : MyEvent = new MyEvent ( eventVO );
Application.application.dispatchEvent( event );

It seems like the core Application can't pick up events dispatched
from a TitleWindow. Is this a known issue or am i missing something??

Thanks.






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

* 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: Salary Check

2006-04-04 Thread Suzy Lawson
I meant that Flex's presence was becoming known at an alarming rate.
Probably not the best choice of words. A year ago no companies I know
had heard of it, now almost every company has at least heard of it and
many are researching it to replace their Struts based webapps.

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

 Maybe if it involves a J2EE backend, charge as per J2EE developer
 
 If you know Flash Authoring + a Designer as well add more?
 
 btw, is Flex growing at an alarming rate??, doesn't seem like it at 
 the moment to be honest 
 
 --- In flexcoders@yahoogroups.com, Kevin Ewok suzylawson@ 
 wrote:
 
  With Flex growing an alaming rate,I wanted to a check with the
  community  regarding salary rates (both contract and W-2). I've been
  coding in Flex 1.5 for over a year and have worked with the Beta 
 for a
  month or two. I am quite confident in my skills and easily landed a
  $70/hour gig as a contractor. I also have been a back-end Java
  developer for the last 5 years. Having said that, job offers are
  starting to pour in for Flex work and they demand to know a salary
  rate first. I'm a bit hesitant to scare off employers with lower to
  mid 6-digit salary requirements so I thought I'd ping the community
  first. I'm based on the US east coast.
  
  Anyone have any thoughts? I apologize to the community if they don't
  like this question in the technical forum...I just thought it would
  help since there isn't any really anywhere else to go for help on 
 this.
  
  Thanks.
 







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

* 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] Converting Java POJO to Actionscript Errors

2005-05-27 Thread suzy lawson
Hari-
  THanks for your response. I tried that but I got a
compilation error that there is no method with the
name MyPojo. I suppose that means I have to manually
write the underlying ActionScript class for my Java
POJO?

That just seems like a really bad implementation
design b/c if MyPojo Java class changes, then I have
to manually change my ActionScript class. urr...what
am I missing?! 

--- Doodi, Hari - BLS CTR [EMAIL PROTECTED] wrote:
 Try this.
 
 mx:script...
 var newObj:Object = new MyPojo(); // constructor of
 your POJO
 function addToGrid() {
   newObj = remoteObj.getNewJob();  
   myDataGrid.addItem(newObj); 
 }
 /mx:script
 
 Thanks!
 Hari
 
 -Original Message-
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Kevin Ewok
 Sent: Friday, May 27, 2005 9:46 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Converting Java POJO to
 Actionscript Errors
 
 Gang-
   I'm a newbie and all the flexdocs on MM's site
 couldn't give me a
 concrete answer. I have a datagrid that is populated
 from an ArrayList
 of POJO's (using the remote object). That works
 fine. 
 
 I then have another method that is called 30 seconds
 later then
 returns a single POJO (of the same type from the
 POJOs returned in the
 first method). I then try to add it to my datagrid
 using the
 myDatagrid.addItem(newObj), but I get the below
 debug error.
 
 Warning: Reference to undeclared variable,
 '_global.com.MyPojo'
   at mx_utils_ClassUtil::findClass()
 Warning: valueOf is not a function
   at mx_utils_ClassUtil::getFlexClass() 
 
 Is there a special way I need to declare 'newObj'
 (which I pass into
 the datagrid.addItem() method), or do I have to
 explicity write the
 AS-equilavent class of my Java POJO class?  
 
 I would think Flex could convert this class for me,
 but I'm obviously
 missing an important step to add it to the
 datagrid/dataprovider.
 Thanks in advance for your help.
 
 mx:script...
 var newObj:Object;
 function addToGrid() {
   newObj = remoteObj.getNewJob();  
   myDataGrid.addItem(newObj); 
 }
 /mx:script
 
 mx:DataGrid id=myDataGrid
 dataProvider={remoteObj.getAll.result}
 ...
 
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/


 
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] Converting Java POJO to Actionscript Errors

2005-05-27 Thread suzy lawson
Hari, 
  Thanks...I'll give this a shot. So my question is,
why do I have to write a matching AS class to match my
POJO? When I populate my Datagrid from the remote
object (arraylist of POJOs), I din't have to write any
AS classes.

--- Doodi, Hari - BLS CTR [EMAIL PROTECTED] wrote:

 Hi,
   First couple of questions - did you register your
 POJO with AS class
 using Object.registerClass( ) method? 
   What is the constructor method of you Pojo ?
 After both of above are in place(implemented) then
 you can create new object
 of your POJO type and assign your newly returned
 object to it and then add
 this new object to your datagrid using
 myDataGrid.addItem( );
 
 This is what I did.
 AS class looks like
 class classes.MyPojo
 {
 public var myArray:Array;
 private static var registered:Boolean =
 Object.registerClass(full path
 of you java class goes here, classes. MyPojo); 
   
 }
  In my MXML you can ignore statements which sets
 initial attribute
 values 
 function addRow()
   {
   var oNewItem:Object = new MyPojo ();  
 oNewItem.adj_num = 12 ;
 oNewItem.adj_type =  ;
 oNewItem.adj_category =  ;
 oNewItem.adj_amt_terms_desc =  Doodi;
 oNewItem.adj_reporter_applied_flag = N;
 oNewItem.adj_sign = Additive;
 oNewItem.adj_factor =  ;
 oNewItem.adj_order_applied = 12;
 
   myDataGrid.addItem(oNewItem);
   
   focusNewRow();
   doLater(this,focusNewRow);
   }
 Thanks!
 Hari
 
 -Original Message-
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
 Behalf Of suzy lawson
 Sent: Friday, May 27, 2005 10:22 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Converting Java POJO to
 Actionscript Errors
 
 Hari-
   THanks for your response. I tried that but I got a
 compilation error that there is no method with the
 name MyPojo. I suppose that means I have to
 manually
 write the underlying ActionScript class for my Java
 POJO?
 
 That just seems like a really bad implementation
 design b/c if MyPojo Java class changes, then I have
 to manually change my ActionScript class. urr...what
 am I missing?! 
 
 --- Doodi, Hari - BLS CTR [EMAIL PROTECTED] wrote:
  Try this.
  
  mx:script...
  var newObj:Object = new MyPojo(); // constructor
 of
  your POJO
  function addToGrid() {
newObj = remoteObj.getNewJob();  
myDataGrid.addItem(newObj); 
  }
  /mx:script
  
  Thanks!
  Hari
  
  -Original Message-
  From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On
  Behalf Of Kevin Ewok
  Sent: Friday, May 27, 2005 9:46 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Converting Java POJO to
  Actionscript Errors
  
  Gang-
I'm a newbie and all the flexdocs on MM's site
  couldn't give me a
  concrete answer. I have a datagrid that is
 populated
  from an ArrayList
  of POJO's (using the remote object). That works
  fine. 
  
  I then have another method that is called 30
 seconds
  later then
  returns a single POJO (of the same type from the
  POJOs returned in the
  first method). I then try to add it to my datagrid
  using the
  myDatagrid.addItem(newObj), but I get the below
  debug error.
  
  Warning: Reference to undeclared variable,
  '_global.com.MyPojo'
  at mx_utils_ClassUtil::findClass()
  Warning: valueOf is not a function
  at mx_utils_ClassUtil::getFlexClass() 
  
  Is there a special way I need to declare 'newObj'
  (which I pass into
  the datagrid.addItem() method), or do I have to
  explicity write the
  AS-equilavent class of my Java POJO class?  
  
  I would think Flex could convert this class for
 me,
  but I'm obviously
  missing an important step to add it to the
  datagrid/dataprovider.
  Thanks in advance for your help.
  
  mx:script...
  var newObj:Object;
  function addToGrid() {
newObj = remoteObj.getNewJob();  
myDataGrid.addItem(newObj); 
  }
  /mx:script
  
  mx:DataGrid id=myDataGrid
  dataProvider={remoteObj.getAll.result}
  ...
  
  
  
  
   
  Yahoo! Groups Links
  
  
  
   
  
  
 
 
   
 __ 
 Do you Yahoo!? 
 Yahoo! Small Business - Try our new Resources site
 http://smallbusiness.yahoo.com/resources/
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/


 
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/