RE: [flexcoders] prevent Double click

2005-03-30 Thread Gordon Smith

Disable the button in your click handler when you call your RemoteObject
method. Re-enable it when your result handler is called.

- Gordon


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 29, 2005 11:53 PM
To: Flex Coders
Subject: [flexcoders] prevent Double click



Hi,
 have some suggestion from prevent double click on the button? for 
example my button throw some functions on back-end,
i wish to disable button until the function are end.
It's possible?
Devis




 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] prevent Double click

2005-03-30 Thread [EMAIL PROTECTED]

thanks Gordon, but i'm using our framework for receive data 
(ServiceLocator etc)
and our function are called in other piece of code in our project, and 
the id or name of button are not the same, and i think to put in our 
delgate all id button it's not a good idea, (in our case)
Devis



Gordon Smith ha scritto:

>Disable the button in your click handler when you call your RemoteObject
>method. Re-enable it when your result handler is called.
>
>- Gordon
>
>
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
>Sent: Tuesday, March 29, 2005 11:53 PM
>To: Flex Coders
>Subject: [flexcoders] prevent Double click
>
>
>
>Hi,
> have some suggestion from prevent double click on the button? for 
>example my button throw some functions on back-end,
>i wish to disable button until the function are end.
>It's possible?
>Devis
>
>
>
>
> 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>
>
> 
>Yahoo! Groups Links
>
>
>
> 
>
>
>  
>



 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] prevent Double click

2005-03-30 Thread Laurent Cornelis

If you use Cairngorm, use a ViewHelper to change the button state. This 
way you can change the state from anywhere.

Regards,

Laurent Cornélis

[EMAIL PROTECTED] a écrit :
> thanks Gordon, but i'm using our framework for receive data 
> (ServiceLocator etc)
> and our function are called in other piece of code in our project, and 
> the id or name of button are not the same, and i think to put in our 
> delgate all id button it's not a good idea, (in our case)
> Devis
> 
> 
> 
> Gordon Smith ha scritto:
> 
> 
>>Disable the button in your click handler when you call your RemoteObject
>>method. Re-enable it when your result handler is called.
>>
>>- Gordon
>>
>>
>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
>>Sent: Tuesday, March 29, 2005 11:53 PM
>>To: Flex Coders
>>Subject: [flexcoders] prevent Double click
>>
>>
>>
>>Hi,
>>have some suggestion from prevent double click on the button? for 
>>example my button throw some functions on back-end,
>>i wish to disable button until the function are end.
>>It's possible?
>>Devis
>>
>>
>>
>>
>>
>>Yahoo! Groups Links
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>Yahoo! Groups Links
>>
>>
>>
>>
>>
>>
>> 
>>
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 
> 



 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] unsubscribe

2005-03-30 Thread Steven Webster

Hey Jasper   

I've pasted the bottom of your message back at ya  email
flexcoders-unsubscribe, not
flexcoders, to unsubscribe.

Steven

> -Original Message-
> From: Jasper Blues [mailto:[EMAIL PROTECTED] 
> Sent: 30 March 2005 06:34
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] unsubscribe
> 
> 
> unsubscribe
> 
> 
> 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.5 - Release Date: 29/03/2005
 



 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] prevent Double click

2005-03-30 Thread [EMAIL PROTECTED]

Sorry we don't use Cairngorm, but i'm looking ViewHelper for understand 
the mechanism,
thanks you vey much
Devis

Laurent Cornelis ha scritto:

>If you use Cairngorm, use a ViewHelper to change the button state. This 
>way you can change the state from anywhere.
>
>Regards,
>
>Laurent Cornélis
>
>[EMAIL PROTECTED] a écrit :
>  
>
>>thanks Gordon, but i'm using our framework for receive data 
>>(ServiceLocator etc)
>>and our function are called in other piece of code in our project, and 
>>the id or name of button are not the same, and i think to put in our 
>>delgate all id button it's not a good idea, (in our case)
>>Devis
>>
>>
>>
>>Gordon Smith ha scritto:
>>
>>
>>
>>
>>>Disable the button in your click handler when you call your RemoteObject
>>>method. Re-enable it when your result handler is called.
>>>
>>>- Gordon
>>>
>>>
>>>-Original Message-
>>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
>>>Sent: Tuesday, March 29, 2005 11:53 PM
>>>To: Flex Coders
>>>Subject: [flexcoders] prevent Double click
>>>
>>>
>>>
>>>Hi,
>>>have some suggestion from prevent double click on the button? for 
>>>example my button throw some functions on back-end,
>>>i wish to disable button until the function are end.
>>>It's possible?
>>>Devis
>>>
>>>
>>>
>>>
>>>
>>>Yahoo! Groups Links
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>Yahoo! Groups Links
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>  
>>>
>>
>>
>> 
>>Yahoo! Groups Links
>>
>>
>>
>> 
>>
>>
>>
>>
>>
>>
>>
>
>
>
> 
>Yahoo! Groups Links
>
>
>
> 
>
>
>  
>



 
Yahoo! Groups Links

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

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

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





[flexcoders] Anybody implemented double y-scale with Flex line chart?

2005-03-30 Thread Pekka Kola










Hi!

 

 I should present two datasets in same chart, one with
value between 0.0-1.5 and another with 50-200, both having the same x-scale. It
would be nice to have separate y-scales (e.g. 0.0-2.5 and 0.0-250) to get them nicely located in chart.
I am looking for Excel chart like style, where the first scale is in left side
of the chart and the second in right.

 

Thanks in advance 

 

Pekka

 











Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] super.super?

2005-03-30 Thread Simon Fifield





I have 
extended the DateChooser component to allow user to click through Years and 
Months rather than just Months.
 
I have 
overridden the createChildren() method. DateChooser calls 
super.createChildren(). If I call super.createChildren() in my subclass at the 
end of my method it redefines the objects that I have overridden, if I call it 
at the beginning of my method before I create the objects, it does most of the 
work twice.
 
It 
works if I don't call super.createChildren() at all, but there are side 
effects that I have to fix after anyway.
 
If the 
superClass creates and lays-out objects that I do not want in my subClass I 
would like to be able to call the superClass' super methods to by-pass the 
instantiation and layout of the objects that I don't want.
 
But I 
presume its not possible?
 

  -Original Message-From: Chris Velevitch 
  [mailto:[EMAIL PROTECTED]Sent: 30 March 2005 
  03:15To: flexcoders@yahoogroups.comSubject: Re: 
  [flexcoders] super.super?If you are in a method of 
  say class C which extends class B, thencalling super.someMethodName works. 
  If class B extends class A and Bdoesn't redefine a method of A, say, 
  called methodOfA, then in class Cyou can call super.methodOfA. This is 
  because, through inheritance,all unredefined methods of A are 
  automatically available to B. Superonly works one level up.







Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] DateChooser component

2005-03-30 Thread Simon Fifield





Just in case any MM 
component guys are reading.
 
The DateChooser sets 
the dateDisplay (header date text) with the same command:dateDisplay.text = monthNames[m]+" "+displayedYear;
in nearly all of the 
setters.
It would have been 
easier to override this if a method had been used to set this, then we wouldn't 
have to override all of the setters as well.
 
I've now done this 
in my extended DateChooser/DateField so that I can step through the years as 
well as the months.
 
 
Kind Regards,
 
Simon 
Fifield







Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] ActionScript question

2005-03-30 Thread [EMAIL PROTECTED]

Sorry,
premised, i don't know very well ActionScript, but can you to explain 
me  why ActionScript if have 2 functions like these

   
delegate.getSchedaMisure(mx.core.Application.application.vopf[0],0,100);
   delegate.ClonaCicli((CCicliMisureVO) 
event.data,mx.core.Application.application.vopf[0]);   


i wish that run first function , and until it  is not ended, don't run 
the second function, this in java and C++ for me it's normal but i don't 
know how ActionScript reason.
please...
Bye Devis



 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] ActionScript question

2005-03-30 Thread Abdul Qabiz

Hi Devis,

As long as first function doesn't call any asynchronous operation, both
functions would be execute in an order...

If you are calling some webservice/remoting method from first function, then
you can keep second function call in onResult handler of first function
call

That ways, you would be sure that second function is always called after
first function is called and results are received from server...

-abdul

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 30, 2005 4:48 PM
To: Flex Coders
Subject: [flexcoders] ActionScript question


Sorry,
premised, i don't know very well ActionScript, but can you to explain 
me  why ActionScript if have 2 functions like these

   
delegate.getSchedaMisure(mx.core.Application.application.vopf[0],0,100);
   delegate.ClonaCicli((CCicliMisureVO) 
event.data,mx.core.Application.application.vopf[0]);   


i wish that run first function , and until it  is not ended, don't run 
the second function, this in java and C++ for me it's normal but i don't 
know how ActionScript reason.
please...
Bye Devis



 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] ActionScript question

2005-03-30 Thread [EMAIL PROTECTED]

Hi,
it's ok ,
but i can't to put into my second function into "onResult handler" 
because, "this second function" not  must throws always.
Sorry in few words,
i have 2 actionScript function, i must run these function in called 
after first function is called, can you help me please.
Devis

Abdul Qabiz ha scritto:

>Hi Devis,
>
>As long as first function doesn't call any asynchronous operation, both
>functions would be execute in an order...
>
>If you are calling some webservice/remoting method from first function, then
>you can keep second function call in onResult handler of first function
>call
>
>That ways, you would be sure that second function is always called after
>first function is called and results are received from server...
>
>-abdul
>
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
>Sent: Wednesday, March 30, 2005 4:48 PM
>To: Flex Coders
>Subject: [flexcoders] ActionScript question
>
>
>Sorry,
>premised, i don't know very well ActionScript, but can you to explain 
>me  why ActionScript if have 2 functions like these
>
>   
>delegate.getSchedaMisure(mx.core.Application.application.vopf[0],0,100);
>   delegate.ClonaCicli((CCicliMisureVO) 
>event.data,mx.core.Application.application.vopf[0]);   
>
>
>i wish that run first function , and until it  is not ended, don't run 
>the second function, this in java and C++ for me it's normal but i don't 
>know how ActionScript reason.
>please...
>Bye Devis
>
>
>
> 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>
>
> 
>Yahoo! Groups Links
>
>
>
> 
>
>
>  
>



 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] prevent Double click

2005-03-30 Thread Simon Fifield





hi 
Devis,
 
I highly recommend using Cairngorm framework for your apps. My Apps 
were like spaghetti junction (that means complicated) before I started using 
Cairngorm.
 
I just 
wished they had used a different name for it because A) its long, and B) It 
makes me wish I was walking up in the mountains instead of sitting in front 
of a computer all day long!
 
Regards,
Simon 
Fifield

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Sent: 30 March 2005 09:44To: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] prevent Double 
  clickSorry we don't use Cairngorm, but i'm looking 
  ViewHelper for understand the mechanism,thanks you vey 
  muchDevisLaurent Cornelis ha scritto:>If you use 
  Cairngorm, use a ViewHelper to change the button state. This >way you 
  can change the state from 
  anywhere.>>Regards,>>Laurent 
  Cornélis>>[EMAIL PROTECTED] a écrit :>  
  >>>thanks Gordon, but i'm using our framework for receive 
  data >>(ServiceLocator etc)>>and our function are called 
  in other piece of code in our project, and >>the id or name of 
  button are not the same, and i think to put in our >>delgate all id 
  button it's not a good idea, (in our 
  case)>>DevisGordon 
  Smith ha scritto:>>    
  >Disable the button in your click handler when you 
  call your RemoteObject>>>method. Re-enable it when your result 
  handler is called.>>- 
  Gordon>-Original 
  Message->>>From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] >>>Sent: Tuesday, March 29, 2005 
  11:53 PM>>>To: Flex Coders>>>Subject: [flexcoders] 
  prevent Double 
  clickHi,>>>have 
  some suggestion from prevent double click on the button? for 
  >>>example my button throw some functions on 
  back-end,>>>i wish to disable button until the function are 
  end.>>>It's 
  possible?>>>Devis>>Yahoo! 
  Groups 
  Links>Yahoo! 
  Groups 
  Links>>>  
  > >>Yahoo! Groups 
  Links 
      
  >> >Yahoo! Groups 
  Links >>>  
  >







Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Validator->requiredFieldError

2005-03-30 Thread Christoph Guse

Hi Matt,

thanks for the information.

Christoph

Matt Chotin wrote:

> Flex 1.x doesn’t allow databinding into validators. It’s something we 
> hope to address in the next version.
>
> Matt
>
> 
>
> *From:* Christoph Guse [mailto:[EMAIL PROTECTED]
> *Sent:* Tuesday, March 29, 2005 4:38 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Validator->requiredFieldError
>
> Hi List,
>
> I'm doing some work with validators and I found the property
> requiredFieldError. With this property I can set a custom text to be
> displayed instead of "The field is required". When I put a static text
> in this property like requiredFieldError="you should fill in a name"
> everything works fine. But it would be even nicer if I could fill this
> property by databinding, i.e.:
> var myError="you should fill in a name";
>  requiredFieldError="{myError}"...
> With this it should be easy to have all errors somewhere central, for
> instance in a XML file. But the databinding doesn't work. Do you have an
> idea why?
>
> Greets
> Christoph
>
> -- 
> 
> Christoph Guse
> Löhstraße 34
> 41747 Viersen
> Tel. 0 21 62 / 50 24 066
> Mobil 01 72 / 160 74 84
> VoIP 0 12 12 / 39 64 48 831
> 
>
>
>
>
> *Yahoo! Groups Sponsor*
> ADVERTISEMENT
> click here 
> 
>  
>
>
>
> 
> *Yahoo! Groups Links*
>
> * To visit your group on the web, go to:
>   http://groups.yahoo.com/group/flexcoders/
> * To unsubscribe from this group, send an email to:
>   [EMAIL PROTECTED]
>   
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>   Service .
>
>

-- 

 Christoph Guse
 Löhstraße 34
 41747 Viersen
 Tel.  0 21 62 / 50 24 066
 Mobil   01 72 / 160 74 84
 VoIP  0 12 12 / 39 64 48 831




 
Yahoo! Groups Links

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

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

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





[flexcoders] LabelFunctions and SortFunctions

2005-03-30 Thread Simon Fifield





At the moment a 
labelFunction or sortFunction has to be defined in the MXML file that it is 
being used in.
 
It would be nice to 
be able to use an external Class to achieve this and thus enhance 
code clarity and re-use.
 
Does anyone have any 
ideas on this?
 
Kind Regards,
 
Simon Fifield
 







Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] LabelFunctions and SortFunctions

2005-03-30 Thread Dirk Eismann

Have you tried using the mx.utils.Delegate class?

  myGrid.getColumnAt(0).labelFunction = 
mx.utils.Delegate.create(anotherClassInstance, anotherFunction);

haven't tested it, but it should work.

Dirk.

-Original Message-
From: Simon Fifield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 30, 2005 4:03 PM
To: [EMAIL PROTECTED] Com
Subject: [flexcoders] LabelFunctions and SortFunctions


At the moment a labelFunction or sortFunction has to be defined in the MXML 
file that it is being used in.

It would be nice to be able to use an external Class to achieve this and thus 
enhance code clarity and re-use.

Does anyone have any ideas on this?

Kind Regards,

Simon Fifield


Yahoo! Groups Sponsor
ADVERTISEMENT






Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
  
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


 
Yahoo! Groups Links

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

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

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





[flexcoders] Re: referencing id in parent titlewindow from another titlewindow?

2005-03-30 Thread stevenkeys2003


Matt, tried out parentDocument with no luck. syntax? 

The scenario I'm trying to replicate, but in a different way, comes
from livedocs. The major difference being I'm not starting on the main
app level, but from a different TitleWindow.

code from livedocs:
---
Passing data to a pop-up TitleWindow container

To make the custom component that defines your TitleWindow container
more flexible, you might want to pass data to it or return data from
it. For example, the following application opens a pop-up TitleWindow
container and passes to it a reference to a component in the
Application container so that the custom component can write its
results back to the container:


http://www.macromedia.com/2003/mxml";>

  
 
  

 


  


The custom component in the following example defines a variable to
hold the reference to the parent component, then uses that reference
to update the parent component:


http://www.macromedia.com/2003/mxml"; 
   click="deletePopUp()">

   
  
   

   
   
   
  
   
 
---


Now, in my case this doesn't work of course, because I'm starting from
a TitleWindow. If someone can provide some code examples of one
TitleWindow changing props of a container in another TitleWindow.. or
doing anything.. it'd be much appreciated. I need two TitleWindows to
talk to one another, and have so far been unsuccessful.

-Steve






--- In flexcoders@yahoogroups.com, Matt Chotin <[EMAIL PROTECTED]> wrote:
> I think parentDocument is what you're looking for.
> 
>  
> 
> Matt
> 
>  
> 
>   _  
> 
> From: stevenkeys2003 [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 29, 2005 11:42 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] referencing id in parent titlewindow from another
> titlewindow?
> 
>  
> 
> 
> Guys, 
> I'm launching a titleWindow from another titleWindow. I need to
> reference id of container in parent titleWindow. How?
> 
> I've done this with components, but unable to figure this one out when
> it comes to titleWindow referencing another titleWindow..
> 
> i've tried _parent, _root, mx.core.Application.application ... how do
> I talk backwards to id in parent in this situation?
> 
> -Steve
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Sponsor
> 
> 
> 
> ADVERTISEMENT
>  
>

