[flexcoders] Browser to Flex Debugger connection

2006-12-11 Thread bjorn.schultheiss
Hi all,

After compiling my app using the sdk with arg -debug=true i then tried
to open the html file in the browser and get the message.
Where is your debugger located? -Localhost, -Somewhere else
I'm working on localhost so i selected that option and after a few
failed attempts i finally get the message 'fp9 was unable to connect
to debugger'

Can i connect to Flex Builder 2 debugger perspective in this way?

Regards,
Bjorn



[flexcoders] Access TextField within ComboBox

2006-12-05 Thread bjorn.schultheiss
Hey,

I need to remove the selection on the TextField within a ComboxBox.

This is happening when i'm switching combobox.editable == true to = false.

How can i access the textfield?

Bjorn



[flexcoders] Re: Viewstack.removeChildAt() and Garbage Collection

2006-11-23 Thread bjorn.schultheiss
i solved my little issue.
required the use of callLater()

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

 Ralph,
 
 I would be interesting if we could track actionscript-memory
 I've run into another interesting related error, that i haven't  
 confirmed 100% but i'll explain my current conclusion.
 
 i have 2 childs, index's 0 and 1.
 0 is selected, then i switch selectedIndex to 1.
 Next i remove 0. When i do that i get an out of bounds error and in  
 the debugger i notice that selectedIndex is still set to 1. Shouldn't  
 it have updated to 0 since I only now have 1 child?
 
 Anyway i'm digging through the Container Class to understand the  
 actual behavior now.
 
 Bjorn
 
 On 24/11/2006, at 10:29 AM, Ralph Hauwert wrote:
 
  Bjorn,
 
  Actually the docs don't lie about that. The removal of a child of  
  the displaylist will free up the memory it used on the diplaylist  
  in the FlashAPI, but that's not Actionscript-memory. (I wish I  
  knew adobe's terms on this, I know they have them ;-) ).  
  Performance gets increased, because the object doesn't need to be  
  drawn no more. Since the drawing of everything is the bottleneck  
  compared to the AVM2, that's actually more true then I'd like ;-)
  Ahh, Flash 10, give us hardware support ;-)
 
  Ralph.
 
  On 11/24/06, Bjorn Schultheiss [EMAIL PROTECTED]  wrote:
  Thanks Ralph,
 
 
  The behavior of the remove/addChild methods are consistent I guess.
  I only became perplexed on this issue after the documentation read  
  that, using removeChild() within the Container would reduce memory  
  usage and improve performance.
  Seems like a case for ViewStack.removeChildAndAllReferences()  :)
 
  Bjorn
 
  On 24/11/2006, at 6:32 AM, Ralph Hauwert wrote:
 
  removeChildAt( ) will only remove the specified object from the  
  displaylist, it won't destroy the object. Flex, by design keeps  
  references to objects in containers. You'll have to remove all  
  references to a specfic object to actually have it removed. We've  
  run into some problems with this; this was related to states,  
  though, and this is also something which is by design.
 
  On 11/23/06, bjorn.schultheiss  [EMAIL PROTECTED]   
  wrote:
  Hi,
 
  How come after calling removeChildAt(selectedIndex) within a  
  viewstack
  the child object still remains?
 
  I've run basic tests to try get this working but no win.
 
  I have a ViewStack based on this;
  import mx.containers. ViewStack;
  public class ExtVS extends ViewStack
  {
  // my new selectedIndex()
  public function set updateSelectedIndex(index:Number) :void
  {
  this.createComponentFromDescriptor(this.childDescri ptors 
  [index],false);
  this.validateNow( );
  if (index  0)
  removeChildAt(selectedIndex);
  }
  }
 
  And i've set it's creationPolicy=none.
 
  I have 3 children. When i start the app in the debugger my children
  look like this in the variables panel;
  c1 = childs.MyPanel
  c2 = null
  c3 = null
 
  By the time a proceed through each stack my debugger variables say;
  c1 = childs.MyPanel
  c2 = childs.MyBox
  c3 = childs.MyCanvas
 
  shouldn't it be
  c1 = null
  c2 = null
  c3 = childs.MyCanvas
 
  Also i am tracking totalMemory usage and i am receiving no benefits
  compared to when i was not using removeChild()
 
  Thanks,
  Bjorn
 
 
 
 
 
  -- 
  Ralph Hauwert
  FlashCoder
 
 
 
 
  -- 
  Ralph Hauwert
  FlashCoder
 
 






