RE: [flexcoders] private constructors in flex

2006-09-23 Thread Karl Johnson





As far as I know, it is not possible to declare a private 
constructor in AS 3. 
Karl


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of 
zenwardenSent: Friday, September 22, 2006 10:54 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] private constructors 
in flex


Sometimes in Java I declare a constructor private ( I think this iscalled 
the nullington pattern). Ex: utility classes that have allstatic methods or 
constants.Can and should the same thing be done in 
flex?Chris
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



RE: [flexcoders] Re: tabbing in flex

2006-09-23 Thread Dustin Mercer












Yeah, this one was a bit annoying
Here is what I had to do to get it working. I had to set the tabChilden
property to true in your custom component, override the setFocus method, and
implement the IFocusManagerComponent interface. This is only if your
component is a pure AS component. I found the mxml components tabbed
fine. One side note: There still seems to be some really weird
tabbing issues when tabbing out of the component. Sometimes when you tab
out of the component, it tabs back to the beginning of the form. Just
some weird things, I didnt have a chance to trace it down though.
Ill see if I can get some time to fix that. I included the source
to a time picker component that I built If you need something to reference
(its not perfect, but it should illustrate the solution).











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of khelonium
Sent: Thursday, September 21, 2006
8:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: tabbing
in flex











I have the same problem and don't have a solution yet.
If I extend the UIComponent , shouldn't all the focus aspects work by
default? The documentation specifies that focus is enabled by
default. But it doesn't . If I try to use setFocus in a mouse event ,
focusEvents are not received by my component. Is there something that
I must do and it is not specified in the documentation to have
focusing work(mouse click , tab ,focus events)? Thank you.

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

 well there are two things, one is a controlBar with buttons in it, 
 and when tabbed the first button will be highlighted then it will 
 just move onto the next text box in the VBox rather than the other 
 buttons in the controlBar. I haven't implented the below, so I was 
 just using the default settings. I then tried telling flex to make 
 them all true but the program tabbed in the same way.
 
 
 The other custom component is a mxml file that contains a dateField 
 and a text box. this get skiped altoghter when tabbing.
 
 thanks
 
 
 
 
 
 --- In [EMAIL PROTECTED]ups.com,
JesterXL jesterxl@ wrote:
 
  Does it extend UIComponent (or a sub-class)? Does it implment:
  
  tabChildren = false;
  tabEnabled = true;
  focusEnabled = true;
  
  ???
  
  - Original Message - 
  From: b0b0bb0b ksutherland@
  To: [EMAIL PROTECTED]ups.com
  Sent: Friday, July 21, 2006 10:04 AM
  Subject: [flexcoders] tabbing in flex
  
  
  if I have a Vbox with say 10 items in it. from buttons to text 
 boxes, 
  as well as a custom component which I've extended. then when the 
 app 
  loads I tab my way through the app which works fine until it comes 
 to 
  the custom component. it has a tabIndex like the rest of the 
 buttons 
  and text boxes, but it never recieves focus if you tab. the focus 
 moves 
  straight to the next non-custom component.
  Any ideas how to get around this.
  cheers. I'm using flex 1.5
  
  
  
  
  
  
  
  --
  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
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___






TimeChooser.as
Description: TimeChooser.as


[flexcoders] BTW - moderator settings

2006-09-23 Thread carl_steinhilber

Seems I'm set to continually require moderator approval on my posts.
Can someone fix this for me please?

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/

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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





RE: [flexcoders] Re: FDS and web service.

2006-09-23 Thread Matt Chotin












This feels like you dont have your
services-config set up correctly, or maybe you need a context-root argument
when you compile?



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of secolaha
Sent: Wednesday, September 20,
2006 5:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: FDS and
web service.












It turns out that the error only occurs if I run it from within
FlexBuilder. The main difference beeing that the file is called as

http://192.168.1.163/flex/bin/FilterBuilder.html

if I point the browser straight at the mxml file at 
http://192.168.1.163/flex/FilterBuilder/FilterBuilder.mxml
it work like charm. I guess this is good news, but I would really like
to get this running through the Builder so I can debug etc.