oups/S=1705007207:HM/EXP=1112211794/A=2593423/R=0/SIG=11el9gslf/*http:/www.n
> etflix.com/Default?mqso=60190075> click here
> 
> 
>  
>
 :HM/A=2593423/rand=725107526> 
> 
>  
> 
>   _  
> 
> Yahoo! Groups Links
> 
> * To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
>  
>   
> * To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>  
>   
> * Your use of Yahoo! Groups is subject to the Yahoo!
>   Terms of Service.





 
Yahoo! Groups Links

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

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

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





[flexcoders] Flex with HitBox (HBX)

2005-03-30 Thread jonbez


Hi there,

I have just received a request from our marketing dept to have HitBox
included into our Flex app.  I know very little (OK - nothing) about
it - so I wonder if anyone has any pearls of wisdom to share.

I believe it is possible to connect it to ActionScript somehow, and
use it that way.  Does anyone know if there is a better way to maybe
integrate that with URLs/RemoteObjects or whatever.

Thanks

Jonathan





 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] Flex with HitBox (HBX)

2005-03-30 Thread Robert Stuttaford

You're going to have to tell us what a hit box is, first :)

-Original Message-
From: jonbez [mailto:[EMAIL PROTECTED] 
Sent: 30 March 2005 04:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex with HitBox (HBX)



Hi there,

I have just received a request from our marketing dept to have HitBox
included into our Flex app.  I know very little (OK - nothing) about
it - so I wonder if anyone has any pearls of wisdom to share.

I believe it is possible to connect it to ActionScript somehow, and
use it that way.  Does anyone know if there is a better way to maybe
integrate that with URLs/RemoteObjects or whatever.

Thanks

Jonathan





 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] prevent Double click

2005-03-30 Thread [EMAIL PROTECTED]

Hi, Simon,
the price of this work (It makes me wish I was walking up in the 
mountains instead of sitting in front of a computer all day long!)
Bye ;-)
see you

Simon Fifield ha scritto:

> hi Devis,
>  
> I highly recommend using Cairngorm framework for your apps. My Apps 
> were like spaghetti junction (that means complicated) before I started 
> using Cairngorm.
>  
> I just wished they had used a different name for it because A) its 
> long, and B) It makes me wish I was walking up in the mountains 
> instead of sitting in front of a computer all day long!
>  
> Regards,
> Simon Fifield
>
> -Original Message-
> *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> *Sent:* 30 March 2005 09:44
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] prevent Double click
>
> Sorry we don't use Cairngorm, but i'm looking ViewHelper for
> understand
> the mechanism,
> thanks you vey much
> Devis
>
> Laurent Cornelis ha scritto:
>
> >If you use Cairngorm, use a ViewHelper to change the button
> state. This
> >way you can change the state from anywhere.
> >
> >Regards,
> >
> >Laurent Cornélis
> >
> >[EMAIL PROTECTED] a écrit :
> > 
> >
> >>thanks Gordon, but i'm using our framework for receive data
> >>(ServiceLocator etc)
> >>and our function are called in other piece of code in our
> project, and
> >>the id or name of button are not the same, and i think to put in
> our
> >>delgate all id button it's not a good idea, (in our case)
> >>Devis
> >>
> >>
> >>
> >>Gordon Smith ha scritto:
> >>
> >>
> >>   
> >>
> >>>Disable the button in your click handler when you call your
> RemoteObject
> >>>method. Re-enable it when your result handler is called.
> >>>
> >>>- Gordon
> >>>
> >>>
> >>>-Original Message-
> >>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >>>Sent: Tuesday, March 29, 2005 11:53 PM
> >>>To: Flex Coders
> >>>Subject: [flexcoders] prevent Double click
> >>>
> >>>
> >>>
> >>>Hi,
> >>>have some suggestion from prevent double click on the button? for
> >>>example my button throw some functions on back-end,
> >>>i wish to disable button until the function are end.
> >>>It's possible?
> >>>Devis
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>Yahoo! Groups Links
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>Yahoo! Groups Links
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> 
> >>>
> >>
> >>
> >>
> >>Yahoo! Groups Links
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>   
> >>
> >
> >
> >
> >
> >Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> > 
> >
>
>
>
> *Yahoo! Groups Sponsor*
> ADVERTISEMENT
> click here
> 
> 
>
>
>
> 
> *Yahoo! Groups Links*
>
> * To visit your group on the web, go to:
>   http://groups.yahoo.com/group/flexcoders/
>
> * To unsubscribe from this group, send an email to:
>   [EMAIL PROTECTED]
>   
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>   Service .
>
>



 
Yahoo! Groups Links

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

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

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





[flexcoders] MenuBar: how to Hyperlink an item

2005-03-30 Thread Ghislain Simard


How to get an item in my menu bar hyperlinked?

Here is my XML where my MenuBar is refering to:

 
 
 
 
 
  
  
 


Thanks





 
Yahoo! Groups Links

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

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

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





[flexcoders] custom formatter

2005-03-30 Thread Steve Pruitt





The format method on 
a custom formatter is not being called.  I have trace stmts in the format 
method and they never print and the intended formatting doesn't 
happen.
The class looks 
like:
 
   class 
myformatters.VersionStatusFormatter extends Formatter
   
{
  :
  :
  public function format(value : String) : 
String
  {
    :
    :
    return 
someString;
  }
  
}
 
Its defined 
in a mxml like this:
 

 
And then I use it 
like this:
 
private function 
getVersionStatus() : String{ 
trace("VersionedAdmin - getVersionStatus");   return 
statusFormatter.format(someString);  //someString is defined 
globally}
 
I tried inlining the 
format method call in the text= attribute, but it didn't work there 
either.  Everything compiles ok.  And statusFormatter appears to be 
set to
something, ala  
toString() reveals statusFormatter[object Object].
 
 
-S
 







Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Flex with HitBox (HBX)

2005-03-30 Thread Jonathan Bezuidenhout

It is software to track people's beahviour and analyzes it

http://www.websidestory.com/services-solutions/hbx/overview.html

http://www.macromedia.com/macromedia/proom/pr/2001/websidestory.html

e.g. if you go to a page, and stay there for a couple of mins, or
click on certain things it can track it - so if you have a link or
something that is very popular and another thing that is not, they can
tell if it is popular or not etc.


On Wed, 30 Mar 2005 16:29:46 +0200, Robert Stuttaford
<[EMAIL PROTECTED]> wrote:
>  You're going to have to tell us what a hit box is, first :)
>  
>  -Original Message-
>  From: jonbez [mailto:[EMAIL PROTECTED] 
>  Sent: 30 March 2005 04:24 PM
>  To: flexcoders@yahoogroups.com
>  Subject: [flexcoders] Flex with HitBox (HBX)
>  
>  
>  
>  Hi there,
>  
>  I have just received a request from our marketing dept to have HitBox
>  included into our Flex app.  I know very little (OK - nothing) about
>  it - so I wonder if anyone has any pearls of wisdom to share.
>  
>  I believe it is possible to connect it to ActionScript somehow, and
>  use it that way.  Does anyone know if there is a better way to maybe
>  integrate that with URLs/RemoteObjects or whatever.
>  
>  Thanks
>  
>  Jonathan
>  
>  
>  
>  
>  
>  
>  Yahoo! Groups Links
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  Yahoo! Groups Sponsor 
>  
>  ADVERTISEMENT
>  
>  
>  
>  Yahoo! Groups Links
>  
>  
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
>   
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] Flex with HitBox (HBX)

2005-03-30 Thread Robertson-Ravo, Neil (RX)

You could also look at Webtrends - it may be easier to integrate...



-Original Message-
From: Jonathan Bezuidenhout [mailto:[EMAIL PROTECTED] 
Sent: 30 March 2005 16:27
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex with HitBox (HBX)


It is software to track people's beahviour and analyzes it

http://www.websidestory.com/services-solutions/hbx/overview.html

http://www.macromedia.com/macromedia/proom/pr/2001/websidestory.html

e.g. if you go to a page, and stay there for a couple of mins, or
click on certain things it can track it - so if you have a link or
something that is very popular and another thing that is not, they can
tell if it is popular or not etc.


On Wed, 30 Mar 2005 16:29:46 +0200, Robert Stuttaford
<[EMAIL PROTECTED]> wrote:
>  You're going to have to tell us what a hit box is, first :)
>  
>  -Original Message-
>  From: jonbez [mailto:[EMAIL PROTECTED] 
>  Sent: 30 March 2005 04:24 PM
>  To: flexcoders@yahoogroups.com
>  Subject: [flexcoders] Flex with HitBox (HBX)
>  
>  
>  
>  Hi there,
>  
>  I have just received a request from our marketing dept to have HitBox
>  included into our Flex app.  I know very little (OK - nothing) about
>  it - so I wonder if anyone has any pearls of wisdom to share.
>  
>  I believe it is possible to connect it to ActionScript somehow, and
>  use it that way.  Does anyone know if there is a better way to maybe
>  integrate that with URLs/RemoteObjects or whatever.
>  
>  Thanks
>  
>  Jonathan
>  
>  
>  
>  
>  
>  
>  Yahoo! Groups Links
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  Yahoo! Groups Sponsor 
>  
>  ADVERTISEMENT
>  
>  
>  
>  Yahoo! Groups Links
>  
>  
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
>   
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


 
Yahoo! Groups Links



 


This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions.
Visit our website at http://www.reedexpo.com


 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] LabelFunctions and SortFunctions

2005-03-30 Thread Simon Fifield





Hi 
Dirk,
 
Thanks 
for the suggestion, I hadn't thought of that, but it didn't work when I tried 
it. So I tried just 
 
dg.getColumnAt( 0 ).labelFunction = dgVH.labelFunc;
 
and 
this did work. Its a big improvement over wrapping external class functions with 
a function!
 
But 
what I was originally trying to do was set the labelfunction in the MXML which 
was giving the error I described. I also tried your suggestion here, but this 
didn't work either.
 
Thanks 
for your pointer,
 
Regards,
Simon 
Fifield
 

  -Original Message-From: Dirk Eismann 
  [mailto:[EMAIL PROTECTED]Sent: 30 March 2005 
  15:05To: flexcoders@yahoogroups.comSubject: RE: 
  [flexcoders] LabelFunctions and SortFunctionsHave you 
  tried using the mx.utils.Delegate class?  
  myGrid.getColumnAt(0).labelFunction = 
  mx.utils.Delegate.create(anotherClassInstance, 
  anotherFunction);haven't tested it, but it should 
  work.Dirk.-Original Message-From: Simon Fifield 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, March 30, 2005 4:03 
  PMTo: [EMAIL PROTECTED] ComSubject: [flexcoders] LabelFunctions 
  and SortFunctionsAt the moment a labelFunction or sortFunction has 
  to be defined in the MXML file that it is being used in.It would be 
  nice to be able to use an external Class to achieve this and thus enhance code 
  clarity and re-use.Does anyone have any ideas on this?Kind 
  Regards,Simon FifieldYahoo! Groups 
  SponsorADVERTISEMENTYahoo! Groups 
  LinksTo visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/  
  To unsubscribe from this group, send an email 
  to:[EMAIL PROTECTED]  Your use of Yahoo! 
  Groups is subject to the Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] Flex with HitBox (HBX)

2005-03-30 Thread Steven Webster

What you are actually asking about then is how to integrate with
an analytics too; most analytics tools actually work by using
Javascript or by exposing an XML over HTTP(s) or SOAP API.

Rather than try and embed a hidden image (the common trick for
analytics) you should look to see what integration technologies
your particular analytics vendor supports (WebSideStory for 
instance, uses Cookies and JavaScript).

There's an article on integrating with Omniture, which also
uses a JavaScript and Cookie tracking mechanism, here:

http://www.macromedia.com/devnet/flex/articles/analytic_app_print.html

That's probably the starting point you are looking for.

We have just (about) completed a major Flex app that has 
analytics requirements, and a piece of advice is that you
need to have your customer (marketing dept) think very
carefully about what information they want OUT of the
analytics engine.with an RIA we break free of the
concept of page-impressions, and analytics allows us to
gain much more powerful metrics, by tracking significant
business events that convey much more meaning about
how users are using and not using your application, than
page impressions can signify (ie if someone refreshes
a page several times on online banking application, is
it because they made seven bill payments, or is it because
they failed seven times to pay one bill ?).

If you just want to churn lots of guff out into the logs
however, and impress a marketing department that will never
actually use the info, just ask for it, then you should
look to extending the Cairngorm Controller class to 
log events + corresponding data for every user-gesture.

Good luck,

Steven

--
Steven Webster
Technical Director
iteration::two
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.
 

> -Original Message-
> From: Jonathan Bezuidenhout [mailto:[EMAIL PROTECTED] 
> Sent: 30 March 2005 16:27
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Flex with HitBox (HBX)
> 
> 
> It is software to track people's beahviour and analyzes it
> 
> http://www.websidestory.com/services-solutions/hbx/overview.html
> 
> http://www.macromedia.com/macromedia/proom/pr/2001/websidestory.html
> 
> e.g. if you go to a page, and stay there for a couple of 
> mins, or click on certain things it can track it - so if you 
> have a link or something that is very popular and another 
> thing that is not, they can tell if it is popular or not etc.
> 
> 
> On Wed, 30 Mar 2005 16:29:46 +0200, Robert Stuttaford 
> <[EMAIL PROTECTED]> wrote:
> >  You're going to have to tell us what a hit box is, first :)
> >  
> >  -Original Message-
> >  From: jonbez [mailto:[EMAIL PROTECTED]
> >  Sent: 30 March 2005 04:24 PM
> >  To: flexcoders@yahoogroups.com
> >  Subject: [flexcoders] Flex with HitBox (HBX)
> >  
> >  
> >  
> >  Hi there,
> >  
> >  I have just received a request from our marketing dept to 
> have HitBox  
> > included into our Flex app.  I know very little (OK - 
> nothing) about  
> > it - so I wonder if anyone has any pearls of wisdom to share.
> >  
> >  I believe it is possible to connect it to ActionScript 
> somehow, and  
> > use it that way.  Does anyone know if there is a better way 
> to maybe  
> > integrate that with URLs/RemoteObjects or whatever.
> >  
> >  Thanks
> >  
> >  Jonathan
> >  
> >  
> >  
> >  
> >  
> >  
> >  Yahoo! Groups Links
> >  
> >  
> >  
> >  
> >  
> >  
> >  
> >  
> >  
> >  
> >  Yahoo! Groups Sponsor
> >  
> >  ADVERTISEMENT
> >  
> >  
> >  
> >  Yahoo! Groups Links
> >  
> >  
> > To visit your group on the web, go to:
> > http://groups.yahoo.com/group/flexcoders/
> >   
> > To unsubscribe from this group, send an email to:
> > [EMAIL PROTECTED]
> >   
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.8.5 - Release Date: 29/03/2005
>  
> 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.5 - Release Date: 29/03/2005
 



 
Yahoo! Groups Links

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

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

<*> Your use of Yahoo! Groups is subj

RE: [flexcoders] LabelFunctions and SortFunctions

2005-03-30 Thread Dirk Eismann

Hi,

I'm glad it worked. There was a mistake in my first post: the object you want 
to call the function on needs to be added to the Delegate call. In your case:

dg.getColumnAt( 0 ).labelFunction = mx.utils.Delegate.create(dgVH, 
dgVH.labelFunc);

This enforces that the function is called with the right scope. 

Dirk.

-Original Message-
From: Simon Fifield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 30, 2005 5:45 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] LabelFunctions and SortFunctions


Hi Dirk,

Thanks for the suggestion, I hadn't thought of that, but it didn't work when I 
tried it. So I tried just 

dg.getColumnAt( 0 ).labelFunction = dgVH.labelFunc;

and this did work. Its a big improvement over wrapping external class functions 
with a function!

But what I was originally trying to do was set the labelfunction in the MXML 
which was giving the error I described. I also tried your suggestion here, but 
this didn't work either.

Thanks for your pointer,

Regards,
Simon Fifield

-Original Message-
From: Dirk Eismann [mailto:[EMAIL PROTECTED]
Sent: 30 March 2005 15:05
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] LabelFunctions and SortFunctions


Have you tried using the mx.utils.Delegate class?

  myGrid.getColumnAt(0).labelFunction = 
mx.utils.Delegate.create(anotherClassInstance, anotherFunction);

haven't tested it, but it should work.

Dirk.

-Original Message-
From: Simon Fifield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 30, 2005 4:03 PM
To: [EMAIL PROTECTED] Com
Subject: [flexcoders] LabelFunctions and SortFunctions


At the moment a labelFunction or sortFunction has to be defined in the MXML 
file that it is being used in.

It would be nice to be able to use an external Class to achieve this and thus 
enhance code clarity and re-use.

Does anyone have any ideas on this?

Kind Regards,

Simon Fifield


Yahoo! Groups Sponsor
ADVERTISEMENT






Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
  
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


Yahoo! Groups Sponsor
ADVERTISEMENT






Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
  
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] LabelFunctions and SortFunctions

2005-03-30 Thread Simon Fifield





Hi 
Dirk,
 
I haven't quite got my head around the whole Delegate thing 
yet.
When 
you say "This enforces that the 
function is called with the right scope" what do you 
mean?
 
I 
understand scope - so if I set my labelFunction without using the Delegate 
class, is there a chance of using or changing variables in the wrong 
place - or something like that?
 
Simon

  -Original Message-From: Dirk Eismann 
  [mailto:[EMAIL PROTECTED]Sent: 30 March 2005 
  16:54To: flexcoders@yahoogroups.comSubject: RE: 
  [flexcoders] LabelFunctions and 
  SortFunctionsHi,I'm glad it worked. There was 
  a mistake in my first post: the object you want to call the function on needs 
  to be added to the Delegate call. In your case:dg.getColumnAt( 0 
  ).labelFunction = mx.utils.Delegate.create(dgVH, dgVH.labelFunc);This 
  enforces that the function is called with the right scope. 
  Dirk.-Original Message-From: Simon Fifield 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, March 30, 2005 5:45 
  PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] 
  LabelFunctions and SortFunctionsHi Dirk,Thanks for the 
  suggestion, I hadn't thought of that, but it didn't work when I tried it. So I 
  tried just dg.getColumnAt( 0 ).labelFunction = 
  dgVH.labelFunc;and this did work. Its a big improvement over wrapping 
  external class functions with a function!But what I was originally 
  trying to do was set the labelfunction in the MXML which was giving the error 
  I described. I also tried your suggestion here, but this didn't work 
  either.Thanks for your pointer,Regards,Simon 
  Fifield-Original Message-From: Dirk Eismann 
  [mailto:[EMAIL PROTECTED]Sent: 30 March 2005 15:05To: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] LabelFunctions and 
  SortFunctionsHave you tried using the mx.utils.Delegate 
  class?  myGrid.getColumnAt(0).labelFunction = 
  mx.utils.Delegate.create(anotherClassInstance, 
  anotherFunction);haven't tested it, but it should 
  work.Dirk.-Original Message-From: Simon Fifield 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, March 30, 2005 4:03 
  PMTo: [EMAIL PROTECTED] ComSubject: [flexcoders] LabelFunctions 
  and SortFunctionsAt the moment a labelFunction or sortFunction has 
  to be defined in the MXML file that it is being used in.It would be 
  nice to be able to use an external Class to achieve this and thus enhance code 
  clarity and re-use.Does anyone have any ideas on this?Kind 
  Regards,Simon FifieldYahoo! Groups 
  SponsorADVERTISEMENTYahoo! Groups 
  LinksTo visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/  
  To unsubscribe from this group, send an email 
  to:[EMAIL PROTECTED]  Your use of Yahoo! 
  Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups 
  SponsorADVERTISEMENTYahoo! Groups 
  LinksTo visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/  
  To unsubscribe from this group, send an email 
  to:[EMAIL PROTECTED]  Your use of Yahoo! 
  Groups is subject to the Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] super.super?

2005-03-30 Thread Gordon Smith
Title: Message





This 
is actually a bug in DateChooser's createChildren(). A createChildren() routine 
should not recreate children than already exist.
 
It 
isn't possible to use super.super but you could probably play games like 
UIComponent.prototype.createChildren.call().
 
- 
Gordon

  
  -Original Message-From: Simon Fifield 
  [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 
  2:52 AMTo: flexcoders@yahoogroups.comSubject: RE: 
  [flexcoders] super.super?
  I 
  have extended the DateChooser component to allow user to click 
  through Years and Months rather than just Months.
   
  I 
  have overridden the createChildren() method. DateChooser calls 
  super.createChildren(). If I call super.createChildren() in my subclass at the 
  end of my method it redefines the objects that I have overridden, if I call it 
  at the beginning of my method before I create the objects, it does most of the 
  work twice.
   
  It 
  works if I don't call super.createChildren() at all, but there are side 
  effects that I have to fix after anyway.
   
  If 
  the superClass creates and lays-out objects that I do not want in my subClass 
  I would like to be able to call the superClass' super methods to by-pass the 
  instantiation and layout of the objects that I don't want.
   
  But 
  I presume its not possible?
   
  
-Original Message-From: Chris Velevitch 
[mailto:[EMAIL PROTECTED]Sent: 30 March 2005 
03:15To: flexcoders@yahoogroups.comSubject: Re: 
[flexcoders] super.super?If you are in a method of 
say class C which extends class B, thencalling super.someMethodName 
works. If class B extends class A and Bdoesn't redefine a method of A, 
say, called methodOfA, then in class Cyou can call super.methodOfA. This 
is because, through inheritance,all unredefined methods of A are 
automatically available to B. Superonly works one level 
up.







Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Re: custom theme error

2005-03-30 Thread d_marttila


Hi Abdul,

Thanks for your response. I've done a little more testing. 

Your example does not work for me either. I get the same error. "Error
/pulseBlueThemeTest.mxml:1 
Unable to load theme themes/pulseBlue.swc" I am running the JRun
integrated server on my machine. I also tested on my home machine
(identical setup) and got the same error. I am running XPPro on both.

But, I installed your example on a workmate's machine and got it to
work. He is running Flex in Apache (not JRun) on his machine.

So, I guess I will install Apache and try that. Maybe some setting
with the integrated server?

In addition to this test, I've been creating custom components in
Flash and running them in Flex - and that's been working. So, I'm
pretty sure my directory structure is correct. Plus, with this theme
problem, I tried parent directory, same directory, etc. 

I'll post again when I get Apache running.

Thanks for your help,

Doug

--- In flexcoders@yahoogroups.com, Abdul Qabiz <[EMAIL PROTECTED]> wrote:
> Hi Doug,
> 
> Can you send me directory structure of your application?
> 
> Just want to make sure, everything in right place...Please tell us
where is
> theme directory, where is mxml file and all...
> 
> I doubt, there is some problem with path
> 
> Please find the attached zip file, extract the content in some
folder under
> your flex webroot and test "pulseBlueThemeTest.mxml"...Let me know
what you
> see...
> 
> -abdul
>  
> 
> -Original Message-
> From: d_marttila [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 30, 2005 4:13 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] custom theme error
> 
> 
> 
> Hi,
> 
> I've been trying to load a custom theme in Flex and have had no luck.
> Here's the code:
> 
> 
>   http://www.macromedia.com/2003/mxml";
> theme="theme/DougHalo.swc">
>   
> 
> 
> I get the following error: "unable to load theme theme/DougHalo.swc"
> 
> I am using FlexBuilder 1,5, Flex 1.5, and MX2004 Pro. In addition to
> trying to create my own theme, I have tried the pulseBlue.swc theme
> that is installed with Flex 1.5 (C:\Program
> Files\Macromedia\Flex\resources\themes\graphic\pulseBlue). That didn't
> work either -- same error.
> 
> Class path points to $(LocalData)/Flex Classes.
> 
> I used the following as references:
> 
> http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19322
> 
> And the Themes section of Chapter 11 in the Webster Flex book.
> 
> Basically, I opened the HaloTheme.fla. Saved as. Modified a graphic.
> Right clicked the Halo Theme - export SWC file.
> 
> Thanks,
> 
> Doug
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links





 
Yahoo! Groups Links

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

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

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





[flexcoders] Progress/Waiting screen...

2005-03-30 Thread Anthony Merryfield
Title: Progress/Waiting screen...








Hi Coders,


Anybody know of a good tutorial/guide to adding a waiting screen to a Flex app? I have a Flash animation that I need to show while the user waits for stuff to load. Google brought up a few bits but nothing particularly useful.

Cheers,


Tony.




This communication together with any attachments transmitted with it ("this E-Mail") is intended only for the use of the addressee and may contain information which is privileged and confidential.  If the reader of this E-Mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are hereby notified that any use, dissemination, forwarding, printing or copying of this E-Mail is strictly prohibited.  Addressees should check this E-mail for viruses.  The Company makes no representations as regards the absence of viruses in this E-Mail.  If you have received this E-Mail in error please notify our ISe Response Team immediately by telephone on +44 (0)20 8896 5828 or via e-mail at [EMAIL PROTECTED]  Please then immediately delete, erase or otherwise destroy this E-Mail and any copies of it.

Any opinions expressed in this E-Mail are those of the author and do not necessarily constitute the views of the Company.  Nothing in this E-Mail shall bind the Company in any contract or obligation.

For the purposes of this E-Mail "the Company" means The Carphone Warehouse Group Plc and/or any of its subsidiaries.

Please feel free to visit our website:  http:// www.carphonewarehouse.com or http://www.phonehouse.com

The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1 Portal Way, London W3 6RS









Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] ActionScript question

2005-03-30 Thread Matt Chotin










Well you could have both the fault handler
for the first function and the result handler call the 2nd method. 
In ActionScript there is no way to “wait” for a function that makes
a network call to complete.  If you look in the docs for the Asynchronous
Completion Token pattern you might be able to get some ideas as to how you
could link up calls.  I think the Flex book also talks about strategies and you
could see how they might fit into Cairngorm (even though you’re not using
it right now).

 

Matt

 









From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 30, 2005
5:16 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
ActionScript question



 

Hi,
it's ok ,
but i can't to put into my second function into
"onResult handler" 
because, "this second function"
not  must throws always.
Sorry in few words,
i have 2 actionScript function, i must run these
function in called 
after first function is called, can you help me
please.
Devis

Abdul Qabiz ha scritto:

>Hi Devis,
>
>As long as first function doesn't call any
asynchronous operation, both
>functions would be execute in an order...
>
>If you are calling some webservice/remoting
method from first function, then
>you can keep second function call in onResult
handler of first function
>call
>
>That ways, you would be sure that second
function is always called after
>first function is called and results are
received from server...
>
>-abdul
>
>-Original Message-
>From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
>Sent: Wednesday, March 30, 2005 4:48 PM
>To: Flex Coders
>Subject: [flexcoders] ActionScript question
>
>
>Sorry,
>premised, i don't know very well ActionScript,
but can you to explain 
>me  why ActionScript if have 2 functions
like these
>
>  

>delegate.getSchedaMisure(mx.core.Application.application.vopf[0],0,100);
>  
delegate.ClonaCicli((CCicliMisureVO) 
>event.data,mx.core.Application.application.vopf[0]);  

>
>
>i wish that run first function , and until
it  is not ended, don't run 
>the second function, this in java and C++ for
me it's normal but i don't 
>know how ActionScript reason.
>please...
>Bye Devis
>
>
>
> 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>
>
> 
>Yahoo! Groups Links
>
>
>
> 
>
>
>  
>














Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[flexcoders] loading the data from xml file

2005-03-30 Thread Pathy



Hi all,
 
i am very new to Flex.
 
i want to load the data from the xml file to dataGrid component in flex. please help me out
 
Thanks and reg.
venkat 
		Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site! 







Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] Re: RemoteObjects and UI within UI problem

2005-03-30 Thread Dimitrios Gianninas





Well I got side tracked with 
working on something else last week, so I had to put this experiment on 
hold.
 
So I got back to it today and 
tried adding the crossdomain.xml files to both domains as Matt suggested, but 
that doesn't work.
 
You are correct, using the 
ServiceLocator in a UI within UI scenario makes it use the service.mxml used by 
the parent UI. I then tried to hardcode the AS2 delegate to use the 
services.mxml specified in the child UI and that doesn't seem to be working 
either.
 
So I guess when in a UI within 
UI scenario, you have to specify all RO objects within the parent UI only and 
that should do the trick... however that is not what I am interested 
in.
 
Jimmy 
Gianninas
Software Developer - 
Optimal Payments 
Inc.
 


From: james_d_mercer 
[mailto:[EMAIL PROTECTED] Sent: Saturday, March 19, 2005 
1:35 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] 
Re: RemoteObjects and UI within UI problem
P.S.  In addition to my last post:Do you have a 
services file in your parent app and another one in your child app?  If 
so, that would be your first problem.  The ServiceLocator class with 
throw an exception if it is created twice :)  good luck!Dustin 
Mercer--- In flexcoders@yahoogroups.com, "Dimitrios Gianninas" 
<[EMAIL PROTECTED]> wrote:> Hi Dustin,>  
> Thanks for sharing that information. Yes I did run into the 
width/height> troubles, but I saw that setting the exact width and 
height of the> nighthawk.mxml caused it to appear properly when loaded 
within the> phoenix.mxml.>  > Now back to the problem, 
one thing I forgot to mention the first time> around was that since I 
am using Cairngorm, I have the following> declaration in the 
nighthawk.mxml:>  > >  > Which is  a component that contains all my 
RemoteObject definitions. If> I leave that line in the 
nighthawk.mxml, when loaded into Phoenix,> nothing appears. Remove that 
line and it does appear. I then took the> single RO and put it 
directly in the nighthawk.mxml and was doing> 
Application.application.queryServices to use it, but like you 
explained> below, using Application.application in a UI within a UI 
scenario> references the top level UI and thus does not work. So anyways, 
I tried> to work around this in several ways and it still doesn't 
work, the UI> loads via the Loader, but no remote calls every get 
made.>  > You are right however, the Loader component may 
need some enhancement. I> am using it now in this fashion in order to 
accomplish single sign on.> Also, I know that the child UI can 
reference the parent UI, but there> does not seem to be a specific 
way for the parent to tell the child to> do something (or invoke a 
method on it).>  > Did you ever get it to work at all in your 
case? >  > Jimmy Gianninas> Software Developer - 
Optimal Payments Inc.>  > >   _  
> > From: Mercer, Dustin [mailto:[EMAIL PROTECTED] > 
Sent: Friday, March 18, 2005 7:48 PM> To: 
flexcoders@yahoogroups.com> Subject: RE: [flexcoders] RemoteObjects and 
UI within UI problem> > > > I had hit some of the 
same problems.  A possible solution may be because> you are 
referencing mx.core.Application.application from within your> result 
handler of the remote object.  When using a loader, if you> 
reference mx.core.Application.application from within nighthawk.mxml> 
(Child Component), it actually points to the> 
mx.core.Application.application of phoenix.mxml (Parent 
Application).> It is because of static variable issues between the 
apps.  Loader is> extremely cool, but IMHO unusable for what you 
are trying to accomplish.> Macromedia has to give some sort of new 
component, revamp the loader, or> give us guidelines on using loaders 
properly.  I had the same issues> when I tried to accomplish 
this.  Maybe someone else has some> suggestions on how to get 
loaders working properly:-). > >  > > 
P.S.  there are also major sizing issues if you want to use 
percentage> widths and heights on an application being loaded from a 
loader.  Just> FYI> >  > 
>   _  > > From: Dimitrios 
Gianninas> [mailto:[EMAIL PROTECTED] > Sent: Friday, March 
18, 2005 10:47 AM> To: flexcoders@yahoogroups.com> Subject: 
[flexcoders] RemoteObjects and UI within UI problem> >  
> > Hi,> >  > > Just been playing 
around with having one Flex UI within another and I am> experiencing 
a little problem, and thus I was wondering if anyone has> come across 
this problem and might have a solution.> >  > > 
This is all under JRun 4 SP4... so we have the parent UI at> http://localhost:8200/phoenix/phoenix.mxml 
and the child UI at> http://localhost:8204/nighthawk/nighthawk.mxml> 
>  > > Now using the loader component in phoenix.mxml 
I am able to load the> nighthawk.mxml, no problem, it appears. 
However when I hit a button to> perform an action which makes a 
remote call (via RemoteObject) nothing> happens. The nighthawk.mxml 
works perfectly on its own however.> >  > > 
Anyone have any insight?> >  > > Jimmy 
Gianninas> > Software Developer - Op

RE: [flexcoders] responding to a custom event - help requested

2005-03-30 Thread Jonathan Hirschi

Abdul,

thanks for the code.  It didn't work.  How do i check
for scope or context issues?


here's the application tag in my main page..
http://www.macromedia.com/2003/mxml";
pageTitle="iPortal Hardware Tracking Tool" 
initialize="initFunc();" xmlns="*"
xmlns:comp="components.*">
  

and here's the tag in my popup window...



http://www.macromedia.com/2003/mxml";
xmlns:comp="components.*"
title="Add/Edit Hardware"  closeButton="true"
width="570" height="450" 
click="this.deletePopUp();"  initialize="initme()">

Thanks for the help!

--- Abdul Qabiz <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Code looks fine. I am guessing, there are object
> scope or context issues.
> That is, callback function is called in different
> context instead of
> supposed one...
> 
> Use Delegate, just change the following line and see
> what happens...
> 
> 
> instwin.addEventListener("recAdded",
> mx.utils.Delegate.create(this,
> refreshRecs));
> 
> 
> -abdul
>  
> 
> -Original Message-
> From: Jonathan Hirschi [mailto:[EMAIL PROTECTED]
> 
> Sent: Wednesday, March 30, 2005 5:41 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] responding to a custom event -
> help requested
> 
> 
> Hey all, i've got a situation that I don't think i'm
> handling correctly...
> 
> situation:
> 
> I have a main application that contains a datagrid. 
> I
> create a popup to handle editing and when the edit
> has
> gone through, i want to refresh the main datagrid. 
> I'm trying to do this through an event (is that the
> right way to do it?).
> 
> Code
> -
> 
> calling the event from the main window:
> 
> instwin =
>
mx.managers.PopUpManager.createPopUp(this,RecWin,false,initObj);
> instwin.addEventListener("recAdded", refreshRecs);
> 
> On the popup side.. i have all of the editing
> code...
> where i have the form etc, then i submit it for
> editing (this all works)... but then when i get done
> with the edit/add i run this function that
> dispatches
> the event...
> 
> function processUpdate(result:Object):Void   {
>   if (result.isError == 'false')  {
>  textLabel = "update was Successful";
>  dispatchEvent({type:'recAdded'});
> //this.deletePopUp();
>   }  else {
>  textLabel = result.msg;
>   }
> }
> 
> In the main app, i try to chatch it with this
> function..
> 
> function refreshRecs(event) {
>   
>
getNewHardware(arrStatusFilter[statusSearch.selectedIndex].VAL,'','','');
> 
> }
> 
> the getNewHardware is a function that runs the
> processing of the new recordset... it works as well
> (i
> use it in another part)  
> 
> my best guess is that I'm not catching the event
> correctly... anybody know what I'm doing wrong?
> 
> Thanks!!
> 
> Jon Hirschi
> 
> 
>   
> __ 
> Do you Yahoo!? 
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/ 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] Re: referencing id in parent titlewindow from an other titlewindow?

2005-03-30 Thread Matt Chotin










Oh, yeah that might not work on a popup. 
Can you just pass the component through to the first TitleWindow like the
example does and then when it pops the 2nd TitleWindow do the same
thing?  Otherwise you probably have to walk down from the top to reach it,
Application.application.comp1.comp2…

 

Matt

 









From: stevenkeys2003
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 30, 2005
6:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
referencing id in parent titlewindow from another titlewindow?



 


Matt, tried out parentDocument with no luck.
syntax? 

The scenario I'm trying to replicate, but in a
different way, comes
from livedocs. The major difference being I'm not
starting on the main
app level, but from a different TitleWindow.

code from livedocs:
---
Passing data to a pop-up TitleWindow container

To make the custom component that defines your
TitleWindow container
more flexible, you might want to pass data to it
or return data from
it. For example, the following application opens a
pop-up TitleWindow
container and passes to it a reference to a
component in the
Application container so that the custom component
can write its
results back to the container:


http://www.macromedia.com/2003/mxml">

  
 
  

     
    
    
  


The custom component in the following example
defines a variable to
hold the reference to the parent component, then
uses that reference
to update the parent component:


http://www.macromedia.com/2003/mxml"

   click="deletePopUp()">

   
  
   

   
   
   
  this.deletePopUp();" />
   
 
---


Now, in my case this doesn't work of course,
because I'm starting from
a TitleWindow. If someone can provide some code
examples of one
TitleWindow changing props of a container in
another TitleWindow.. or
doing anything.. it'd be much appreciated. I need
two TitleWindows to
talk to one another, and have so far been
unsuccessful.

-Steve






--- In flexcoders@yahoogroups.com, Matt Chotin
<[EMAIL PROTECTED]> wrote:
> I think parentDocument is what you're looking
for.
> 
>  
> 
> Matt
> 
>  
> 
>   _  
> 
> From: stevenkeys2003 [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 29, 2005 11:42 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] referencing id in
parent titlewindow from another
> titlewindow?
> 
>  
> 
> 
> Guys, 
> I'm launching a titleWindow from another
titleWindow. I need to
> reference id of container in parent
titleWindow. How?
> 
> I've done this with components, but unable to
figure this one out when
> it comes to titleWindow referencing another
titleWindow..
> 
> i've tried _parent, _root,
mx.core.Application.application ... how do
> I talk backwards to id in parent in this
situation?
> 
> -Steve
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Sponsor
> 
> 
> 
> ADVERTISEMENT
>  
>

oups/S=1705007207:HM/EXP=1112211794/A=2593423/R=0/SIG=11el9gslf/*http:/www.n
> etflix.com/Default?mqso=60190075> click
here
> 
> 
>  
>
 :HM/A=2593423/rand=725107526> 
> 
>  
> 
>   _  
> 
> Yahoo! Groups Links
> 
> *  To visit your
group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
> 

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

>   
> *  Your use of
Yahoo! Groups is subject to the Yahoo!
>  
Terms of Service.
















Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[flexcoders] Large Flex app architecture

2005-03-30 Thread Valy Sivec




I'm designing a quite large application and plann to use viewstack container(s). Because each view will contain lots of panels and info I'm affraid that the browser might hit his limit in regards with the memory consumption and crash... seen couple of messages with the same problem and I would like to avoid it...
Actually I'm not even sure how the Flash Player garbage collector works or if there is any  I'm very new to this Flash/Flex world so sorry if the question is dumb...
Is it safe grouping the screens in multiple viewstacks and include them from the jsp pages? or should be enough having only one viewstack container for the whole application? Any suggestion?
Valy
 
		Do you Yahoo!? 
Make Yahoo! your home page 
 
 








Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] custom formatter

2005-03-30 Thread Matt Chotin










Can you use the FlexBuilder debugger or
FDB to step into getVersionStatus and see what happens?  I don’t think you’re
doing anything wrong, though I think the proper signature for format is:

 

public function format(value) : String
//note that value is untyped

{

 

}

 

Matt

 









From: Steve Pruitt
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 30, 2005
7:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] custom
formatter



 



The format method on a custom formatter is not being
called.  I have trace stmts in the format method and they never print and
the intended formatting doesn't happen.





The class looks like:





 





   class myformatters.VersionStatusFormatter
extends Formatter





   {





  :





  :





  public function format(value
: String) : String





  {





    :





    :





    return
someString;





  }





  }





 





Its defined in a mxml like this:





 











 





And then I use it like this:





 





private function getVersionStatus() : String
{
 trace("VersionedAdmin - getVersionStatus");

   return statusFormatter.format(someString);  //someString
is defined globally
}





 





I tried inlining the format method call in the text=
attribute, but it didn't work there either.  Everything compiles ok. 
And statusFormatter appears to be set to





something, ala  toString() reveals
statusFormatter[object Object].





 





 





-S





 
















Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[flexcoders] formatting charts

2005-03-30 Thread christoph larch

hi there,

is it possible to format charts (pie and column charts) via css?
i've got different xml files, load them dynamically and i want to
format them always with the same colors..

eg: instead naming all the colors, load them via css...


































thx in advance!
chris   



 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] formatting charts

2005-03-30 Thread Ely Greenfield




Hi chris. The answer is...sort of. The charts are completely stylable
through CSS. The big limitation is that the styleable chart properties make
heavy use of compound values...strokes, gradientFills, renderers, etc. Which
can't be expressed using the CSS syntax.

So a more fine grained answer to your question:

- can the charts be styled through flex's styling mechanism? Absolutely.
- can the values of these styles be expressed in the CSS syntax? Not always.

As an convenience feature, any style that accepts a fill value will accept
an RGB value that gets automatically converted into a SolidColor fill
object. So you should be able to specify colors for a PieSeries like this:

PieSeries {
Fills: #FF #00FF00 #FF;
}

(I can't remember exact syntax for arrays in CSS, but I think that's
correct).

As far as setting up pre-defined styles for more complex properties...The
best Approach I've seen is:

- define a faceless AS class, called 'MyPieStyles'
- in the constructor, have it create a CSSStyleDeclaration via AS. Give your
styleDeclaration an appropriate name (".blueTintPieSeries")
- populate the values of the style declaration via AS (setStyle("fill", new
LinearGradient(...)).
- drop the faceless component into your app ()
- now the style is available for you to use on your charts ()


Ely.


-Original Message-
From: christoph larch [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 30, 2005 9:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] formatting charts
Importance: High


hi there,

is it possible to format charts (pie and column charts) via css?
i've got different xml files, load them dynamically and i want to
format them always with the same colors..

eg: instead naming all the colors, load them via css...


































thx in advance!
chris   



 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

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

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

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





[flexcoders] Re: MenuBar: how to Hyperlink an item

2005-03-30 Thread joao_m_fernandes


Hi there,

When an item is selected an change event is broadcasted.
MenuBar broadcasts an event object with this properties
menuBar,menu,menuItem,groupName,type and target.
For what you need you can use it like this:

  
 
  



Your xml should look like this:

 
 
 
 http://www.macromedia.com/";
target="_self"/>
 
 
   
   
  
 




--- In flexcoders@yahoogroups.com, "Ghislain Simard" <[EMAIL PROTECTED]>
wrote:
> 
> How to get an item in my menu bar hyperlinked?
> 
> Here is my XML where my MenuBar is refering to:
> 
>  
>  
>  
>  
>  
>   
>   
>  
> 
> 
> Thanks





 
Yahoo! Groups Links

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

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

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





[flexcoders] Data Rows on MXML

2005-03-30 Thread Shahnavaz Alware










Hi, 

 

I am piloting the application in Flex where I am trying to bring
back 5000 records from backend. The application breaks down in between. I am
new to flex, so I am unaware of Memory management parameters which will allow
me to allot memory to flex which is running out of memory ( FlexServlet MemoryOutError
). So is there a way flex can handle large amount of data. 

Thanks in advance.

 

Shahn











Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] formatting charts

2005-03-30 Thread christoph larch

hi ely. worked great. thanks a lot.
just one more question:

with pie charts there is no problem, what should i do with
column charts?

eg:


   


data comes from somewhere else. which css tag is the right one for formatting?
tried columnseries but didn't work...

any suggestions?
thx
chris
At 19:42 30.03.2005, you wrote:




>Hi chris. The answer is...sort of. The charts are completely stylable
>through CSS. The big limitation is that the styleable chart properties make
>heavy use of compound values...strokes, gradientFills, renderers, etc. Which
>can't be expressed using the CSS syntax.
>
>So a more fine grained answer to your question:
>
>- can the charts be styled through flex's styling mechanism? Absolutely.
>- can the values of these styles be expressed in the CSS syntax? Not always.
>
>As an convenience feature, any style that accepts a fill value will accept
>an RGB value that gets automatically converted into a SolidColor fill
>object. So you should be able to specify colors for a PieSeries like this:
>
>PieSeries {
> Fills: #FF #00FF00 #FF;
>}
>
>(I can't remember exact syntax for arrays in CSS, but I think that's
>correct).
>
>As far as setting up pre-defined styles for more complex properties...The
>best Approach I've seen is:
>
>- define a faceless AS class, called 'MyPieStyles'
>- in the constructor, have it create a CSSStyleDeclaration via AS. Give your
>styleDeclaration an appropriate name (".blueTintPieSeries")
>- populate the values of the style declaration via AS (setStyle("fill", new
>LinearGradient(...)).
>- drop the faceless component into your app ()
>- now the style is available for you to use on your charts (styleName="blueTintPieSeries" />)
>
>
>Ely.
>
>
>-Original Message-
>From: christoph larch [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 30, 2005 9:19 AM
>To: flexcoders@yahoogroups.com
>Subject: [flexcoders] formatting charts
>Importance: High
>
>
>hi there,
>
>is it possible to format charts (pie and column charts) via css?
>i've got different xml files, load them dynamically and i want to
>format them always with the same colors..
>
>eg: instead naming all the colors, load them via css...
>
> source="actual_customer_satisfaction.xml" />
>
>id="general_satisfaction"
>   dataProvider="{results.satisfaction}">
>
> 
>
> 
>
> field="GENERAL"
>   labelFunction="getLabel"
>   labelPosition="inside"
>   >
> 
> 
>
>
>
>
>
>
>
>
>
>
> 
> 
>
> 
>
> 
>
> 
>
> 
>
>
>thx in advance!
>chris
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>

we make IT
hauser+larch gmbH
josef abentung weg 48
a-6091 goetzens

phone +43 / 5234 / 336 84
fax +43 / 5234 / 336 85 



 
Yahoo! Groups Links

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

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

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





[flexcoders] Re: Large Flex app architecture

2005-03-30 Thread stevenkeys2003


Valy, the only suggestion I have is break things up into separate 
components (mxml pages) as much as possible. 

Here's some steps we've taken  to help combat mem/load issues:

Eventually you're going to run into even the 32K limit on each file
like we did. Keep all your actionscript in separate .as files and
include them inline in your mxml (using  to help avoid this. And rememeber to keep
code efficient, as every line adds up.

Separate out your remoteobject calls... 

http://dev.mfgquote.com/flashservices/gateway?a";
source="app.machii.model.FlexUser" showBusyCursor="true">


http://dev.mfgquote.com/flashservices/gateway?b";
source="app.machii.model.FlexUser" showBusyCursor="true">



and remember to append the ?x to trick the gateway so as to not
bombard it but to attack it seperately.. there's an article about this
in detail online (if someone can provide url)

do as much preplanning as possible ... to break this "large app" up.
Ensure you're not trying to put too much into just 1 application.

Also from a backend perspective, don't send too much data down the
pipe either.. (ie. 10,000 rows vers 500) Perfect your backend code/sql
to  send down only what is necessary for that given moment.

Look at your overall container load.. do you truly need viewstacks
everywhere? Mainly, keep nesting down to a minimum.. the more
containers you add, the larger the overall load.

keep breakin up the pieces mon, that's the key -- compartmentalize
your tools/apps/functions 

good luck.

-Steve






--- In flexcoders@yahoogroups.com, Valy Sivec <[EMAIL PROTECTED]> wrote:
> 
> I'm designing a quite large application and plann to use viewstack
container(s). Because each view will contain lots of panels and info
I'm affraid that the browser might hit his limit in regards with the
memory consumption and crash... seen couple of messages with the same
problem and I would like to avoid it...
> 
> Actually I'm not even sure how the Flash Player garbage collector
works or if there is any  I'm very new to this Flash/Flex
world so sorry if the question is dumb...
> 
> Is it safe grouping the screens in multiple viewstacks and include
them from the jsp pages? or should be enough having only one viewstack
container for the whole application? Any suggestion?
> 
> Valy
> 
>  
> 
> 
>   
> -
> Do you Yahoo!?
>  Make Yahoo! your home page





 
Yahoo! Groups Links

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

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

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





[flexcoders] How to pass var to CFC when it is blank

2005-03-30 Thread cnewroth55


I have a form that I have several fields on and I am sending them to a
cfc for processing, however if any of the fields are blank then I get,
"Required parameter '' not found in input arguements". How can I
either validate the fields or allow them to be blank...
here is a sample of one of the field(s):


  
  

* on of the request inputs in the webservice call to the cfc;
{TypeOfAction.selectedData}

now if I don't check this radio box then I will get the error
mentioned above...i have other fields that vary from radio buttons to
text fields and if I don't fill them all in the I get that error. ANy
idea on how to allow for blank or nulls?
Craig Newroth
The Boeing Company - STL






 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] formatting charts

2005-03-30 Thread Ely Greenfield



Sure. That takes a little bit more explaining.  Each column series has a
'fill' style which contains a Fill object used to fill in the columns.
Rocket Science, I know ;)

The problem is, we want a a different value for 'fill' for each column
series in any given chart.  Why is this a problem?

The rules of CSS cascading generally are:
- if the tag has a local value specified for the style, it uses the
local value.
- if the tag has a stylename property that points to a selector with
a value specified for the style, it uses the stylename value.
- if there's a selector whose name matches the tag name with a value
specified for the style, it uses the tag name selector value.

With those three rules, there's no way, through CSS, to say 'this is the
value of the fill property for the 3rd appearance of the ColumnSeries tag
inside the ColumnChart.' ( I think CSS3 might have rules for such a
selector, but flex doesn't support CSS3 ;)

So in order to make charts 'do the right thing' without any work from the
developer, a little monkey business happens behind the scenes:

1. each chart has a style property called 'chartSeriesStyles'.
2. this property contains an array of strings. Each string should be the
name of another CSS selector.
3. When the chart is assigned its series objects, it sets the stylename of
each Nth series in the series array to the nth selector in the
'chartSeriesStyle' array.
4. if you manually set a 'stylename' on a particular series, it gets
priority over this special 'internal' stylename that the chart automatically
assigns.

So, back to your question.  If you wanted to write a CSS stylesheet that
automatically colored the columns in a chart blue, green, and red, you could
do something like this:


.PrimaryColorsColumnChart {
chartSeriesStyles: PCCSeries1 PCCSeries2 PCCSeries3;
}
.PCCSeries1 {
Fill: #FF;
}

.PCCSeries2 {
Fill: #00FF00;
}
.PCCSeries3 {
Fill: #FF;
}

If you have more series than available chartSeriesStyles, the chart will
cycle back through the list.

The same caveats apply here...there's no way to specify compound values in
CSS. So if you wanted to set up some reusable styles using gradients, you'd
follow the same general approach outlined above, but you'd have to set it up
it through actionscript.

Ely.


-Original Message-
From: christoph larch [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 30, 2005 10:35 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] formatting charts
Importance: High


hi ely. worked great. thanks a lot.
just one more question:

with pie charts there is no problem, what should i do with
column charts?

eg:


   


data comes from somewhere else. which css tag is the right one for
formatting?
tried columnseries but didn't work...

any suggestions?
thx
chris
At 19:42 30.03.2005, you wrote:




>Hi chris. The answer is...sort of. The charts are completely stylable
>through CSS. The big limitation is that the styleable chart properties make
>heavy use of compound values...strokes, gradientFills, renderers, etc.
Which
>can't be expressed using the CSS syntax.
>
>So a more fine grained answer to your question:
>
>- can the charts be styled through flex's styling mechanism? Absolutely.
>- can the values of these styles be expressed in the CSS syntax? Not
always.
>
>As an convenience feature, any style that accepts a fill value will accept
>an RGB value that gets automatically converted into a SolidColor fill
>object. So you should be able to specify colors for a PieSeries like this:
>
>PieSeries {
> Fills: #FF #00FF00 #FF;
>}
>
>(I can't remember exact syntax for arrays in CSS, but I think that's
>correct).
>
>As far as setting up pre-defined styles for more complex properties...The
>best Approach I've seen is:
>
>- define a faceless AS class, called 'MyPieStyles'
>- in the constructor, have it create a CSSStyleDeclaration via AS. Give
your
>styleDeclaration an appropriate name (".blueTintPieSeries")
>- populate the values of the style declaration via AS (setStyle("fill", new
>LinearGradient(...)).
>- drop the faceless component into your app ()
>- now the style is available for you to use on your charts (styleName="blueTintPieSeries" />)
>
>
>Ely.
>
>
>-Original Message-
>From: christoph larch [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 30, 2005 9:19 AM
>To: flexcoders@yahoogroups.com
>Subject: [flexcoders] formatting charts
>Importance: High
>
>
>hi there,
>
>is it possible to format charts (pie and column charts) via css?
>i've got different xml files, load them dynamically and i want to
>format them always with the same colors..
>
>eg: instead naming all the colors, load them via css...
>
> source="actual_customer_satisfaction.xml" />
>
>id="general_satisfaction"
>   dataProvider="{results.satisfaction}">
>
> 
>
>

Re: [flexcoders] loading the data from xml file

2005-03-30 Thread Tarik Ahmed






Check out the Blog viewer that comes with Flex - it loads in an XML
file.






Pathy wrote:

  Hi all,
   
  i am very new to Flex.
   
  i want to load the data from the xml file to dataGrid component
in flex. please help me out
   
  Thanks and reg.
  venkat 
   
  Do you Yahoo!?
Yahoo! Small Business - Try
our new resources site! 












Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.











[flexcoders] Re: zinger chart help

2005-03-30 Thread chubbohead


I'm having a somewhat similar problem... I'm using a ViewStack that is
linked to a chart derived from the zinger chart example.  When you
click on the chart, it changes the ViewStack to the canvas I want, and
is supposed to modify the .text for a Label using the
getDrillDownData(event.hitData.element.yField, event.hitData.item);
that they provide.

The first time you click on the bars, the label text for both of these
events is presented as "undefined".  On the second and subsequent
clicks, the labels are updated as expected.

I'm no Flex or ActionScript expert, so I'm not sure if this is an
error with Flex or (more likely) a problem with my code.

I'm playing with .dispatchEvent to see if that will initialize things
for me.

--- In flexcoders@yahoogroups.com, "cnewroth55" <[EMAIL PROTECTED]> wrote:
> 
> okay, I am trying to follow the zingerChart Example from MM Flex dev
> site and have created my own columnCHart, what I want to do is to pass
> the mouseClickData to my webservice, specificaly the field
> 'displaygrd' so that the CFC can use this as an argument to get
> employess out of DB  I am not sure how to pass that data up to the
> correct spot. 
> when I click a data column i get this error:
> "Array of input arguments did not contain a required parameter at
> position 2"
> 
> Here is my code:
> can anyone help?
> 
>  wsdl="http://127.0.0.1:8300/components/getdata.cfc?wsdl";
> id="getCountGrade1s">
>   
> 
>   
>   
> 
>   
>   
> 
>   
> 
>  xmlns:mx="http://www.macromedia.com/2003/mxml"; >
>  dataProvider="{getCountGrade1s.getGrade1s.result}" showDataTips="true"
> columnWidthRatio=".9"
>
mouseClickData="getCountGrade1s.getEmployees(event.hitData.element.yField,
> event.hitData.item).send()" >
>   
>dataProvider="{getCountGrade1s.getGrade1s.result}"
> categoryField="DISPLAYGRD" />
>   
>   
>   
>   
>   
>   
> 
> 
>   
>   
>   
>   color="#258BC8" />
>   color="#82C9EB" />
>   color="#258BC8" />
>   
>   
>   
>   
> 
>   
>
>   





 
Yahoo! Groups Links

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

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

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





[flexcoders] Creating a movie clip

2005-03-30 Thread Nate Nielsen





How can one create a blank movie clip for drawing 
purposes in flex?   I'm a bit lost as to what libraries to include to 
interface with the base flash classes.  I would think one of the 
following would draw a line on the screen (in a script of 
course) :
 
var lineObj : MovieClip;lineObj = new 
MovieClip();lineObj.lineStyle(2, 0x00, 100);lineObj.moveTo(0, 
0);lineObj.lineTo(100, 100);
 
or 
 
this.createEmptyMovieClip("line_mc", 
1);line_mc.lineStyle(2, 0x00, 100);line_mc.moveTo(0, 
0);line_mc.lineTo(100, 100);
 
doest work though, can anyone 
help?

-Nate
 







Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] responding to a custom event - done, thanks!

2005-03-30 Thread Jonathan Hirschi

Actually, I tried it again and it works!..  Thanks
very much for the help Abdul.

--- Jonathan Hirschi <[EMAIL PROTECTED]> wrote:
> Abdul,
> 
> thanks for the code.  It didn't work.  How do i
> check
> for scope or context issues?
> 
> 
> here's the application tag in my main page..
>  xmlns:mx="http://www.macromedia.com/2003/mxml";
> pageTitle="iPortal Hardware Tracking Tool" 
> initialize="initFunc();" xmlns="*"
> xmlns:comp="components.*">
>   
> 
> and here's the tag in my popup window...
> 
> 
> 
>  xmlns:mx="http://www.macromedia.com/2003/mxml";
> xmlns:comp="components.*"
> title="Add/Edit Hardware"  closeButton="true"
> width="570" height="450" 
>   click="this.deletePopUp();"  initialize="initme()">
>   
> Thanks for the help!
> 
> --- Abdul Qabiz <[EMAIL PROTECTED]> wrote:
> > Hi,
> > 
> > Code looks fine. I am guessing, there are object
> > scope or context issues.
> > That is, callback function is called in different
> > context instead of
> > supposed one...
> > 
> > Use Delegate, just change the following line and
> see
> > what happens...
> > 
> > 
> > instwin.addEventListener("recAdded",
> > mx.utils.Delegate.create(this,
> > refreshRecs));
> > 
> > 
> > -abdul
> >  
> > 
> > -Original Message-
> > From: Jonathan Hirschi
> [mailto:[EMAIL PROTECTED]
> > 
> > Sent: Wednesday, March 30, 2005 5:41 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] responding to a custom event
> -
> > help requested
> > 
> > 
> > Hey all, i've got a situation that I don't think
> i'm
> > handling correctly...
> > 
> > situation:
> > 
> > I have a main application that contains a
> datagrid. 
> > I
> > create a popup to handle editing and when the edit
> > has
> > gone through, i want to refresh the main datagrid.
> 
> > I'm trying to do this through an event (is that
> the
> > right way to do it?).
> > 
> > Code
> > -
> > 
> > calling the event from the main window:
> > 
> > instwin =
> >
>
mx.managers.PopUpManager.createPopUp(this,RecWin,false,initObj);
> > instwin.addEventListener("recAdded", refreshRecs);
> > 
> > On the popup side.. i have all of the editing
> > code...
> > where i have the form etc, then i submit it for
> > editing (this all works)... but then when i get
> done
> > with the edit/add i run this function that
> > dispatches
> > the event...
> > 
> > function processUpdate(result:Object):Void   {
> >   if (result.isError == 'false')  {
> >  textLabel = "update was Successful";
> >  dispatchEvent({type:'recAdded'});
> > //this.deletePopUp();
> >   }  else {
> >  textLabel = result.msg;
> >   }
> > }
> > 
> > In the main app, i try to chatch it with this
> > function..
> > 
> > function refreshRecs(event) {
> >   
> >
>
getNewHardware(arrStatusFilter[statusSearch.selectedIndex].VAL,'','','');
> > 
> > }
> > 
> > the getNewHardware is a function that runs the
> > processing of the new recordset... it works as
> well
> > (i
> > use it in another part)  
> > 
> > my best guess is that I'm not catching the event
> > correctly... anybody know what I'm doing wrong?
> > 
> > Thanks!!
> > 
> > Jon Hirschi
> > 
> > 
> > 
> > __ 
> > Do you Yahoo!? 
> > Yahoo! Small Business - Try our new resources
> site!
> > http://smallbusiness.yahoo.com/resources/ 
> > 
> > 
> >  
> > Yahoo! Groups Links
> > 
> > 
> > 
> >  
> > 
> > 
> > 
> > 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 



__ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250


 
Yahoo! Groups Links

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

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

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





[flexcoders] Re: How to pass var to CFC when it is blank

2005-03-30 Thread stevenkeys2003


Craig, sounds like your cfarguments are set to required="true" in the
CFC.. you could do a default= in your cfargument  so that you can have
something in there always.

Also, confused as to why you're employing..

* on of the request inputs in the webservice call to the cfc;
{TypeOfAction.selectedData}

You are doing your http://mydomain/flashservices/gateway?h";
source="app.machii.model.FlexUser" showBusyCursor="true">

   

-Steve


--- In flexcoders@yahoogroups.com, "cnewroth55" <[EMAIL PROTECTED]> wrote:
> 
> I have a form that I have several fields on and I am sending them to a
> cfc for processing, however if any of the fields are blank then I get,
> "Required parameter '' not found in input arguements". How can I
> either validate the fields or allow them to be blank...
> here is a sample of one of the field(s):
> 
> 
>groupName="TypeOfAction" data="yes" />
>groupName="TypeOfAction" data="no" />
> 
> * on of the request inputs in the webservice call to the cfc;
> {TypeOfAction.selectedData}
> 
> now if I don't check this radio box then I will get the error
> mentioned above...i have other fields that vary from radio buttons to
> text fields and if I don't fill them all in the I get that error. ANy
> idea on how to allow for blank or nulls?
> Craig Newroth
> The Boeing Company - STL





 
Yahoo! Groups Links

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

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

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





[flexcoders] Re: How to pass var to CFC when it is blank

2005-03-30 Thread stevenkeys2003


Nevermind on my confusion.. sounds like:

* on of the request inputs in the webservice call to the cfc;
{TypeOfAction.selectedData}

is part of the model/object you're sending to the CFC, got it. Been a
long day thus far. ;)

-Steve

--- In flexcoders@yahoogroups.com, "stevenkeys2003" <[EMAIL PROTECTED]> wrote:
> 
> Craig, sounds like your cfarguments are set to required="true" in the
> CFC.. you could do a default= in your cfargument  so that you can have
> something in there always.
> 
> Also, confused as to why you're employing..
> 
> * on of the request inputs in the webservice call to the cfc;
> {TypeOfAction.selectedData}
> 
> You are doing your  handler correct?
> 
>  endpoint="http://mydomain/flashservices/gateway?h";
> source="app.machii.model.FlexUser" showBusyCursor="true">
>result="roCompanyUserInfoHandler(event.result)"/>
>
> 
> -Steve
> 
> 
> --- In flexcoders@yahoogroups.com, "cnewroth55" <[EMAIL PROTECTED]> wrote:
> > 
> > I have a form that I have several fields on and I am sending them to a
> > cfc for processing, however if any of the fields are blank then I get,
> > "Required parameter '' not found in input arguements". How can I
> > either validate the fields or allow them to be blank...
> > here is a sample of one of the field(s):
> > 
> > 
> >> groupName="TypeOfAction" data="yes" />
> >> groupName="TypeOfAction" data="no" />
> > 
> > * on of the request inputs in the webservice call to the cfc;
> > {TypeOfAction.selectedData}
> > 
> > now if I don't check this radio box then I will get the error
> > mentioned above...i have other fields that vary from radio buttons to
> > text fields and if I don't fill them all in the I get that error. ANy
> > idea on how to allow for blank or nulls?
> > Craig Newroth
> > The Boeing Company - STL





 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] Data Rows on MXML

2005-03-30 Thread Tracy Spratt










Check out Matt’s blog:

http://www.markme.com/mchotin/archives/cat_data_management.cfm

 

Tracy

 









From: Shahnavaz Alware
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 30, 2005
1:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Data Rows on
MXML



 

Hi, 

 

I am piloting the application in Flex where I am trying to
bring back 5000 records from backend. The application breaks down in between. I
am new to flex, so I am unaware of Memory management parameters which will
allow me to allot memory to flex which is running out of memory ( FlexServlet
MemoryOutError ). So is there a way flex can handle large amount of data. 

Thanks in advance.

 

Shahn














Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] Re: Large Flex app architecture

2005-03-30 Thread Tracy Spratt

" separate .as files and include them inline "
I recommend against this. If you get more than a couple thousand lines
you will hit the the 32k barrier.

Instead, create an AS class that contains the functionality script. Make
the functions static and import the class, or make them normally and
instantiate the class in mxml 

Reference the functions ui.myFunction.

I have never hit the 32k limit using this method.

Look into the Cairngorm architecture.

Tracy

-Original Message-
From: stevenkeys2003 [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 30, 2005 1:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Large Flex app architecture



Valy, the only suggestion I have is break things up into separate 
components (mxml pages) as much as possible. 

Here's some steps we've taken  to help combat mem/load issues:

Eventually you're going to run into even the 32K limit on each file
like we did. Keep all your actionscript in separate .as files and
include them inline in your mxml (using  to help avoid this. And rememeber to keep
code efficient, as every line adds up.

Separate out your remoteobject calls... 

http://dev.mfgquote.com/flashservices/gateway?a";
source="app.machii.model.FlexUser" showBusyCursor="true">


http://dev.mfgquote.com/flashservices/gateway?b";
source="app.machii.model.FlexUser" showBusyCursor="true">



and remember to append the ?x to trick the gateway so as to not
bombard it but to attack it seperately.. there's an article about this
in detail online (if someone can provide url)

do as much preplanning as possible ... to break this "large app" up.
Ensure you're not trying to put too much into just 1 application.

Also from a backend perspective, don't send too much data down the
pipe either.. (ie. 10,000 rows vers 500) Perfect your backend code/sql
to  send down only what is necessary for that given moment.

Look at your overall container load.. do you truly need viewstacks
everywhere? Mainly, keep nesting down to a minimum.. the more
containers you add, the larger the overall load.

keep breakin up the pieces mon, that's the key -- compartmentalize
your tools/apps/functions 

good luck.

-Steve






--- In flexcoders@yahoogroups.com, Valy Sivec <[EMAIL PROTECTED]> wrote:
> 
> I'm designing a quite large application and plann to use viewstack
container(s). Because each view will contain lots of panels and info
I'm affraid that the browser might hit his limit in regards with the
memory consumption and crash... seen couple of messages with the same
problem and I would like to avoid it...
> 
> Actually I'm not even sure how the Flash Player garbage collector
works or if there is any  I'm very new to this Flash/Flex
world so sorry if the question is dumb...
> 
> Is it safe grouping the screens in multiple viewstacks and include
them from the jsp pages? or should be enough having only one viewstack
container for the whole application? Any suggestion?
> 
> Valy
> 
>  
> 
> 
>   
> -
> Do you Yahoo!?
>  Make Yahoo! your home page





 
Yahoo! Groups Links



 







 
Yahoo! Groups Links

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

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

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





[flexcoders] Re: How to pass var to CFC when it is blank

2005-03-30 Thread stevenkeys2003


Sorry for the separate posts All..
but on the flex side.. you can employ validation multiple ways but one
option is to combine:

requred="true" in your  or other validator to
help enforce that requirement -- gives a lot of visual cues to user..
 
don't enable submit until everything is filled out
in every forminput or last run a change="myfunction()" 
and in the function check for myfield.length > 0 or whatever to ensure
everything is filled out.. if so enable the button.

-Steve

--- In flexcoders@yahoogroups.com, "stevenkeys2003" <[EMAIL PROTECTED]> wrote:
> 
> Craig, sounds like your cfarguments are set to required="true" in the
> CFC.. you could do a default= in your cfargument  so that you can have
> something in there always.
> 
> Also, confused as to why you're employing..
> 
> * on of the request inputs in the webservice call to the cfc;
> {TypeOfAction.selectedData}
> 
> You are doing your  handler correct?
> 
>  endpoint="http://mydomain/flashservices/gateway?h";
> source="app.machii.model.FlexUser" showBusyCursor="true">
>result="roCompanyUserInfoHandler(event.result)"/>
>
> 
> -Steve
> 
> 
> --- In flexcoders@yahoogroups.com, "cnewroth55" <[EMAIL PROTECTED]> wrote:
> > 
> > I have a form that I have several fields on and I am sending them to a
> > cfc for processing, however if any of the fields are blank then I get,
> > "Required parameter '' not found in input arguements". How can I
> > either validate the fields or allow them to be blank...
> > here is a sample of one of the field(s):
> > 
> > 
> >> groupName="TypeOfAction" data="yes" />
> >> groupName="TypeOfAction" data="no" />
> > 
> > * on of the request inputs in the webservice call to the cfc;
> > {TypeOfAction.selectedData}
> > 
> > now if I don't check this radio box then I will get the error
> > mentioned above...i have other fields that vary from radio buttons to
> > text fields and if I don't fill them all in the I get that error. ANy
> > idea on how to allow for blank or nulls?
> > Craig Newroth
> > The Boeing Company - STL





 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] Re: Large Flex app architecture

2005-03-30 Thread Tracy Spratt

Below is a sample app and two AS classes that demonstrate this:

UtilityClassText.msml

http://www.macromedia.com/2003/mxml";
xmlns="*">






UtilityClass.as
// Example utility function class for dynamic instantiation
class UtilityClass
{
public function getFoo():String{
return "FOO";
}
}//UtilityClass

UtilityClassStatic.as
// Example utility function class for Static reference
class UtilityClassStatic
{
public static function getBar():String{
return "BAR";
}
}//UtilityClassStatic

-Original Message-
From: Tracy Spratt [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 30, 2005 2:27 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Large Flex app architecture


" separate .as files and include them inline "
I recommend against this. If you get more than a couple thousand lines
you will hit the the 32k barrier.

Instead, create an AS class that contains the functionality script. Make
the functions static and import the class, or make them normally and
instantiate the class in mxml 

Reference the functions ui.myFunction.

I have never hit the 32k limit using this method.

Look into the Cairngorm architecture.

Tracy

-Original Message-
From: stevenkeys2003 [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 30, 2005 1:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Large Flex app architecture



Valy, the only suggestion I have is break things up into separate 
components (mxml pages) as much as possible. 

Here's some steps we've taken  to help combat mem/load issues:

Eventually you're going to run into even the 32K limit on each file
like we did. Keep all your actionscript in separate .as files and
include them inline in your mxml (using  to help avoid this. And rememeber to keep
code efficient, as every line adds up.

Separate out your remoteobject calls... 

http://dev.mfgquote.com/flashservices/gateway?a";
source="app.machii.model.FlexUser" showBusyCursor="true">


http://dev.mfgquote.com/flashservices/gateway?b";
source="app.machii.model.FlexUser" showBusyCursor="true">



and remember to append the ?x to trick the gateway so as to not
bombard it but to attack it seperately.. there's an article about this
in detail online (if someone can provide url)

do as much preplanning as possible ... to break this "large app" up.
Ensure you're not trying to put too much into just 1 application.

Also from a backend perspective, don't send too much data down the
pipe either.. (ie. 10,000 rows vers 500) Perfect your backend code/sql
to  send down only what is necessary for that given moment.

Look at your overall container load.. do you truly need viewstacks
everywhere? Mainly, keep nesting down to a minimum.. the more
containers you add, the larger the overall load.

keep breakin up the pieces mon, that's the key -- compartmentalize
your tools/apps/functions 

good luck.

-Steve






--- In flexcoders@yahoogroups.com, Valy Sivec <[EMAIL PROTECTED]> wrote:
> 
> I'm designing a quite large application and plann to use viewstack
container(s). Because each view will contain lots of panels and info
I'm affraid that the browser might hit his limit in regards with the
memory consumption and crash... seen couple of messages with the same
problem and I would like to avoid it...
> 
> Actually I'm not even sure how the Flash Player garbage collector
works or if there is any  I'm very new to this Flash/Flex
world so sorry if the question is dumb...
> 
> Is it safe grouping the screens in multiple viewstacks and include
them from the jsp pages? or should be enough having only one viewstack
container for the whole application? Any suggestion?
> 
> Valy
> 
>  
> 
> 
>   
> -
> Do you Yahoo!?
>  Make Yahoo! your home page





 
Yahoo! Groups Links



 







 
Yahoo! Groups Links



 







 
Yahoo! Groups Links

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

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

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





[flexcoders] Example instantiated and static utility classes

2005-03-30 Thread Tracy Spratt
Title: Example instantiated and static utility classes








Below is a sample mxml app, a utility class the is instantiated normally, and a static class.  Putting as code into classes this way helps avoid the 32k limit.  

Note that I pass a reference to the main app into the instantiated class. Doing this for an mxml component will support binding to application level objects.  Especially note that the data type is the application name

UtilityClassText.msml



http://www.macromedia.com/2003/mxml" xmlns="*">

    

    

    

    



UtilityClass.as

// Example utility function class for dynamic instantiation

class UtilityClass

{

    public var app:UtilityClassTest;

    public function getFoo():String{

        return "FOO" + app.sAppProperty;

    }

}//UtilityClass

UtilityClassStatic.as

// Example utility function class for Static reference

class UtilityClassStatic

{

    public static function getBar():String{

        return "BAR";

    }

}//UtilityClassStatic









Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] output String from WebService

2005-03-30 Thread Steiner, Jeff
Title: Example instantiated and static utility classes





I am seeing an issue that I know has a simple answer - I 
just keep getting undefined as a result.
 
I have a WebService call to a CFC that returns a 
String.  Simple so far?
 
My result is undefined no matter what I try, when I output 
it.
 
Any ideas?
 
Jeff
 
    

 







Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] Re: RemoteObjects and UI within UI problem

2005-03-30 Thread Dimitrios Gianninas





Finally got it specifying 
the endpoint in the RO of the child UI did the trick. No crossdomain.xml file 
required.
 
Jimmy 
Gianninas
Software Developer - 
Optimal Payments 
Inc.
 


From: Dimitrios Gianninas Sent: 
Wednesday, March 30, 2005 11:52 AMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: RemoteObjects 
and UI within UI problem

Well I got side tracked with 
working on something else last week, so I had to put this experiment on 
hold.
 
So I got back to it today and 
tried adding the crossdomain.xml files to both domains as Matt suggested, but 
that doesn't work.
 
You are correct, using the 
ServiceLocator in a UI within UI scenario makes it use the service.mxml used by 
the parent UI. I then tried to hardcode the AS2 delegate to use the 
services.mxml specified in the child UI and that doesn't seem to be working either.
 
So I guess when in a UI within 
UI scenario, you have to specify all RO objects within the parent UI only and 
that should do the trick... however that is not what I am interested 
in.
 
Jimmy 
Gianninas
Software Developer - 
Optimal Payments 
Inc.
 


From: james_d_mercer 
[mailto:[EMAIL PROTECTED] Sent: Saturday, March 19, 2005 
1:35 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] 
Re: RemoteObjects and UI within UI problem
P.S.  In addition to my last post:Do you have a 
services file in your parent app and another one in your child app?  If 
so, that would be your first problem.  The ServiceLocator class with 
throw an exception if it is created twice :)  good luck!Dustin 
Mercer--- In flexcoders@yahoogroups.com, "Dimitrios Gianninas" 
<[EMAIL PROTECTED]> wrote:> Hi Dustin,>  
> Thanks for sharing that information. Yes I did run into the 
width/height> troubles, but I saw that setting the exact width and 
height of the> nighthawk.mxml caused it to appear properly when loaded 
within the> phoenix.mxml.>  > Now back to the problem, 
one thing I forgot to mention the first time> around was that since I 
am using Cairngorm, I have the following> declaration in the 
nighthawk.mxml:>  > >  > Which is  a component that contains all my 
RemoteObject definitions. If> I leave that line in the 
nighthawk.mxml, when loaded into Phoenix,> nothing appears. Remove that 
line and it does appear. I then took the> single RO and put it directly in the nighthawk.mxml and was doing> 
Application.application.queryServices to use it, but like you 
explained> below, using Application.application in a UI within a UI 
scenario> references the top level UI and thus does not work. So anyways, 
I tried> to work around this in several ways and it still doesn't 
work, the UI> loads via the Loader, but no remote calls every get 
made.>  > You are right however, the Loader component may 
need some enhancement. I> am using it now in this fashion in order to 
accomplish single sign on.> Also, I know that the child UI can reference the parent UI, but there> does not seem to be a specific 
way for the parent to tell the child to> do something (or invoke a 
method on it).>  > Did you ever get it to work at all in your 
case? >  > Jimmy Gianninas> Software Developer - Optimal Payments Inc.>  > >   _  
> > From: Mercer, Dustin [mailto:[EMAIL PROTECTED] > Sent: Friday, March 18, 2005 7:48 PM> To: 
flexcoders@yahoogroups.com> Subject: RE: [flexcoders] RemoteObjects and 
UI within UI problem> > > > I had hit some of the 
same problems.  A possible solution may be because> you are referencing mx.core.Application.application from within your> result 
handler of the remote object.  When using a loader, if you> 
reference mx.core.Application.application from within nighthawk.mxml> 
(Child Component), it actually points to the> 
mx.core.Application.application of phoenix.mxml (Parent 
Application).> It is because of static variable issues between the 
apps.  Loader is> extremely cool, but IMHO unusable for what you 
are trying to accomplish.> Macromedia has to give some sort of new 
component, revamp the loader, or> give us guidelines on using loaders 
properly.  I had the same issues> when I tried to accomplish 
this.  Maybe someone else has some> suggestions on how to get loaders working properly:-). > >  > > 
P.S.  there are also major sizing issues if you want to use 
percentage> widths and heights on an application being loaded from a 
loader.  Just> FYI> >  > 
>   _  > > From: Dimitrios 
Gianninas> [mailto:[EMAIL PROTECTED] > Sent: Friday, March 
18, 2005 10:47 AM> To: flexcoders@yahoogroups.com> Subject: [flexcoders] RemoteObjects and UI within UI problem> >  > > Hi,> >  > > Just been playing 
around with having one Flex UI within another and I am> experiencing 
a little problem, and thus I was wondering if anyone has> come across 
this problem and might have a solution.> >  > > 
This is all under JRun 4 SP4... so we have the parent UI at> http://localhost:8200/phoenix/phoenix.mxml 
and the child UI at> http://localhost:8204/nighthawk/nighthawk.mxml> 
>  > > Now using the loade

RE: [flexcoders] output String from WebService

2005-03-30 Thread Tracy Spratt
Title: Example instantiated and static utility classes










You are not showing a result handler.  How
are you checking the result?

Tracy

 









From: Steiner, Jeff
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 30, 2005
3:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] output
String from WebService



 

I am seeing an issue that I know has a
simple answer - I just keep getting undefined as a result.

 

I have a WebService call to a CFC that
returns a String.  Simple so far?

 

My result is undefined no matter what I
try, when I output it.

 

Any ideas?

 

Jeff

 



    



   

 

 














Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












Re: [flexcoders] output String from WebService

2005-03-30 Thread jeff tapper

silly questions, but did you trigger the web service?

At 03:08 PM 3/30/2005, you wrote:
>I am seeing an issue that I know has a simple answer - I just keep getting 
>undefined as a result.
>
>I have a WebService call to a CFC that returns a String.  Simple so far?
>
>My result is undefined no matter what I try, when I output it.
>
>Any ideas?
>
>Jeff
>
>
> 
> 
>
>showBusyCursor="true">
>   
>
>
>
>
>Yahoo! Groups Sponsor
>ADVERTISEMENT
>
>click here
>
>
>
>--
>Yahoo! Groups Links
>* To visit your group on the web, go to:
>* 
> http://groups.yahoo.com/group/flexcoders/
>  
>
>*
>* To unsubscribe from this group, send an email to:
>* 
> [EMAIL PROTECTED] 
>
>*
>* Your use of Yahoo! Groups is subject to the 
> Yahoo! Terms of Service.



 
Yahoo! Groups Links

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

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

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





[flexcoders] Re: zinger chart help

2005-03-30 Thread chubbohead


Disregard my post... my problem appears to be related to the child
initialization order of my ViewStack container.  By using the
creationComplete event on my label to call a function changing the
label's text property, I was able to get it to work as expected.

--- In flexcoders@yahoogroups.com, "chubbohead" <[EMAIL PROTECTED]> wrote:
> 
> I'm having a somewhat similar problem... I'm using a ViewStack that is
> linked to a chart derived from the zinger chart example.  When you
> click on the chart, it changes the ViewStack to the canvas I want, and
> is supposed to modify the .text for a Label using the
> getDrillDownData(event.hitData.element.yField, event.hitData.item);
> that they provide.
> 
> The first time you click on the bars, the label text for both of these
> events is presented as "undefined".  On the second and subsequent
> clicks, the labels are updated as expected.
> 
> I'm no Flex or ActionScript expert, so I'm not sure if this is an
> error with Flex or (more likely) a problem with my code.
> 
> I'm playing with .dispatchEvent to see if that will initialize things
> for me.
> 
> --- In flexcoders@yahoogroups.com, "cnewroth55" <[EMAIL PROTECTED]> wrote:
> > 
> > okay, I am trying to follow the zingerChart Example from MM Flex dev
> > site and have created my own columnCHart, what I want to do is to pass
> > the mouseClickData to my webservice, specificaly the field
> > 'displaygrd' so that the CFC can use this as an argument to get
> > employess out of DB  I am not sure how to pass that data up to the
> > correct spot. 
> > when I click a data column i get this error:
> > "Array of input arguments did not contain a required parameter at
> > position 2"
> > 
> > Here is my code:
> > can anyone help?
> > 
> >  > wsdl="http://127.0.0.1:8300/components/getdata.cfc?wsdl";
> > id="getCountGrade1s">
> >   
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> >   
> > 
> >  > xmlns:mx="http://www.macromedia.com/2003/mxml"; >
> >  > dataProvider="{getCountGrade1s.getGrade1s.result}" showDataTips="true"
> > columnWidthRatio=".9"
> >
>
mouseClickData="getCountGrade1s.getEmployees(event.hitData.element.yField,
> > event.hitData.item).send()" >
> > 
> >  > dataProvider="{getCountGrade1s.getGrade1s.result}"
> > categoryField="DISPLAYGRD" />
> > 
> > 
> > 
> > 
> > 
> > 
> >   
> >   
> > 
> > 
> > 
> > > color="#258BC8" />
> > > color="#82C9EB" />
> > > color="#258BC8" />
> > 
> > 
> > 
> > 
> >   
> > 
> >
> > 





 
Yahoo! Groups Links

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

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

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





[flexcoders] Re: Large Flex app architecture

2005-03-30 Thread chubbohead


For us newbies, can you point us to information on the Cairngorm
architecture?  Is it discussed in the interation::two book?

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
> " separate .as files and include them inline "
> I recommend against this. If you get more than a couple thousand lines
> you will hit the the 32k barrier.
> 
> Instead, create an AS class that contains the functionality script. Make
> the functions static and import the class, or make them normally and
> instantiate the class in mxml 
> 
> Reference the functions ui.myFunction.
> 
> I have never hit the 32k limit using this method.
> 
> Look into the Cairngorm architecture.
> 
> Tracy
> 
> -Original Message-
> From: stevenkeys2003 [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 30, 2005 1:38 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Large Flex app architecture
> 
> 
> 
> Valy, the only suggestion I have is break things up into separate 
> components (mxml pages) as much as possible. 
> 
> Here's some steps we've taken  to help combat mem/load issues:
> 
> Eventually you're going to run into even the 32K limit on each file
> like we did. Keep all your actionscript in separate .as files and
> include them inline in your mxml (using  to help avoid this. And rememeber to keep
> code efficient, as every line adds up.
> 
> Separate out your remoteobject calls... 
> 
>  endpoint="http://dev.mfgquote.com/flashservices/gateway?a";
> source="app.machii.model.FlexUser" showBusyCursor="true">
>result="roCompanyUserInfoHandler(event.result)"/>
> 
>  endpoint="http://dev.mfgquote.com/flashservices/gateway?b";
> source="app.machii.model.FlexUser" showBusyCursor="true">
>result="roUserInfoHandler(event.result)"/>
> 
> 
> and remember to append the ?x to trick the gateway so as to not
> bombard it but to attack it seperately.. there's an article about this
> in detail online (if someone can provide url)
> 
> do as much preplanning as possible ... to break this "large app" up.
> Ensure you're not trying to put too much into just 1 application.
> 
> Also from a backend perspective, don't send too much data down the
> pipe either.. (ie. 10,000 rows vers 500) Perfect your backend code/sql
> to  send down only what is necessary for that given moment.
> 
> Look at your overall container load.. do you truly need viewstacks
> everywhere? Mainly, keep nesting down to a minimum.. the more
> containers you add, the larger the overall load.
> 
> keep breakin up the pieces mon, that's the key -- compartmentalize
> your tools/apps/functions 
> 
> good luck.
> 
> -Steve
> 
> 
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, Valy Sivec <[EMAIL PROTECTED]> wrote:
> > 
> > I'm designing a quite large application and plann to use viewstack
> container(s). Because each view will contain lots of panels and info
> I'm affraid that the browser might hit his limit in regards with the
> memory consumption and crash... seen couple of messages with the same
> problem and I would like to avoid it...
> > 
> > Actually I'm not even sure how the Flash Player garbage collector
> works or if there is any  I'm very new to this Flash/Flex
> world so sorry if the question is dumb...
> > 
> > Is it safe grouping the screens in multiple viewstacks and include
> them from the jsp pages? or should be enough having only one viewstack
> container for the whole application? Any suggestion?
> > 
> > Valy
> > 
> >  
> > 
> > 
> > 
> > -
> > Do you Yahoo!?
> >  Make Yahoo! your home page
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links





 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] Re: Large Flex app architecture

2005-03-30 Thread Dave Carabetta

On Wed, 30 Mar 2005 20:30:50 -, chubbohead <[EMAIL PROTECTED]> wrote:
> 
> For us newbies, can you point us to information on the Cairngorm
> architecture?  Is it discussed in the interation::two book?

http://www.richinternetapps.com/archives/94.html

That's the initial release information. If you search that blog, you
will also see references to Breeze presentations and other resources
to help you along.

Regards,
Dave.


 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] Flex with HitBox (HBX)

2005-03-30 Thread Jonathan Bezuidenhout

Thanks very much Steven - great link.

Yes, we are looking at Cairngorm - however I am dealing with a one
year old legacy Flex app - yes there is such a thing - so radical
changes are not always easy.

Jonathan


On Wed, 30 Mar 2005 16:44:45 +0100, Steven Webster
<[EMAIL PROTECTED]> wrote:
> 
> What you are actually asking about then is how to integrate with
> an analytics too; most analytics tools actually work by using
> Javascript or by exposing an XML over HTTP(s) or SOAP API.
> 
> Rather than try and embed a hidden image (the common trick for
> analytics) you should look to see what integration technologies
> your particular analytics vendor supports (WebSideStory for
> instance, uses Cookies and JavaScript).
> 
> There's an article on integrating with Omniture, which also
> uses a JavaScript and Cookie tracking mechanism, here:
> 
> http://www.macromedia.com/devnet/flex/articles/analytic_app_print.html
> 
> That's probably the starting point you are looking for.
> 
> We have just (about) completed a major Flex app that has
> analytics requirements, and a piece of advice is that you
> need to have your customer (marketing dept) think very
> carefully about what information they want OUT of the
> analytics engine.with an RIA we break free of the
> concept of page-impressions, and analytics allows us to
> gain much more powerful metrics, by tracking significant
> business events that convey much more meaning about
> how users are using and not using your application, than
> page impressions can signify (ie if someone refreshes
> a page several times on online banking application, is
> it because they made seven bill payments, or is it because
> they failed seven times to pay one bill ?).
> 
> If you just want to churn lots of guff out into the logs
> however, and impress a marketing department that will never
> actually use the info, just ask for it, then you should
> look to extending the Cairngorm Controller class to
> log events + corresponding data for every user-gesture.
> 
> Good luck,
> 
> Steven
> 
> --
> Steven Webster
> Technical Director
> iteration::two
> 
> This e-mail and any associated attachments transmitted with it may contain
> confidential information and must not be copied, or disclosed, or used by
> anyone other than the intended recipient(s). If you are not the intended
> recipient(s) please destroy this e-mail, and any copies of it, immediately.
> 
> Please also note that while software systems have been used to try to ensure
> that this e-mail has been swept for viruses, iteration::two do not accept
> responsibility for any damage or loss caused in respect of any viruses
> transmitted by the e-mail. Please ensure your own checks are carried out
> before any attachments are opened.
> 
> 
> > -Original Message-
> > From: Jonathan Bezuidenhout [mailto:[EMAIL PROTECTED]
> > Sent: 30 March 2005 16:27
> > To: flexcoders@yahoogroups.com
> > Subject: Re: [flexcoders] Flex with HitBox (HBX)
> >
> >
> > It is software to track people's beahviour and analyzes it
> >
> > http://www.websidestory.com/services-solutions/hbx/overview.html
> >
> > http://www.macromedia.com/macromedia/proom/pr/2001/websidestory.html
> >
> > e.g. if you go to a page, and stay there for a couple of
> > mins, or click on certain things it can track it - so if you
> > have a link or something that is very popular and another
> > thing that is not, they can tell if it is popular or not etc.
> >
> >
> > On Wed, 30 Mar 2005 16:29:46 +0200, Robert Stuttaford
> > <[EMAIL PROTECTED]> wrote:
> > >  You're going to have to tell us what a hit box is, first :)
> > >
> > >  -Original Message-
> > >  From: jonbez [mailto:[EMAIL PROTECTED]
> > >  Sent: 30 March 2005 04:24 PM
> > >  To: flexcoders@yahoogroups.com
> > >  Subject: [flexcoders] Flex with HitBox (HBX)
> > >
> > >
> > >
> > >  Hi there,
> > >
> > >  I have just received a request from our marketing dept to
> > have HitBox
> > > included into our Flex app.  I know very little (OK -
> > nothing) about
> > > it - so I wonder if anyone has any pearls of wisdom to share.
> > >
> > >  I believe it is possible to connect it to ActionScript
> > somehow, and
> > > use it that way.  Does anyone know if there is a better way
> > to maybe
> > > integrate that with URLs/RemoteObjects or whatever.
> > >
> > >  Thanks
> > >
> > >  Jonathan
> > >
> > >
> > >
> > >
> > >
> > >
> > >  Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >  Yahoo! Groups Sponsor
> > >
> > >  ADVERTISEMENT
> > >
> > >
> > >  
> > >  Yahoo! Groups Links
> > >
> > >
> > > To visit your group on the web, go to:
> > > http://groups.yahoo.com/group/flexcoders/
> > >
> > > To unsubscribe from this group, send an email to:
> > > [EMAIL PROTECTED]
> > >
> > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> > --
> > No virus found in this incoming mes

[flexcoders] Re: custom theme error

2005-03-30 Thread d_marttila


The custom themes work running Flex Server on Tomcat (I've given up on
integrated JRun - can anyone get custom themes to work running
integrated JRun?). But, now I can't get FlexBuilder to recognize my
Tomcat Flex Server. I.e., the mxml files work running on localHost
8080 - but, I can't click RUN in FlexBuilder - which is kind of a drag
because I've been using the TRACE tab for component development.



--- In flexcoders@yahoogroups.com, "d_marttila" <[EMAIL PROTECTED]> wrote:
> 
> Hi Abdul,
> 
> Thanks for your response. I've done a little more testing. 
> 
> Your example does not work for me either. I get the same error. "Error
> /pulseBlueThemeTest.mxml:1 
> Unable to load theme themes/pulseBlue.swc" I am running the JRun
> integrated server on my machine. I also tested on my home machine
> (identical setup) and got the same error. I am running XPPro on both.
> 
> But, I installed your example on a workmate's machine and got it to
> work. He is running Flex in Apache (not JRun) on his machine.
> 
> So, I guess I will install Apache and try that. Maybe some setting
> with the integrated server?
> 
> In addition to this test, I've been creating custom components in
> Flash and running them in Flex - and that's been working. So, I'm
> pretty sure my directory structure is correct. Plus, with this theme
> problem, I tried parent directory, same directory, etc. 
> 
> I'll post again when I get Apache running.
> 
> Thanks for your help,
> 
> Doug
> 
> --- In flexcoders@yahoogroups.com, Abdul Qabiz <[EMAIL PROTECTED]> wrote:
> > Hi Doug,
> > 
> > Can you send me directory structure of your application?
> > 
> > Just want to make sure, everything in right place...Please tell us
> where is
> > theme directory, where is mxml file and all...
> > 
> > I doubt, there is some problem with path
> > 
> > Please find the attached zip file, extract the content in some
> folder under
> > your flex webroot and test "pulseBlueThemeTest.mxml"...Let me know
> what you
> > see...
> > 
> > -abdul
> >  
> > 
> > -Original Message-
> > From: d_marttila [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, March 30, 2005 4:13 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] custom theme error
> > 
> > 
> > 
> > Hi,
> > 
> > I've been trying to load a custom theme in Flex and have had no luck.
> > Here's the code:
> > 
> > 
> >   http://www.macromedia.com/2003/mxml";
> > theme="theme/DougHalo.swc">
> >   
> > 
> > 
> > I get the following error: "unable to load theme theme/DougHalo.swc"
> > 
> > I am using FlexBuilder 1,5, Flex 1.5, and MX2004 Pro. In addition to
> > trying to create my own theme, I have tried the pulseBlue.swc theme
> > that is installed with Flex 1.5 (C:\Program
> > Files\Macromedia\Flex\resources\themes\graphic\pulseBlue). That didn't
> > work either -- same error.
> > 
> > Class path points to $(LocalData)/Flex Classes.
> > 
> > I used the following as references:
> > 
> > http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19322
> > 
> > And the Themes section of Chapter 11 in the Webster Flex book.
> > 
> > Basically, I opened the HaloTheme.fla. Saved as. Modified a graphic.
> > Right clicked the Halo Theme - export SWC file.
> > 
> > Thanks,
> > 
> > Doug
> > 
> > 
> > 
> > 
> > 
> >  
> > Yahoo! Groups Links





 
Yahoo! Groups Links

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

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

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





[flexcoders] Re: Error: Cannot invoke method when using a VO

2005-03-30 Thread cazzaran


I turned on remote object debugging, but it seems to make my
flexbuilder unresponsive. After a while, builder says that I should
abort the script or it will make my machine lock up. If I set remote
object debug to false and restart the server, this no longer happens.

But I think I found the issue anyway; it seems that for some reason,
the Group isn't being sent over the wire as a Group, even though I
have the Object.registerClass correct. Also, when I get an array of
Groups from my server, they are correct. 

But it seems that in my client class, when I do:

var group:Group = new Group();
group.name = "test";
remoteDelegate.addGroup(group);

it gives me that "can't invoke method error", because it's not a Group
POJO, it's just a hashmap. Why is this happening?


--- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]> wrote:
> Have you managed to turn on debugging for remote-object in
> /WEB-INF/flex/flex-config.xml and looked at the trace of the AMF error
> in the NetConnection Debugger? There may be more information on the
> fault object in the rootcause property.
> 
> If you have access to the server locally, you can also try turning on
> Debug level logging for the AMF Gateway in
> /WEB-INF/flex/gateway-config.xml and checking your Flex logs (or
> possibly just watching the console output if you manually launch JRun
> and have console logging enabled for Flex). This will show you what data
> type was being deserialized for your input parameter and it will also
> let you see the raw response going back with information similar to that
> shown in the NetConnection Debugger (though the server side is more
> accurate as the NCD is an old Flash Remoting tool that has a few issues
> - mainly that it doesn't show objects typed with Object.registerClass).
> 
> 
>  
> 
> -Original Message-
> From: cazzaran [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 28, 2005 4:58 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Error: Cannot invoke method when using a VO
> 
> 
> 
> Peter,
> 
> Here's my whitelist:
> 
> 
> 
> *
> 
> 
> 
> businessdelegates.UserDelegate
> stateful-class
> false
> 
> 
> businessdelegates.GroupDelegate
> stateful-class
> false
> 
> 
> 
> 
> -Josh
> 
> --- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]>
> wrote:
> > Ah, what does the unnamed whitelist in the remote-object section look
> > like? Does it include your Group class? I apologize for not double
> > checking whether it was still a requirement in Flex 1.5, but I know it
> > was in Flex 1.0.
> > 
> > -Original Message-
> > From: cazzaran [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, March 28, 2005 4:19 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Error: Cannot invoke method when using a VO
> > 
> > 
> > 
> > Peter,
> > 
> > It does... 
> > 
> > -Josh
> > 
> > --- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]>
> > wrote:
> > > Does the Java version of Group have a public no args constructor?
> > > 
> > > 
> > > -Original Message-
> > > From: cazzaran [mailto:[EMAIL PROTECTED] 
> > > Sent: Monday, March 28, 2005 3:50 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Error: Cannot invoke method when using a VO
> > > 
> > > 
> > > 
> > > I have a delegate class on my server called GroupDelegate, and it
> has
> > > a method addGroup(Group group).
> > > 
> > > When I try and call this method on my remote object, I get the
> error:
> > > 
> > > Error: Cannot invoke method addGroup
> > > 
> > > However, if I switch my method's signature to addGroup(String
> > > groupName), the method executes, and the group is added to the DB.
> > > 
> > > Group is just a POJO, and obviously the second method wont work
> > > because there is a lot more information than just the groupName that
> > > needs to be recorded...
> > > 
> > > Interestingly, when I do a getGroups I get back an array of the
> > > correct objects, and in my client side model of my Group class I
> have
> > > correctly done the Object.registerClass. The only time I seem to
> have
> > > an issue is when I pass it BACK to my server as a Group.
> > > 
> > > Any ideas? -Josh
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  
> > > Yahoo! Groups Links
> > 
> > 
> > 
> > 
> > 
> >  
> > Yahoo! Groups Links
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links





 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] Re: Error: Cannot invoke method when using a VO

2005-03-30 Thread Peter Farland

Have you posted the Object.registerClass line of code in this thread
yet? I've not yet seen it, but it must not be registered correctly or
the class not linked in at compile time to match the registration as the
player would send an instance of Group.

All objects go over the wire as ASObjects, but they may include type
information if they're registered.  The raw representation of an
ASObject on the server side is a HashMap. It's the server side part of
RemoteObject that knows how to map ASObject -> Group before invoking
your method.

Since you're not having any luck with Flex Builder, did you try what I
suggested using the NetConnectionDebugger.swf (which ships in the extras
folder of the Flex 1.5 install) with remote-objects debug enabled (it
doesn't have anything to do with Flex Builder)? If that's not suitable
then you could use the gateway debug level logging approach on the
server. I'd prefer you to try the server gateway logging approach anyway
as we want to see whether an AMF Typed Object or untyped Object was
deserialized from your Group param.


-Original Message-
From: cazzaran [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 30, 2005 2:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Error: Cannot invoke method when using a VO



I turned on remote object debugging, but it seems to make my
flexbuilder unresponsive. After a while, builder says that I should
abort the script or it will make my machine lock up. If I set remote
object debug to false and restart the server, this no longer happens.

But I think I found the issue anyway; it seems that for some reason,
the Group isn't being sent over the wire as a Group, even though I
have the Object.registerClass correct. Also, when I get an array of
Groups from my server, they are correct. 

But it seems that in my client class, when I do:

var group:Group = new Group();
group.name = "test";
remoteDelegate.addGroup(group);

it gives me that "can't invoke method error", because it's not a Group
POJO, it's just a hashmap. Why is this happening?


--- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]>
wrote:
> Have you managed to turn on debugging for remote-object in
> /WEB-INF/flex/flex-config.xml and looked at the trace of the AMF error
> in the NetConnection Debugger? There may be more information on the
> fault object in the rootcause property.
> 
> If you have access to the server locally, you can also try turning on
> Debug level logging for the AMF Gateway in
> /WEB-INF/flex/gateway-config.xml and checking your Flex logs (or
> possibly just watching the console output if you manually launch JRun
> and have console logging enabled for Flex). This will show you what
data
> type was being deserialized for your input parameter and it will also
> let you see the raw response going back with information similar to
that
> shown in the NetConnection Debugger (though the server side is more
> accurate as the NCD is an old Flash Remoting tool that has a few
issues
> - mainly that it doesn't show objects typed with
Object.registerClass).
> 
> 
>  
> 
> -Original Message-
> From: cazzaran [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 28, 2005 4:58 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Error: Cannot invoke method when using a VO
> 
> 
> 
> Peter,
> 
> Here's my whitelist:
> 
> 
> 
> *
> 
> 
> 
> businessdelegates.UserDelegate
> stateful-class
> false
> 
> 
> businessdelegates.GroupDelegate
> stateful-class
> false
> 
> 
> 
> 
> -Josh
> 
> --- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]>
> wrote:
> > Ah, what does the unnamed whitelist in the remote-object section
look
> > like? Does it include your Group class? I apologize for not double
> > checking whether it was still a requirement in Flex 1.5, but I know
it
> > was in Flex 1.0.
> > 
> > -Original Message-
> > From: cazzaran [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, March 28, 2005 4:19 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Error: Cannot invoke method when using a
VO
> > 
> > 
> > 
> > Peter,
> > 
> > It does... 
> > 
> > -Josh
> > 
> > --- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]>
> > wrote:
> > > Does the Java version of Group have a public no args constructor?
> > > 
> > > 
> > > -Original Message-
> > > From: cazzaran [mailto:[EMAIL PROTECTED] 
> > > Sent: Monday, March 28, 2005 3:50 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Error: Cannot invoke method when using a VO
> > > 
> > > 
> > > 
> > > I have a delegate class on my server called GroupDelegate, and it
> has
> > > a method addGroup(Group group).
> > > 
> > > When I try and call this method on my remote object, I get the
> error:
> > > 
> > > Error: Cannot invoke method addGroup
> > > 
> > > However, if I switch my method's s

RE: [flexcoders] Flex 1.5 price

2005-03-30 Thread Lucian Beebe

There has been a lot of speculation about price changes for Flex. Let's set
the record straight. As of April 1, we are adjusting the price of Flex.
There are now three different packages for Flex going forward. For most
people, the starter kit will provide everything you need for your Flex
applications: 4 CPUs and Gold Support for $29,000. That's actually cheaper
than Flex was in the past for 4 CPUs + Gold Support. For the larger Flex
applications out there, we will sell per CPU at $15,000 per CPU. Finally,
for software vendors who want to embed Flex in their applications, we have
special pricing built around your requirements and your market. However, and
this is important, where you see value in Flex, we are interested in working
with you to design the right packaging for your needs. If you are interested
in using Flex on a real project, let us know so we can work with you and
find the right packaging/pricing to fit your needs. 
 
In response to some of your comments, over time, we are very interested in
offering additional licensing options to broaden the range of projects and
developers who can leverage Flex technology.  We follow the market very
closely, and pay great attention to your constructive feedback.  We all have
a stake in the success of this marketplace.

Why are we changing the price of Flex?
 
We have been building, selling, and supporting Flex for a year now. The
marketplace for rich Internet applications is really taking off. Hundreds of
applications are being delivered all over the world, and the general
interest level is really growing out there. 
 
Within this overall marketplace, there are a variety of customer segments
and project types with varying requirements. Large enterprise customers and
systems integration partners require substantial pre-sales engagement and
ongoing assistance from Macromedia commensurate with the value that they
intend to derive from the software. Small and medium size customers and
individual developers require low up front costs to get started fast and
operate within very limited IT budgets.
 
It is important to have great offerings for each type of user. There is no
"one size fits all" approach that both makes everyone successful and is
sustainable over the long term.  A stratified approach makes the most sense,
and that's what we're gradually implementing.  We've adjusted our core
product pricing to better reflect both the value derived and the costs
involved in driving successful projects within large enterprise customers.
We've also created a starter package that combines deeply discounted Flex
licenses with high quality support designed to address the needs of large
customers doing pilot projects or medium size customers doing full
deployments.  
 
Please talk to us if you have special needs. We will continue to work
directly with enterprise customers doing larger deployments or who desire
Enterprise Licensing Agreements. We also have specialized offerings for ISVs
delivering packaged software solutions based on Flex. If you have a project
specifically suited to Flex but need different packaging, please contact
your Macromedia sales rep to discuss your project and the pricing options
that meet your needs.  If you see real value in Flex, there is probably a
way to make it work.

Lucian Beebe
Flex product manager
Macromedia 


 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] Re: Error: Cannot invoke method when using a VO

2005-03-30 Thread Peter Farland

You can tweak the gateway to give more info by modifying its
configuration file directly. Go to:

/WEB-INF/flex/gateway-config.xml  (not flex-config.xml)

Set Debug level logging for the gateway:

flex.services.logging.FlexGatewayLogger

Check the /WEB-INF/flex/logs/flex.log or simply watch the server console
window if you've enabled console logging for Flex and have launched flex
from the command line rather than as a service. You should see what the
ActionScript Message Format (AMF) deserialized as...

The server side representation of your class has to loosely match the
client types based on what is serialized. While it's true that the Flash
Player might not serialize all of the properties on a client object if
they're undefined, this shouldn't concern the server type as only the
properties sent will be used to initialize your server type.

If your client Group type has a property:

var subGroups:Array;

Then the server type should have:

public void setSubGroups(Group[] gs);

If you still can't get it to work, zip everything up and email it to me
off list.


 

-Original Message-
From: cazzaran [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 30, 2005 5:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Error: Cannot invoke method when using a VO



I've set my flex logs to debug, but I don't get much in the way of
logging from flex.

I've also set every trace option to true, but still don't get much
from it.

I'm curious, do my server and client sided classes have to have
identical sets of members (or matching getters and setters)? I ask
this because my server side POJOs have getters that are simply subsets
of internal variables, like getSubGroups which returns a subset of
what getGroups() would. On my client class side, i created a variable
called subGroups:Array so that this information is immediately
available, and is populated with getSubGroups() on the server side.

My question is, does that mean that my server sided class will need a
setSubGroups() since Flex sees this variable on the client side? Or if
it doesn't will the classes still match up with Object.registerClass?

--- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]>
wrote:
> Without seeing the AMF trace on the server side, all I can do is
suggest
> simplifying the case step by step and then work up to the problem at
> hand. Try a Group type that only has flash intrinsic types as
> properties... then go down another level... etc.





 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

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

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

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





[flexcoders] Re: Error: Cannot invoke method when using a VO

2005-03-30 Thread cazzaran


Found it... but it doesn't make total sense...

here's the response trace:

Info: Serializing response
  (Message #0 targetURI=/1/onStatus, responseURI=null)
(Object #0)
  level = "error"
  code = "Server.Processing"
  type = ""
  rootcause = (Object #1)
level = "error"
code = null
type = ""
details = ""
description = "Could not set object null on class
pojos.Group's method setOrganization"
  details = "The expected argument types are (pojos.Group) but the
supplied types were (flashgateway.io.ASObject) and converted to (null)."
  description = "Cannot invoke method 'addGroup'."


Below's the serialized request. You can see that the organization IS
being serialized... I'm not sure why it thinks that the expected
argument types are Group. The addGroup requires a Group, but the
Group.setOrganization method takes an Organization. They all have
_remoteClass assigned, too. Weird...

Info: Deserializing request
  (Message #0 targetURI=groupDelegate.addGroup, responseURI=/1)
(Array #0)
  [0] = (Object #1)
_flag = "Envelope"
headers = (Array #2)
  [0] = (Array #3)
[0] = "ServiceType"
[1] = false
[2] = "stateful-class"
data = (Array #4)
  [0] = (Typed Object #5 'pojos.Group')
organization = (Typed Object #6 'pojos.Organization')
  _remoteClass = "pojos.Organization"
  contactNumber = null
  address1 = null
  roles = (Array #7)
[0] = (Typed Object #8 'pojos.Role')
  roleRights = "a, d, m"
  users = (Array #9)
  _remoteClass = "pojos.Role"
  userRights = "d"
  groupRights = "a, d, m"
  name = "Local Message Creator"
  id = "402881e500523eca0100523ffc040001"
  organization = (Ref #6)
  superuser = false
[1] = (Typed Object #10 'pojos.Role')
  roleRights = "adm"
  users = (Array #11)
[0] = (Typed Object #12 'pojos.User')
  password = "passger"
  organizationId = null
  _remoteClass = "pojos.User"
  username = "cazzaran"
  email = "[EMAIL PROTECTED]"
  role = (Ref #10)
  roleID = "1"
  firstName = "Josh"
  id = "1"
  organization = (Ref #6) the rest
truncated





 
Yahoo! Groups Links

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

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

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





[flexcoders] Using Components in Flash

2005-03-30 Thread Ketan Bengali

Hi All,

I had made a rating component in Flash MX 2004 to be used in Flex
and it works fine.

What if I have to use the same component in one of my Flash apps.
I tried using that component in my app. It works but am not able
to get the rating value in the flash app the way I was getting in
my Flex app.

Can anybody throw some light on this?
Do I need to change anything somewhere so that I can use
the same component in my Flash app.

Thanks

-- 
Regards,

Ketan Bengali



 
Yahoo! Groups Links

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

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

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





[flexcoders] Help with binding null data to web service parameters.

2005-03-30 Thread hecubus_eh


I'm building a simple Flex form that has several TextInput fields
that a person can use as search criteria.  They are basically
optional fields.

The text from the TextInput fields are bound directly to a set of web
service request parameters that is sending to a CFC-based WSDL.

The problem I'm running into is that if any of the TextInput fields
are not filled in by the user, no value is being passed to the web
service request 
parameters that the TextInput.text values are bound to.  The result
is that they are
treated as null by the WebService and the parameters are not sent in
the SOAP request. 
Since all parameters are required in a WSDL, the web service is
resulting in a SOAP 
message that some parameters are not being passed into the request.

Here is a code snippet:




http://www.macromedia.com/2003/mxml";
xmlns:r="view.*" pageTitle="Customer Search" initialize="">
http://localhost/Customer.cfc?wsdl"; id="wsCustomer">


{txtZip.text}
{txtLastName.text}
{txtFirstName.text}
{txtPhone.text}
{txtCompany.text}

{CustomerNumber.text}











 





That's the first problem...is there a way to explicitly send the
parameters that have no 
value, basically as if I did not bind any variables to the request
parameters?  If I send the 
request with no value inside the parameters (e.g. 
), the 
parameters are sent in the SOAP request with no values, which is fine
since the WSDL 
doesn't yell at me for not providing all the parameters.  

While debugging this problem, instead of binding the TextInput text
value directly to the 
WebService request parameters, I bound the values to a data model and
used the model as 
a value object.  I then bound the properties of the object to the
corresponding parameters 
in the WebService request.  The same error resulted, BUT...I tried to
use the following code 
to determine what the value of the TextInput.text was for each
TextInput:




...
{txtCompany.text == undefined ? 'foo':
txtCompany.text}
...




I expected the value of modelCS.txtCompany to be 'foo', but I ended
up with modelCS.txtCompany resulting in '', which incidentally the
WebService
recognized as an empty string.  Strangely enough, if I used ''
instead of 'foo' in my simple 
logic test inside the data model, it resulted in modelCS.txtCompany
to be undefined.

Does anyone have any idea what's happening here???  I'll be more than
happy to go into any more detail if necessary.

Thanks,

Rick...





 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] Using Components in Flash

2005-03-30 Thread Scott Barnes

Not sure on how you built your rating component but first hing popped
in my head was to make sure you don't use the default v2 framework
that comes with Flash MX 2004 when you compile your app, but instead
make sure it points to the FlexForFlash framework...

(ie under ActionScript 2.0 settings just change the ordering).




On Thu, 31 Mar 2005 10:43:05 +0530, Ketan Bengali <[EMAIL PROTECTED]> wrote:
> 
> Hi All,
> 
> I had made a rating component in Flash MX 2004 to be used in Flex
> and it works fine.
> 
> What if I have to use the same component in one of my Flash apps.
> I tried using that component in my app. It works but am not able
> to get the rating value in the flash app the way I was getting in
> my Flex app.
> 
> Can anybody throw some light on this?
> Do I need to change anything somewhere so that I can use
> the same component in my Flash app.
> 
> Thanks
> 
> --
> Regards,
> 
> Ketan Bengali
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] Using Components in Flash

2005-03-30 Thread Ketan Bengali

But I dont want to use the component in Flex. I want to use it in my 
Flash app.
So whats the relation of flexforflash in my case.

What if a person doesnt know anything about flex. He is just working on 
Flash apps. Not Flex.

Regards,

Ketan Bengali



Scott Barnes wrote:

>Not sure on how you built your rating component but first hing popped
>in my head was to make sure you don't use the default v2 framework
>that comes with Flash MX 2004 when you compile your app, but instead
>make sure it points to the FlexForFlash framework...
>
>(ie under ActionScript 2.0 settings just change the ordering).
>
>
>
>
>On Thu, 31 Mar 2005 10:43:05 +0530, Ketan Bengali <[EMAIL PROTECTED]> wrote:
>  
>
>>Hi All,
>>
>>I had made a rating component in Flash MX 2004 to be used in Flex
>>and it works fine.
>>
>>What if I have to use the same component in one of my Flash apps.
>>I tried using that component in my app. It works but am not able
>>to get the rating value in the flash app the way I was getting in
>>my Flex app.
>>
>>Can anybody throw some light on this?
>>Do I need to change anything somewhere so that I can use
>>the same component in my Flash app.
>>
>>Thanks
>>
>>--
>>Regards,
>>
>>Ketan Bengali
>>
>>
>>Yahoo! Groups Links
>>
>>
>>
>>
>>
>>
>>
>
>
>  
>


 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] Using Components in Flash

2005-03-30 Thread Ketan Bengali

Heres the code i have in my as file:



import mx.controls.*
import mx.core.UIObject
import mx.events.EventDispatcher
[Event("change")]
[Event("click")]

class CineRating extends mx.core.UIObject {
   
static var symbolName:String = "CineRating";
static var symbolOwner:Object = CineRating;
var className:String = "CineRating";
   

private var _rating:Number;
   
private var starsCount:Number = 5;
var movieRS:MovieClip;
var _starNumber:Number;

   
function CineRating() {}
   
function init() {
super.init();
movieRS._visible = true;
}
   

public function set rating(nRating:Number):Void {
if(nRating%2 != 0 || nRating%2 != 1) {
if(nRating - Math.floor(nRating) > 0 && nRating - 
Math.floor(nRating) < 0.5) {
nRating = Math.floor(nRating)
} else {
nRating = Math.ceil(nRating);
}
}
   
this._rating = nRating;
invalidate();
//draw();
dispatchEvent({type: "change"});
}
   
public function draw() {
   

if(!_parent["star"+(starsCount-1)]) {

for(var i:Number = 0; i < starsCount;i++) {
this.movieRS.duplicateMovieClip("star"+i, i+1);
this["star"+i]._x = i * this["star"+i]._width/0.95;
this["star"+i].starNumber = i;
   
   
if(i < _rating) {
this["star"+i].gotoAndStop("select");
}
else {
this["star"+i].gotoAndStop("default");
}
   
/*RollOver Event Declaration*/
   