[flexcoders] Re: A navigation question.. best practise?

2006-11-06 Thread bjorn.schultheiss
Hi Michelle,

Have a go at using the viewStack container.
create a property:Number in your modelLocator and bind the
selectedIndex property of your viewstack to the property on your model
Locator.
for example

mx:ViewStack
selectedIndex={ModelLocator.getInstance().currentViewIndex} 

check out some of the examples on Alex Ulhmanns blog or try
cairngormdocs.org :)

Bjorn

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

 Greetings,
 
 I am having a bit of a problem working out exactly how to navigate
 through my application which will be using the Cairngorm 2
architecture.  
 
 It currently has the following views: a Login page, a Task List, a 
 Task and a Finish page.  The task list can have any where up to 8
 tasks displayed so the user will be switching between Task List and
 Task quite often.
 
 The flow between these views will be accessed through button events
 (ie, login button, or a start button to start the task etc).  There
 will be only one View shown to the user at any one time.
 
 I hope that all makes sense.
 
 Anyhoo.
 
 I have read about both the ModelLocator and also
 ViewHelper/ViewLocator, and am yet to have that warm and fuzzy moment
 where everything just suddenly makes sense, and thus know which is to
 be used where.
 
 So my question:  What would be the best way to go about handling the
 change of Views within this application?
 
 Thanks in advance,
 Michelle






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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Re: Minimum size of a Flex 2.0 application

2006-11-06 Thread bjorn.schultheiss
120kb is about the smallest possible filesize for any flex app based
off mx:Application

that figure will rise quickly though. 120kb is a flex app with nothing

Bjorn

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

 Hi,
 
 What's the lightest Flex 2.0 app we can get ? . An empty app with
just an
 mx:Application tag weighs in at 120 KB. It'll be great if there are any
 compiler options we can use to minimize this further. I'm using Flex
as a
 Flash file generator that'll be embedded into a HTML page - and the
entire
 page weight must be around 200 to 300KB.
 
 Let me know if Flex-generated swf is a viable option for me.
 
 Thanks,
 Joseph






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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Changing mx:Application's width during runtime

2006-11-06 Thread bjorn.schultheiss
Have a look at overriding the measure() of the Application Class.
I think that Application is listening for any browser window size
changes and then updating the width and height.

Your alternative, if you do not want to resize the actual browser
window may be to create a container within mx:Applcation that you can
then control. Otherwise you will have to look at resizing the actual
browser window.

Regards,
 
Bjorn Schultheiss

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

 When I run my application where mx:Application's width is 640x480, by 
 default, it shows a gradient blue square depicting those screen 
 dimensions.
 
 I then try to dynamically change the width to 1024 in actionscript when 
 a button is clicked. I had trace'd the application width after 
 changing it, and it does say the width is now 1024, but the screen 
 still shows 640x480. How can I make the application refresh to reflect 
 this new change in width? I tried invalidateSize(), 
 invalidateProperties, but neither works.
 
 Thanks.






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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] DataGridColumn height set to height of first row.

2006-11-06 Thread bjorn.schultheiss
As a short reply i would perhaps suggest sub class the datagrid and
create a custom component.
Then you could override the measure() and updateDisplayList() methods
to achieve your result.

Perhaps someone else could suggest an easier way?

