SOLVED: Re: [flexcoders] Re: How to make FormItem labels left aligned?

2006-12-14 Thread Stanislav Zayarsky

Guys,

Just use this ExtendedFormItem class instead of default FormItem.

Here is the code:

*public* *class* ExtendedFormItem *extends* FormItem {

*  override* *protected*
*function*updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number) :
*void* {

*super*.updateDisplayList(unscaledWidth, unscaledHeight);

*var* labelObject : Object = rawChildren.getChildAt(1);

   labelObject.x = 0;

 }

}

Best regards
Stanislav


On 11/10/06, Tim Hoff [EMAIL PROTECTED] wrote:


   Hi Andriy,

While I like your example, how do you propose aligning the children of the
FormItems?  It seems, with this method, that the entire form item
(including the children - TextInput...),  gets moved to the left with the
label; at least in my test of this code.  If the label text has different
lengths, for each form item, the various children get moved to the left as
well; and don't align.  Preferably, this is something that should be
handled with a stock CSS property.  but I was wondering if you had
experienced the same behavior.  Instead of nesting HBox's, for days, this
would be a very useful technique, for FormItems.

-TH
__

*Tim Hoff
*Cynergy Systems, Inc.
http://www.cynergysystems.com http://www.cynergysystems.comoffice/
Office: 866-CYNERGY





Re: [flexcoders] [Ann] The world's largest Flex application

2006-06-22 Thread Stanislav Zayarsky



Chris,

So how all other developers can get this valuable knowledge?

Best regards
Stanislav
On 6/22/06, Chris Velevitch [EMAIL PROTECTED] wrote:
FlexDaddy (
http://www.flexdaddy.info/2006/06/19/afr-access-one-of-the-largest-public-flex-apps-to-date/)talks about it and, unfortunately, it won't be recorded.Chris--Chris VelevitchManager - Sydney Flash Platform Developers Group
www.flashdev.org.au Yahoo! Groups Sponsor ~--See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* 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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] Flex 1.5 TextArea height

2006-06-14 Thread Stanislav Zayarsky



Hello FlexCoders,

I have TextArea on the stage, it has some size. After app initialized I'm populating TextArea with new data, scrollbar appears and it works good.
But I need next functionality,I need TextAreaexpand it's height, so all text is visible without vertical scrollbar.

It looks like an easy task, we just should extend TextArea and at some moment set height of TextArea to new value, But here I have questions:
1. At what moment I should change height? What event I should listen?
2. What value I should set to height?


Best regards
Stanislav

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] Flex 1.5 Components Blinking

2006-06-14 Thread Stanislav Zayarsky



Hello FlexCoders,

Let's assume next situation: We have a lot of different components on the screen, application initialized and they are hidden. 
Then I load some data from the server, in the meantime showing preloader, and after data loadedI set it to components and set visibile = true to all of them and what user see: All components blinking, resizing andmoving on the screen.User don't want to see this! 


My goal is: To show components to the user after theypopulated with data and completelyinitialized.

Question: How to do that?

P.S. I don't accept workarounds like Timer, doLater, etc.. Just a clear solution.

Thanks,

Best regards
Stanislav

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



Re: Re[2]: [flexcoders] Flex 1.5 TextArea height

2006-06-14 Thread Stanislav Zayarsky



ConcerningManish example, what is the magic numbers there?
_measuredPreferredHeight = label.textHeight + 4;
And it doesn't work!

I will try getTextExtent workaround.

Best regards
Stanislav
On 6/14/06, Andriy Panas [EMAIL PROTECTED] wrote:
Hello Stanislav,One more idea found by me at history of the Flexcoders mailing listis to use TextFormat.getTextExtent
() function to calculate the size of the text:http://livedocs.macromedia.com/flash/mx2004/main_7_2/1840.html#40Example:
--var txtFmt:TextFormat=new TextFormat();txtFmt.font=this.getStyle(fontFamily);var labelMetrics:Object=txtFmt.getTextExtent(code);var initObj:Object=new Object();
initObj.x=Math.floor(this.width/2)-Math.floor(labelMetrics.textFieldWidth/2);initObj.y=this.height-(this.getStyle(fontSize)+margin);initObj.text=code;this.createChild(mx.controls.Label,,initObj);
Best regards,Andriymailto:[EMAIL PROTECTED] Yahoo! Groups Sponsor ~--
Home is just a click away. Make Yahoo! your home page now.http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM~-
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/
* 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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



Re: Re[2]: [flexcoders] Flex 1.5 TextArea height

2006-06-14 Thread Stanislav Zayarsky



Ok, let's forget about getTextExtent.. Because it is has it's own limitations.

What Adobe guys cansuggest to me?
On 6/14/06, Stanislav Zayarsky [EMAIL PROTECTED] wrote:


ConcerningManish example, what is the magic numbers there?
_measuredPreferredHeight = label.textHeight + 4;
And it doesn't work!

I will try getTextExtent workaround.

Best regards

Stanislav

On 6/14/06, Andriy Panas [EMAIL PROTECTED] wrote:
 
Hello Stanislav,One more idea found by me at history of the Flexcoders mailing listis to use TextFormat.getTextExtent
 () function to calculate the size of the text:http://livedocs.macromedia.com/flash/mx2004/main_7_2/1840.html#40
Example:--var txtFmt:TextFormat=new TextFormat();txtFmt.font=this.getStyle(fontFamily);var labelMetrics:Object=txtFmt.getTextExtent(code);
var initObj:Object=new Object(); initObj.x=Math.floor(this.width/2)-Math.floor(labelMetrics.textFieldWidth/2);initObj.y=this.height-(this.getStyle(fontSize)+margin);initObj.text=code;this.createChild
(mx.controls.Label,,initObj); Best regards,Andriymailto:
[EMAIL PROTECTED] Yahoo! Groups Sponsor ~-- Home is just a click away. Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM~- --Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: 
http://groups.yahoo.com/group/flexcoders/ * 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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] Flex 1.5 Proflier doesn't work

2006-05-30 Thread Stanislav Zayarsky



Hello FlexCoders,

I have installed Flex Profiler, usign Tutorial from Adobe siteand I can't get it to work!

Three other people from my company tried to do the same job and no luck!

Flex Profiler just don't show results, and don't save any data to profiler directory.

Yes, we have debug player and yes we configured flex-config and mm.cfg as in tutorial.

Any thoughts?

If someone is using Flex Profiler,please contact me and share the experience?

Best regards
Stanislav






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









Re: [flexcoders] Re: Loading one cairngorm into another cairngorm

2006-05-28 Thread Stanislav Zayarsky



What if you will remove singletons from you code? I don't think that you can get clear solution to this problem with Cairngorm design, just some workarounds.

Best regards
Stanisla
On 5/27/06, Xavi Beumala [EMAIL PROTECTED] wrote:


Maybe the new LoaderContext (similar to classLoader in Java) can help you on this.BestX.

On 5/27/06, Darren Houle  [EMAIL PROTECTED]
 wrote: 
If that was the case then you'd have to worry about singletons and object names every time you used a SWFLoader to load any other SWF.Any SWF you
load might have coincidentally used a duplicate variable, class, or packagename.I'm not 100% sure, but I believe that SWFs loaded into other SWFs by default are scoped separately and self contained and you do not have to
worry about the singleton classes or var names.If that wasn't the casethen it would be incredibly simple to communicate between the mast SWF and the loaded SWF.It would be an easy enough experiment... just create a page
that loaded the same Flex app twice on the page, right next to each other,and see if they continue to work properly.Then try it again with a simple app that, say, displayed a label and then SWFloaded a copy of itself.See
if that collides.Darrenin the case ofCairngorm, I think that I might run into problems with the fact thatin Cairngorm, some things are singletons (AppController, Service,AppModel).If Both apps have the same names for these singletons,
would these not conflict? Yahoo! Groups Sponsor ~-- Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM~- --Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/ * 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 Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 

SPONSORED LINKS 




Web site design development 

Computer software development 

Software design and development 


Macromedia flex 

Software development best practice 


YAHOO! GROUPS LINKS 

Visit your group flexcoders on the web.


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

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










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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









Re: [flexcoders] Are ViewHelper and ViewLocator deprecated in Cairngorm 2?

2006-05-16 Thread Stanislav Zayarsky



Alistair,

mx:Label text={ MyUtilityClass.formatDataToSomethingSimpler(
ModelLocator.getInstance().complexData ) } /

I think it is not good when view knows something about how to parse data.
View should be decoupled from this. This is not clear solution.

What do you think?

Best regards
Stanislav