Am i missing some setup in FlexBuilder?

 Hi again, Thanks for the link.
 I tried it and are now getting the following error.
 faultcode Client.error.MessgaeSend
 faultDetail: Unable to load WSDL. If currently online, please 
 verify the URI and/or format of the WSDL(null)
 
 the URI I supply works fine if I open it in a browser, so I suspect 
 that there is somethng else missing in my setup. 
 After browsing the archive I added a crossbrowser.xml file with 
 
 allow-access-from domain=* /
 
 as the content in the web-root. 
 
 Has anyone seen this before?
 
 regards,
 
 /Lars
 
  Try this:
  http://www.everythingflex.com/blog/1/2006/03/WebService-setup-for-
 FES.cfm






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___






[flexcoders] Re: Sample Flex 2 based email interface

2006-09-23 Thread James Polanco
I built one in 1.5 back when I was on the FlexBuilder team (which may
be what you saw Brendan) and I used the Flex server to communicate
with a POJO system that I wrote. I used the Java mail package to
access an IMAP server to handle access to the mail account and also
used this to access SMTP to send emails.

Its possible to do this without the server by using PHP and PEAR to
handle email management.  There is a package in PEAR that allows you
to access a SMTP client and then if you have the right information you
can send emails out.  I have used this package for an eCommerce site
to handle email automation and its pretty easy to set up and use.  All
you would need to do is either create a POST system or use AMF
(WebOrb, etc) to access the class and then send the email out.

With IMAP it gets a little more tricky figuring out what folders
exists, what has been read, etc.  I had most of that working in my
example using a tree for the folder structure and custom renders to
change what had unread mail and the count.  I would offer the code up,
but I don't have it any more...  sorry. :(

J.

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

 http://labs.jboss.com/portal/jbossmail/
 
 DK
 
 On 9/22/06, Brendan Meutzner [EMAIL PROTECTED] wrote:
 
  I think I remember seeing an example of this done in 1.5... damned
if I
  remember where though...  It wasn't a full on solution, but was a good
  example... I'm pretty sure it was something that Macromedia had
done...
 
  Sorry :(
 
  Brendan
 
  On 9/22/06, Tracy Spratt [EMAIL PROTECTED] wrote:
  
  You can do simple mailto style links in flex natively, but I
don't
   think that is what you want.
  
  
  
   You will need a server-side app that does the actual mail
creation and
   send.  Flex would make a fine front end for that.
  
  
  
   Tracy
  
  
--
  
   *From:* [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED]
ups.com]
   *On Behalf Of *P Smith
   *Sent:* Friday, September 22, 2006 3:17 PM
   *To:* flexcoders@yahoogroups.com
   *Subject:* [flexcoders] Sample Flex 2 based email interface
  
  
  
   I need to create a Flex 2 based interface for email.  Is anyone
aware of
   any examples?
  
   If not in Flex 2, maybe Flex 1.5?  (or if not that, then maybe even
   Flash?)
  
   My initial requirement is for a send email interface, ideally with a
   limited email address book.
  
   The closest I have seen is
LaszloMail.comhttp://www.laszlomail.com/lzmail/but  a) they don't
provide the source, b) the syntax would be LZX and not
   MXML anyway.
  
   Pete
  
  
  
__
   Do You Yahoo!?
   Tired of spam? Yahoo! Mail has the best spam protection around
   http://mail.yahoo.com
  
  
  
 
 
 
 
 -- 
 Douglas Knudsen
 http://www.cubicleman.com
 this is my signature, like it?










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

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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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: Accordion UI Mods to a CF Wizard Generated App

2006-09-23 Thread rob_scio
Feel like a bit of a dope but I'm answering my own question (in case any
other newbies search on this topic)...

I set creationPolicy=all and voila!  Accordions (or Tab Navigator)
form fields see all the data.

Don't know that this is the best way to handle this situation so I'll
take advice from experienced folks on that but for better or worse
creationPolicy=all does the trick.


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

 Stating up front that I am a newbie to Flex and Actionscript...

 I am using the CF wizard to generate a simple application (master form
 and a detail form).  I have modified the detail form so that the nine
 form fields I am displaying that the wizard is placing on the
 cfComponents:SizeableTitleWindow are broken out into three sections. 
I
 am using the Accordion control and there are three form fields in each
 of the three accordion sections.

 I am able to successfully add new data to my database using this
