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 
   
 

  




__,_._,___



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/
 





[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: 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:            headerText="Project"        dataField="project_id"        width="150"        editable="false"        sortable="false">
                                            width="200"                    labelField="name"
                    dataProvider="{outerDocument.projectsAndNone}"                    selectedItem="{outerDocument.getProject(data.project_id)}"                    dataChange="updateSelectedItem()"
                    change="outerDocument.updateTaskProject(XML(data), XML(selectedItem))">                                    
    Thanks 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] 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: 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--This 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.Further you need a init() method in your CFC with a return type of desktopae.cfc.vo.Lender and that simply has one line 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] 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?

 

I’m 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 
   
 

  




__,_._,___





[flexcoders] Calling functions on loaded SWF

2006-09-23 Thread Tom Krcha










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




__._,_.___





--
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] 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] 
[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
> flexcoders%40yahoogroups.com> [mailto:> 
flexcoders@yahoogroups.com flexcoders%40yahoogroups.com>] On
> Behalf Of Douglas McCarroll> Sent: Wednesday, September 20, 2006 1:14 PM
> To: flexcoders@yahoogroups.com 
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> flexcoders%40yahoogroups.com
> [mailto:> flexcoders@yahoogroups.com 
flexcoders%40yahoogroups.com>]> > *On Behalf Of *Brendan Meutzner> > *Sent:* Tuesday, September 19, 2006 3:59 PM> > *To:* 
flexcoders@yahoogroups.com> 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...
> >> >> > Brendan> >> >> > On 9/19/06, *Douglas McCarroll* <> > 
[EMAIL PROTECTED]> org.yahoo_primary.001%40douglasmcc
arroll.com>> > [EMAIL PROTECTED]
> 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
> > 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 
   

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





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




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





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




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.

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




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/
 





[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










THIS.lenderID = 0;
THIS.lendername = "";
THIS.lenderURL = "";
THIS.lenderlocations = ArrayNew(1);










THIS.lenderID = ARGUMENTS.lenderID;
THIS.lendername = ARGUMENTS.lendername;
THIS.lenderURL = ARGUMENTS.lenderURL;
THIS.lenderlocations = ArrayNew(1);









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





[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=1&Object=File&objectID=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> > > > > headerText="Date" />> > > > 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 
   
 

  




__,_._,___



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





[flexcoders] Re: Invalid Root problem

2006-09-23 Thread cheftimbob
Just a bump so this doesn't fall off. Any  experts out there with 
ideas?


--- In flexcoders@yahoogroups.com, "cheftimbob" <[EMAIL PROTECTED]> wrote:
>
> I'm new to this so please bear with me.
> 
> I've installed Flex2 IDE on my desktop PC. I have installed the FDS 
on 
> one of our test AIX servers running WAS 5.1. The samples 
applications 
> all work. 
> 
> I'm working through some of the tutorials for using the data 
management 
> services. When I create the new Flex Data Services project I get to 
the 
> point where I have to specify the root folder and root url. The 
root 
> url is easy enough. What do I put in for the root folder though? 
All of 
> the posts I've seen for this typically are where someone is trying 
to 
> access a server running on their desktop PC or on a mapped server. 
This 
> is an AIX box.
>






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