On 5/16/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Thanks Alistar,

 That seems like a cleaner way to handle things.

 - mike





 Alistair McLeod To: flexcoders@yahoogroups.com
 [EMAIL PROTECTED] cc:
 Sent by: Subject: RE: [flexcoders] Are ViewHelper and ViewLocator
 flexcoders@yahoogroups.com deprecated in Cairngorm 2?
 05/16/2006 08:59 AM
 Please respond to
 flexcoders






 Hi Michael,

 In your complex value object case, here's what we'd recommend now.

 In your command, put the complex object in your model (ModelLocator),
 eg.

 ModelLocator.getInstance().complextData = theResultFromTheServer;

 Now, in your view, you bind to that model item, but call a utility class
 to massage the results into the format you want. eg,

 mx:Label text={ MyUtilityClass.formatDataToSomethingSimpler(
 ModelLocator.getInstance().complexData ) } /

 Now, you could possibly call MyUtilityClass a view helper, in the broad
 sense of the pattern, but extracting it this way lets you, for example,
 unit tests it's functionality and keeps the Model and View separate.

 Cheers,

 Ali


 Alistair McLeod
 Practice Director (Rich Internet Applications)
 Adobe Consulting
 Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
 p: +44 (0) 131 338 6108
 [EMAIL PROTECTED]
 http://weblogs.macromedia.com/amcleod



 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of [EMAIL PROTECTED]
 Sent: 16 May 2006 13:14
 To: flexcoders@yahoogroups.com
 Cc: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Are ViewHelper and ViewLocator deprecated in
 Cairngorm 2?

 I am using the viewLocator and viewHelper in a fds2b3 prototype, and
 they function correctly, although a post from Steve Webster states
 that:

 My quick response is that we really don't anticipate you needing to use
 ViewHelpers as much (if at all). Use ModelLocator instead (that's why I
 left it out the article series

 However, I think I understand when you say that:

 It seems that the command class has no idea where the view is.

 Thus I use the command class to set the variable, and that is all. If I
 have a complex value object that I need to iterate through to get single
 value to be displayed in a view (although I know that there might be
 arguments for doing all this on the java layer, however ...), I would
 rather call a viewHelper to handle this (one that is linked
 intrinsically with a view) rather than fill the command class with
 business logic.

 So ... this is probably a long winded way to say that, 'yes' the
 viewHelper and viewLocator work fine in fds2b3.










 Larry Liang To:
 flexcoders@yahoogroups.com
 [EMAIL PROTECTED] cc:

 Sent by: Subject: [flexcoders]
 Are ViewHelper and ViewLocator deprecated
 flexcoders@yahoogroups.com in Cairngorm 2?

 05/15/2006 07:52 AM

 Please respond to

 flexcoders









 Hi all,

 I just donwloaded the latest cairngorm framework for fb2 beta 3. I found
 that the viewhelper and viewlocator are still included in the package. I
 remeber (please correct me if I'm wrong) that these two classes are
 deprecated for flex 2.

 If this is the case, then suppose a command class needs to update a
 view, should it only do that throuhg ModelLocator class. It seems that
 the command class has no idea where the view is. For example, if a
 command class need to set a label on a view to say downloading...
 before start a webservice call and after the rpc call comes back, the
 command class sets the label text to be empty. How should the command
 class handle this situation if it does not know where the view is.

 The only way that I can think of is to have a string variable in
 ModelLocator class which is bound to the label text property. and then
 command class can update the label text through this string variable.
 I'm sure there is a better (best practice) way to update a view in a
 command class. Please give me some hints.

 Thanks
 Larry







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











 
 ---
 This e-mail message (including attachments, if any) is intended for the
 use of the individual or entity to which it is addressed and may contain
 information that is privileged, proprietary , confidential and exempt
 from disclosure. If you are not the intended recipient, you are
 notified that any dissemination, distribution or copying of this
 communication is strictly prohibited. If you have received this
 communication in error, please notify 

Re: [flexcoders] Are ViewHelper and ViewLocator deprecated in Cairngorm 2?

2006-05-16 Thread Stanislav Zayarsky



Initially, I might calculate the total in the view, and thereafter usethe extract method pattern to put the formatting logic in utility class.Right Alistair, it's better idea to move it to utility class.
But I propose to extract from view this code:MyUtilityClass.formatDataToSomethingSimpler(ModelLocator.getInstance().complexData )
extract to controller that works with that view.

So after that you will have independent view that can be reused. Am I Right?

Best regards
StanislavOn 5/16/06, Alistair McLeod [EMAIL PROTECTED] wrote: Hi Stanislav,  But it this instance, the data is being formatted for the view. Eg. We
 get an array of totals from the server, which is displayed as a list on one view, but as a total on a different view?  Initially, I might calculate the total in the view, and thereafter use
 the extract method pattern to put the formatting logic in utility class. That would also let us test it using FlexUnit.  Where would you propose that logic would go?  Cheers,
  Ali  -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com
] On Behalf Of Stanislav Zayarsky Sent: 16 May 2006 15:00 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Are ViewHelper and ViewLocator deprecated in
 Cairngorm 2?  Alistair,  mx:Label text={ MyUtilityClass.formatDataToSomethingSimpler( ModelLocator.getInstance().complexData ) } /  I think it is not good when view knows something about how to parse
 data. View should be decoupled from this. This is not clear solution.  What do you think?  Best regards Stanislav  On 5/16/06, 
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:  Thanks Alistar,   That seems like a cleaner way to handle things.
  - mike   Alistair McLeod To: 
flexcoders@yahoogroups.com  [EMAIL PROTECTED] cc:  Sent by:Subject:RE: [flexcoders] Are ViewHelper and ViewLocator
  flexcoders@yahoogroups.comdeprecated in Cairngorm 2?  05/16/2006 08:59 AM  Please respond to
  flexcodersHi Michael,   In your complex value object case, here's what we'd recommend now.
   In your command, put the complex object in your model (ModelLocator),  eg.   ModelLocator.getInstance().complextData = theResultFromTheServer; 
  Now, in your view, you bind to that model item, but call a utility  class to massage the results into the format you want. eg,   mx:Label text={ MyUtilityClass.formatDataToSomethingSimpler
(  ModelLocator.getInstance().complexData ) } /   Now, you could possibly call MyUtilityClass a view helper, in the  broad sense of the pattern, but extracting it this way lets you, for
  example, unit tests it's functionality and keeps the Model and View separate.   Cheers,   AliAlistair McLeod
  Practice Director (Rich Internet Applications) Adobe Consulting  Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK  p: +44 (0) 131 338 6108  
[EMAIL PROTECTED]  http://weblogs.macromedia.com/amcleod -Original Message-  From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]  On Behalf Of 
[EMAIL PROTECTED]  Sent: 16 May 2006 13:14  To: flexcoders@yahoogroups.com  Cc: 
flexcoders@yahoogroups.com  Subject: Re: [flexcoders] Are ViewHelper and ViewLocator deprecated in   Cairngorm 2?   I am using the viewLocator and viewHelper in a fds2b3 prototype, and
  they function correctly, althougha post from Steve Webster states  that:   My quick response is that we really don't anticipate you needing to  use ViewHelpers as much (if at all).Use ModelLocator instead (that's
   why I left it out the article series   However, I think I understand when you say that:   It seems that the command class has no idea where the view is.
   Thus I use the command class to set the variable, and that is all.If   I have a complex value object that I need to iterate through to get  single value to be displayed in a view (although I know that there
  might be arguments for doing all this on the java layer, however ...),   I would rather call a viewHelper to handle this (one that is linked  intrinsically with a view) rather than fill the command class with
  business logic.   So ... this is probably a long winded way to say that, 'yes' the  viewHelper and viewLocator work finein fds2b3.   
 Larry Liang To:  
flexcoders@yahoogroups.com  [EMAIL PROTECTED]cc:   Sent by:Subject:[flexcoders]
  Are ViewHelper and ViewLocator deprecated  flexcoders@yahoogroups.comin Cairngorm 2?   05/15/2006 07:52 AM
   Please respond to   flexcoders 
  Hi all,   I just donwloaded the latest cairngorm framework for fb2 beta 3. I  found that the viewhelper and viewlocator are still included in the  package. I remeber (please correct me if I'm wrong) that these two
  classes are deprecated for flex 2.   If this is the case, then suppose a command class needs to update a  view, should it only do that throuhg ModelLocator class. It seems that
   the command class has no idea where the view is. For example, if a  command class need to set a label on a view to say downloading

Re: [flexcoders] Are ViewHelper and ViewLocator deprecated in Cairngorm 2?

2006-05-16 Thread Stanislav Zayarsky



I'm not 100% sure what you're saying - are you saying you'd have a controller for each view?

Right, I would like to have a controller for each view, for sake of clean design.

By the way Alister, can you give me a link where I can read all info about Cairngorm 2 architecture, features and differences between 0.99 version?

Best regards
Stanislav

On 5/16/06, Alistair McLeod [EMAIL PROTECTED] wrote:




Hi Sanislav,

I'm not 100% sure what you're saying - are you saying you'd have a controller for each view? Can you give some pseudo-code showing it?


I understand your goal of having a view that is re-usable, but I would go for simplicity to start with and refactor to that reusability should it be required.


Cheers,

Ali



From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of Stanislav Zayarsky
Sent: 16 May 2006 16:11
To: flexcoders@yahoogroups.comSubject:
 Re: [flexcoders] Are ViewHelper and ViewLocator deprecated in Cairngorm 2?



Initially, I might calculate the total in the view, and thereafter usethe extract method pattern to put the formatting logic in utility class.Right Alistair, it's better idea to move it to utility class. 
But I propose to extract from view this code:MyUtilityClass.formatDataToSomethingSimpler(ModelLocator.getInstance().complexData )
extract to controller that works with that view.

So after that you will have independent view that can be reused. Am I Right?

Best regards
StanislavOn 5/16/06, Alistair McLeod [EMAIL PROTECTED] wrote: Hi Stanislav, 
 But it this instance, the data is being formatted for the view. Eg. We  get an array of totals from the server, which is displayed as a list on one view, but as a total on a different view? 
 Initially, I might calculate the total in the view, and thereafter use  the extract method pattern to put the formatting logic in utility class. That would also let us test it using FlexUnit. 
 Where would you propose that logic would go?  Cheers,   Ali  -Original Message- From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com ] On Behalf Of Stanislav Zayarsky
 Sent: 16 May 2006 15:00 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Are ViewHelper and ViewLocator deprecated in 
 Cairngorm 2?  Alistair,  mx:Label text={ MyUtilityClass.formatDataToSomethingSimpler( ModelLocator.getInstance().complexData ) } /  I think it is not good when view knows something about how to parse 
 data. View should be decoupled from this. This is not clear solution.  What do you think?  Best regards Stanislav  On 5/16/06, 
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:  Thanks Alistar,
   That seems like a cleaner way to handle things.   - mike   Alistair McLeod To:
  flexcoders@yahoogroups.com  
[EMAIL PROTECTED] cc:  Sent by:Subject:RE: [flexcoders] Are ViewHelper and ViewLocator   
flexcoders@yahoogroups.comdeprecated in Cairngorm 2?  05/16/2006 08:59 AM  Please respond to   flexcoders  
  Hi Michael,   In your complex value object case, here's what we'd recommend now.In your command, put the complex object in your model (ModelLocator),
  eg.   ModelLocator.getInstance().complextData = theResultFromTheServer;   Now, in your view, you bind to that model item, but call a utility  class to massage the results into the format you want. eg,
   mx:Label text={ MyUtilityClass.formatDataToSomethingSimpler (  ModelLocator.getInstance().complexData ) } /   Now, you could possibly call MyUtilityClass a view helper, in the
  broad sense of the pattern, but extracting it this way lets you, for   example, unit tests it's functionality and keeps the Model and View separate.   Cheers, 
  AliAlistair McLeod  Practice Director (Rich Internet Applications) Adobe Consulting  Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
  p: +44 (0) 131 338 6108  [EMAIL PROTECTED]  
http://weblogs.macromedia.com/amcleod -Original Message-  From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]  On Behalf Of 
[EMAIL PROTECTED]  Sent: 16 May 2006 13:14  To: flexcoders@yahoogroups.com
  Cc: flexcoders@yahoogroups.com  Subject: Re: [flexcoders] Are ViewHelper and ViewLocator deprecated in
   Cairngorm 2?   I am using the viewLocator and viewHelper in a fds2b3 prototype, and   they function correctly, althougha post from Steve Webster states  that:
   My quick response is that we really don't anticipate you needing to  use ViewHelpers as much (if at all).Use ModelLocator instead (that'swhy I left it out the article series
   However, I think I understand when you say that:   It seems that the command class has no idea where the view is.Thus I use the command class to set the variable, and that is all.If
   I have a complex value object that I need to iterate through to get  single value to be displayed in a view (although I know that there   might be arguments for doing all this on the java layer, however ...),
   I would rather call a viewHelper to handle this (one

Re: [flexcoders] Are ViewHelper and ViewLocator deprecated in Cairngorm 2?

2006-05-16 Thread Stanislav Zayarsky



Ok, I have just found the review:
http://www.richinternetapps.com/archives/000144.html
Best regards
Stanislav
On 5/16/06, Stanislav Zayarsky [EMAIL PROTECTED] wrote:


I'm not 100% sure what you're saying - are you saying you'd have a controller for each view?


Right, I would like to have a controller for each view, for sake of clean design.

By the way Alister, can you give me a link where I can read all info about Cairngorm 2 architecture, features and differences between 0.99 version?


Best regards
Stanislav

On 5/16/06, Alistair McLeod 
[EMAIL PROTECTED] wrote:




Hi Sanislav,

I'm not 100% sure what you're saying - are you saying you'd have a controller for each view? Can you give some pseudo-code showing it?
 

I understand your goal of having a view that is re-usable, but I would go for simplicity to start with and refactor to that reusability should it be required. 


Cheers,

Ali



From: flexcoders@yahoogroups.com [mailto:
 flexcoders@yahoogroups.com] On Behalf Of Stanislav Zayarsky
Sent: 16 May 2006 16:11
To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Are ViewHelper and ViewLocator deprecated in Cairngorm 2?




Initially, I might calculate the total in the view, and thereafter usethe extract method pattern to put the formatting logic in utility class.Right Alistair, it's better idea to move it to utility class. 
But I propose to extract from view this code:MyUtilityClass.formatDataToSomethingSimpler(ModelLocator.getInstance().complexData )
extract to controller that works with that view.

So after that you will have independent view that can be reused. Am I Right?

Best regards
StanislavOn 5/16/06, Alistair McLeod [EMAIL PROTECTED] wrote: Hi Stanislav, 
 But it this instance, the data is being formatted for the view. Eg. We  get an array of totals from the server, which is displayed as a list on one view, but as a total on a different view? 
 Initially, I might calculate the total in the view, and thereafter use  the extract method pattern to put the formatting logic in utility class. That would also let us test it using FlexUnit. 
 Where would you propose that logic would go?  Cheers,   Ali  -Original Message- From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com ] On Behalf Of Stanislav Zayarsky 
 Sent: 16 May 2006 15:00 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Are ViewHelper and ViewLocator deprecated in 
 Cairngorm 2?  Alistair,  mx:Label text={ MyUtilityClass.formatDataToSomethingSimpler( ModelLocator.getInstance().complexData ) } /  I think it is not good when view knows something about how to parse 
 data. View should be decoupled from this. This is not clear solution.  What do you think?  Best regards Stanislav  On 5/16/06, 
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:  Thanks Alistar, 
   That seems like a cleaner way to handle things.   - mike   Alistair McLeod To: 
  flexcoders@yahoogroups.com  
 [EMAIL PROTECTED] cc:  Sent by:Subject:RE: [flexcoders] Are ViewHelper and ViewLocator   
flexcoders@yahoogroups.comdeprecated in Cairngorm 2?  05/16/2006 08:59 AM  Please respond to   flexcoders   
  Hi Michael,   In your complex value object case, here's what we'd recommend now.In your command, put the complex object in your model (ModelLocator), 
  eg.   ModelLocator.getInstance().complextData = theResultFromTheServer;   Now, in your view, you bind to that model item, but call a utility  class to massage the results into the format you want. eg, 
   mx:Label text={ MyUtilityClass.formatDataToSomethingSimpler (  ModelLocator.getInstance().complexData ) } /   Now, you could possibly call MyUtilityClass a view helper, in the 
  broad sense of the pattern, but extracting it this way lets you, for   example, unit tests it's functionality and keeps the Model and View separate.   Cheers,  
  AliAlistair McLeod  Practice Director (Rich Internet Applications) Adobe Consulting  Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK 
  p: +44 (0) 131 338 6108  [EMAIL PROTECTED]  
http://weblogs.macromedia.com/amcleod -Original Message-  From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]  On Behalf Of 
[EMAIL PROTECTED]  Sent: 16 May 2006 13:14  To: flexcoders@yahoogroups.com 
  Cc: flexcoders@yahoogroups.com  Subject: Re: [flexcoders] Are ViewHelper and ViewLocator deprecated in 
   Cairngorm 2?   I am using the viewLocator and viewHelper in a fds2b3 prototype, and   they function correctly, althougha post from Steve Webster states  that: 
   My quick response is that we really don't anticipate you needing to  use ViewHelpers as much (if at all).Use ModelLocator instead (that'swhy I left it out the article series 
   However, I think I understand when you say that:   It seems that the command class has no idea where the view is.Thus I use the command class to set the variable, and that is all.If 
   I have a complex value object that I need to iterate through to get  single value

[flexcoders] question about Adobe MAX 2006

2006-05-14 Thread Stanislav Zayarsky



Hello FlexCoders,

Question to Adobe guys:

I'm interested when we(community) will have information about Adobe
MAX 2006. Exact dates, schedules, prices, etc..

And second question is how to become a speaker on MAX conference?

Best regards
Stanislav






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











Re: [flexcoders] Flex 1.5 development, hardware question

2006-05-03 Thread Stanislav Zayarsky



It is already -Xmx512m :)