layout.
 However when I choose to edit an existing record (selected in the data
 grid of the master page) the detail page will only display the field
 data in the first accordion panel.  The form fields in the two other
 accordion panels do not display the data for the record being edited.

 Has anyone seen this issue at all (I did not see it on his board but
 that doesn't mean it is not here)?

 I feel like I am missing something basic and want to see what it may
be.
 Any and all help is greatly appreciated.

 Thanks,
 Rob










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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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





Re: [flexcoders] Re: private constructors in flex

2006-09-23 Thread John Kirby
Title: quote






But if your goal is to create a Singleton pattern...check this out:

http://www.cynergysystems.com/blogs/page/andrewtrice?entry=singleton_in_as3

Gordon Smith said the following:


  
  
  
  
  I'm afraid
that AS3 doesn't allow a
constructor to be private.
  
  - Gordon
  
  
  
  
  From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com] On Behalf Of pauland2513
  Sent: Friday,
September 22, 2006
4:29 PM
  To: [EMAIL PROTECTED]ups.com
  Subject: [flexcoders]
Re: private
constructors in flex
  
  
  
  
  
  --- In [EMAIL PROTECTED]ups.com,
"zenwarden" [EMAIL PROTECTED] wrote:

 Sometimes in Java I declare a constructor private ( I think this is
 called the nullington pattern). Ex: utility classes that have all
 static methods or constants.
 
 
 
 Can and should the same thing be done in flex?
 
 Chris
  
Yes, it's an OO design pattern not a Java specific one. I haven't
heard of the nullington pattern, but private constructors are used for
the Singleton pattern.
  
Paul
  
  
  

  
  



-- 


Whether you think that you can, or that you
can't, you are usually right.
- Henry Ford 



__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___




[flexcoders] Re: Object of a specified type