Bjorn

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

 
 Some more investigation showed that this issue happens when the data
 in the first column is shorter than the data in the subsequent columns.
 
 Apparently the hright is determinded by the height of the first row.
 
 The DataGridColumn doesn't appear to have a height attribute, only
 width (or I'm missing it ...).
 
 Can one change the height in an ItemRenderer, or is there another way
 to do this?
 
 Thanks!
 
 Paul
 
 --- In flexcoders@yahoogroups.com, Paul Dale paul.dale@ wrote:
 
  
  A Datagrid that was automatically setting the height to the actual
 height of
  the contents has started displaying the columns too short. If you
 click on
  the column you can scroll down, but I haven't been able to get it
to set
  them automatically again.
  
  Has anyone else seen this? Any suggestions on how to fix this?
  
  Thanks!
  
  Paul
 






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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Re: DataGridColumn height set to height of first row.

2006-11-06 Thread bjorn.schultheiss
--- In flexcoders@yahoogroups.com, Paul Dale [EMAIL PROTECTED] wrote:

 
 Some more investigation showed that this issue happens when the data
 in the first column is shorter than the data in the subsequent columns.
 
 Apparently the hright is determinded by the height of the first row.
 
 The DataGridColumn doesn't appear to have a height attribute, only
 width (or I'm missing it ...).
 
 Can one change the height in an ItemRenderer, or is there another way
 to do this?
 
 Thanks!
 
 Paul
 
 --- In flexcoders@yahoogroups.com, Paul Dale paul.dale@ wrote:
 
  
  A Datagrid that was automatically setting the height to the actual
 height of
  the contents has started displaying the columns too short. If you
 click on
  the column you can scroll down, but I haven't been able to get it
to set
  them automatically again.
  
  Has anyone else seen this? Any suggestions on how to fix this?
  
  Thanks!
  
  Paul
 






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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] uploading to Jrun 4.X

2006-11-06 Thread bjorn.schultheiss
There are no examples for this.
One of our developers created their own servlet for this purpose,
Which part did you need help with?

Regards,
 
Bjorn Schultheiss

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

 Hi is there any good samples in JSP for uploadign files and download 
 files and maby som fileutil's
 
 Cato






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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Flex2 Docs font in Mac

2006-11-06 Thread bjorn.schultheiss
No, FireFox 2.0 for Mac, same in Safari though

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

 Hey,
 
 When viewing the help docs in FB2 Beta for Mac, the small font used
for the
 code examples renders terrible.
 Anyway to manually change this on the Mac
 
 Regards,
 
 Bjorn Schultheiss






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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Re: Cairngorm 2.1 problem

2006-10-30 Thread bjorn.schultheiss
Paolo,

Sorry for the lame response before, i hadn't even looked at 2.1 then.
By all accounts although getService() has been deprecated it's still
works. 
The only difference is that getService() returns AbstractService
instance while getWebService returns a WebService instance.

Hope that helps, but i really use webServices, Remoting kicks ass.

Bjorn




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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Re: AS3: List of dispatched events from any EventDispatcher in run-time

2006-09-20 Thread bjorn.schultheiss
I havent seen the event dispatcher code.
I assume it would use a hashtable style lookup,
1 solution could be to store the event types as static members.



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

 Hello ActionScripters,
 
 is it somehow possible in ActionScript 3.0 to retrieve the list of all
 events that any subclass of EventDispatcher dispatches?
 I need to add event listeners dynamically at run-time and would like to
 check if the event type is valid for given EventDispatcher.
 
 Thanks for comments..
 
 Tomas Lehuta
 lharp / http://lharp.net








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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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





[flexcoders] Re: Passing Const to custom component error

2006-09-11 Thread bjorn.schultheiss
It's te components namespace you set in the component.
The compiler doesn't like xmlns:components=apps.common.components.*
not sure why, perhaps components is a reserved word?!?

Using getters and setters is good practice for use within components.

Overall the code is fine.

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

 I have this class:
 package apps.common.asFiles
 {
 public class ScreenLabelConstants
 {
 public static const NAMEINFO_LABEL:String = Name;
 }
 }
 
 I have this code in my app:
 mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100%
 height=100% label=Name xmlns:components=apps.common.components.*
 mx:Script
 ![CDATA[
 import apps.common.asFiles.ScreenLabelConstants;
 ]]
 /mx:Script
 mx:Spacer height=30/
 components:FreedTextLabel id=nameTextLabel ls={
 ScreenLabelConstants.NAMEINFO_LABEL} /
 /mx:VBox
 
 The FreedTextLabel has this:
 ?xml version=1.0 encoding=utf-8?
 mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml;
 creationComplete=initFunc() borderThickness=1 cornerRadius=0
 shadowDistance=0 width=80%
 mx:Script
 ![CDATA[
 import apps.common.asFiles.ScreenLabelConstants;
 [Bindable] private var _ls:String;
 [Bindable] public var mainLabelText:String;
 
 public function get ls():String
 {
 return _ls;
 }
 
 public function set ls(newValue:String):void
 {
 _ls = newValue;
 mainLabelText = _ls + :;
 }
 
 public function initFunc():void
 {
 mainLabelText = ls + :;
 }
 
 ]]
 /mx:Script
 mx:Label id=mainLabel text={mainLabelText}/
 /mx:Panel
 
 
 The problem is that it won't work.  No data gets passed to my custom
 component.  Why is that?  Is it because my app is binding the var to
 constant value?  Or because I'm using a setter/getter on the var
receiving
 the reference?
 
 Thanks,
 Tom2







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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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




[flexcoders] Re: cairngorm: managing hundred of views

2006-09-11 Thread bjorn.schultheiss
True indeed.

But when dealing with 100+ screens, surely not all view related logic
can be contained on a traditional Model.
I think Cairngorm leave alot of freedom in terms of how you implement
the view. DataBinding is an efficient way of updating the view with
business logic. But there is still the requirement of using a view
framework. The mx framework offers a awesome components and extending
the existing viewstack, box, etc, you can achieve good managable code.
But i think there are various view specific patterns to use
inconjuction with cairngorm.

A key flex advantage in my opinion is that used with cairngorm 2, the
difficulty of handling client data has been totally removed. This
leaves more time available for enhanced the view and providing Awesome
GUI's. I cant wait for Blaze and Robert Penner's AS3 Animation
contribution.

My current 100+ View Screen app that i'm working on is in AS2, i would
so love to be using AS3 instead.

Regards,
Bjorn



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

 Maybe the provided examples are a little bit misleading, because they
 are too simple. On the other hand, who is able to create an example
 with hundreds of views :)  But the point is, ModelLocator is just
 that, a locator  for the model and not the model itself. If you have a
 view or a group of views, which needs multiple properties of your
 model, you should create a class for that and add an instance of this
 class to the ModelLocator.
 
 Cheers,
 Ralf.
 
 On 9/11/06, Tim Hoff [EMAIL PROTECTED] wrote:
  With views, the main thing to keep in mind is directory
  organization.  Respectfully, I have a few differing ideas, than
  Steven, when it comes to views.  But at Cairngorm's current
  iteration, all state == model (local and common).  Organize the
  actual view classes in functional directory groups; for easy
  identification.  In the ModelLocator, bind the state of the views
  accordingly.  With hundreds of views, you will probably want to
  subclass the ModelLocator, into functional groups, to aid in
  organization.  Ultimately, it boils down to each application's
  requirements.  For me, I just try to keep things as simple and
  maintainable as possible; even when endless local state variables
  tend to clutter and complicate the ModelLocator.  I'm calling this
  model happy. :)
 
  -TH
 
  --- In flexcoders@yahoogroups.com, Bjorn Schultheiss
  bjorn.schultheiss@ wrote:
  
   Good Question and I hope this thread gets a lot of posts.
  
   Personally I don't think that the modelLocator is always upto the
  job.
   Don't get me wrong, in a data-driven application this methodology
  is
   beautiful,
   But my feeling is it will not satisfy all requirements.
  
   For example, say you have about 100 view states that are loaded in
  and
   disposed of, at runtime, as required.
   I don't think the ModelLocator is up to the task.
   I think possibly a ViewManager of sorts is required that acts as
  a middle
   tier between the Views and the ModelLocator.
  
   I don't have any concrete classes to show an example of what I
  mean as I
   haven't developed such a solution as yet.
   But I am at the beginning of a project that will require such
  consideration.
  
  
   Regards,
  
   Bjorn Schultheiss
   Senior Flash Developer
   QDC Technologies
  
   -Original Message-
   From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On
   Behalf Of Diego Guebel
   Sent: Monday, 11 September 2006 12:07 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] cairngorm: managing hundred of views
  
   Hi there,
   My questions is theoretical and best practice oriented, I just
  wonder what
   is the best approach to manage hundreds of views since
   viewhelper/viewlocator is out of fashion.
   I was reading previous post but didn't find a good example or
  tutorial.
   Can anyone put some light on this?
  
   Sorry if some of you receive this post twice, I think the first
  once was
   moderated.
   Thanks in advance. Diego.
  
  
   --
   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! ID required)
 
  mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 
 
 
 -- 
 Ralf Bokelberg [EMAIL PROTECTED]
 Flex  Flash Consultant based in Cologne/Germany








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

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