On 4/30/06, Matt Chotin [EMAIL PROTECTED] wrote:
 Make sure that your JVM has enough memory allocated. Your specs seem
 fine, so maybe allocate more RAM using -Xmx512m for example.

 Matt

 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Stanislav Zayarsky
 Sent: Friday, April 28, 2006 2:41 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex 1.5 development, hardware question

 Hello FlexCoders,

 I'm interested what is the best hardware configuration for developing
 Flex app?

 Because compiling time sometimes, when project really large, takes 1
 min+.

 I know that processor(less 50%) and RAM usage is ok on my machine when
 compile, but HDD is working hard.

 So where is bottleneck, and how I can decrease compile time?

 My hardware configuration:
 P4 3.0
 RAM 1 GB
 HDD WD 100 GB.

 Best regards
 Stanislav


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








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














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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Flex 1.5 development, hardware question

2006-04-28 Thread Stanislav Zayarsky



Hello FlexCoders,

I'm interested what is the best hardware configuration for developing Flex app?

Because compiling time sometimes, when project really large, takes 1 min+.

I know that processor(less 50%) and RAM usage is ok on my machine when
compile, but HDD is working hard.

So where is bottleneck, and how I can decrease compile time?

My hardware configuration:
P4 3.0
RAM 1 GB
HDD WD 100 GB.

Best regards
Stanislav






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











Re: [flexcoders] Flex 1.5 ViewStack child creation

2006-04-25 Thread Stanislav Zayarsky



>From Help:
Navigator containers such as Accordion, TabNavigator, and ViewStack
implement the auto policy by creating all their children immediately,
but wait to create the deeper descendants of a child until it becomes
the selected child of the navigator container.

So if you want to create all your childrens at one time, just use
creationPolicy=all

On 4/25/06, nahruka [EMAIL PROTECTED] wrote:
 I'm using the following ViewStack within my application:

 mx:ViewStack id=myViewStack height=100%
 cmp:FirstView id=firstView /
 cmp:SecondView id=secondView /
 cmp:ThirdView id=thirdView /
 /mx:ViewStack

 I've been reading about the ViewStack component and found that children
 (except the first one) are only created when the user explicitly makes
 an action that causes the selected child to change as:

 function myButton.click() { myViewStack.selectedChild = thirdView; }

 What I'm realising is that children are ALL created, in a sequential
 fashion, but CREATED in fact. Why is this happening? Should I set a
 creationPolicy property to none and then instantiate the views
 manually? If so, which is the best way to do it? createComponent()?
 createChild()? createClassObject()?

 Please, help me... :-S

 Thanks!






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













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





  




  
  
  YAHOO! GROUPS LINKS



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



  












Re: [flexcoders] Flex 1.5 - getrepeaterItem values

2006-04-23 Thread Stanislav Zayarsky



Matt, you know that mx.utils.ObjectCopy doesn't work properly.

Best regards
Stanislav

On 4/23/06, Matt Chotin [EMAIL PROTECTED] wrote:



 You'll need to make your own copy of the object, AS is always pass by
 reference.



 You can try calling mx.utils.ObjectCopy.copy(yourobj) and it may give you
 back a copy with what you want.



 Matt


 


 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Michael Griffin
 Sent: Saturday, April 22, 2006 3:50 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex 1.5 - getrepeaterItem values





 I have a small app which passes the reference to a repeater item to an
 editable view. I have been trying to assign the values from the original
 repeater dataProvider item into a new array that can then be edited without
 affecting the original data until explicitly saved. The problem is that
 every combination I've tried is still updating the repeater data so I'm
 pretty sure I'm just assigning references instead of copying the values
 over. A simplified version of the code follows:


 //positionVO has an array of names called Successors


 var editablePosition:positionVO;





 //currentPosition is the repeater item that got clicked in the main UI


 function setEditableDetails(currentPosition)
 {

 editablePosition.Successors =
 currentPosition.getRepeaterItem().Successors;



 //also tried creating editablePosition variable as a new positionVO


 //editSuccessorsList should now be able to have items added to it
 without adding them to the original currentPosition data as well


 //with this code the repeater view is still bound to editSuccessorList's
 dataProvider new items are added to both lists





 editSuccessorsList.dataProvider = editablePosition.Successors;



 }


 If anyone can advise on what I'm doing wrong in the previous example a nudge
 in the right direction would be appreciated.





 Many thanks in advance.





 Mike




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


 
 YAHOO! GROUPS LINKS

 Visit your group flexcoders on the web.

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

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

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



 --
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.1.385 / Virus Database: 268.4.4/320 - Release Date: 4/20/2006
 
 YAHOO! GROUPS LINKS

 Visit your group flexcoders on the web.

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

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

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



 --
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.1.385 / Virus Database: 268.4.4/320 - Release Date: 4/20/2006









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





  




  
  
  YAHOO! GROUPS LINKS



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



  











Re: [flexcoders] Uncaught exceptions in Flex 1.5

2006-04-23 Thread Stanislav Zayarsky



Matt, we are using 3rd party libraries like AS2lib, and it throws exceptions.
And also we starting to throw exceptions from our custom classes too.

Best regards
Stanislav