this["star"+i].onRollOver = function() {
   
//mx.controls.Alert.show("Inside RollOver")
   
var tname:Number;
tname = this._name.charAt(this._name.length - 1);

//mx.controls.Alert.show();
if(tname <= (_parent._rating - 1))
return;

if(tname > _parent._rating - 1) {
for(var k:Number = _parent._rating; k <= tname; 
k++) {
var myStar = eval(_parent + "." + "star" + k);

   
myStar.gotoAndStop("hover");
}
}
}
   
   
/*RollOut Event Declaration*/
   
this["star"+i].onRollOut = function() {
var tname:Number;
tname = Number(this._name.charAt(this._name.length - 
1));
   
if(tname <= (_parent._rating - 1)) {
return;
}
   
for(var j:Number = _parent._rating; j < 
_parent.starsCount; j++) {
var myStar = eval(_parent + "." + "star" + j);
myStar.gotoAndStop("default");
}
}
   
   
/*Press Event Declaration*/
   
this["star"+i].onPress = function() {
var tname:Number;
tname = Number(this._name.charAt(this._name.length - 
1));
   
if(tname == ((_parent._rating - 1 < 0)?0: 
_parent._rating - 1)) {
return;
}
   
if(tname > (_parent._rating-1)) {
for(var x:Number = ((_parent._rating-1)<0)?0: 
_parent._rating-1;x <= tname; x++) {
var myStar = eval(_parent + "." + "star" + x);
myStar.gotoAndStop("select");
_parent._rating = x+1;
_parent._starNumber = _parent._rating;
//mx.controls.Alert.show("_parent._rating = 
" + _parent._rating);
_parent.dispatchEvent({type: "change"});
_parent.dispatchEvent({type: "click"});
}
} else {
for(var x:Number = _parent._rating - 1;x > 
tname; x--) {
var myStar = eval(_parent + "." + "star" + x);
myStar.gotoAndStop("default");
_parent._rating--;
_parent._starNumber = _parent._rating;
_parent.dispatchEvent({type: "change"});
_parent.dispatchEvent({type: "click"});
}
}
}
 
}
   
}
}
   