* Your email settings:
Individual Email | Traditional

[flexcoders] Re: Cairngorm... Where should this go?

2006-09-09 Thread bjorn.schultheiss
Sorry, bad morning.
I do have manners, i just didn't show them very well then.

Regards,

Bjorn Schultheiss






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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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





[flexcoders] Re: Cairngorm... Where should this go?

2006-09-08 Thread bjorn.schultheiss
You are correct,

It is a bit of a stupid question.

TextField.setStyle('borderColor', 0xFF);

TextField.setStyle('borderThickness', 2);

Alert.show('FIX THIS FORM');

TextField.toolTip

There are a heap of different ways

Personal Implementation

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

 ok, stupid question, this is a great example, but how do you get this to
 utilise all those fancy vaildation messages in the Flex SDK.  I'm
talking
 about the ones that change the control to red borders and the
fly-out error
 message.
 
 DK
 
 On 9/8/06, grahampengelly [EMAIL PROTECTED] wrote:
 
  Hi Bjorn
 
  Thanks for taking the time to throw some code into the discussion. The
  solution I ended up implementing was similar to the one you
suggest. In my
  case the validation was simple, the user either supplies a number
of answers
  to a question that is between the minimum and maximum allowed or
they don't.
  My point here is that the validation message to the user is more
or less
  predefined.
 
  In a more complicated scenario, say a name and address form, it would
  appear the model would get messy. Just the name field might have