On 4/23/06, Matt Chotin [EMAIL PROTECTED] wrote:
 In 1.5 we don't throw exceptions as a practice, I'm not sure what you're
 actually running into here?

 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Stanislav Zayarsky
 Sent: Saturday, April 22, 2006 7:52 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Uncaught exceptions in Flex 1.5

 Hello FlexCoders,

 I have the same problem!

 Adobe guys, can you help us?

 Best regards
 Stanislav

 On 4/21/06, Sergey Kovalyov [EMAIL PROTECTED] wrote:
  Hi All!
 
  How to deal with uncaught exceptions in Flex 1.5? Actually they kill
  application running via terminating the current script.
 
  Due to the fact Flex application has a lot of entry points (each and
 every
  event handling delegate), I need either put try..catch..finally
 statements
  in each and every function assigned as an event handler that is wrong
 copy
  and paste method or create own Delegate class that is much more better
 by
  design.
 
  But on the other hand using the second approach force me not to assign
 event
  handlers in MXML (like mx:Button click=onClick()). Instead we need
 to
  assign those handlers in linked ActionScript class. It's very
 difficult when
  you deal with complex nested structures, repeaters, ViewStack,
 Accordion and
  their successors.
 
  Any suggestions?
 
  Thank you in advance.
 
  Regards, Sergey.
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 
 
 
 
 


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








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














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





  




  
  
  YAHOO! GROUPS LINKS



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



  












Re: [flexcoders] Uncaught exceptions in Flex 1.5

2006-04-22 Thread Stanislav Zayarsky



Hello FlexCoders,

I have the same problem!

Adobe guys, can you help us?

Best regards
Stanislav

On 4/21/06, Sergey Kovalyov [EMAIL PROTECTED] wrote:
 Hi All!

 How to deal with uncaught exceptions in Flex 1.5? Actually they kill
 application running via terminating the current script.

 Due to the fact Flex application has a lot of entry points (each and every
 event handling delegate), I need either put try..catch..finally statements
 in each and every function assigned as an event handler that is wrong copy
 and paste method or create own Delegate class that is much more better by
 design.

 But on the other hand using the second approach force me not to assign event
 handlers in MXML (like mx:Button click=onClick()). Instead we need to
 assign those handlers in linked ActionScript class. It's very difficult when
 you deal with complex nested structures, repeaters, ViewStack, Accordion and
 their successors.

 Any suggestions?

 Thank you in advance.

 Regards, Sergey.



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














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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











Re: [flexcoders] Flex framework: ARP, Cairngorm... Which to use?

2006-04-19 Thread Stanislav Zayarsky



Actually I think that this two frameworks almost the same. The same
patterns, with very little difference. By the way ViewLocator is bad
practice.

So you can try Cairngorm, I think you will get more support here with
this framework.

Best regards
Stanislav

On 4/19/06, JesterXL [EMAIL PROTECTED] wrote:
 If you are coming with Flash, stick with ARP. If you want to learn
 something new, try Cairngorm as it has a VeiwLocator. Most Flex developers
 utilize Cairngorn, but both know what a Command, Delegate, ServiceLocator,
 and ModelLocator is so the lingo is very similiar since they have a lot in
 common.

 - Original Message -
 From: arieltools [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, April 19, 2006 9:11 AM
 Subject: [flexcoders] Flex framework: ARP, Cairngorm... Which to use?


 Arp? Cairngorm? ...?

 A little of you light on this matter would be appreciated.

 I've been using ARP for a while with Flash projects. I've read that
 migrating would be as easy as change the ArpForms to MXML forms. So it
 sound very promising.

 By the other hand, I've heard Cairngorm is more wide-spread between
 programmers.

 The thing is I think I have to decide now wich to use, as I will be
 programming a new RIA on Flex and would like to ensure it's quality
 from the begginning :)

 Thanks!





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








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













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





  




  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Question to Adobe about Flex Framework 1.5 Code Quality

2006-04-06 Thread Stanislav Zayarsky
Hello FlexCoders,

Recently I have discovered very weird bug in ViewStack, I haven't been
able to reproduce it yet, will do that later, so in the meantime I
started to explore Flex source files, and look what interesting code I
see there(see attachment)

This is just excerpt from one file, I haven't touched others.

I'm not a programmer Guru, but I know few things like Duplication is bad!

So how Adobe can create such code??? Are you sleep well after this?
Or this is new Design Pattern called Copy/Paste?

And it is no wonder why there is so much bugs after this! Shame on you!

Best regards
Stanislav


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

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

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

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 
static function invalidateProperties(obj:UIObject):Void
{
if (!commitPending)
{
commitPending = true;
if (!doLaterPending)
{
if (_root._layoutManager == undefined)
{
if (myMCDepth == undefined)
myMCDepth = 
mx.managers.DepthManager.highestDepth--;
myMC = 
_root.createClassObjectWithStyles(UIObject, _layoutManager, myMCDepth);
myMC.doLater(LayoutManager, 
waitAFrame);

EventDispatcher.initialize(LayoutManager);
}
else
{
myMC.doLater(LayoutManager, 
doPhasedInstantiation);
}
doLaterPending = true;
}
}

// trace(LayoutManager adding  + obj.className +   + obj + 
 to commit queue);
commitQueue.push(obj);
obj.waitingForLayoutManager = true;
}

static function invalidateSize(obj:UIObject):Void
{
if (!measurementPending)
{
measurementPending = true;
if (!doLaterPending)
{
if (_root._layoutManager == undefined)
{
if (myMCDepth == undefined)
myMCDepth = 
mx.managers.DepthManager.highestDepth--;
myMC = 
_root.createClassObjectWithStyles(UIObject, _layoutManager, myMCDepth);
myMC.doLater(LayoutManager, 
waitAFrame);

EventDispatcher.initialize(LayoutManager);
}
else
{
myMC.doLater(LayoutManager, 
doPhasedInstantiation);
}
doLaterPending = true;
}
}
// trace(LayoutManager adding  + obj.className +   + obj + 
 to size queue);
measurementQueue.addObject(obj, obj.nestLevel);
obj.waitingForLayoutManager = true;
}

static function invalidateLayout(obj:UIObject):Void
{
if (!layoutPending)
{
layoutPending = true;
if (!doLaterPending)
{
if (_root._layoutManager == undefined)
{
if (myMCDepth == undefined)
myMCDepth = 
mx.managers.DepthManager.highestDepth--;
myMC = 
_root.createClassObjectWithStyles(UIObject, _layoutManager, myMCDepth);
myMC.doLater(LayoutManager, 
waitAFrame);

EventDispatcher.initialize(LayoutManager);
}
else
{
myMC.doLater(LayoutManager, 
doPhasedInstantiation);
}
doLaterPending = true;
}
}
//trace(LayoutManager adding  + obj.className +   + obj +  
to layout queue);

Re: [flexcoders] As2lib regexp doesn't work in Flex

2006-04-04 Thread Stanislav Zayarsky
Hello FlexCoders,

To Adobe guys: Is this a bug in Flex 1.5?

I spent 4 hours and I have just fixed that bug! :)

So it doesn't work in Flex because, of this (org.as2lib.regexp.Pattern):

static var ACCEPT:Node = new Node();
static var LASTACCEPT:Node = new LastNode();

A classes instance variables may only be initialized to compile-time
constant expressions!!!

And Flex compiler doesn't give us that error when we use static
variables. BUG?

So to fix this we just need to initialize this variables at
constructor for example, like this:

static var ACCEPT:Node;
static var LASTACCEPT:Node

public function myConstructor() : Void {
   if(!ACCEPT) {
  ACCEPT = new Node();
   }

   if(!LASTACCEPT) {
  LASTACCEPT= new LastNode();
   }
}


Best regards
Stanislav

On 3/31/06, Sergey Kovalyov [EMAIL PROTECTED] wrote:
 Dear Flexcoders,

 Are there any ways to make as2lib regexp in Flex? I use
 Pattern.matches(a*b, aab) and it returns true in Flash, but either
 undefined or false in Flex. The same code works different. Could you
 please assist me with this issue.

 Regards, Sergey.


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









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

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

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

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





[flexcoders] AS2, RegExp implementation?

2006-03-28 Thread Stanislav Zayarsky
Hello FlexCoders,

Does anybody know if there good implementation of RegExp in AS2?

AS2Lib implementation is not working properly.

Best regards
Stanislav


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

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

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

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




[flexcoders] How to create new custom Style in custom component?

2006-03-23 Thread Stanislav Zayarsky
Hi FlexCoders,

I'm wondering how I can create new custom style in my ActionScript
Component? And how to use it with StyleManager?

Can anybody point me to documentation where this topic is described?

Best regards
Stanislav


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

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

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

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





Re: [flexcoders] How to create new custom Style in custom component?

2006-03-23 Thread Stanislav Zayarsky
Thanks Anatole, This helps!

Best regards
Stanislav

On 3/23/06, Anatole Tartakovsky [EMAIL PROTECTED] wrote:

 I believe the simplest way is to look in the generated code - it gives you
 the better understanding on both code and timing. The code would go like
 this:
 ..
 var style:CSSStyleDeclaration;
 style =
 StyleManager.getStyleDeclaration(.yourStyleName);
 if (!style)  {
  style = new CSSStyleDeclaration();
  StyleManager.setStyleDeclaration(.yourStyleName,
 style, false);
 }
 if (style.factory == null)
 {
  style.factory = function():void
  {
   this.paddingBottom = 0;
   this.paddingTop = 0;
  };
 }


 Hope this helps,
 Anatole Tartakovsky


 - Original Message -
 From: Stanislav Zayarsky
 To: flexcoders@yahoogroups.com
 Sent: Thursday, March 23, 2006 11:29 AM
 Subject: [flexcoders] How to create new custom Style in custom component?

 Hi FlexCoders,

 I'm wondering how I can create new custom style in my ActionScript
 Component? And how to use it with StyleManager?

 Can anybody point me to documentation where this topic is described?

 Best regards
 Stanislav


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


 
 YAHOO! GROUPS LINKS

  Visit your group flexcoders on the web.

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

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

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



 - Original Message -
 From: Stanislav Zayarsky
 To: flexcoders@yahoogroups.com
 Sent: Thursday, March 23, 2006 11:29 AM
 Subject: [flexcoders] How to create new custom Style in custom component?

 Hi FlexCoders,

 I'm wondering how I can create new custom style in my ActionScript
 Component? And how to use it with StyleManager?

 Can anybody point me to documentation where this topic is described?

 Best regards
 Stanislav


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


 
 YAHOO! GROUPS LINKS

  Visit your group flexcoders on the web.

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

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

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



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

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

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

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





Re: [flexcoders] How to create new custom Style in custom component?