[ChangeEvent("change")]
public function get rating():Number {
return th

Re: [flexcoders] Using Components in Flash

2005-03-30 Thread Scott Barnes

I can't see anything below that will prevent you from using it inside FLASH IDE.

You can do one of two things.

1) You can copy your assets/code into FLASH IDE, and make a component
that way by cutting and pasting + importing assets. That based on what
i've seen below  would work out ok as the mx.framework is very
similiar in its design with FLASH IDE... i'd only flag things if you
used flex specific components like Panel etc...

2) Take your FLEX MXML and using the compc compile it to a SWC file,
then copy it to your Flash IDE Program Files - again since your using
the basics of the framework you should be right. I think when you use
your component, FLASH IDE will tell its compiler to load the FLASH MX
2004 framewor as opposed to the FLEX version (thats if you have
FlexForFlash installed inside your ide...if you haven't then ignore
the above and just compile your mxml to a swc and use it like that)

Under the Flash Docs, do a serach for "Creating SWC files" it will
give you a step by step how to.

Other than that, I'm not sure what else is doable.


On Thu, 31 Mar 2005 11:13:26 +0530, Ketan Bengali <[EMAIL PROTECTED]> wrote:
> 
> Heres the code i have in my as file:
> 
> import mx.controls.*
> import mx.core.UIObject
> import mx.events.EventDispatcher
> [Event("change")]
> [Event("click")]
> 
> class CineRating extends mx.core.UIObject {
> 
> static var symbolName:String = "CineRating";
> static var symbolOwner:Object = CineRating;
> var className:String = "CineRating";
> 
> private var _rating:Number;
> 
> private var starsCount:Number = 5;
> var movieRS:MovieClip;
> var _starNumber:Number;
> 
> function CineRating() {}
> 
> function init() {
> super.init();
> movieRS._visible = true;
> }
> 
> public function set rating(nRating:Number):Void {
> if(nRating%2 != 0 || nRating%2 != 1) {
> if(nRating - Math.floor(nRating) > 0 && nRating -
> Math.floor(nRating) < 0.5) {
> nRating = Math.floor(nRating)
> } else {
> nRating = Math.ceil(nRating);
> }
> }
> 
> this._rating = nRating;
> invalidate();
> //draw();
> dispatchEvent({type: "change"});
> }
> 
> public function draw() {
> 
> if(!_parent["star"+(starsCount-1)]) {
> 
> for(var i:Number = 0; i < starsCount;i++) {
> this.movieRS.duplicateMovieClip("star"+i, i+1);
> this["star"+i]._x = i * this["star"+i]._width/0.95;
> this["star"+i].starNumber = i;
> 
> if(i < _rating) {
> this["star"+i].gotoAndStop("select");
> }
> else {
> this["star"+i].gotoAndStop("default");
> }
> 
> /*RollOver Event Declaration*/
> 
> this["star"+i].onRollOver = function() {
> 
> //mx.controls.Alert.show("Inside RollOver")
> 
> var tname:Number;
> tname = this._name.charAt(this._name.length - 1);
> 
> //mx.controls.Alert.show();
> if(tname <= (_parent._rating - 1))
> return;
> 
> if(tname > _parent._rating - 1) {
> for(var k:Number = _parent._rating; k <= tname;
> k++) {
> var myStar = eval(_parent + "." + "star" + k);
> 
> myStar.gotoAndStop("hover");
> }
> }
> }
> 
> /*RollOut Event Declaration*/
> 
> this["star"+i].onRollOut = function() {
> var tname:Number;
> tname = Number(this._name.charAt(this._name.length -
> 1));
> 
> if(tname <= (_parent._rating - 1)) {
> return;
> }
> 
> for(var j:Number = _parent._rating; j <
> _parent.starsCount; j++) {
> var myStar = eval(_parent + "." + "star" + j);
> myStar.gotoAndStop("default");
> }
> }
> 
> /*Press Event Declaration*/
> 
> this["star"+i].onPress = function() {
> var tname:Number;
> tname = Number(this._name.charAt(this._name.length -
> 1));
> 
> if(tname == ((_parent._rating - 1 < 0)?0:
> _parent._rating - 1)) {
> return;
> }
> 
> if(tname > (_parent._rating-1)) {
> for(var x:Number = ((_parent._rating-1)<0)?0:
> _parent._rating-1;x <= tname; x++) {
> var myStar = eval(_parent + "." + "star" + x);
> myStar.gotoAndStop("select");
> _parent._rating = x+1;
>

Re: [flexcoders] Using Components in Flash

2005-03-30 Thread Ketan Bengali

The flash docs does have the Creating Components section but how do I get
the value ("rating" in my case) to any other variable in a Flash Appl.

Im not using any flex components.

I didnt get your 2nd point. Why should I compile with flex compiler.
Assume that Im gonna send this to another flash developer and he doesn't
have flex. Then what ? Actually, i am gonna put this on my personal 
website.

Everybody wont have flex. Thats the reason I asked why do I need to 
compile it
with flex compiler as said earlier.

I am just talking about pure 100% FLASH. If i have to create
a flash version of the comonents that I make for flex.

Whats the minimum changes I need to make in the components
so that they will work for a pure flash application.

Regards,

Ketan Bengali



Scott Barnes wrote:

>I can't see anything below that will prevent you from using it inside FLASH 
>IDE.
>
>You can do one of two things.
>
>1) You can copy your assets/code into FLASH IDE, and make a component
>that way by cutting and pasting + importing assets. That based on what
>i've seen below  would work out ok as the mx.framework is very
>similiar in its design with FLASH IDE... i'd only flag things if you
>used flex specific components like Panel etc...
>
>2) Take your FLEX MXML and using the compc compile it to a SWC file,
>then copy it to your Flash IDE Program Files - again since your using
>the basics of the framework you should be right. I think when you use
>your component, FLASH IDE will tell its compiler to load the FLASH MX
>2004 framewor as opposed to the FLEX version (thats if you have
>FlexForFlash installed inside your ide...if you haven't then ignore
>the above and just compile your mxml to a swc and use it like that)
>
>Under the Flash Docs, do a serach for "Creating SWC files" it will
>give you a step by step how to.
>
>Other than that, I'm not sure what else is doable.
>
>
>
>  
>
>  
>


 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] Flex 1.5 price

2005-03-30 Thread Michel Jansen

An old dutch saying : Prices can only go down...  Laszo/BackBase time??


Lucian Beebe wrote:

> There has been a lot of speculation about price changes for Flex. 
> Let's set
> the record straight. As of April 1, we are adjusting the price of Flex.
> There are now three different packages for Flex going forward. For most
> people, the starter kit will provide everything you need for your Flex
> applications: 4 CPUs and Gold Support for $29,000. That's actually cheaper
> than Flex was in the past for 4 CPUs + Gold Support. For the larger Flex
> applications out there, we will sell per CPU at $15,000 per CPU. Finally,
> for software vendors who want to embed Flex in their applications, we have
> special pricing built around your requirements and your market. 
> However, and
> this is important, where you see value in Flex, we are interested in 
> working
> with you to design the right packaging for your needs. If you are 
> interested
> in using Flex on a real project, let us know so we can work with you and
> find the right packaging/pricing to fit your needs.
>
> In response to some of your comments, over time, we are very interested in
> offering additional licensing options to broaden the range of projects and
> developers who can leverage Flex technology.  We follow the market very
> closely, and pay great attention to your constructive feedback.  We 
> all have
> a stake in the success of this marketplace.
>
> Why are we changing the price of Flex?
>
> We have been building, selling, and supporting Flex for a year now. The
> marketplace for rich Internet applications is really taking off. 
> Hundreds of
> applications are being delivered all over the world, and the general
> interest level is really growing out there.
>
> Within this overall marketplace, there are a variety of customer segments
> and project types with varying requirements. Large enterprise 
> customers and
> systems integration partners require substantial pre-sales engagement and
> ongoing assistance from Macromedia commensurate with the value that they
> intend to derive from the software. Small and medium size customers and
> individual developers require low up front costs to get started fast and
> operate within very limited IT budgets.
>
> It is important to have great offerings for each type of user. There is no
> "one size fits all" approach that both makes everyone successful and is
> sustainable over the long term.  A stratified approach makes the most 
> sense,
> and that's what we're gradually implementing.  We've adjusted our core
> product pricing to better reflect both the value derived and the costs
> involved in driving successful projects within large enterprise customers.
> We've also created a starter package that combines deeply discounted Flex
> licenses with high quality support designed to address the needs of large
> customers doing pilot projects or medium size customers doing full
> deployments. 
>
> Please talk to us if you have special needs. We will continue to work
> directly with enterprise customers doing larger deployments or who desire
> Enterprise Licensing Agreements. We also have specialized offerings 
> for ISVs
> delivering packaged software solutions based on Flex. If you have a 
> project
> specifically suited to Flex but need different packaging, please contact
> your Macromedia sales rep to discuss your project and the pricing options
> that meet your needs.  If you see real value in Flex, there is probably a
> way to make it work.
>
> Lucian Beebe
> Flex product manager
> Macromedia
>
> *Yahoo! Groups Sponsor*
> ADVERTISEMENT
> click here 
> 
>  
>
>
>
> 
> *Yahoo! Groups Links*
>
> * To visit your group on the web, go to:
>   http://groups.yahoo.com/group/flexcoders/
>
> * To unsubscribe from this group, send an email to:
>   [EMAIL PROTECTED]
>   
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>   Service .
>
>



 
Yahoo! Groups Links

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

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

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





[flexcoders] Custom AS2 Effects

2005-03-30 Thread Mike Shaw


Hi Folks,

Does anyone know why the following custom effect class which I am trying to
use to call various functions in an effect sequence would cause the sequence
to halt after running the called function.

Thanks Mike.

import mx.effects.Effect;

class com.webqem.flex.effects.CallFunctionEffect extends Effect {

private var obj:Object;
private var func:String;
private var args:Array;

function CallFunctionEffect(obj:Object, func:String) {
this.obj = obj;
this.func = func;
arguments.shift();
arguments.shift();
this.args = arguments;
}

public function playEffect():Void { 
if (obj != null && func != null) {
obj[func].apply(obj, args);
}   
}

public function getAffectedProperties():Array {
return new Array();
}
}




 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] Using Components in Flash

2005-03-30 Thread Ketan Bengali

Let me put my question in a different way.

The code that I posted in earlier mail doesnt fire the change event
On the change event of the component in the flash app nothing happens.

I am able to capture the value on the click of a button but I want
to capture that value on the click of the component.

Any idea ??

Regards,

Ketan Bengali.



Scott Barnes wrote:

>I can't see anything below that will prevent you from using it inside FLASH 
>IDE.
>
>You can do one of two things.
>
>1) You can copy your assets/code into FLASH IDE, and make a component
>that way by cutting and pasting + importing assets. That based on what
>i've seen below  would work out ok as the mx.framework is very
>similiar in its design with FLASH IDE... i'd only flag things if you
>used flex specific components like Panel etc...
>
>2) Take your FLEX MXML and using the compc compile it to a SWC file,
>then copy it to your Flash IDE Program Files - again since your using
>the basics of the framework you should be right. I think when you use
>your component, FLASH IDE will tell its compiler to load the FLASH MX
>2004 framewor as opposed to the FLEX version (thats if you have
>FlexForFlash installed inside your ide...if you haven't then ignore
>the above and just compile your mxml to a swc and use it like that)
>
>Under the Flash Docs, do a serach for "Creating SWC files" it will
>give you a step by step how to.
>
>Other than that, I'm not sure what else is doable.
>
>
>On Thu, 31 Mar 2005 11:13:26 +0530, Ketan Bengali <[EMAIL PROTECTED]> wrote:
>  
>
>>Heres the code i have in my as file:
>>
>>import mx.controls.*
>>import mx.core.UIObject
>>import mx.events.EventDispatcher
>>[Event("change")]
>>[Event("click")]
>>
>>class CineRating extends mx.core.UIObject {
>>
>>static var symbolName:String = "CineRating";
>>static var symbolOwner:Object = CineRating;
>>var className:String = "CineRating";
>>
>>private var _rating:Number;
>>
>>private var starsCount:Number = 5;
>>var movieRS:MovieClip;
>>var _starNumber:Number;
>>
>>function CineRating() {}
>>
>>function init() {
>>super.init();
>>movieRS._visible = true;
>>}
>>
>>public function set rating(nRating:Number):Void {
>>if(nRating%2 != 0 || nRating%2 != 1) {
>>if(nRating - Math.floor(nRating) > 0 && nRating -
>>Math.floor(nRating) < 0.5) {
>>nRating = Math.floor(nRating)
>>} else {
>>nRating = Math.ceil(nRating);
>>}
>>}
>>
>>this._rating = nRating;
>>invalidate();
>>//draw();
>>dispatchEvent({type: "change"});
>>}
>>
>>public function draw() {
>>
>>if(!_parent["star"+(starsCount-1)]) {
>>
>>for(var i:Number = 0; i < starsCount;i++) {
>>this.movieRS.duplicateMovieClip("star"+i, i+1);
>>this["star"+i]._x = i * this["star"+i]._width/0.95;
>>this["star"+i].starNumber = i;
>>
>>if(i < _rating) {
>>this["star"+i].gotoAndStop("select");
>>}
>>else {
>>this["star"+i].gotoAndStop("default");
>>}
>>
>>/*RollOver Event Declaration*/
>>
>>this["star"+i].onRollOver = function() {
>>
>>//mx.controls.Alert.show("Inside RollOver")
>>
>>var tname:Number;
>>tname = this._name.charAt(this._name.length - 1);
>>
>>//mx.controls.Alert.show();
>>if(tname <= (_parent._rating - 1))
>>return;
>>
>>if(tname > _parent._rating - 1) {
>>for(var k:Number = _parent._rating; k <= tname;
>>k++) {
>>var myStar = eval(_parent + "." + "star" + k);
>>
>>myStar.gotoAndStop("hover");
>>}
>>}
>>}
>>
>>/*RollOut Event Declaration*/
>>
>>this["star"+i].onRollOut = function() {
>>var tname:Number;
>>tname = Number(this._name.charAt(this._name.length -
>>1));
>>
>>if(tname <= (_parent._rating - 1)) {
>>return;
>>}
>>
>>for(var j:Number = _parent._rating; j <
>>_parent.starsCount; j++) {
>>var myStar = eval(_parent + "." + "star" + j);
>>myStar.gotoAndStop("default");
>>}
>>}
>>
>>/*Press Event Declaration*/
>>
>>this["star"+i].onPress = function() {
>>var tname:Number;
>>tname = Number(this._name.charAt(this._name.length -
>>1));
>>
>>if(tname == ((_parent._rating - 1 < 0)?0:
>>_parent._rating - 1)) {
>>

RE: [flexcoders] Flex 1.5 price

2005-03-30 Thread Simon Fifield





Do you 
have upgrade prices for Flex 1.5 Users?

  -Original Message-From: Lucian Beebe 
  [mailto:[EMAIL PROTECTED]Sent: 30 March 2005 
  23:51To: flexcoders@yahoogroups.comSubject: RE: 
  [flexcoders] Flex 1.5 priceThere has been a lot of 
  speculation about price changes for Flex. Let's setthe record straight. As 
  of April 1, we are adjusting the price of Flex.There are now three 
  different packages for Flex going forward. For mostpeople, the starter kit 
  will provide everything you need for your Flexapplications: 4 CPUs and 
  Gold Support for $29,000. That's actually cheaperthan Flex was in the past 
  for 4 CPUs + Gold Support. For the larger Flexapplications out there, we 
  will sell per CPU at $15,000 per CPU. Finally,for software vendors who 
  want to embed Flex in their applications, we havespecial pricing built 
  around your requirements and your market. However, andthis is important, 
  where you see value in Flex, we are interested in workingwith you to 
  design the right packaging for your needs. If you are interestedin using 
  Flex on a real project, let us know so we can work with you andfind the 
  right packaging/pricing to fit your needs. In response to some of your 
  comments, over time, we are very interested inoffering additional 
  licensing options to broaden the range of projects anddevelopers who can 
  leverage Flex technology.  We follow the market veryclosely, and pay 
  great attention to your constructive feedback.  We all havea stake in 
  the success of this marketplace.Why are we changing the price of 
  Flex?We have been building, selling, and supporting Flex for a year 
  now. Themarketplace for rich Internet applications is really taking off. 
  Hundreds ofapplications are being delivered all over the world, and the 
  generalinterest level is really growing out there. Within this 
  overall marketplace, there are a variety of customer segmentsand project 
  types with varying requirements. Large enterprise customers andsystems 
  integration partners require substantial pre-sales engagement andongoing 
  assistance from Macromedia commensurate with the value that theyintend to 
  derive from the software. Small and medium size customers andindividual 
  developers require low up front costs to get started fast andoperate 
  within very limited IT budgets.It is important to have great offerings 
  for each type of user. There is no"one size fits all" approach that both 
  makes everyone successful and issustainable over the long term.  A 
  stratified approach makes the most sense,and that's what we're gradually 
  implementing.  We've adjusted our coreproduct pricing to better 
  reflect both the value derived and the costsinvolved in driving successful 
  projects within large enterprise customers.We've also created a starter 
  package that combines deeply discounted Flexlicenses with high quality 
  support designed to address the needs of largecustomers doing pilot 
  projects or medium size customers doing fulldeployments.  
  Please talk to us if you have special needs. We will continue to 
  workdirectly with enterprise customers doing larger deployments or who 
  desireEnterprise Licensing Agreements. We also have specialized offerings 
  for ISVsdelivering packaged software solutions based on Flex. If you have 
  a projectspecifically suited to Flex but need different packaging, please 
  contactyour Macromedia sales rep to discuss your project and the pricing 
  optionsthat meet your needs.  If you see real value in Flex, there is 
  probably away to make it work.Lucian BeebeFlex product 
  managerMacromedia 







Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Creating a movie clip

2005-03-30 Thread Manish Jethani

On Wed, 30 Mar 2005 12:53:31 -0600, Nate Nielsen <[EMAIL PROTECTED]> wrote:

> this.createEmptyMovieClip("line_mc", 1);
> line_mc.lineStyle(2, 0x00, 100);
> line_mc.moveTo(0, 0);
> line_mc.lineTo(100, 100);
>  

> doest work though, can anyone help? 

How about this:

 var line_mc:UIObject = createChild(UIObject);
 line_mc.lineStyle(2, 0x00, 100);
 line_mc.moveTo(0, 0);
 line_mc.lineTo(100, 100);

Manish


 
Yahoo! Groups Links

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

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

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




[flexcoders] Flex Lite

2005-03-30 Thread Thijs Triemstra | Collab
why does the 'starter kit'  come with 4CPUs and Gold Support? This sounds more like the full Flex package instead of a real 'lite' version.. why not 1 CPU without Gold Support for something lower or similar to the current 12K?? I bet it's cheaper than before but who needs 4CPUs + Gold Support to start with?? 

Thijs


Op 31-mrt-05 om 0:50 heeft Lucian Beebe het volgende geschreven:

For most
 people, the starter kit will provide everything you need for your Flex
 applications: 4 CPUs and Gold Support for $29,000. That's actually cheaper
 than Flex was in the past for 4 CPUs + Gold Support.  

[flexcoders] Re: Error: Cannot invoke method when using a VO

2005-03-30 Thread cazzaran


WHat's interesting, is if you look at the below code, I have an array
of Groups, called subGroups. This is populated with objects of the
type Group, so that would seem to mean that Flex is typing them
correctly, at least when they come FROM the server if I create a
new object of this type and send it TO my server, it seems to not be
correct.

What's also weird, is if I inspect an object using debug, all the
Groups in the subGroups array have _remoteClass set, even though I
didn't specify it. This is due to the Object.registerClass I assume,
but when I instantiate a new Group(), that object lacks this variable.
It seems like it's being typed wrong from the client side. Am I
interpreting this correctly?

Here's what my Group.as code looks like:

class pojos.Group {
   public static var regClass = Object.registerClass("pojos.Group",
pojos.Group);
  public var id:String;
  public var name:String;
  public var organization:Organization;
  public var superGroup:Group;
  public var subGroups:Array;

function Group() {}

public function get data() {
return id;
}

  //... some getters and business methods
}

--- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]> wrote:
> Have you posted the Object.registerClass line of code in this thread
> yet? I've not yet seen it, but it must not be registered correctly or
> the class not linked in at compile time to match the registration as the
> player would send an instance of Group.
> 
> All objects go over the wire as ASObjects, but they may include type
> information if they're registered.  The raw representation of an
> ASObject on the server side is a HashMap. It's the server side part of
> RemoteObject that knows how to map ASObject -> Group before invoking
> your method.
> 
> Since you're not having any luck with Flex Builder, did you try what I
> suggested using the NetConnectionDebugger.swf (which ships in the extras
> folder of the Flex 1.5 install) with remote-objects debug enabled (it
> doesn't have anything to do with Flex Builder)? If that's not suitable
> then you could use the gateway debug level logging approach on the
> server. I'd prefer you to try the server gateway logging approach anyway
> as we want to see whether an AMF Typed Object or untyped Object was
> deserialized from your Group param.
> 
> 
> -Original Message-
> From: cazzaran [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 30, 2005 2:12 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Error: Cannot invoke method when using a VO
> 
> 
> 
> I turned on remote object debugging, but it seems to make my
> flexbuilder unresponsive. After a while, builder says that I should
> abort the script or it will make my machine lock up. If I set remote
> object debug to false and restart the server, this no longer happens.
> 
> But I think I found the issue anyway; it seems that for some reason,
> the Group isn't being sent over the wire as a Group, even though I
> have the Object.registerClass correct. Also, when I get an array of
> Groups from my server, they are correct. 
> 
> But it seems that in my client class, when I do:
> 
> var group:Group = new Group();
> group.name = "test";
> remoteDelegate.addGroup(group);
> 
> it gives me that "can't invoke method error", because it's not a Group
> POJO, it's just a hashmap. Why is this happening?
> 
> 
> --- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]>
> wrote:
> > Have you managed to turn on debugging for remote-object in
> > /WEB-INF/flex/flex-config.xml and looked at the trace of the AMF error
> > in the NetConnection Debugger? There may be more information on the
> > fault object in the rootcause property.
> > 
> > If you have access to the server locally, you can also try turning on
> > Debug level logging for the AMF Gateway in
> > /WEB-INF/flex/gateway-config.xml and checking your Flex logs (or
> > possibly just watching the console output if you manually launch JRun
> > and have console logging enabled for Flex). This will show you what
> data
> > type was being deserialized for your input parameter and it will also
> > let you see the raw response going back with information similar to
> that
> > shown in the NetConnection Debugger (though the server side is more
> > accurate as the NCD is an old Flash Remoting tool that has a few
> issues
> > - mainly that it doesn't show objects typed with
> Object.registerClass).
> > 
> > 
> >  
> > 
> > -Original Message-
> > From: cazzaran [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, March 28, 2005 4:58 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Error: Cannot invoke method when using a VO
> > 
> > 
> > 
> > Peter,
> > 
> > Here's my whitelist:
> > 
> > 
> > 
> > *
> > 
> > 
> > 
> > businessdelegates.UserDelegate
> > stateful-class
> > false
> > 
> > 
> > businessdelegates.

RE: [flexcoders] Flex 1.5 price

2005-03-30 Thread Lucian Beebe










Since all Flex 1.5 customers are on a
maintenance program, upgrades come for free. 

 

Lucian 

 









From: Simon Fifield
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 30, 2005
3:14 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex 1.5
price



 



Do you have upgrade prices for Flex 1.5
Users?





-Original Message-
From: Lucian Beebe
[mailto:[EMAIL PROTECTED]
Sent: 30 March 2005 23:51
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex 1.5
price

There has been a lot of speculation about price changes for Flex. Let's
set
the record straight. As of April 1, we are
adjusting the price of Flex.
There are now three different packages for Flex
going forward. For most
people, the starter kit will provide everything
you need for your Flex
applications: 4 CPUs and Gold Support for $29,000.
That's actually cheaper
than Flex was in the past for 4 CPUs + Gold
Support. For the larger Flex
applications out there, we will sell per CPU at
$15,000 per CPU. Finally,
for software vendors who want to embed Flex in
their applications, we have
special pricing built around your requirements and
your market. However, and
this is important, where you see value in Flex, we
are interested in working
with you to design the right packaging for your
needs. If you are interested
in using Flex on a real project, let us know so we
can work with you and
find the right packaging/pricing to fit your
needs. 

In response to some of your comments, over time,
we are very interested in
offering additional licensing options to broaden
the range of projects and
developers who can leverage Flex technology. 
We follow the market very
closely, and pay great attention to your
constructive feedback.  We all have
a stake in the success of this marketplace.

Why are we changing the price of Flex?

We have been building, selling, and supporting
Flex for a year now. The
marketplace for rich Internet applications is
really taking off. Hundreds of
applications are being delivered all over the
world, and the general
interest level is really growing out there. 

Within this overall marketplace, there are a
variety of customer segments
and project types with varying requirements. Large
enterprise customers and
systems integration partners require substantial
pre-sales engagement and
ongoing assistance from Macromedia commensurate
with the value that they
intend to derive from the software. Small and
medium size customers and
individual developers require low up front costs
to get started fast and
operate within very limited IT budgets.

It is important to have great offerings for each
type of user. There is no
"one size fits all" approach that both
makes everyone successful and is
sustainable over the long term.  A stratified
approach makes the most sense,
and that's what we're gradually
implementing.  We've adjusted our core
product pricing to better reflect both the value
derived and the costs
involved in driving successful projects within
large enterprise customers.
We've also created a starter package that combines
deeply discounted Flex
licenses with high quality support designed to
address the needs of large
customers doing pilot projects or medium size
customers doing full
deployments.  

Please talk to us if you have special needs. We
will continue to work
directly with enterprise customers doing larger
deployments or who desire
  Enterprise Licensing Agreements. We also have specialized offerings
for ISVs
delivering packaged software solutions based on
Flex. If you have a project
specifically suited to Flex but need different
packaging, please contact
your Macromedia sales rep to discuss your project
and the pricing options
that meet your needs.  If you see real value
in Flex, there is probably a
way to make it work.

 Lucian Beebe
Flex product manager
Macromedia 














Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












Re: [flexcoders] Progress/Waiting screen...

2005-03-30 Thread Manish Jethani

On Wed, 30 Mar 2005 17:16:58 +0100, Anthony Merryfield
<[EMAIL PROTECTED]> wrote:

> Anybody know of a good tutorial/guide to adding a waiting screen to a Flex
> app? I have a Flash animation that I need to show while the user waits for
> stuff to load. Google brought up a few bits but nothing particularly useful.

Are you looking for a custom preloader?
http://www.markme.com/eanderson/archives/006489.cfm

Manish


 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Re: Error: Cannot invoke method when using a VO

2005-03-30 Thread Peter Farland


The Object.registerClass looks correct - but, your Group object isn't as
simple as I thought. I imagine the Organization class also needs to be
registered and availabe on the Java side too. Is that class registered?
Does it have a public no args constructor? ... and so forth.


Note: While it is used to try and achieve a similar result, _remoteClass
isn't from the Object.registerClass (it's likely the server has added
this for the case where users have forgotten Object.registerClass and
the RemoteObject responder tries to create its own instance of the type
for you... this is much slower than if you had used Object.registerClass
as the player can do this natively for you much faster). _remoteClass
was introduced to support RemoteObject via SOAP in Flex 1.0. The SOAP
transport protocol was removed for RemoteObject in Flex 1.5. I'd like to
see all Flex users move away from _remoteClass and rely on
Object.registerClass.
 

-Original Message-
From: cazzaran [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 30, 2005 3:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Error: Cannot invoke method when using a VO



WHat's interesting, is if you look at the below code, I have an array
of Groups, called subGroups. This is populated with objects of the
type Group, so that would seem to mean that Flex is typing them
correctly, at least when they come FROM the server if I create a
new object of this type and send it TO my server, it seems to not be
correct.

What's also weird, is if I inspect an object using debug, all the
Groups in the subGroups array have _remoteClass set, even though I
didn't specify it. This is due to the Object.registerClass I assume,
but when I instantiate a new Group(), that object lacks this variable.
It seems like it's being typed wrong from the client side. Am I
interpreting this correctly?

Here's what my Group.as code looks like:

class pojos.Group {
   public static var regClass = Object.registerClass("pojos.Group",
pojos.Group);
  public var id:String;
  public var name:String;
  public var organization:Organization;
  public var superGroup:Group;
  public var subGroups:Array;

function Group() {}

public function get data() {
return id;
}

  //... some getters and business methods
}

--- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]>
wrote:
> Have you posted the Object.registerClass line of code in this thread
> yet? I've not yet seen it, but it must not be registered correctly or
> the class not linked in at compile time to match the registration as
the
> player would send an instance of Group.
> 
> All objects go over the wire as ASObjects, but they may include type
> information if they're registered.  The raw representation of an
> ASObject on the server side is a HashMap. It's the server side part of
> RemoteObject that knows how to map ASObject -> Group before invoking
> your method.
> 
> Since you're not having any luck with Flex Builder, did you try what I
> suggested using the NetConnectionDebugger.swf (which ships in the
extras
> folder of the Flex 1.5 install) with remote-objects debug enabled (it
> doesn't have anything to do with Flex Builder)? If that's not suitable
> then you could use the gateway debug level logging approach on the
> server. I'd prefer you to try the server gateway logging approach
anyway
> as we want to see whether an AMF Typed Object or untyped Object was
> deserialized from your Group param.
> 
> 
> -Original Message-
> From: cazzaran [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 30, 2005 2:12 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Error: Cannot invoke method when using a VO
> 
> 
> 
> I turned on remote object debugging, but it seems to make my
> flexbuilder unresponsive. After a while, builder says that I should
> abort the script or it will make my machine lock up. If I set remote
> object debug to false and restart the server, this no longer happens.
> 
> But I think I found the issue anyway; it seems that for some reason,
> the Group isn't being sent over the wire as a Group, even though I
> have the Object.registerClass correct. Also, when I get an array of
> Groups from my server, they are correct. 
> 
> But it seems that in my client class, when I do:
> 
> var group:Group = new Group();
> group.name = "test";
> remoteDelegate.addGroup(group);
> 
> it gives me that "can't invoke method error", because it's not a Group
> POJO, it's just a hashmap. Why is this happening?
> 
> 
> --- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]>
> wrote:
> > Have you managed to turn on debugging for remote-object in
> > /WEB-INF/flex/flex-config.xml and looked at the trace of the AMF
error
> > in the NetConnection Debugger? There may be more information on the
> > fault object in the rootcause property.
> > 
> > If you have access to the server locally, you can also try turning
on
> > Debug level logging for the

RE: [flexcoders] output String from WebService

2005-03-30 Thread Steiner, Jeff

 Yes.  I trigger the web service and I put the result like this:



In this function is where I have been trying everything.

function postResult(event) {
xmlResult =
mx.utils.XMLUtil.createXML(event.result);

resultText.text =
mx.utils.ArrayUtil.toArray(registration.addUser.result);
}

I know that I am just overlooking something - just can't figure it out.

-Original Message-
From: jeff tapper [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 30, 2005 12:24 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] output String from WebService


silly questions, but did you trigger the web service?

At 03:08 PM 3/30/2005, you wrote:
>I am seeing an issue that I know has a simple answer - I just keep 
>getting undefined as a result.
>
>I have a WebService call to a CFC that returns a String.  Simple so
far?
>
>My result is undefined no matter what I try, when I output it.
>
>Any ideas?
>
>Jeff
>
>
> 
> 
>
>showBusyCursor="true">
>   
>
>
>
>
>Yahoo! Groups Sponsor
>ADVERTISEMENT
>/D=groups/S=1705007207:HM/EXP=1112299714/A=2593423/R=0/SIG=11el9gslf/*h
>ttp://www.netflix.com/Default?mqso=60190075>
>click here
>
>
>
>--
>Yahoo! Groups Links
>* To visit your group on the web, go to:
>*
> 
>http://groups.yahoo.com/grou
>p/flexcoders/
>
>*
>* To unsubscribe from this group, send an email to:
>*
> fle
> [EMAIL PROTECTED]
>
>*
>* Your use of Yahoo! Groups is subject to the 
> Yahoo! Terms of Service.



 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Re: Image Caching

2005-03-30 Thread Manish Jethani

On Mon, 28 Mar 2005 12:00:02 -0500, Joe Berkovitz <[EMAIL PROTECTED]> wrote:

> But it's still not as good as I would like, because Images are merely
> clip holders, not the actual image clips themselves.  Each time one sets
> the "source" attribute, a brand new MovieClip object for the image is
> created via loadMovie() (which clip in turn becomes the 'contentHolder'
> property of the Image).

So the other option is to just hide and show the image objects.  You
could maintain a map of image URLs to their corresponding objects.  If
there's one already in the map, you simply set its _visible to true. 
If there isn't one, you create one and add it to the map.

This would be memory-intensive and not advisable for something that
has a large number of images.  But say if you have a fixed number of
images and they keep swapping in and out, you can do the math for how
much memory you'd need to keep them all loaded at once.

> Incidentally, the map demo doesn't seem to make use of the browser
> cache.

I haven't checked, but this might be true.  I know that Google sets an
Expires header of something like January 2006, but maybe it gets
stripped off along the way (the GIF->JPEG conversion proxy).

As an aside, check this out: http://www.xamlon.com/flash/demos/mapserver/

They're caching images on the server.
http://www.xamlon.com/flash/demos/mapserver/maps/map-4--3-11.jpeg
Unless you unselect the cache option, in which case they get fetch fresh images.
http://www.xamlon.com/flash/demos/mapserver/map.aspx?x=4&y=-3&z=11

Manish


 
Yahoo! Groups Links

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

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

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




[flexcoders] Cairngorm Question.

2005-03-30 Thread Omar Ramos





Hi 
all,
 
I am using the 
Cairngorm plataform but had a small question. How can I use the viewhelper 
technique when I attach view dynamicaly? For example I have a mxml component and 
put a view helper attached to it and use this component on a repeater and 5 
instances are made. When I call the getViewHelper method which of those 5 
reference will it give me? Any help would be apreaciated.
 
 
 
Omar 
Ramos
Itacon 
Corporation
Technology 
Manager







Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Re: Error: Cannot invoke method when using a VO

2005-03-30 Thread cazzaran


This is odd; all my POJOs have Object.registerClass (including the
ones that are used as types in others) but they also all have
_remoteClass specified when I debug (though I haven't set it). I
looked, and they all have regClass set to true, which I assume means
that the registerClass went through correctly. Somehow, from what it
sounds like you're saying, they aren't being mapped correctly to my
server side objects. This might explain why the Group I create on my
client side isnt serialized right...

I'm baffled. 

--- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]> wrote:
> 
> The Object.registerClass looks correct - but, your Group object isn't as
> simple as I thought. I imagine the Organization class also needs to be
> registered and availabe on the Java side too. Is that class registered?
> Does it have a public no args constructor? ... and so forth.
> 
> 
> Note: While it is used to try and achieve a similar result, _remoteClass
> isn't from the Object.registerClass (it's likely the server has added
> this for the case where users have forgotten Object.registerClass and
> the RemoteObject responder tries to create its own instance of the type
> for you... this is much slower than if you had used Object.registerClass
> as the player can do this natively for you much faster). _remoteClass
> was introduced to support RemoteObject via SOAP in Flex 1.0. The SOAP
> transport protocol was removed for RemoteObject in Flex 1.5. I'd like to
> see all Flex users move away from _remoteClass and rely on
> Object.registerClass.
>  
> 
> -Original Message-
> From: cazzaran [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 30, 2005 3:31 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Error: Cannot invoke method when using a VO
> 
> 
> 
> WHat's interesting, is if you look at the below code, I have an array
> of Groups, called subGroups. This is populated with objects of the
> type Group, so that would seem to mean that Flex is typing them
> correctly, at least when they come FROM the server if I create a
> new object of this type and send it TO my server, it seems to not be
> correct.
> 
> What's also weird, is if I inspect an object using debug, all the
> Groups in the subGroups array have _remoteClass set, even though I
> didn't specify it. This is due to the Object.registerClass I assume,
> but when I instantiate a new Group(), that object lacks this variable.
> It seems like it's being typed wrong from the client side. Am I
> interpreting this correctly?
> 
> Here's what my Group.as code looks like:
> 
> class pojos.Group {
>public static var regClass = Object.registerClass("pojos.Group",
> pojos.Group);
>   public var id:String;
>   public var name:String;
>   public var organization:Organization;
>   public var superGroup:Group;
>   public var subGroups:Array;
> 
>   function Group() {}
> 
>   public function get data() {
>   return id;
>   }
>   
>   //... some getters and business methods
> }
> 
> --- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]>
> wrote:
> > Have you posted the Object.registerClass line of code in this thread
> > yet? I've not yet seen it, but it must not be registered correctly or
> > the class not linked in at compile time to match the registration as
> the
> > player would send an instance of Group.
> > 
> > All objects go over the wire as ASObjects, but they may include type
> > information if they're registered.  The raw representation of an
> > ASObject on the server side is a HashMap. It's the server side part of
> > RemoteObject that knows how to map ASObject -> Group before invoking
> > your method.
> > 
> > Since you're not having any luck with Flex Builder, did you try what I
> > suggested using the NetConnectionDebugger.swf (which ships in the
> extras
> > folder of the Flex 1.5 install) with remote-objects debug enabled (it
> > doesn't have anything to do with Flex Builder)? If that's not suitable
> > then you could use the gateway debug level logging approach on the
> > server. I'd prefer you to try the server gateway logging approach
> anyway
> > as we want to see whether an AMF Typed Object or untyped Object was
> > deserialized from your Group param.
> > 
> > 
> > -Original Message-
> > From: cazzaran [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, March 30, 2005 2:12 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Error: Cannot invoke method when using a VO
> > 
> > 
> > 
> > I turned on remote object debugging, but it seems to make my
> > flexbuilder unresponsive. After a while, builder says that I should
> > abort the script or it will make my machine lock up. If I set remote
> > object debug to false and restart the server, this no longer happens.
> > 
> > But I think I found the issue anyway; it seems that for some reason,
> > the Group isn't being sent over the wire as a Group, even though I
> > have the Object.registerClass correct. Als

Re: [flexcoders] Large Flex app architecture

2005-03-30 Thread Scott Barnes

I too am in the same boat and have thought / researched on this very
subject. I'm attacking my FLEX archiecture much in the same way i
would with a traditional web paged system. I've looked at Screen by
Screen approach where typically you active a screen for a task.

Example:

TravelAuthorization Request Form (Wizard Format) = Screen1
TravelAUthorization Admin Form = Screen 2
TravelAuthorization Summary / Report = Screen 3 

etc..

Now each of these screens have their own sub-screen lifecycle (ie much
like the FlexStore where checkout form replaces product pod and so
on). Anything that significantly breaks away from a  parent Screen
becomes a screen onto itself.

Once I formulated a pattern for this and broke my approach into screen
by screen, I am then going to use a destroy / create approach. I'm
hoping that my theory holds that Flash Garbage collection will free up
memory every time i destroy a screen, but this is a Intranet
Application so bandwidth isn't my top priority here (while i should be
mindful of it) - so I plan to use Run Time Shared Libraries but will
quite happilly kill an asset and move it to a download every bite
situation if need be.

I will use view stacks up until a point, and then i'll have my own
quasi view stack manager to attack the same problem.

Again, I am not finding much information on how FLEX Garbage
collection works and what key tricks i need to make sure are in place,
so the above may not hold water and won't know until I have it fully
tested and working but surely a destroy/create approach should work
and if it doesn't by god MM you better make it happen soon or
i'll...i'lll bah..i got nothing. hehe.

I posted on my blog on how I am attacking this screen by screen
approach, via this:

http://www.mossyblog.com/archives/434.cfm

Its a framework I am working on and its ripped off a few concepts from
Mach-II and Apache Cocoon.


On Wed, 30 Mar 2005 09:08:40 -0800 (PST), Valy Sivec
<[EMAIL PROTECTED]> wrote:
>  
>  
> 
> I'm designing a quite large application and plann to use viewstack
> container(s). Because each view will contain lots of panels and info I'm
> affraid that the browser might hit his limit in regards with the memory
> consumption and crash... seen couple of messages with the same problem and I
> would like to avoid it... 
> 
> Actually I'm not even sure how the Flash Player garbage collector works or
> if there is any  I'm very new to this Flash/Flex world so sorry if
> the question is dumb... 
> 
> Is it safe grouping the screens in multiple viewstacks and include them from
> the jsp pages? or should be enough having only one viewstack container for
> the whole application? Any suggestion? 
> 
> Valy 
> 
>  
> 
>  
> Do you Yahoo!?
>  Make Yahoo! your home page 
>  
>  Yahoo! Groups Sponsor 
>  
>  ADVERTISEMENT
>  
>  
>  
>  Yahoo! Groups Links
>  
>  
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
>   
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> 
> 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
Yahoo! Groups Links

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

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

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




[flexcoders] thoughts on effects

2005-03-30 Thread Dimitrios Gianninas

Hi,

I haven't used effects much in my first Flex project, only in two areas really:

- fade effect for tooltips
- sliding panel (hides/appears)

One area I think that we could use effects a bit more is with Validators. When 
you have a component that is attached to a Validator and the validation fails, 
right now, a red border simply appears around the component until the 
appropriate condition is satisfied. Perhaps this red border could blink, or 
pulse for a few seconds, that would really grab the user's attention. I've used 
my own app a few times and with so many items on the screen, sometimes only one 
Validator fails and it takes a few seconds to notice the red border, the 
blinking/pulsing would be more obvious.

I can see myself using the Fade effect even more if we had push capabilities 
available in Flex. This way, much like Outlook 2003 does, notifications could 
fade in/out based on data being updated.

How about a flash effect? Like making the background of a datagrid flash for a 
few seconds to grab the users attention to something? That might be interesting.

And like other people have mentioned, effects and graphs definitly help grab 
the attention of management... those things are cool and everyone wants to use 
something cool :)

Jimmy


AVIS 
IMPORTANTWARNING Les informations 
contenues dans le present document et ses pieces jointes sont strictement 
confidentielles et reservees a l'usage de la (des) personne(s) a qui il est 
adresse. Si vous n'etes pas le destinataire, soyez avise que toute divulgation, 
distribution, copie, ou autre utilisation de ces informations est strictement 
prohibee. Si vous avez recu ce document par erreur, veuillez s'il vous plait 
communiquer immediatement avec l'expediteur et detruire ce document sans en 
faire de copie sous quelque forme. The information contained 
in this document and attachments is confidential and intended only for the 
person(s) named above. If you are not the intended recipient you are hereby 
notified that any disclosure, copying, distribution, or any other use of the 
information is strictly prohibited. If you have received this document by 
mistake, please notify the sender immediately and destroy this document and 
attachments without making any copy of any kind.



 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Re: Error: Cannot invoke method when using a VO

2005-03-30 Thread Peter Farland

Without seeing the AMF trace on the server side, all I can do is suggest
simplifying the case step by step and then work up to the problem at
hand. Try a Group type that only has flash intrinsic types as
properties... then go down another level... etc.


 
Yahoo! Groups Links

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

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

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




[flexcoders] Re: Error: Cannot invoke method when using a VO

2005-03-30 Thread cazzaran


I've set my flex logs to debug, but I don't get much in the way of
logging from flex.

I've also set every trace option to true, but still don't get much
from it.

I'm curious, do my server and client sided classes have to have
identical sets of members (or matching getters and setters)? I ask
this because my server side POJOs have getters that are simply subsets
of internal variables, like getSubGroups which returns a subset of
what getGroups() would. On my client class side, i created a variable
called subGroups:Array so that this information is immediately
available, and is populated with getSubGroups() on the server side.

My question is, does that mean that my server sided class will need a
setSubGroups() since Flex sees this variable on the client side? Or if
it doesn't will the classes still match up with Object.registerClass?

--- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]> wrote:
> Without seeing the AMF trace on the server side, all I can do is suggest
> simplifying the case step by step and then work up to the problem at
> hand. Try a Group type that only has flash intrinsic types as
> properties... then go down another level... etc.





 
Yahoo! Groups Links

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

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

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