required,
  min  max length and [a-z][A-Z] validation rules. Which of these
rules is
  broken and on what field would need to be passed back to the view
if you
  say, wanted to display an instruction to the user or color the
appropriate
  textfield. Having engaged in this discussion I think I have now
come to a
  solution for scenarios like this that would maintain the intent of
the MVC
  pattern.
 
  On the model you would maintain a collection of objects such as this:
 
  public class ValidationFailedInfo
  {
  private var _propertyName:String;
  private var _message:String;
 
  public function get propertyName():String
  {
  return _propertyName;
  }
 
  public function get message():String
  {
  return _message;
  }
 
  public function ValidationFailedInfo(message:String,
  propertyName:String)
  {
  _message = message;
  _propertyName = propertyName;
  }
  }
 
  That would be populated/cleared by a validate() function (not
shown but it
  just applies your rules to the properties of the model). You would
also have
  a method such as:
 
  public function
GetValidationMessages(propertyName:String):Array
  {
  validate();
  var  messageArr:Array = new Array();
  var currValInfo:ValidationFailedInfo = null;
  for(var x:int = 0; x_validationInfoList.length; x++)
  {
  curValInfo =
ValidationFailedInfo(_validationInfoList[x]);
  if(currValInfo.propertyName == propertyName)
  {
  messageArr.push(currValInfo.message);
  }
  }
  return messageArr;
  }
 
  You could use this to determine whether each field is valid and if
not why
  not. All of the validation rules would remain in the model as
would the
  message strings that you return. If for example your application
supports 10
  languages, storing all of the language logic in the view would be a
  maintenance nightmare wheras this would allow all of that to stay
in the
  model.
 
  Thanks for all of your contributions. Can I also take the
opportunity to
  say that this is the most welcoming and active group that I have
  participated in... Keep it up [image: :D]
 
  Graham
 
  --- In flexcoders@yahoogroups.com, Bjorn Schultheiss
bjorn.schultheiss@
  wrote:
  
   Gladly,
  
   simple example.
  
   // view
   mx:Button label=submit enabled={model.formValidated} /
  
   // model data Object
   public function set username(value:String):void
   {
   _username = value;
   validateForm()
   }
  
   private function validateForm():void
   {
   if (_username != undefined)
   formValidated = true;
   }
  
   This is code i've just typed, but the principle remains the same.
   Data drives the view via dataBinding. There are alternatives to