2006-03-23 Thread Stanislav Zayarsky
Thanks Stephen, I suppose it will work with Flex 1.5 too?

Best regards
Stanislav

On 3/23/06, Stanislav Zayarsky [EMAIL PROTECTED] wrote:
 Thanks Anatole, This helps!

 Best regards
 Stanislav

 On 3/23/06, Anatole Tartakovsky [EMAIL PROTECTED] wrote:
 
  I believe the simplest way is to look in the generated code - it gives you
  the better understanding on both code and timing. The code would go like
  this:
  ..
  var style:CSSStyleDeclaration;
  style =
  StyleManager.getStyleDeclaration(.yourStyleName);
  if (!style)  {
   style = new CSSStyleDeclaration();
   StyleManager.setStyleDeclaration(.yourStyleName,
  style, false);
  }
  if (style.factory == null)
  {
   style.factory = function():void
   {
this.paddingBottom = 0;
this.paddingTop = 0;
   };
  }
 
 
  Hope this helps,
  Anatole Tartakovsky
 
 
  - Original Message -
  From: Stanislav Zayarsky
  To: flexcoders@yahoogroups.com
  Sent: Thursday, March 23, 2006 11:29 AM
  Subject: [flexcoders] How to create new custom Style in custom component?
 
  Hi FlexCoders,
 
  I'm wondering how I can create new custom style in my ActionScript
  Component? And how to use it with StyleManager?
 
  Can anybody point me to documentation where this topic is described?
 
  Best regards
  Stanislav
 
 
  --
  Flexcoders Mailing List
  FAQ:
  http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
  
  YAHOO! GROUPS LINKS
 
   Visit your group flexcoders on the web.
 
   To unsubscribe from this group, send an email to:
   [EMAIL PROTECTED]
 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
   To unsubscribe from this group, send an email to:
   [EMAIL PROTECTED]
 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
  
 
 
 
  - Original Message -
  From: Stanislav Zayarsky
  To: flexcoders@yahoogroups.com
  Sent: Thursday, March 23, 2006 11:29 AM
  Subject: [flexcoders] How to create new custom Style in custom component?
 
  Hi FlexCoders,
 
  I'm wondering how I can create new custom style in my ActionScript
  Component? And how to use it with StyleManager?
 
  Can anybody point me to documentation where this topic is described?
 
  Best regards
  Stanislav
 
 
  --
  Flexcoders Mailing List
  FAQ:
  http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
  
  YAHOO! GROUPS LINKS
 
   Visit your group flexcoders on the web.
 
   To unsubscribe from this group, send an email to:
   [EMAIL PROTECTED]
 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
   To unsubscribe from this group, send an email to:
   [EMAIL PROTECTED]
 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
  
 



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

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

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

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




[flexcoders] Flex 1.5 ObjectCopy again

2006-02-23 Thread Stanislav Zayarsky
Hello Flex Coders,

I know this question was discussed earlier, but I can't find the
working source code.

So please if anyone has source for working ObjectCopy class, please
send it to me.

Best regards
Stanislav


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

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

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

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





[flexcoders] How to get to know that control has N% width property?

2006-02-23 Thread Stanislav Zayarsky
Hello Flex Coders,

I have next question:

For example we have declared in mxml Button with width property set to N%.

So I'm wondering how I can find at runtime that this Button is N% width?

Best regards
Stanislav


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

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

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

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




[flexcoders]Combobox feature?

2006-02-16 Thread Stanislav Zayarsky
Hello All,

Try next:

1. Create combobox with some data inside
2. Run app
3. Choose any item inside in combobox
4. Open combobox again and CTRL+click on the same item.

Result: Empty selected value in combobox.

Question: Is this feature or the bug?
If feature, how I can remove it?

Best regards
Stanislav


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

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

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

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





Re: [flexcoders]Combobox feature?

2006-02-16 Thread Stanislav Zayarsky
Stacey, I mean empty that label dissapears.
I haven't checked if selectedIndex returns -1.

Ok, thanks for the answer Deepa!

On 2/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Do you mean empty as in the label disappears?
 Or empty as in the selectedIndex returns -1?


 
 
 
 
 
  This is a feature. The List-based components, of which ComboBox is one,
  allow de-selection by Ctrl+click on a selected item.
 
  There are a few ways to workaround this (subclass the component,
  perhaps). One that comes to mind is to capture keyboard event and
  cross-track that with the selectedItem to decipher when Ctrl+click on
  the currently selectedItem has occurred.
 
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
  Behalf Of Stanislav Zayarsky
  Sent: Thursday, February 16, 2006 7:57 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders]Combobox feature?
 
  Hello All,
 
  Try next:
 
  1. Create combobox with some data inside
  2. Run app
  3. Choose any item inside in combobox
  4. Open combobox again and CTRL+click on the same item.
 
  Result: Empty selected value in combobox.
 
  Question: Is this feature or the bug?
  If feature, how I can remove it?
 
  Best regards
  Stanislav
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
 
 
 
 
 
 
 
 
  SPONSORED LINKS
 
 
 
 
  Web site design development
 
 
  Computer software development
 
 
  Software design and development
 
 
 
 
  Macromedia flex
 
 
  Software development best practice
 
 
 
 
 
 
 
 
 
 
 
 
 
YAHOO! GROUPS LINKS
 
 
 
nbsp;Visit your group flexcoders on the web.nbsp;
nbsp;To unsubscribe from this group, send an email
  to:nbsp;[EMAIL PROTECTED]nbsp; nbsp;Your use
  of Yahoo! Groups is subject to the Yahoo! Terms of Service.
 
 
 
 





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









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

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

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

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





Re: [flexcoders]How to create Heavy interface properly?

2006-02-13 Thread Stanislav Zayarsky
Matt,

Thanks for the answer!

I made experiments, and I decided to use auto creationPolicy, I will
optimize my mxml and I think it will work fine.

Best regards
Stanislav

On 2/13/06, Matt Chotin [EMAIL PROTECTED] wrote:
 With the queued policy you may want to specify the creationIndex to
 further control things.  A creationPolicy of all will do all of the
 work at startup which will mean that the app is slow to initialize but
 will be fast afterward.  Is that preferable?

 These are the tradeoffs, I'm not sure that you can really get creation
 going without the UI slowing somewhere.  When you do the default policy
 things we spread it out.  When you use queued you get to see some
 visible progress but you only get to watch, it's hard to interact.  When
 it's none you get to control it entirely on your own and you can tune
 however you want.

 It seems like you just need to experiment to find the tuning that works
 for you.

 Sorry,
 Matt

 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Stanislav Zayarsky
 Sent: Friday, February 10, 2006 4:17 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders]How to create Heavy interface properly?

 Hello Flex Developers,

 I have next problem:

 Context of the problem: In my application I have little main page with
 text info, and after mouse click user goes to next page where is
 accordion placed with 5 childrens inside and every of this children
 load some data from server and then show it, using different
 components(dataGrid, List, etc...) this childrens are quite heavy. I
 know it is possible to optimize them, but let's assume that they are
 optimized to maximum.

 Problem: When user goes to accordeon, he needs to wait some time(1-3
 sec) before accordeon child initializes, load data and finally show
 it.
 First aspect of the RIA is Seamless, and it doesn't work here!

 Solutions:
 1. I tried to use creationPolicy=auto on accordion and it works, but
 still user need to wait while active child initializing and load data.

 2. creationPolicy=queed, but in Accordion it didn't work properly,
 it creates just top container of the childrens and that's all.

 3. Using creationPolicy=none,  I developed my own little solution
 and now childs initializes one by one properly, i.e like
 creationPolicy=queed should work.
 BUT...  the application freezes, while other childs initializing in
 the meantime and load data, so user can't interact with interface.

 Ideal WorkFlow: User read data on first page, in the meantime
 accordion initializes, load data and place it properly. And
 application doesn't freeze!
 When user goes next screen everything is working without delays.

 So the question is: How I can achieve this Ideal Workflow and
 especially how I can avoid freezing application?

 Thanks in advance.

 Best regards
 Stanislav


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








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










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

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

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

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




[flexcoders]How to create Heavy interface properly?

2006-02-10 Thread Stanislav Zayarsky
Hello Flex Developers,

I have next problem:

Context of the problem: In my application I have little main page with
text info, and after mouse click user goes to next page where is
accordion placed with 5 childrens inside and every of this children
load some data from server and then show it, using different
components(dataGrid, List, etc...) this childrens are quite heavy. I
know it is possible to optimize them, but let's assume that they are
optimized to maximum.

Problem: When user goes to accordeon, he needs to wait some time(1-3
sec) before accordeon child initializes, load data and finally show
it.
First aspect of the RIA is Seamless, and it doesn't work here!

Solutions:
1. I tried to use creationPolicy=auto on accordion and it works, but
still user need to wait while active child initializing and load data.

2. creationPolicy=queed, but in Accordion it didn't work properly,
it creates just top container of the childrens and that's all.

3. Using creationPolicy=none,  I developed my own little solution
and now childs initializes one by one properly, i.e like
creationPolicy=queed should work.
BUT...  the application freezes, while other childs initializing in
the meantime and load data, so user can't interact with interface.

Ideal WorkFlow: User read data on first page, in the meantime
accordion initializes, load data and place it properly. And
application doesn't freeze!
When user goes next screen everything is working without delays.

So the question is: How I can achieve this Ideal Workflow and
especially how I can avoid freezing application?

Thanks in advance.

Best regards
Stanislav


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

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

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

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




Re: [flexcoders] Filling a TileList with objects from a dataProvider in Flex 1.5

2006-01-26 Thread Stanislav Zayarsky
Good Morning,

It works, you just need to make dataBinding:

HTTPService result -- Repeater dateprovider


Sample code:

mx:HTTPService id=dataModel /

mx:Tileid=myTile
 mx:Repeater id=items dataProvider={dataModel.result}
custom:MyComponent dataObject={items.currentItem}/
 /mx:Repeater 
/mx:Tile



Few notes:

1. Don't forget to call .send()  method on your HTTPService object, so
it will start loading data.

2. In the Repeater dataprovider in sample code we have
{dataModel.result}, if you have additional tags in the data that you
load, you just need to type it for example
{dataModel.result.items}

Best regards
Stanislav

On 1/27/06, ehogberg [EMAIL PROTECTED] wrote:
 Hi all:

 New to Flex 1.5, having problems understanding how to do a seemingly
 simple thing:  populate a TileList with items created out of a
 HTTPService call.  Help/pointers would be appreciated.

 I have a HTTPServer object:

 mx:HTTPService id=myService /

 I have a custom component:

 custom:MyComponent myProperty1= myProperty2=/

 I would like to build a TileList of MyComponent instances, iterating
 over the myService.result object to set MyComponent properties.
 However, I can't seem to find a way to do this.

 I have tried using a Repeater to handle the myService iteration, but
 can't find the correct syntax (if there is any) for where to nest the
 Repeater within the TileList.  It would seem logical to try something
 like:

 mx:TileList 