2006-09-23 Thread Daniel
Thank you very much Gordon!
That one really worked :D

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

 The preferred way is to use the 'is' operator, which is new in AS3:
 
  
 
 trace(str is String); // output is true
 
  
 
 - Gordon
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Harish Sivaramakrishnan
 Sent: Monday, September 18, 2006 6:06 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Object of a specified type
 
  
 
 use typeof to find the type of an object.
 
 ex:
 
 var str:String
 
 trace(typeof(str) : prints string
 
 Hope this helps
 Harish
 
 On 9/18/06, Daniel [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  wrote:
 
 How can I konw if an object is an instance of a specified type, for
 example String.
 
 Thx!











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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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





[flexcoders] Re: Problem connecting URL requests from different folders

2006-09-23 Thread davidtdinh
Well, my flex program isnt really running on a server at the moment. 
Just executing off my laptop.  The weird thing is that when I run it
from Flex Builder it accesses and transfers Data just fine.  but when
I try and run the swf from *any other* folder on my local machine, it
fails to retrieve data from the PHP server.  Is a cross domain.xml
needed even for laptop access?

David

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

 Almost certainly a security issue.  Do you have a crossdomain.xml file
 in the PHP server root?
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of davidtdinh
 Sent: Friday, September 22, 2006 3:34 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Problem connecting URL requests from different
 folders
 
  
 
 Im developing a project that uses data grabbed from an online PHP file
 which accesses a DB. When I run it from Flex Builer 2, works and runs
 perfectly. When I load the project HTML from the project's bin/
 folder, runs and works perfectly. However, when I copy the contents
 of the bin folder to another location on my computer (desktop) and try
 to run the project html, it fails silently.
 
 I would like to deploy this project eventually, but in flash 8 I used
 to just zip up a swf and its html and distribute it that way. It
 doesnt seem to work in this fashion in flex. Can anyone point me in
 the right direction to solve this?











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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] Sync changes from textArea.htmlText to textArea.text? validateNow()?

2006-09-23 Thread Jeff Kroll





According to 
the Adobe Flex 2 Language Reference for Class TextArea, one is supposed to 
call validateNow() on a textArea to sync up the htmlText and text properties 
after programmatically setting one of them.This seems to not be 
working.I have a textArea in which I'veinitialized the htmlText 
property.
I have a function onthis 
textArea that selects the whole word when the word is enclosed in curly 
braces and the user clicks on it. I then programmatically replace the textRange 
according to what the user wants to something with fewer characters and styled 
via htmlText. This is nicely reflected in the textArea. However, looks are deceiving, because if the user 
clicks on that same word again, the selection is offset by the difference in 
lengthbetween the old and new 
strings.I created atest 
button to call validateNow() on the textArea to force the 
htmlTextproperty changes to get pushed to the text property, but 
it doesn't work.The only way I can currently force them to sync up is to 
manually click in the text area(anywhere 
outside of the special bracketed words) and type a junk character. After 
that, my auto selection function works correctly again, because the htmlText is 
now once again in sync with the text property, as it was in the starting 
condition.Any ideas how to get validateNow() to work as 
advertised?Cheers,Jeff 
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



[flexcoders] Going Bananas, CFC to AS3 Class Mapping

2006-09-23 Thread lostinrecursion
Hi all,

I am going bananas with this problem. (Sorry always wanted to say
that) Anyway, here is the issue:

I have 3 CFCs on my Server (Lender, LenderLocation,
LenderLocationContact) which are carbons of classes built in my
AS3/Flex 2 application of the same name.

Now, I invoke a CFC with an id number to return the Lender I need from
Coldfusion. That works perfectly and a CFDUMP confirms that all the
data is structured exactly as it should be.

For example, each Lender has generic properties and also has an
ArrayCollection called lenderlocations which is an array of my
LenderLocation objects. The CFC also returns it the same way (albeit
as an Array. But, even an 'event.result.lenderlocations as
ArrayCollection' does nothing and returns null)

The problem is when I get the data back into Flex, I hit a brick wall.

Let's say I map the result (in my onResult) as such: 
myLenderClassInstance = event.result as Lender;

Nothing gets populated by AS3 even though the object being returned
has all the same properties (same names) and datatypes as the AS3
class I am targeting. 

I have tried examining the Sample Phone app by Ben Forta but just
can't seem to find my problem.

Could someone be of some assistance? I would appreciate it.

Thanks so much.
-LIR






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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] Going Bananas, CFC to AS3 Class Mapping

2006-09-23 Thread Paul Hastings
On 9/23/06, lostinrecursion [EMAIL PROTECTED] wrote:

  The problem is when I get the data back into Flex, I hit a brick wall.

do your AS classes have a fill or init function to fill or init the
class w/data? it should be similar to what you're doing in your CFC to
create the CFC objects.

package com.sustainableGIS {
[Bindable]
public class MapInfo {
public var host:String;
public var port:int;
public var mapService:String;
public var mapHeight:int;
public var mapWidth:int

public function MapInfo() {
}

public function fill(obj:Object):void {
for (var i:String in obj) {
this[i] = obj[i];
}
} //fill
} // class
}


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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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: Changing the background color of a datagrid row

2006-09-23 Thread Tim Hoff



Hi Carl,
The following sample uses a custom component to change the backgroundColor of a DataGrid row; conditionally with CSS.
http://www.cflex.net/showfiledetails.cfm?ChannelID=1Object=FileobjectID=487
-TH--- In flexcoders@yahoogroups.com, "carl_steinhilber" [EMAIL PROTECTED] wrote: I'm setting the dataProvider of a DataGrid to an ArrayCollection (of Objects).  If the value of a given field of a given row is a particular value, I want to change the row of the DataGrid to red, say.  I already have a labelFunction on the DataGridColumn for something else.  And Brandon Purcell tells me that setting the background color of a row is fairly easy:  dg.setPropertiesAt(rowNum, {backgroundColor:0xFF});  Is it possible to determine the row number of the row that a labelFunction is currently affecting, so that I could also do a setPropertiesAt() and pass it said row number?  In other words... I have  mx:DataGrid name="dg" id="dg" width="100%" height="100%" mx:columns mx:DataGridColumn dataField="date" labelFunction="formatDate" headerText="Date" / /mx:columns /mx:DataGrid  and my formatDate function wants to look like:  public function formatDate(columnData:Object,columnDef:DataGridColumn):String { dg.setPropertiesAt(whateverRowThisIs, {backgroundColor:0xFF}); DateDisplay.format(columnData.date); }  Anyone know how to determine "whateverRowThisIs"?  Or do I really need to use a itemRenderer? That seems like overkill to just change the background color.  Any help would be appreciated.  Thanks! -Carl

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



[flexcoders] Re: Going Bananas, CFC to AS3 Class Mapping

2006-09-23 Thread lostinrecursion
I see. No they do not. Should the name of the function inside the AS
class match the name of the function in the CFC?

For example, I call it populate in my CFC.

Plus, according to Forta, the conversion is automatic.  Maybe I am
misunderstanding.

I also have other methods such as addLocation and removeLocation
in the vos to do certain things. Do those need to be represented in CF
as well?

And since CF does not have an ArrayCollection datatype and one of the
properties of my AS3 class is an ArrayCollection, how do I deal with that?

Thanks so much for your help.






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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] Can we run our existing Flex1.5 application on Flex2.0 platform?