the way
  you
   would structure your models and views but the principle remains the
  same.
  
  
   Regards,
  
   Bjorn Schultheiss
   Senior Flash Developer
   QDC Technologies
  
  
   _
  
   From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
   Behalf Of grahampengelly
   Sent: Friday, 8 September 2006 12:24 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: Cairngorm... Where should this go?
  
  
  
   Thanks all for the discussion...
  
   So it seems the consensus is the validation, from a pattern
purist point
  of
   view should sit in the model. Someone suggested a model.isDataValid
   property... This gives us an indication but how should we be
  communicating
   back to the view which data it is that is invalid and what is it
that is
   invalid about it? Should the model dispatch a data invalid

[flexcoders] Re: Flex2 (XML vs Model) ?

2006-07-03 Thread bjorn.schultheiss
Hi Neil,

Indeed, ideally you create an XML instance on your model.
It would make sense to have this loaded XML a single point of
reference throughout the application.

Bjorn,

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

 Hi, I'm loading XML in to Flex2 at compile-time and would like to
bind label
 properties of certain modes to a Tree list display.
 
 The docs say that you cannot (currently) bind to properties of an XML
 instance (the XML class is not of type IEventDispatcher) so I thought I
 would try loading the XML in to Model instance instead, using:
 
 mx:Model id=menuItems source=xml/menuOptions.xml /
 
 My test XML looks like this:
 ?xml version='1.0' ?
 menu
 folder label=Flex 2
 item label=Tutorial 1 Hello/item
 item label=Tutorial 2 /
 item label=Tutorial 3 /
 /folder
 /menu
 
 I don't think model instances support attributes though, so while trace(
 menuItems.item[0]) works, I can't seem to access the label
attribute. Could
 someone confirm that this is right, and if so, are there any better
 suggested methods to use, or do i just need to load the xml in to an XML
 instance, and then use E4X to pull out the label attributes and
assign them
 to bindable vars of my own creation?
 
 Cheers,
 Neil







 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] Re: Cairngorm2: ViewLocator - ViewHelper

2006-07-03 Thread bjorn.schultheiss
Hi Tim,

I am also considering the benefits of using viewHelpers. 
Here's what i got out of it.
encapsulating all the logic necessary for interrogating and updating
a particular View into a single helper class

Why would the Command need to interrogate the View.
A Command is always essentially created by the View and dispatched
event data updates the Command. On Command remote handlers, the
Command updates the model. I have been using explict setters on the
view to initiate data-binding between model and view in mxml.

Then it is View that is responsible for dispatching events throughout
an application and that it is the View which will always drive the app. 

Regards
Bjorn Schultheiss




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

 I've recently been toying with the concepts of ViewHelper vs. 
 ViewLocator.  Alex Ulmann posted, the ViewHelper adds and removes 
 itself from the ViewLocator, in his Cairngorm 2 (for Flex 2) – 
 Overview and Migration Path.  I haven't seen any examples yet that 
 illustrate this method.  Understandably, the example pool and 
 documentation for this kind of thing is small but growing.  So, I was 
 wondering if the authors of Cairngorm had any advise/guidance for this 
 topic.  Of course it's a matter of scale, but in an enterprise 
 application, what is recommended as best practice for the use of
 ViewLocator and/or ViewHelpers?  I'm sure that there are forthcoming 
 books that cover this area, but feedback here might promote better 
 understanding.
 
 Best regards,
 Tim Hoff







 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

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

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





[flexcoders] Re: app startup / load times

2006-07-03 Thread bjorn.schultheiss
Hi Hank

I think people will wait.
Once it's loaded it can be cached.
Ted once wrote a blog about RSL that achieved this.

While people are thinking about do i wait for it to load or not, by
the time it does you got em.

That's my opinion.