mx:dataProvider
 mx:Repeater id=r 
 custom:MyComponent
  myProperty={r.currentItem.someValue} /
 /mx:Repeater
/mx:dataProvider
 /mx:TileList

 but no dice; compiler complains mightily about naming nested objects.
  Am I even in the ballpark on this?

 Thoughts from the group?

 Thanks in advance,

 -E-





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










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

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

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

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





Re: [flexcoders] How to create Validator via ActionScript

2006-01-13 Thread Stanislav Zayarsky
Thanks for the answer Matt,

But actually I have reviewed flex generated as file and now I know how
to create validator via ActionScript in 1.5 version.

Best regards
Stanislav

On 1/13/06, Matt Chotin [EMAIL PROTECTED] wrote:
 Sorry, in 1.5 validators really aren't meant to be created in
 ActionScript.  However in Flex 2 they're completely faceless and just
 begging for you to create them in AS.

 Matt

 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Stanislav Zayarsky
 Sent: Wednesday, January 11, 2006 5:05 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How to create Validator via ActionScript

 Hello FlexCoders,

 Currently I'm receiveing data from DB and then create interface
 dynamically according to the received data.

 So the question is, how I can create Validators for dynamically
 created TextFields?

 Best regards
 Stanislav


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








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












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

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

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

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




[flexcoders] Best way to create such type of DataGrid?

2005-12-30 Thread Stanislav Zayarsky
Hello FlexCoders,

I'm wondering what is the best way to create such type of DataGrid in Flex 1.5?

here is image with datagrid that was created in html:
http://www.go4flash.com/Table.gif

Does DataGrid component suits the best in this case?

Best regards
Stanislav


 Yahoo! Groups Sponsor ~-- 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




Re: [flexcoders] Extra space problem in ViewStack while using Text with 100% width defined

2005-12-28 Thread Stanislav Zayarsky
Hello Guys,

Inside documentation we can find  resizeToContent property:

mx:ViewStack resizeToContent=true

So it's a good practice to read documentation sometimes :)

Best regards
Stanislav

On 12/27/05, Matt Chotin [EMAIL PROTECTED] wrote:
 Look into the margin styles maybe?

 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Sergey Kovalyov
 Sent: Tuesday, December 27, 2005 8:43 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Extra space problem in ViewStack while using Text
 with 100% width defined

 Hi All!

 Look at this application:

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
 mx:ViewStack width=100% borderStyle=solid
mx:VBox width=100% borderStyle=solid
mx:Text width=100% text=An Ithaca College dean is
 encouraging students to instead think small - and she's offering a
 $5,000
 prize to do it. The school has invited high school and college students
 across America to submit a 30-second movie shot entirely with a cell
 phone.
 /
/mx:VBox
 /mx:ViewStack
 /mx:Application

 Why does extra space appear below the text? What is the proper way to
 get
 rid of this bug? Thank you.

 Regards, Sergey.




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









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









 Yahoo! Groups Sponsor ~-- 
AIDS in India: A lurking bomb. Click and help stop AIDS now.
http://us.click.yahoo.com/9QUssC/lzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




Re: [flexcoders] How to embed XML in AS3?

2005-12-26 Thread Stanislav Zayarsky
 I want to konw how to embed XML in AS2? Is xml MIME type?

Let's try the next thing: create XML element in mxml and before this
set in flex-config.xml file
keep-generated-astrue/keep-generated-as. and then compile mxml.

Then open generated *.as file and see what is there.

From there we can take this script:

var myXML:XMLNode;

function createXML() {
myXML = mx.utils.XMLUtil.createXML(document\ndata/\n/document); 

}   

By this way we can manually embed XML file via ActionScript.

Or I'm not right?

On 12/26/05, Manish Jethani [EMAIL PROTECTED] wrote:
 On 12/24/05, flexhtoo [EMAIL PROTECTED] wrote:

  I want to konw how to embed XML in AS2? Is xml MIME type?

 I don't think there's a way to embed XML in ActionScript.  You'll have
 to use the XML element in MXML.

 Manish



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









 Yahoo! Groups Sponsor ~-- 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] Size of the container, bug or feature?

2005-12-09 Thread Stanislav Zayarsky
Hello Guys,

Can please someone explain to me next thing, let's review the code:

mx:Script
   function showSize() {
mx.controls.Alert.show(String(cv._width) ++ String  (cv._height));
   }
/mx:Script

mx:Canvas id=cv
   width=100%
   height=100%
   backgroundColor=#66
   creationComplete=showSize();/

It shows some numbers  0. That's ok.

But if we just remove backgroundColor property, then it shows 0,0.

Best regards
Stanislav


 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] How to specify root application folder

2005-11-25 Thread Stanislav Zayarsky
Hello Flex Coders,

I have next problem:

I have images folder in the root of the application folder. And I have
mxml file deeply inside other folders, that has Loader component and I
want to load image there.

But I don't know how to specify path to the image i.e. I don't know
how to point to the root of the application folder.

So the question is, how it should look like:

source=/images/phone1.jpg
or
source=./images/phone1.jpg
or
source=../images/phone1.jpg

Best regards
Stanislav


 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] How to Embed XML file at compile time?

2005-11-18 Thread Stanislav Zayarsky
Hello Guys,

Does anyone know how to Embed XML file at compile time?

I'm trying to use this code:

mx:Script
![CDATA[
[Embed(data.xml)] 
var xmldata:Object; 
]]
/mx:Script

mx:Model id=xmlModel source={xmldata}/mx:Model

But the errors are:

1. Problem parsing external XML document
2. Model 'xmlModel' contains only scalar content - this is currently unsupported

Best regards
Stanislav




 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~- 

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

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

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

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





Re: [flexcoders] Re: TextInput/List matching

2005-11-04 Thread Stanislav Zayarsky
Hello Matt,

I have just implemented this feature! :)

If you will have questions about implementation I will gladly help you.

The sample here http://www.richinternetapps.com/archives/79.html
is using much memory but pretty fast, I created application that uses
less memory but more cpu extensive. So it is possible to find balance
here.

Best regards
Stanislav

On 11/4/05, huhgawz [EMAIL PROTECTED] wrote:
 Maybe this help you:

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


 --- In flexcoders@yahoogroups.com, Matt Boles [EMAIL PROTECTED] wrote:
 
  Anyone have code to share to accomplish the following:
 
  1.A blank TextInput and populated List controls are used
  2.As the user types into the TextInput, the List control
  dynamically displays only words than match what the user has entered
  thus far into the TextInput
  3.When the Backspace key is pressed the List also updates
 
 
 
  Hoping someone has already fought this battle.
 
 
 
  Thanks-
 
  Matt
 
 
 
 
 
 
 
  Matthew S. Boles
 
  Principal Instructor
 
  Macromedia
 
  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 







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










 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




Re: [flexcoders] When ModelLocator Databinding does not work...

2005-10-28 Thread Stanislav Zayarsky



Hello,

Two more methods:

1. To use method executeBindings(), on thecontrol

2. To recreate the data to which control is binded. For example if we have a list that is binded to array, then we need to recreate the array:

temp_arr = new Array();
temp_arr = new_arr;
my_arr = new Array();
//--here we can makeany changes to temp_arr---
temp_arr[n] = x;
//--
my_arr = temp_arr;

Best regards
Stanislav
On 10/7/05, Dimitrios Gianninas [EMAIL PROTECTED] wrote:

I think the only way to address your issue.Use the appropriate ViewHelper to tell the view to refresh itself because the data has been updated.


Dimitrios Jimmy Gianninas
RIADeveloper
Optimal Payments Inc.



From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of thomasburlesonSent: Thursday, October 06, 2005 8:27 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] When ModelLocator Databinding does not work...

I would like to ask the cairngorm experts a question involvingdatabinding.In a current application under development, when I need to load somedata via remoteObjects we use the .getInstance().broadcastEvent( )
which gets forwarded by our controller to the appropriate command.The delegate dataservice call executes and the result handler iseither in a command onResult_xxx method or in a Delegate.create()callback [passed with the broadcastEvent]. The result data is
massaged and assigned to a property in the ModelLocator.Great no problem.But what do we do when the has UI components that do not have directbindings to ModelLocator attributes. One trick is to use the
following databinding to fire a build method:mx:Tree id=companyTree dataProvider={buildFromSearchResults(ModelLocator.companiesFoundBySearch)} ...This also works.
But my question is regarding views that are indirectly toModelLocator data. So when that data changes, I need to tell theview to somehow update or reinit its contents.Currently we use
var viewAddressEditor : Object = ViewLocator.getInstance().getComponentByID( addressEditorView );viewAddressEditor.updateContent();But this seems SO clumsy and non-elegant. Does anyone have a better
suggestion?Many thanks,ThomasB--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
SPONSORED LINKS 




Web site design development 

Computer software development 

Software design and development 


Macromedia flex 

Software development best practice 


YAHOO! GROUPS LINKS 

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










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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









Re: [flexcoders] Remoe Object call issue

2005-10-28 Thread Stanislav Zayarsky



Hello Sridhar,

We had a similar problem. Flex app didn't want to get data from RO, the problem was that server sent to us not correct data.

Please double check the data that server return to you! It is possible that problem on server side.

Best regards
Stanislav
On 10/28/05, Boddula, Sridhar [EMAIL PROTECTED] wrote:


Flex gurus,

I'm bumping it.
Any response would be great help for me.


Thanks, 
Sridhar Boddula, 
EIS - New Tech. Development 
617-664-8566(Work) 




From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Boddula, SridharSent: Friday, October 28, 2005 12:18 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Remoe Object call issue

Hi,

I'm having some issues with Remote Object call.
Some times we are not getting response for RO call.
We have a RO call which takes longer time 2-3 min. Server is pushing data to client but client side RO is not getting response.

All other RO calls are working OK.

We monitored network thru Paros. Response coming to client side but RO is not getting that response.


I appreciate any help.




Thanks, 
Sridhar Boddula, 
--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
SPONSORED LINKS 




Web site design development 

Computer software development 

Software design and development 


Macromedia flex 

Software development best practice 


YAHOO! GROUPS LINKS 

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











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









Re: [flexcoders] ViewHelper and Cairngorm

2005-10-27 Thread Stanislav Zayarsky
Hello Michel,