2006-09-23 Thread Jeff Tapper
not sure if anyone answered you on this or not, but the short answer is 
no.  some level of code modification is neccessary.  how much depends on 
the application itself.

At 03:16 AM 9/21/2006, anjicn wrote:

Can we run our existing Flex1.5 application on Flex2.0 platform without
extra code-level modification?

In other words, can we run the flex1.5 allplication just modifying some
relevant configuration file?








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











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

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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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: Going Bananas, CFC to AS3 Class Mapping

2006-09-23 Thread lostinrecursion
Here is my code, perhaps this will help

AS3 Class
package com.desktopae.vo{
import com.adobe.cairngorm.vo.ValueObject;
import mx.collections.ArrayCollection;

[Bindable]
[RemoteClass(alias=desktopae.cfc.vo.Lender)]
public dynamic class Lender{
public var lenderID:Number; //ONLY returned by Server
public var lendername:String;
public var lenderURL:String;
public var lenderlocations:ArrayCollection; 
public var selectedLocation:LenderLocation;

public function Lender(){

}

public function addLocation(location:LenderLocation):void{
lenderlocations.addItem(location);
}

public function removeLocation(location:LenderLocation):void{
var index:Number = 
lenderlocations.getItemIndex(location);
lenderlocations.removeItemAt(index);
}

}
}

CFC
cfcomponent displayname=Lender hint=Corresponds to AS Class,
com.desktopae.vo.Lender
!---Properties---
cfproperty name=lenderID type=numeric default=0
cfproperty name=lendername type=string default=
cfproperty name=lenderURL type=string default=
cfproperty name=lenderlocations type=array default=ArrayNew(1)
cfproperty name=selectedLocation
type=desktopae.cfc.vo.LenderLocation

!---Initialize VARs---
cfscript
THIS.lenderID = 0;
THIS.lendername = ;
THIS.lenderURL = ;
THIS.lenderlocations = ArrayNew(1);
/cfscript

cffunction name=populate access=public output=false
returntype=Lender
cfargument name=lenderID type=numeric required=yes
cfargument name=lendername type=string required=yes
cfargument name=lenderURL type=string required=yes


!---Set Values---
cfscript
THIS.lenderID = ARGUMENTS.lenderID;
THIS.lendername = ARGUMENTS.lendername;
THIS.lenderURL = ARGUMENTS.lenderURL;
THIS.lenderlocations = ArrayNew(1);
/cfscript
/cffunction
/cfcomponent






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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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





Re: [flexcoders] Re: Going Bananas, CFC to AS3 Class Mapping

2006-09-23 Thread Paul Hastings
On 9/23/06, lostinrecursion [EMAIL PROTECTED] wrote:

 I see. No they do not. Should the name of the function inside the AS
  class match the name of the function in the CFC?

no, but probably a good idea.

  Plus, according to Forta, the conversion is automatic.  Maybe I am
  misunderstanding.

what conversion?

  I also have other methods such as addLocation and removeLocation
  in the vos to do certain things. Do those need to be represented in CF
  as well?

do you need them in cf?

  And since CF does not have an ArrayCollection datatype and one of the
  properties of my AS3 class is an ArrayCollection, how do I deal with that?

array of struct.


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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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





Re: [flexcoders] Re: Going Bananas, CFC to AS3 Class Mapping