regards,
Bjorn Schultheiss

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

 For the first time since I started playing with flex (a couple of
 weeks) I checked out the size of my app, which is currently 477k.
 
 My app isnt that big, so I presume most of that is just the size of
 the framework. I am just wondering what do people think about that in
 terms of user start up time. For a user with a 500kbps connection that
 is about 8 seconds before the app is loaded. Are people doing loaders
 to get things started? is there an accepted strategy for how to deal
 with this?
 
 There was another thread recently about how people shouldnt use flex
 for websites and one person provided aesthetic reasons. In my mind, if
 there is a reason (and I am not arguing that there is) but if there is
 a reason not to use it for websites it would be the file size. 10
 seconds seems like a long time to make someone wait before they see
 something. On the other hand perhaps I am underestimating the average
 connection speed.
 
 Anyway, like I said I would just like to get peoples thoughts on
this issue.
 
 Hank







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

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

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

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





[flexcoders] Re: Connection Debugging

2006-07-03 Thread bjorn.schultheiss
I dont know how this appeared.
This post was 2 months old.
Please disregard.

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

 Hi Abdul,
 
  
 
 I think I may have asked a similar question before that you also
answered.
 
 I just upgraded from 1.2.11 to latest 1.2.13
 
 In my app successfully pulling data from coldfusion but I'm not
seeing any
 traffic in ServiceCapture
 
 I'm running coldfusion on localhost:8500
 
  
 
 My remoteObject looks like this
 
 mx:RemoteObject id=menuService
 
 destination=ColdFusion
 
 result=event.call.resultHandler(event)
 
 fault=event.call.faultHandler(event)
 
 showBusyCursor=true
 
 source=com.upmarket.store.dao.CategoriesDAO /   
 
  
 
 Do I need to set any extra settings?
 
  
 
 Within my flex-enterprise-services.xml logging section I have
 
 logging
 
 target class=flex.messaging.log.ConsoleTarget level=Debug
 
 properties
 
 prefix[Flex] /prefix
 
 includeDatefalse/includeDate
 
 includeTimefalse/includeTime
 
 includeLevelfalse/includeLevel
 
 includeCategoryfalse/includeCategory
 
 /properties
 
 filters
 
 patternEndpoint.*/pattern
 
 patternService.*/pattern
 
 patternConfiguration/pattern
 
 patternMessage.*/pattern
 
 /filters
 
 /target
 
 /logging
 
  
 
 Any help would be much appreciated
 
  
 
 Regards,
 
  
 
 Bjorn Schultheiss
 
 Senior Flash Developer
 
 QDC Technologies
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Abdul Qabiz
 Sent: Monday, 19 June 2006 11:05 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Connection Debugging
 
  
 
 it works.
 
 -abdul
 
 On 6/19/06, Bjorn Schultheiss [EMAIL PROTECTED] wrote: 
 
 In Flash Development I was using ServiceCapture for my NetConnection
 Debugging.
 
  
 
 What's the preferred NetConnection debugger for Flex2?
 
 In particular I'm using a Coldfusion backend.
 
  
 
 Has anyone managed to use ServiceCapture with flex2?
 
  
 
 Regards,
 
  
 
 Bjorn Schultheiss
 
 Senior Flash Developer
 
 QDC Technologies








 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] F2 CF FMS AMF encoding problems

2006-06-04 Thread bjorn.schultheiss



Hi guys,

I'm setting up a basic test application.
The app initially performs a login with CF where I pass a LoginVO
instance straight into CF.
The new AMF3 handles the typed object beautifully and CF easily
returns me back a new LoginVO instance.

Next I attempt to make a connection to Flash Media Server.
This is the error message I receive.
code : NetConnection.Connect.Failed
description : objectEncoding error

If I set
NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0;
My connection to FMS works, but my handling of the LoginVO instances
with Coldfusion no longer works (for obvious reasons).

Is there a workaround for this?

Thanks,
Bjorn



Bjorn Schultheiss
Senior Flash Developer
qdc
Personalised Communication Power

Level 2, 31 Coventry St.
South Melbourne
3205, VIC Australia

T: +61 3 9674 7400
F: +61 3 9645 9160
W: http://www.qdc.net.au
 
((This transmission is confidential and intended solely
for the person or organization to whom it is addressed. It may contain
privileged and confidential information. If you are not the intended
recipient, you should not copy, distribute or take any action in
reliance on it. If you believe you received this transmission in
error, please notify the sender.---))











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