ViewHelper is made for separation code from content.

Example: you can specify in mxml file button, and on click event ask
ViewHelper to invoke function.


Excerpt from View:

//attaching ViewHelper to the view
view:myViewHelper id=myViewHelper /

//Button that invoke function from ViewHelper
mx:Button label=Submit click=myViewHelper.myFunction() /

Excerpt from ViewHelper:
   public function myFunction()
   {
//some actions
   }


Best regards
Stanislav

On 10/27/05, Michel Bertrand [EMAIL PROTECTED] wrote:


 Hello !

 How can I use ViewHelper on Cairngorm ?

 Could anybody give me a sample ?

 Thanks in advance,
 Michel Bertrand | Desenvolvimento | DATASUL Tecnologia
 Acesse www.datasuldirect.com.br e conheça mais sobre os produtos e soluções
 de tecnologia


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


 
 YAHOO! GROUPS LINKS

  Visit your group flexcoders on the web.

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

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

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



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




Re: [flexcoders] Me go to MAX alone. you be my friend?

2005-10-13 Thread Stanislav Zayarsky
Hello All,

I will be there too :)

I'm 23 and I'm from Kiev, Ukraine.

Looking forward to see you all there.

Best regards
Stanislav

On 10/12/05, Douglas Knudsen [EMAIL PROTECTED] wrote:
 Maybe we can write 'FLEXCODERS' on our badges.  Then we can spot each
 other in the halls, in sessions, or stumbling inline for the free
 refreshments.

 DK

 On 10/12/05, Manish Jethani [EMAIL PROTECTED] wrote:
  On 10/12/05, Manish Jethani [EMAIL PROTECTED] wrote:
   Sounds great.  I'm coming to MAX too.  BTW there's a nice
   introNetworks app where you can fill in all your details.
 
  http://www.macromedia.com/macromedia/events/max/agenda/birdsofafeather.html#1018-6
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 
 
 
 
 
 


 --
 Douglas Knudsen
 http://www.cubicleman.com
 this is my signature, like it?



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











 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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





[flexcoders] Application built on Cairngorm framework, several instances problem

2005-10-05 Thread Stanislav Zayarsky
Hello Everybody,

I have next issue: I have built simple Rich Text Editor on Flex using
Cairngorm framework. All is working perfectly!

But, when I'm trying to create, for example, two instances in one
application...

The issue that we use ModelLocator class that has static properties
inside and this two instances are using the same properties.

So I'm wondering, is there a workaround about this.

I'm thinking to use singleton, and to create static array in
ModelLocator with objects that has properties for each instance, but
I'm not sure how then commands should access them. I can't figure
where to save index of that array.

Best regards
Stanislav


 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




Re: [flexcoders] How to properly use dispatchEvent

2005-09-15 Thread Stanislav Zayarsky
Hello,

Yes dispatchEvent({type:event_name}) is the right command,

But also you need to specify MetaData, so compiler knows that this
component is dispatching event, so you should type:
[Event(event_name)] in Script tag.

Best regards
Stanislav

On 9/15/05, jcrane [EMAIL PROTECTED] wrote:
 I am working on a project that has the following setup:
 
 Application contains a viewStack with a Login control and the Main
 interface.  The main interface contains a viewStack that possesses multiple
 views.  Inside of the various views are different reusable components.  So
 for example,  My main interface contains a main view, and inside of that view
 is a component. Essentially this component is a grandchild of the main
 interface.  Currently I am dispatching an event in the component to the view,
 and then dispatching another event from the view to the interface to change
 the view.  Is this an appropiate use of dispatchEvent(), or is there a better
 way to accomplish this task?
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 
 
 
 



 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




Re: [flexcoders] How to properly use dispatchEvent

2005-09-15 Thread Stanislav Zayarsky
Yeah, interesting question.
Maybe you will just need to add your own listener!? So grandparent
will be listen for events from grandchild.

Best regards
Stanislav

On 9/15/05, jcrane [EMAIL PROTECTED] wrote:
 Yes, I have the MetaData setup.  It actually is working the way I expect it
 to, I just wanted to see if there is a way use dispatchEvent() to go directly
 from the grandchild - grandparent rather then from child - parent -
 grandparent.
 
 Thanks,
 Jeremy
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 
 
 
 



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




Re: [flexcoders] How to overload methods in Actionscript?

2005-09-15 Thread Stanislav Zayarsky
Libby,

ActionScript doesn't support method overloading.

Best regards
Stanislav

On 9/15/05, Libby [EMAIL PROTECTED] wrote:
 When I use same method name more than once (with additional
 arguments), Flex compiler says I can't use the same name more than
 once. Is this really true (Flex doesn't support method overloading?)
 or do I need to do something different?
 
 Thanks,
 Libby
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 
 
 
 



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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





[flexcoders] Form dynamic layout

2005-09-05 Thread Stanislav Zayarsky
Hello Flex Coders,

I have next question:

I have some Form. Dependent on user actions, I want to dynamically
change FormItems, destroy or create new of them.
(For example user choose country Zimbabwe, so then I need to remove
state combobox with list of usa states)

How I can achieve this?

Best regards
Stanislav


 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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





Re: [flexcoders] Form dynamic layout

2005-09-05 Thread Stanislav Zayarsky
Thanks Manish, it works!

Best regards
Stanislav

On 9/5/05, Manish Jethani [EMAIL PROTECTED] wrote:
 On 9/5/05, Stanislav Zayarsky [EMAIL PROTECTED] wrote:
 
  I have some Form. Dependent on user actions, I want to dynamically
  change FormItems, destroy or create new of them.
  (For example user choose country Zimbabwe, so then I need to remove
  state combobox with list of usa states)
 
 I would just disable and hide the controls instead of destroying them,
 especially if this is to happen on user selection of a combo box item.
 
  control.enabled = false;
  control.visible = false;
  control.width = 0;
  control.height = 0;
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 
 
 
 
 



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




Re: [flexcoders] Calling functions

2005-08-23 Thread Stanislav Zayarsky
Hello,

You had several errors in your script, try this variant:


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
mx:Panel width=732 title=MyPanel 
mx:Canvas id =mycanvas width=715 height=408
backgroundColor=#FF initialize=drawlines(event.target)
/mx:Canvas
/mx:Panel

mx:Script
![CDATA[
function line(x1, y1, x2, y2)
{ 
trace(func line);
}

function arrow(x1, y1, x2, y2, size)
{
trace(func arrow);
}

function drawlines(target) 
{
   var lines = target.createEmptyMovieClip(line_mc, 1);
   with (lines)
   {
   lineStyle(1, 0xff, 100);
   line(145, 25,192, 88);
   arrow(100, 100, 300, 300, 10, 0.4);
   }
   }
]]
/mx:Script
/mx:Application

Best regards
Stanislav

On 8/23/05, Prasad Dhananjaya [EMAIL PROTECTED] wrote:
 Hi All,
 
 I have a small question.
 I want to call function line() and function arrow() from
 function drawlinesArrows(). I tried sevaral ways. But failed.
 Can someone tell me how to do this?
 
 Best Regards,
 Prasad
 (Absolute beginner of Flex  ActionScript)
 
 
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
 mx:Panel width=732 title=MyPanel 
 mx:Canvas id =mycanvas width=715 height=408 backgroundColor=#FF
   initialize=drawlines(event.target)
 /mx:Canvas
 /mx:Panel
 
 mx:Script
 ![CDATA[
 function line(x1, y1, x2, y2) { moveTo(x1, y1);  lineTo(x2, y2);  }
 function arrow(x1, y1, x2, y2, size) { . }
 
 function drawlinesArrows(target) {
var lines = target.createEmptyMovieClip(line_mc, 1);
with (lines) {
lineStyle(1, 0xff, 100);
//★below  two lines are not working
line(145, 25,192, 88);
arrow(100, 100, 300, 300, 10, 0.4);
}
}
 ]]
 /mx:Script
 /mx:Application
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 
 
 
 
 



 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12h2vss9g/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124795292/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!/a./font
~- 

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

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

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

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




Re: [flexcoders] Calling functions

2005-08-23 Thread Stanislav Zayarsky
Actually it call's functions line() and arrow(),  but you forgot
to mention where application should draw line!!

function line(x1, y1, x2, y2) {
  moveTo(x1, y1);
  lineTo(x2, y2);
}

it should look like 

movie_clip.moveTo(x1,y1);
movie_clip.lineTo(x1,y1);

You need to send additional parameter to line function that contain
movieclip where you want to draw that line!

Best regards
Stanislav Zayarsky


On 8/23/05, david_gal-reyniez [EMAIL PROTECTED] wrote:
  
 Prasad, 
   
 What I may say about your code : 
   
 - the function line contains moveTo that you call each time you call the
 method line(). It's not a good practise. 
 moveTo is use at the beginning to set the first x,y coordinates, then you
 use lineTo to draw the shape you want. 
   
 - arrow seems to be a reserved name 
   
 - you must createEmptyMovieClip into a control otherwise your Movieclip is
 overrided by the application 
   
 I hope that it will help you! 
 David 
   
 function fArrow(x1:Number, y1:Number, x2:Number, y2:Number, size:Number,
 sharpness:Number, obj:Object):Void
  {
   var lines:MovieClip = new MovieClip();
   lines = obj.createEmptyMovieClip(line_mc, -1);
   
   var w:Number = x2 - x1;
   var h:Number = y2 - y1;
   var l:Number = Math.sqrt(w * w + h * h);
  //  Alert.show(w :  + w +  h :  + h + l :  + l, __Message__,
 Alert.OK);// helpful for debugging, don't forget to import the
 concerned class;
   w *= size / l;
   h *= size / l;
   var s:Number = Math.sin(sharpness);
   var c:Number = Math.cos(sharpness);
 
   with (lines)
 {
lineStyle(1, 0x99, 100);
moveTo(x1, y1);
lineTo(x2, y2);
lineTo(x2 - w * c - s * h, y2 + w * s - h * c);
lineTo(x2 - w * c + s * h, y2 - w * s - h * c);
endFill();
   }
  } 
   
 function drawlines( event:Object):Void 
  {
fArrow(145, 25, 192, 88, 10, 0.4, event.target);
  }
  
  
  De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
 part de Prasad Dhananjaya
 Envoyé : mardi 23 août 2005 11:53
 À : flexcoders@yahoogroups.com
 Objet : Re: [flexcoders] Calling functions
 
  
 Hi,
 
 Thank you very much for the reply.
 I tried it. But still not working.(Didn't call line() and arrow()
 functions)
 Any other errors?
 
 Best Regards,
 Prasad
 
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application
 xmlns:mx=http://www.macromedia.com/2003/mxml; 
 mx:Panel width=732 title=MyPanel 
   mx:Canvas id =mycanvas width=715 height=408
 backgroundColor=#FF initialize=drawlines(event.target)
   /mx:Canvas
 /mx:Panel
 
 mx:Script
 ![CDATA[
 function line(x1, y1, x2, y2) {
   moveTo(x1, y1);
   lineTo(x2, y2);
 }
   
 function arrow(x1, y1, x2, y2, size, sharpness) {
   var w = x2 - x1;
   var h = y2 - y1;
   var l = Math.sqrt(w * w + h * h);
   w *= size / l;
   h *= size / l;
   var s = Math.sin(sharpness);
   var c = Math.cos(sharpness);
   line(x1, y1, x2, y2);
   line(x2, y2, x2 - w * c - s * h, y2 + w * s - h * c);
   line(x2, y2, x2 - w * c + s * h, y2 - w * s - h * c);
 }
 
 function drawlines(target) 
   {
var lines = target.createEmptyMovieClip(line_mc, 1);
with (lines)
{
  lineStyle(1, 0xff, 100);
  line(145, 25,192, 88);
  arrow(100, 100, 300, 300, 10, 0.4);
}
}
 ]]
 /mx:Script
 /mx:Application
 
 
 
 
 
  Hello,
  
  You had several errors in your script, try this variant:
  
  
  ?xml version=1.0 encoding=utf-8?
  mx:Application
 xmlns:mx=http://www.macromedia.com/2003/mxml; 
  mx:Panel width=732 title=MyPanel 