2006-09-23 Thread Paul Hastings
On 9/23/06, lostinrecursion [EMAIL PROTECTED] wrote:

  AS3 Class
  package com.desktopae.vo{
   import com.adobe.cairngorm.vo.ValueObject;

we're not using cairngorm (or any flex framework for that matter).
flex is still too new, better walk before you try running as an ozzy
friend keeps telling me.

   cffunction name=populate access=public output=false
  returntype=Lender

i imagine you need this flex side (that fill function shoudl do) to
take the event results  stuff them into your object. something along
the lines of (in the event handler):

var mapInfo=new MapInfo();
mapInfo.fill(event.result);


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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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: TextArea scrollbar not showing at runtime

2006-09-23 Thread Mike Britton
I'm still having this problem, and have found no solution.  Has no one
else ran into this problem where the Flex 2 TextArea scrollbar doesn't
appear when text is loaded into it?  I thought calling
invalidateProperties() would help, but now I'm considering various
hacks like updating the text every few thousand miliseconds to ensure
the scrollbar is showing up.

It may have something to do with adjusting the font size at runtime.


Mike


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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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: Going Bananas, CFC to AS3 Class Mapping

2006-09-23 Thread lostinrecursion
Well, now the interesting thing is it works as long as I am only
returning simple values (i.e. String/Number) - But when I return an
array, it breaks.

In fact, when using typeof(event.result.myArray), it is returning as
object in the console.

Odd.






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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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





Re: [flexcoders] Re: Going Bananas, CFC to AS3 Class Mapping

2006-09-23 Thread Paul Hastings
On 9/24/06, lostinrecursion [EMAIL PROTECTED] wrote:
 Well, now the interesting thing is it works as long as I am only
  returning simple values (i.e. String/Number) - But when I return an
  array, it breaks.

we returning some hefty stuff (arrays of structures, arrays of xml
goop,etc.) this way. sure you've mapped the objects coming  going?

that said if there's a better way, i'm always ears open.


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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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: Going Bananas, CFC to AS3 Class Mapping

2006-09-23 Thread coldfusionpaul
--- In flexcoders@yahoogroups.com, lostinrecursion [EMAIL PROTECTED] wrote:
 Well, now the interesting thing is it works as long as I am only
 returning simple values (i.e. String/Number) - But when I return an
 array, it breaks.

oops, i think my fill example was a little too simple (it was the only
thing i had handy). in your complex objects you'll need logic to
create  fill the other objects contained in your main one (if that
makes any sense).





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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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: Going Bananas, CFC to AS3 Class Mapping

2006-09-23 Thread lostinrecursion
I'm sure. I build my results into a Struct. Add each Struct to an
element of a CF array. 

But, the problem is, when I try and discover the type of the variable
returned from CFC, it lists as a generic object. ex:
typeof(event.result.theCFarray) == 'object'

I can't get Flex to even recognize it as an Array.

Yet, when I enumerate the properties via (for var i:String in
event.result.theArray), I do get the correct indexes 0 and 1 since
there are two elements in the particulary array we are looking at.

-LIR





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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] “Failed to create new project. Re ason: Element not found: [path]” er ror message

2006-09-23 Thread Douglas McCarroll
Hi All,

Just posting to the list in case someone in the future searches the archive for 
the error message “Failed to create new project. Reason: Element not found: 
[path]”

I just spent about four hours solving this problem. Explanation and solution 
are 
here:

http://www.brightworks.com/flex_ability/?p=13

Douglas


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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] Flex 2.0 Hosting ( Cheap / Inexpensive )

2006-09-23 Thread Anatole Tartakovsky



http://coenraets.org/blog/2006/09/30-minutes-flex-test-drive-for-java-developers/- take war file there

On 9/22/06, Douglas McCarroll [EMAIL PROTECTED] wrote:






Anatole Tartakovsky wrote:You need to provide preconfigured VMs with complete software stack preinstalled -pretty much the configuration Chris Coenraets described in his blog
Anatole - can you provide a link to Chris's blog post that you refer to here? I do not think it would be that simple. Java server configuration can 
 be somewhat difficult. Java hosting never took off. Add just 1 hour of  support time per month and the costs of the hosting becomes irrelevant.  However, it is feasable by using dedicated machines in the same price 
 range (I am using eSecureData.com - very good value and quality  machines, and they do not sell beyond promissed capacity) . You need  to provide preconfigured VMs with complete software stack 
 preinstalled - pretty much the configuration Chris Coenraets described  in his blog so that you have free good quality products hosted within  either VMWARE or XEN infrastructure and place deployment 
 responsibilities on the client.  However, Java + OS has to be sized well beyond php requirements - at  least 512MB, with clients needing more memory in most of the cases.  With 75% of average server load you would need to charge around $70/mo 
 just to get even - and that is with outsourced email-only support.  Regards, Anatole Tartakovsky  
 On 9/20/06, *Kelly* [EMAIL PROTECTED] mailto:
[EMAIL PROTECTED] wrote: Is it really that hard to just pay for a server or a virtual server and install it yourself? You can get decent virtual dedicated servers for like $60/month.
 It's not hard at all to install fds when you have root access to a server. Makes me think I should just do it and sell it as a service. --Kelly
 -Original Message- From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com [mailto: 
flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On
 Behalf Of Douglas McCarroll Sent: Wednesday, September 20, 2006 1:14 PM
 To: flexcoders@yahoogroups.com mailto:
flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Flex 2.0 Hosting ( Cheap / Inexpensive ) I've checked with CFDynamics. They say Unfortunately, at this
 time, an ETA is unavailable. It seems to me that it would be in Adobe's interests to do whatever it can to facilitate making FDS hosting available. A friend of mine
 thinks that he may be able to help me out, but I'm sure that there are a lot of people out there with no options for deploying FDS apps at this point... I'm not talking about full-scale enterprise hosting - just an Express
 FDS equivalent... Matt Chotin wrote:   Yes, CFDynamics has been considering it. I'm not sure if others have  been considering it recently, I'll ask Eric but we haven't seen a
  massive request for it recently.   Matt   --   *From:* 
flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto: flexcoders@yahoogroups.com mailto:
flexcoders%40yahoogroups.com]  *On Behalf Of *Brendan Meutzner  *Sent:* Tuesday, September 19, 2006 3:59 PM  *To:* 
flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  *Subject:* Re: [flexcoders] Flex 2.0 Hosting ( Cheap / Inexpensive )   I've heard that CFDyanmics is considering it... worth posing the  question to them...
BrendanOn 9/19/06, *Douglas McCarroll*   
[EMAIL PROTECTED] mailto:org.yahoo_primary.001%40douglasmcc
arroll.com  mailto: [EMAIL PROTECTED]
 mailto:org.yahoo_primary.001%40douglasmcc
arroll.com wrote:   Paul Andrews wrote:Hosting Flex isn't a problem, it's FDS that's the problem. ;-)   Are there any solutions available for FDS?
   It sounds like there aren't. :-(   Could someone from Adobe comment on whether Adobe is working on this?   -- Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 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
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily 

[flexcoders] Enable/Disable Tree items?

2006-09-23 Thread Steve Kellogg @ Project SOC










Hello,



Can anyone point me to docs or examples of doing a TREE
control where I would have control over ENABLE/DISABLE of various cells/rows?



Im looking at loading a large dataset into a tree in
the background (using callLater), and making tree items DISABLED until
their children have been loaded.



Thanks in Advance for any suggestions.





Steve







Steve
Kellogg

Peak8
Solutions

1401 14th Street

Boulder, Colorado

80302, USA

Fax:
303.415.2597

E-Mail:
[EMAIL PROTECTED]






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___





Re: [flexcoders] Re: Going Bananas, CFC to AS3 Class Mapping

2006-09-23 Thread Douglas Knudsen