mx:Canvas id =mycanvas width=715 height=408
  backgroundColor=#FF initialize=drawlines(event.target)
/mx:Canvas
  /mx:Panel
  
  mx:Script
  ![CDATA[
  function line(x1, y1, x2, y2)
{ 
  trace(func line);
}

  function arrow(x1, y1, x2, y2, size)
{
  trace(func arrow);
}
  
  function drawlines(target) 
{
 var lines = target.createEmptyMovieClip(line_mc, 1);
 with (lines)
 {
   lineStyle(1, 0xff, 100);
   line(145, 25,192, 88);
   arrow(100, 100, 300, 300, 10, 0.4);
 }
 }
  ]]
  /mx:Script
  /mx:Application
  
  Best regards
  Stanislav
  
  On 8/23/05, Prasad Dhananjaya [EMAIL PROTECTED] wrote:
   Hi All,
   
   I have a small question.
   I want to call function line() and function arrow() from
   function drawlinesArrows(). I tried sevaral ways. But failed.
   Can someone tell me how to do this?
   
   Best Regards,
   Prasad
   (Absolute beginner of Flex  ActionScript

Re: [flexcoders] Flex App with RSL fails in Standalone Flash Player

2005-08-23 Thread Stanislav Zayarsky
So is it possible to run that app with rsl from standalone player? If
so, can you please create some sample with crossdomain.xml file?

Best Regards
Stanislav Zayarsky

On 8/23/05, Matt Chotin [EMAIL PROTECTED] wrote:
  
  
 
 You might need a crossdomain.xml file available since the standalone is not
 considered to be running from the same location as localhost in all
 likelihood. 
 
   
 
 What happens if you open up the standalone player, then use File - Open and
 hit http://localhost/pathtofile?  If it works I'm pretty sure the
 crossdomain.xml is gonna be it. 
 
   
 
 Matt 
 
   
  
  
  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Kevin Broce
  Sent: Monday, August 22, 2005 2:42 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flex App with RSL fails in Standalone Flash Player 
 
   
 
 I cannot get a simple Flex application to run in the standalone 
  Flash Player when an RSL is used.  
  
  This App (with RSL) runs SUCCESSFULLY when I load it in a browser 
  from my localhost web server.  Its only FAILING in the SA Flash 
  Player.  If I compile the App without the RSL, it runs correctly in 
  the SA Flash Player.
  
  I am compiling the App and RSL using the Flex command-line 
  compilers.  I am not using the runtime Flex server.
  
  Here's what happens when I run the App in the SA Flash Player:
  
  1) The Library preloader displays Library 1 of 1.  
  2) The Application preloader displays Initializing.  Progress bar 
  goes to 100% but preloader does not disappear.
  3) A very small black square with a green border appears in the 
  upper left corner of the Flash Player.  
  4) If I click the small black square, the border color changes to 
  pink.  The cursor changes to a hand symbol.
  
  ---
  myApp.mxml
  ---
  
  ?xml version=1.0 encoding=iso-8859-1?
  mx:Application
 xmlns:mx=http://www.macromedia.com/2003/mxml; 
  width=100% height=100%
  rsl=myRSL.sws
  
  mx:Panel title=RSL Issue Test width=100% height=100% 
mx:Button label=App Has Loaded! /
  /mx:Panel
  
  /mx:Application
  
  ---
  myRSL.sws
  ---
  
  library url=http://localhost/myApp/myRSL.swf;
component name=Application 
  uri=http://www.macromedia.com/2003/mxml; /
component name=foo uri=* /
  /library
  
  All the files are located in the same folder.  
  
  Again:  This App runs successfully in the browser!
  
  Any comments or advice will be most appreciated.  
  
  Roger G.:  PLEASE HELP!
  
  Thanks
  
  
  
  
  
  
  
 
  --
  Flexcoders Mailing List
  FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
  
 
  
  SPONSORED LINKS 
  Computer software testing Macromedia flex Development 
  Software developer 
  
  
  YAHOO! GROUPS LINKS 
  
  
  Visit your group flexcoders on the web.
   
  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
   
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
  
  



 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hvh8jcr/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124814648/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

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

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

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

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





[flexcoders] dispatchEvent with parameter

2005-08-22 Thread Stanislav Zayarsky
Dear Flex Coders,

I have next small issue: I don't know how to dispatchEvent with
parameter from *.as custom component to Flex.

Actually I know how to send parameter from component, it should look like this:

link.dispatchEvent({type:eventName,param:Hello World});

But I don't know how to receive the parameter in mxml! 

I'm writing smth like this:
componentName eventName=clicked(param)/

And it show me error: There is no property with the name param.

Can anybody help me?

Best regards
Stanislav


 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12h3s5b10/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124727437/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/a./font
~- 

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

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

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

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




Re: [flexcoders] dispatchEvent with parameter

2005-08-22 Thread Stanislav Zayarsky
Wow, It's working! Thanks a lot Allen! :)

On 8/22/05, Allen Manning [EMAIL PROTECTED] wrote:
 componentName eventName=clicked(event.param)/
 
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Stanislav Zayarsky
 Sent: 22 August 2005 15:15
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] dispatchEvent with parameter
 
 Dear Flex Coders,
 
 I have next small issue: I don't know how to dispatchEvent with
 parameter from *.as custom component to Flex.
 
 Actually I know how to send parameter from component, it should look like
 this:
 
 link.dispatchEvent({type:eventName,param:Hello World});
 
 But I don't know how to receive the parameter in mxml!
 
 I'm writing smth like this:
 componentName eventName=clicked(param)/
 
 And it show me error: There is no property with the name param.
 
 Can anybody help me?
 
 Best regards
 Stanislav
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 
 
 
 
 --
 No virus found in this incoming message.
 Checked by AVG Anti-Virus.
 Version: 7.0.338 / Virus Database: 267.10.13/78 - Release Date: 19/08/2005
 
 
 --
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.338 / Virus Database: 267.10.13/78 - Release Date: 19/08/2005
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 
 
 
 
 



 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hhpcujt/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124730071/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/a./font
~- 

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

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

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

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




[flexcoders] Ladislav Zigo Tweening Prototype in Flex

2005-08-18 Thread Stanislav Zayarsky
Does anybody know how to use this Ladislav Zigo Prototype
http://laco.wz.cz/tween/ in Flex?

Best regards
Stanislav


 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hifjn8i/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124360815/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/a./font
~- 

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

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

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

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




[flexcoders] Flash Component for Flex

2005-08-11 Thread Stanislav Zayarsky
Hello,

I want to create advanced flash component and use it in Flex.

So I have started to write Flash component for flex and... suddenly I
realized that I can't use attachMovie command! But I want to attach
symbols from library...

Does anyone know smth about this issue?

Best regards
Stanislav


 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hto4pg5/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123771829/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

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

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

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

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




RE: [flexcoders] Accordeon header, text in different color

2005-08-09 Thread Stanislav Zayarsky
Ashish , this is not right solution!

I asked about text in the header of accordion in different color!
i.e. I need for example blue Hello and green World in the first header
and for example black Hello and yellow Bla-bla-bla and so on.

Best regards
Stanislav

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ashish Goyal
Sent: Friday, August 05, 2005 8:27 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Accordeon header, text in different color

This has been discussed some days ago, search the previous posts.

Anyways, it's a very simple solution. Call a function in the change
event of the accordion and add the below code to that function.

var lastSelected
function selectedPane()
{
lastSelected.setStyle(color, 0x00);
var header =
accordion1.getHeaderAt(accordion1.selectedIndex); // accordion1 is the
id of the accordion
lastSelected = header;
header.setStyle(color, 0xFF)
}

Thanks
-Ashish


 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Stanislav Zayarsky
 Sent: Friday, August 05, 2005 8:29 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Accordeon header, text in different color
 
 Hello Everybody,
 
 Goal: I need to have text in accordeon header in different color.
 Maybe htmlText field in that header.
 
 As far as I know we have Button in the accordeon header, so my
 assumption is to extend button class and use it in extended
 accordeonHeader class.
 
 Maybe someone can suggest better solution?
 
 Best regards
 Stanislav Zayarsky
 
 
  Yahoo! Groups Sponsor 
 ~-- 
 font face=arial size=-1a 
 href=http://us.ard.yahoo.com/SIG=12hs4mknp/M=362335.6886445.7
 839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123263230
 /A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/to
 pics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http:
 //groups.yahoo.com/In low income neighborhoods, 84% do not 
 own computers. At Network for Good, help bridge the Digital 
 Divide!/a./font
 --
 --~- 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 



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



 







 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hvf44oa/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123580207/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!/a./font
~- 

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

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

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

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





[flexcoders] Accordeon header, text in different color

2005-08-05 Thread Stanislav Zayarsky
Hello Everybody,

Goal: I need to have text in accordeon header in different color.
Maybe htmlText field in that header.

As far as I know we have Button in the accordeon header, so my
assumption is to extend button class and use it in extended
accordeonHeader class.

Maybe someone can suggest better solution?

Best regards
Stanislav Zayarsky


 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hs4mknp/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123263230/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!/a./font
~- 

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

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

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

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