no need for fill functions for the 'mapping'. I don't and things are happy.firstly--AS3 Classpackage com.desktopae.vo{import com.adobe.cairngorm.vo.ValueObject;
import mx.collections.ArrayCollection;[Bindable][RemoteClass(alias=desktopae.cfc.vo.Lender)]public dynamic class Lender{-- this looks good to me except you are importing the cairngorm ValueObject and not using it. But this will not effect the mapping.
secondly--cfcomponent displayname=Lender hint=Corresponds to AS Class,com.desktopae.vo.LenderThis CFC must reside in desktopae/cfc/vo/Lender and desktop must be in the root of your webroot or be a mapping. You may need to update your 
flex-services.xml file depending on this. Next, you have to have a alias attritube in your CFC definition.cfcomponent displayname=Lender hint=Corresponds to AS Class,com.desktopae.vo.Lender alias=
desktopae.cfc.vo.LenderFurther you need a init() method in your CFC with a return type of desktopae.cfc.vo.Lender and that simply has one line cfreturn this /Of course it could do other things, but needs that for sure.
Now, once you got that going you should be cooking with gas. Use the Flex Debugger to see what's going on. The debugger rawks, so get to know how to use it.Hey, if you use the RDS plugins for eclipse, use the CFC creation wizard. The code it generrates can serve as a example.
DKOn 9/23/06, lostinrecursion [EMAIL PROTECTED] wrote:
I'm sure. I build my results into a Struct. Add each Struct to anelement of a CF array.But, the problem is, when I try and discover the type of the variablereturned from CFC, it lists as a generic object. ex:
typeof(event.result.theCFarray) == 'object'I can't get Flex to even recognize it as an Array.Yet, when I enumerate the properties via (for var i:String inevent.result.theArray), I do get the correct indexes 0 and 1 since
there are two elements in the particulary array we are looking at.-LIR--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/* Your email settings:Individual Email | Traditional* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join(Yahoo! ID required)* To change settings via email:mailto:
[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]* 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/
-- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it?

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



[flexcoders] Fire Event On All Child Containers

2006-09-23 Thread supertodda
There is probably an easier way to do this, but I could not find a way
to fire an event that bubbles down stream from a DisplayObject, i.e.
fire an event on all child objects, not parent objects, so I wrote
this function and it seems to work.  Again please tell me if there is
a more correct way to do this...

public function
fireChildEventMatch(currentTarget:DisplayObject,eventName:String):void {
var currentTargetUI:DisplayObjectContainer = currentTarget as
DisplayObjectContainer;
if(currentTargetUI != null) {
if(currentTargetUI.hasEventListener(eventName) == true) {
currentTarget.dispatchEvent(new Event(eventName));
// Alert.show(found event match: +currentTarget.name);
}

for(var i:int=0; i  currentTargetUI.numChildren; i++) {
var currentChild:DisplayObject = 
currentTargetUI.getChildAt(i);
fireChildEventMatch(currentChild,eventName);
}
}
}

The function is called like this:

fireChildEventMatch(this,myEvent);

in place of this you can put parent, ParentAppliation.bla, or some
other id, etc.






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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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




Re: [flexcoders] Re: datagrid, custom editRenderer, and labelFunction

2006-09-23 Thread Peter Armstrong



Thank you laidezmon!I was having this exact problem (with a ComboBox in a DataGrid not updating after an HTTP service returned), and handling dataChange *finally* fixed it.My now working code is: mx:DataGridColumn
  headerText=Project  dataField=project_id  width=150  editable=false  sortable=false
 mx:itemRenderer mx:Componentmx:ComboBox width=200 labelField=name
 dataProvider={outerDocument.projectsAndNone} selectedItem={outerDocument.getProject(data.project_id)} dataChange=updateSelectedItem()
 change=outerDocument.updateTaskProject(XML(data), XML(selectedItem))  mx:Script  ![CDATA[import 
com.pomodo.util.DebugUtils;   private function updateSelectedItem():void {DebugUtils.debug(updateSelectedItem, data = "" + data);
if (data != null) { selectedItem = outerDocument.getProject(data.project_id);}   }
  ]]  /mx:Script /mx:ComboBox /mx:Component /mx:itemRenderer
 /mx:DataGridColumnThanks again!Peter Armstrong-- Peter Armstronghttp://www.flexiblerails.com -- Flex 2 and Rails 
1.1 together! (PDF-only book)

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



[flexcoders] flex 2 on mac resources?

2006-09-23 Thread aaron smith



Hey All,My work is going to be switching us developers to macs, I would like to find out about using Flex 2 SDK on Mac. Not neccessarily Flex Builder, I realize it's not out yet, but what about just using the compiler? Any good resources or places that document using the compiler on a mac? Any good resources for using this all with Textmate?
thankssmith

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Re: Going Bananas, CFC to AS3 Class Mapping

2006-09-23 Thread Paul Hastings
On 9/24/06, Douglas Knudsen [EMAIL PROTECTED] wrote:

 no need for fill functions for the 'mapping'.  I don't and things are happy.

because of this (the RemoteClass, alias bits)?

 [Bindable]
 [RemoteClass(alias=desktopae.cfc.vo.Lender)]

do the AS  CFC objects have to match exactly? ie methods too? not
having to fill the class sounds like a better methodology.


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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] Calling functions on loaded SWF

2006-09-23 Thread Hilary Bridel



Hi Tom,
Here is an example of Play() etc...
http://www.bridel.org/?p=9

Hilary
www.bridel.org

On 9/24/06, Tom Krcha [EMAIL PROTECTED] wrote:



Hi,

Does anybody know how to call functions on loaded SWF?

E.g.: I create my own animation in Flash IDE.
Then I load this swf with the animation into the flex swf using SWFLoader or Image.
How to call on that swf functions like play(), gotoAndPlay(), stop() … or my defined functions.

Thanks

Tom -- Hilary-- 

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___