Re: [flexcoders] Hello world iOS example

2011-11-01 Thread Douglas Knudsen
no, you can debug on the device.

Here's a great fully detailed post on how to set your stuff up for iOS
http://www.tricedesigns.com/2011/09/15/air-on-devices-ios-workflow/

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


2011/10/30 Csomák Gábor csom...@gmail.com

 **


 its really easy. you create an iOS mobile app.. build it as a normal app.
 you can only debug on the computer. for deploy, use export-release build..


 On Wed, Oct 26, 2011 at 8:09 AM, Kevin McDonald 
 kevinmacdon...@gmail.comwrote:



 Can anyone point me to an end to end example of how to use Flash Builder
 to build, deploy and debug an iPad app, preferably one that doesn't gloss
 over glorious amounts of important detail?

 Thanks!

 Kevin MacDonald


  



Re: [flexcoders] Mifration from flex 3 to flex 4.5

2011-09-20 Thread Douglas Knudsen
which appears to be a correct error to me.  See the docs here

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/resources/ResourceBundle.html

Maybe you have more code not shared or some such.  Certainly, you can't use
a ResourceBundle reference that is not initialized.

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


On Tue, Sep 20, 2011 at 6:05 AM, Aicha .. tilfani.ai...@gmail.com wrote:

 **


 Hi everybody
 I migrate my application from flex 3 to flex 4,5
 I have an erreor in mu localizator.as thaat can't resolve .getString(key)
 in  this method
 [Bindable]
 private var cur : ResourceBundle;
 [Bindable(event=langChange)]
 public function getText(key : String) : String
 {
 return this.cur.getString(key);
 }

 what should i do to resolve this problem
 Thx



  



Re: [flexcoders] AIR Packaging for different handheld devices

2011-09-13 Thread Douglas Knudsen
Check this link
http://www.adobe.com/products/flash-builder/faq.html

No to #2, only the PlayBook so far.

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


On Tue, Sep 13, 2011 at 1:54 AM, mulchand12345 mulchand12...@yahoo.inwrote:

 **


 Hi All,

 I have following questions related to the packaging of AIR applications for
 different devices.

 1. Can I install iPhone applications on iPad? If yes, then, can the iOS
 packager provided in flashBuilder 4.5.1 be used to package applications for
 iPad?

 2. Can I package the applications using blackberry tablet OS packager
 provided in flashBuilder 4.5.1 and install them on Blackberry smart phones?

 Thanks in advance

 Regards,
 MulC

  



Re: [flexcoders] What is the a correct lifecycle phase to add new child components?

2011-09-11 Thread Douglas Knudsen
you can catch a bit of what virtualization is here
http://adobe.ly/pVpLWQ
its been a part of Flex since wow, 1.5 days if I can recall back that far.


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


On Thu, Sep 8, 2011 at 4:43 AM, Nick Middleweek n...@middleweek.co.ukwrote:

 **


 Doug, what's that?



 On 7 September 2011 20:48, Douglas Knudsen douglasknud...@gmail.comwrote:

 **


 also keep in mind virtualization use in Lists.  Just one more cog in The
 Wheel That Depends

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


 On Wed, Sep 7, 2011 at 3:21 PM, Nick Middleweek n...@middleweek.co.ukwrote:

 **


 Alex,

 That's a good idea... What's your thoughts on approach to implement a
 shared Button?

 Would you create it at the parent view level and inject into the IR's
 using some kind of IFactory or perhaps attach it to the data property?


 Cheers,
 Nick



 On 7 September 2011 17:27, Alex Harui aha...@adobe.com wrote:

 **


 Yes, it is a set of trade-offs.  Deferring until you know you need it is
 best for memory and startup time, but you have to pay for the adding later.
  You can cache the button so you don’t always create a new one.  You can
 even share a button between all renderers if you want.



 On 9/7/11 5:42 AM, ganaraj p r ganara...@gmail.com wrote:






 With toggling the visibility property you are creating 1 Button per Item
 Renderer.

 When you are creating an object each time a user's mouse is over it, and
 then deleting it when its out, you are creating 'n' number of objects and
 deleting them , the new objects need to be garbage collected.

 The initial load is going to be more ofcourse, but then its a set number
 since you are only going to be creating a set number of buttons.

 On Wed, Sep 7, 2011 at 10:23 AM, Nick Middleweek n...@middleweek.co.uk
 wrote:






 Alex,

 Just checking/ thinking... But if I go down the visibility route and
 addChild( x ) up front in createChildren() would I be consuming more 
 initial
 memory than if I addChild( x ) as and when I needed it?

 In my case, I have 15 columns, using the same renderer and 40 rows so
 that's 600 extra buttons that would be created that are initially set
 visible = false;

 I'm assuming they are all in memory and when scrolling, this could
 impact scroll performance.


 Or is adding/ removing children dynamically and making each Item
 Renderer go through it's update cycle more expensive?


 Cheers,
 Nick




 On 6 September 2011 19:48, Alex Harui aha...@adobe.com wrote:






 States are still available in the MX way.  You can also hide and show
 instead of add and remove.

 Known children should be created in createChildren or in states.  But
 otherwise, you have to create them when you know you need them.  The List
 components create them in updateDisplayList since that’s when they finally
 know how many to create.



 On 9/6/11 10:48 AM, Nick Middleweek n...@middleweek.co.uk 
 http://n...@middleweek.co.uk  wrote:






 Thanks for this... So I'm extending UIComponent, does this mean I'm
 doing it the MX way?

 Cheers...


 On 6 September 2011 14:38, Haykel BEN JEMIA hayke...@gmail.com 
 http://hayke...@gmail.com  wrote:






 Hi Nick,

 if you use Spark components and the child components you want to add are
 fixed and known, e.g. a 'close' button that should be visible on 
 mouse-over,
 then I would use skin states and manage visibility of the components in the
 skin.

 Haykel Ben Jemia

 Allmas
 Web  RIA Development
 http://www.allmas-tn.com





 On Tue, Sep 6, 2011 at 10:28 AM, Nick Middleweek n...@middleweek.co.uk
 http://n...@middleweek.co.uk  wrote:






 Hi,

 I've been trying to find the correct 'place' to create new components
 after the parent component is UPDATE_COMPLETE.

 During initialisation, we create child components in *createChildren()*but 
 where/ when should we create them for e.g. in response to a mouseOver or
 a mouseClick event?

 Is it simply 'ok' to *this.addChild( *myNewButton *)* in a MOUSE_EVENT
 function handler or should I be setting some dirty flag to trigger off an
 invalidation and then add the button in a lifecycle override function?


 Thanks,
 Nick


 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui




 --
 Sent by Nick Middleweek ( { email: n...@middleweek.co.uk, mobile: +44(0)774
 035 5424, blog: http://www.middleweek.co.uk } );






 --
 Sent by Nick Middleweek ( { email: n...@middleweek.co.uk, mobile: +44(0)774
 035 5424, blog: http://www.middleweek.co.uk } );


  



Re: [flexcoders] What is the a correct lifecycle phase to add new child components?

2011-09-07 Thread Douglas Knudsen
also keep in mind virtualization use in Lists.  Just one more cog in The
Wheel That Depends

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


On Wed, Sep 7, 2011 at 3:21 PM, Nick Middleweek n...@middleweek.co.ukwrote:

 **


 Alex,

 That's a good idea... What's your thoughts on approach to implement a
 shared Button?

 Would you create it at the parent view level and inject into the IR's using
 some kind of IFactory or perhaps attach it to the data property?


 Cheers,
 Nick



 On 7 September 2011 17:27, Alex Harui aha...@adobe.com wrote:

 **


 Yes, it is a set of trade-offs.  Deferring until you know you need it is
 best for memory and startup time, but you have to pay for the adding later.
  You can cache the button so you don’t always create a new one.  You can
 even share a button between all renderers if you want.



 On 9/7/11 5:42 AM, ganaraj p r ganara...@gmail.com wrote:






 With toggling the visibility property you are creating 1 Button per Item
 Renderer.

 When you are creating an object each time a user's mouse is over it, and
 then deleting it when its out, you are creating 'n' number of objects and
 deleting them , the new objects need to be garbage collected.

 The initial load is going to be more ofcourse, but then its a set number
 since you are only going to be creating a set number of buttons.

 On Wed, Sep 7, 2011 at 10:23 AM, Nick Middleweek n...@middleweek.co.uk
 wrote:






 Alex,

 Just checking/ thinking... But if I go down the visibility route and
 addChild( x ) up front in createChildren() would I be consuming more initial
 memory than if I addChild( x ) as and when I needed it?

 In my case, I have 15 columns, using the same renderer and 40 rows so
 that's 600 extra buttons that would be created that are initially set
 visible = false;

 I'm assuming they are all in memory and when scrolling, this could impact
 scroll performance.


 Or is adding/ removing children dynamically and making each Item Renderer
 go through it's update cycle more expensive?


 Cheers,
 Nick




 On 6 September 2011 19:48, Alex Harui aha...@adobe.com wrote:






 States are still available in the MX way.  You can also hide and show
 instead of add and remove.

 Known children should be created in createChildren or in states.  But
 otherwise, you have to create them when you know you need them.  The List
 components create them in updateDisplayList since that’s when they finally
 know how many to create.



 On 9/6/11 10:48 AM, Nick Middleweek n...@middleweek.co.uk 
 http://n...@middleweek.co.uk  wrote:






 Thanks for this... So I'm extending UIComponent, does this mean I'm doing
 it the MX way?

 Cheers...


 On 6 September 2011 14:38, Haykel BEN JEMIA hayke...@gmail.com 
 http://hayke...@gmail.com  wrote:






 Hi Nick,

 if you use Spark components and the child components you want to add are
 fixed and known, e.g. a 'close' button that should be visible on mouse-over,
 then I would use skin states and manage visibility of the components in the
 skin.

 Haykel Ben Jemia

 Allmas
 Web  RIA Development
 http://www.allmas-tn.com





 On Tue, Sep 6, 2011 at 10:28 AM, Nick Middleweek n...@middleweek.co.uk 
 http://n...@middleweek.co.uk  wrote:






 Hi,

 I've been trying to find the correct 'place' to create new components
 after the parent component is UPDATE_COMPLETE.

 During initialisation, we create child components in *createChildren()*but 
 where/ when should we create them for e.g. in response to a mouseOver or
 a mouseClick event?

 Is it simply 'ok' to *this.addChild( *myNewButton *)* in a MOUSE_EVENT
 function handler or should I be setting some dirty flag to trigger off an
 invalidation and then add the button in a lifecycle override function?


 Thanks,
 Nick


 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui




 --
 Sent by Nick Middleweek ( { email: n...@middleweek.co.uk, mobile: +44(0)774
 035 5424, blog: http://www.middleweek.co.uk } );


  



Re: [flexcoders] What is the a correct lifecycle phase to add new child components?

2011-09-06 Thread Douglas Knudsen
ze MX way, yes.  So, um, I suggest you look at the visible property.  Adding
the child once in createChildren() then managing the visible property sounds
better in the long run. If you really must add/remove the button, I'd say
use updateDisplayList(), a good place for adding/removing dynamic children.

There's a crap ton of info on the life cycle, here is one such source
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf68641-7ff0.html


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


On Tue, Sep 6, 2011 at 1:47 PM, Nick Middleweek n...@middleweek.co.ukwrote:

 **


 Hi Jeff,

 The component I'm working on is an Item Renderer for an Advanced Data Grid.

 I'm currently creating the button on onMouseOver() and then removing the
 button on onMouseOut().

 commitProperties() doesn't come into play unless I guess, I set a flag on a
 setter and then call invalidateProperties() from the setter but would that
 make any real difference? I mean, is it the same calling addChild(myButton)
 from onMouseOver() function handler or from within commitProperties?

 Does anything naturally happen (life cycle wise) after commitProperties()
 is invoked?


 Thanks,
 Nick



 On 6 September 2011 13:09, Jeffry Houser jef...@dot-com-it.com wrote:

 **



  I hav used commitProperties() in the past. Although some people will use
 commitProperties to call createChildren() if new children are needed to be
 created.

  However, I'd be cautious about creating children based on the
 update_complete event.  It seems like an unnecessary way to force yet
 another full render of the component..

 On 9/6/2011 5:28 AM, Nick Middleweek wrote:


 Hi,

  I've been trying to find the correct 'place' to create new components
 after the parent component is UPDATE_COMPLETE.

  During initialisation, we create child components in *createChildren()*but 
 where/ when should we create them for e.g. in response to a mouseOver or
 a mouseClick event?

  Is it simply 'ok' to *this.addChild( *myNewButton *)* in a MOUSE_EVENT
 function handler or should I be setting some dirty flag to trigger off an
 invalidation and then add the button in a lifecycle override function?


  Thanks,
 Nick


  --
 Sent by Nick Middleweek ( { email: n...@middleweek.co.uk, mobile: +44(0)774
 035 5424 } );




 --
 Jeffry Houser
 Technical Entrepreneur203-379-0773
 --http://www.flextras.com?c=104
 UI Flex Components: Tested! Supported! Ready!
 --http://www.theflexshow.comhttp://www.jeffryhouser.comhttp://www.asktheflexpert.com
 --
 Part of the DotComIt Brain Trust




 --
 Sent by Nick Middleweek ( { email: n...@middleweek.co.uk, mobile: +44(0)774
 035 5424, blog: http://www.middleweek.co.uk } );


  



Re: [flexcoders] custom component as item in DataGrid?

2010-04-07 Thread Douglas Knudsen
A item in a datagrid represents a data point and is independent of how it is 
displayed.  How a item is displayed is based on a ItemRenderer.  So, what you 
want to go a googling on is:datagrid  custom itemrenderer   Unlike 2005 and 
Flex 1.5 days, you will find a plethora of results.  The Flex docs at 
livedocs.adobe.com have a great write up on this topic.

HTH!

Douglas Knudsen
douglasknud...@gmail.com



On Apr 7, 2010, at 9:13 PM, tex_learning_flex wrote:

 Is it possible to include a custom component as an item in a DataGrid? Does 
 anyone have a reference to how this might be done? I haven't found any yet.
 
 thanks,
 
 Tex
 
 



Re: [flexcoders] Performance issues with data grid/advanced data grid

2010-01-06 Thread Douglas Knudsen
#1 below sounds way fishy.  For performance reasons List based controls
create only those ItemRenderers that would be viewable in the List and maybe
1 or 2 more.  As the user scrolls, this set is re-used.  What you have done
is bypass this completely by making ALL rows visible and thus 1350 instances
of your ItemRender, sitting inside a List control among various other
pieces.  A List control has built in scrolling, eh?


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


On Tue, Jan 5, 2010 at 4:57 PM, sharath reddy sharathre...@yahoo.comwrote:



 Hi All,

 I'm loading an AdvancedDataGrid with an ArrayCollection of about 1350 items
 retrieved from the server. Each record has 5 fields, and I am using one very
 simple custom renderer. The grid doesn't seem to be able to handle these
 many records, and throws the following error:

 Error #1502: A script has executed for longer than the default
 timeout period of 15 seconds.

 (I have attached the full stack trace at the end of the email)

 I replaced ADG with the regular data grid, and experienced the same
 problem.

 If I 'slice' the ArrayCollection and add only the first 1000 records, it
 seems to work (after some delay). The optimum performance seems to be with
 about 300 records. I found a couple of work-arounds:

 1. Currently, I set the height of the grid to be equal to the number of
 rows returned from the server. Scrollbars are turned off on the grid and
 turned on for the VBox that contains the grid.

 If I set a fixed height for the data grid and turn ON the vertical
 scrollbars, the data renders correctly. I'm guessing that this allows the
 data grid to re-cycle renderers while scrolling and leads to more efficient
 performance. However, I don't want scrollbars on the grid, only on the
 parent container.

 2. I can develop a paging implementation of the data grid, displaying about
 500 records on each page. Again, I would rather not do this.

 Sorry for the long-winded post, any suggestions/workarounds to tackle this
 issue? Thanks for your help!

 Sharath

 Full Stack trace of the exception:

 Error: Error #1502: A script has executed for longer than the default
 timeout period of 15 seconds.
 at

 mx.managers.layoutClasses::PriorityQueue/removeLargestChild()[C:\autobuild\3.2.0

 \frameworks\projects\framework\src\mx\managers\layoutClasses\PriorityQueue.as:145]
 at mx.managers::LayoutManager/validateClient()[C:\autobuild\3.2.0
 \frameworks\projects\framework\src\mx\managers\LayoutManager.as:940]
 at mx.core::UIComponent/validateNow()[C:\autobuild\3.2.0
 \frameworks\projects\framework\src\mx\core\UIComponent.as:5679]
 at

 mx.controls.dataGridClasses::DataGridBase/updateRendererDisplayList()[C:\autobuild\3.2.0

 \frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:1184]
 at
 mx.controls.dataGridClasses::DataGridBase/drawItem()[C:\autobuild\3.2.0

 \frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:1154]
 at

 mx.controls.dataGridClasses::DataGridBase/drawVisibleItem()[C:\autobuild\3.2.0

 \frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:1127]
 at
 mx.controls.dataGridClasses::DataGridBase/makeRows()[C:\autobuild\3.2.0

 \frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:708]
 at

 mx.controls.dataGridClasses::DataGridBase/makeRowsAndColumns()[C:\autobuild\3.2.0

 \frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:593]
 at mx.controls::DataGrid/makeRowsAndColumns()[C:\autobuild\3.2.0
 \frameworks\projects\framework\src\mx\controls\DataGrid.as:1538]
 at

 mx.controls.listClasses::ListBase/makeRowsAndColumnsWithExtraRows()[C:\autobuild\3.2.0

 \frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:1360]
 at
 mx.controls.listClasses::ListBase/updateDisplayList()[C:\autobuild\3.2.0

 \frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3658]
 at

 mx.controls.dataGridClasses::DataGridBase/updateDisplayList()[C:\autobuild\3.2.0

 \frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:581]
 at mx.controls::DataGrid/updateDisplayList()[C:\autobuild\3.2.0
 \frameworks\projects\framework\src\mx\controls\DataGrid.as:1437]
 at
 mx.controls.listClasses::ListBase/validateDisplayList()[C:\autobuild\3.2.0

 \frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3280]
 at
 mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0
 \frameworks\projects\framework\src\mx\managers\LayoutManager.as:622]
 at
 mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0
 \frameworks\projects\framework\src\mx\managers\LayoutManager.as:695]
 at Function/http://adobe.com/AS3/2006/builtin::apply()
 at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0
 \frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
 at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0
 \frameworks\projects

Re: [flexcoders] AIR Application is not Appearing

2009-02-14 Thread Douglas Knudsen
I've seen this occur if there is some sort of startup error. ( No
global exception handler, eh? ). For example, if your Air app is
looking for a config file using static inatialiser on startup and
can't find it, it could just hang there. Check the flashlog for
errors.

DK

On 2/13/09, Alex Harui aha...@adobe.com wrote:
 Did they try uninstalling and re-installing?

 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui

 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Ashish Verma
 Sent: Friday, February 13, 2009 7:03 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] AIR Application is not Appearing


 Hello All,

 I created an AIR Application which was previously based on AIR 1.0 and I am
 some more features in that application and compiling with the update of Flex
 3 and targeting it for AIR 1.5. After making air file I am putting it onto
 sever to access by users. But when any user trying to run it after uploading
 it's not displaying any window only showing task-bar button and doing
 noting. When I use the task-bar context to move command I can see the dotted
 rectangle on the desktop. I also checked for the installation folder of the
 application in C:\Documents and Settings\username\Local Settings but there
 was no any folder for it.

 Please help me out.


 Best,
 Ashish



-- 
Sent from my mobile device

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


Re: [flexcoders] Invalid Embed directive

2008-10-29 Thread Douglas Knudsen
and if you are compiling the CSS for runtime loads, the path will be
different yet again


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


On Wed, Oct 29, 2008 at 4:59 PM, Ryan Graham [EMAIL PROTECTED]wrote:

And the path is relative to where you are declaring the mx:Style that
 loads the stylesheet file, of course. :)

 HTH,
 Ryan

  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Ryan Graham
 *Sent:* Wednesday, October 29, 2008 1:55 PM

 *To:* flexcoders@yahoogroups.com
 *Subject:* RE: [flexcoders] Invalid Embed directive

   The compiler expects that image path to be in one of your project source
 folders during build. If that path exists in your bin folder only, the
 compiler will never see it for an embed operation.

 HTH,
 Ryan

  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Jim Hayes
 *Sent:* Wednesday, October 29, 2008 1:20 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* RE: [flexcoders] Invalid Embed directive


 It can be confusing as to where the file thinks it is at compile time - in
 fact I remain fairly confused about it :(
 You might try /global/media/flowers.jpg or ./global/media/flowers.jpg
 if you need to go up a directory then ../ works fine.

 -Original Message-
 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com on behalf
 of oneworld95
 Sent: Wed 29/10/2008 19:56
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: [flexcoders] Invalid Embed directive

 Hi. I've got a Style tag with the following style in it,

 Application {
 background-image: Embed(source=global/media/flowers.jpg);
 }

 I keep getting the Invalid Embed directive in stylesheet - can't
 resolve source. I know the image exists and is at that path. Help!

 __
 This communication is from Primal Pictures Ltd., a company registered in
 England and Wales with registration No. 02622298 and registered office: 4th
 Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK.
 VAT registration No. 648874577.

 This e-mail is confidential and may be privileged. It may be read, copied
 and used only by the intended recipient. If you have received it in error,
 please contact the sender immediately by return e-mail or by telephoning
 +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its
 contents to any person.
 This email has been scanned for Primal Pictures by the MessageLabs Email
 Security System.
 __
   This message is private and confidential. If you have received it in
 error, please notify the sender and remove it from your system.

 This message is private and confidential. If you have received it in error,
 please notify the sender and remove it from your system.
  



Re: [flexcoders] Flex Workspace Preferences

2008-10-13 Thread Douglas Knudsen
Maybe one way...open up your current workspace, choose File  Switch
Workplace  Other.  In the dialog you will see Copy Settings, toggle it open
and check things off.  Set and open your new workspace.

HTH

DK


On Mon, Oct 13, 2008 at 12:37 PM, Amy [EMAIL PROTECTED] wrote:

   Hi, all;

 Is there a way to copy preferences from one workspace to another? For
 example, things like my help contexts I always want to be the same
 across projects. But it's aggravating that each time I create a new
 project I have to do all this setup again.

 Thanks;

 Amy

  




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


Re: [flexcoders] Macros or templates in Builder / Eclipse?

2008-10-02 Thread Douglas Knudsen
Also cast your vote for https://bugs.adobe.com/jira/browse/FB-11842  a
request for templating support.  Currently the #2 most popular in FB
project.

DK

On Thu, Oct 2, 2008 at 3:20 AM, Gregor Kiddie [EMAIL PROTECTED] wrote:

I use snippits which have a form of templates. Normally use it for
 making getters / setters, singleton boilerplate, etc.

 You get it as part of the Web Standard Tools (WST) plugin for eclipse.



 Gk.

 *Gregor Kiddie*
 Senior Developer
 *INPS*

 Tel:   01382 564343

 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ

 Registered Number: 1788577

 Registered in the UK

 Visit our Internet Web site at www.inps.co.uk

 The information in this internet email is confidential and is intended
 solely for the addressee. Access, copying or re-use of information in it by
 anyone else is not authorised. Any views or opinions presented are solely
 those of the author and do not necessarily represent those of INPS or any of
 its affiliates. If you are not the intended recipient please contact
 [EMAIL PROTECTED]
   --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Josh McDonald
 *Sent:* 02 October 2008 00:39
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Macros or templates in Builder / Eclipse?



 Hey guys,

 Looking to cut down on the boring part of coding - the typing! Is there any
 good solutions / plugins for creating and using templates or macros in
 Builder / Eclipse? I know the Java Editor has templates, but I want to use
 them in ActionScript.

 Any suggestions? I've looked at Textexpander, it seems incredibly limited.

 -Josh

 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 http://flex.joshmcdonald.info/

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]

  




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


Re: [flexcoders] User credentials

2008-09-30 Thread Douglas Knudsen
Might want to share what context you are posing here.  Do you mean J2EE
credentials?  OD credentials?  Cookie based?

DK

On Tue, Sep 30, 2008 at 4:06 PM, markgoldin_2000
[EMAIL PROTECTED]wrote:

   Is it possible to get user credentials or at least a user name within
 Flex application?

 Thanks

  




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


Re: [flexcoders] RE: Alex going offline for a while - and Gordon too!

2008-09-19 Thread Douglas Knudsen
please post your emergency contact information here just in case.

:)

DK

On Fri, Sep 19, 2008 at 8:52 AM, Josh McDonald [EMAIL PROTECTED] wrote:

   *looks around guiltily*

 On Fri, Sep 19, 2008 at 10:28 AM, Matt Chotin [EMAIL PROTECTED] wrote:

 I'm around, but I only send stern notes to people and don't read most of
 what you guys write to each other anymore :-)





 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 http://flex.joshmcdonald.info/

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]
  




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


Re: [flexcoders] Re: Grrrr. Security Sandbox

2008-09-19 Thread Douglas Knudsen
read Alex's blog :)

ok, this is sandbox related, seriously, try googling on 'ExternalInterface
security sandbox' you will see much fast.

http://www.adobetutorialz.com/articles/1785/1/Local-Sandboxes  some hlep
here looks good too

DK

On Fri, Sep 19, 2008 at 10:01 AM, George [EMAIL PROTECTED]wrote:

   That makes absolutely no difference... thanks. Adobe???


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Sherif
 Abdou [EMAIL PROTECTED] wrote:
 
  Call it like this C:\Vadex\VadexFlex\bin-debug\VadexFlex.html
 Instead of file:///
  --

  




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


Re: [flexcoders] Re: Flex Project Struture

2008-09-17 Thread Douglas Knudsen
these .files suck for distributed teams though, unless you force all your
devs to use the same exact resource setup, something I'm loathed to here any
manager tell me  :)

use svn:ignore to ignore files and not include them in your SVN repos.  In
Subclipse, right click the file or dir and choose Team  add to svn:ignore.
Of course you can't have already added this file or dir to SVN.  If you have
already added it and want to pull it out and ignore it, you can copy it
elsewhere, delete, commit, copy back, then ignore it.

One trick I picked up recently from a co-worker was to rename these files
and add them to SVN, this way they can be used as templates.

eg rename .actionScriptProperties to .actionscriptProperties_Template.


DK

On Wed, Sep 17, 2008 at 7:03 PM, Josh McDonald [EMAIL PROTECTED] wrote:

   FWIW, I usually include .actionscriptPropertis in SVN, as it holds
 compiler flags that are often required to build.

 -J

 On Thu, Sep 18, 2008 at 8:05 AM, flexaustin [EMAIL PROTECTED] wrote:

 My thought exactly.  Guess I will give it whirl.

 THanks!

 --- In flexcoders@yahoogroups.com, Howard Fore [EMAIL PROTECTED] wrote:
 
  Have you tried making a linked folder in the src directory? File  New 
  Folder  Advanced  Link to Folder in file system. This creates an
 alias in
  your project to that folder. Haven't tried it myself, not sure how the
  compiler is going to like it.
 
  The other option would be to put the alias in the operating system,
 using
  junctions in Windows or aliases/symlinks in OS X/Linux. I would
 expect the
  compiler to have no issues with those as the operating system should
 make
  them appear as real directories to the program.
 
  On Wed, Sep 17, 2008 at 3:51 PM, flexaustin [EMAIL PROTECTED] wrote:
 
   What about sharing components. For instance, we have a project just
   completed with several as components. We want to use some of those
   same AS components, but don't want to copy them to our new projects
   directory since when changes are made in the AS components for the old
   project we need them to show up in our new project.  So we want to
   point to the same library or folder for both applications.
  
 
 
 
  --
  Howard Fore, [EMAIL PROTECTED]
  The universe tends toward maximum irony. Don't push it. - Jeff Atwood
 



 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 http://flex.joshmcdonald.info/

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]
  




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


Re: [flexcoders] ClassReference in StyleManager loaded SWFs

2008-09-11 Thread Douglas Knudsen
is your .css in the source tree or elsewhere?  There are some issues with
this.  I'm going to guess your css file is outside the source tree.

DK


On Thu, Sep 11, 2008 at 6:50 AM, Tom Chiverton [EMAIL PROTECTED]
 wrote:

   If I have
 Button
 {
 skin:ClassReference( foo.bar.baz.ButtonSkin );
 }
 in a .css file compiled to a .SWF and then loaded by StyleManager, I get
 compile time errors saying Flex Builder can't find the class.
 Putting the same CSS in an mx:Style block instead so it is always loaded
 is
 fine however.

 How can I tell Flex Builder to add the class when it compiles the CSS (or
 just
 ignore the error) ?

 --
 Tom Chiverton

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list
 of members is available for inspection at the registered office. Any
 reference to a partner in relation to Halliwells LLP means a member of
 Halliwells LLP. Regulated by The Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged. If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents. If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.com.
  




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


Re: [flexcoders] DTOs methods?

2008-09-09 Thread Douglas Knudsen
You can use the [Transient] metadata on members of your AS object that need
not map back to the serevr side of the world.

here's to a attempt to link to livedocs
http://livedocs.adobe.com/flex/3/html/metadata_3.html#172007

DK

On Tue, Sep 9, 2008 at 5:45 AM, nwebb [EMAIL PROTECTED] wrote:

   Hi, I have a Data Transfer Object which I use to encapsulate values from
 a search-filter in my application - i.e. the user can filter search-results
 by project, employee, month, year etc. I am using remoting and passing this
 as a typed object to ColdFusion.

 *The short version of my question*: I want to add a method to my
 FilterDto, allowing me to reset (some) properties, is it okay to add such a
 method (will CF simply ignore it), or should DTOs always be devoid of
 methods. Can adding a method cause problems when remoting?

 --

 *( ... yes I know I could use binding but...):*

 When the user presses  Search I call a method which updates the filterDto
 with the current values of the filter-components.

 I didn't want to use binding here, simply for performance reasons, as this
 is fairly simple, so rather than bind each visual component to the
 corresponding Dto property I just call a method which updates the
 properties.

 Now I have an either-or situation - if the user searches by OrderId I need
 to clear/reset the other properties, else if they search by any other
 property they can't also search by a specific OrderId, so I could do with a
 method (I can't just instantiate a new instance of the DTO as that will
 clear/reset ALL properties)

 This functionality feels like it should be a method that belongs in the DTO
 class. Is it okay to create such methods in DTOs?
  




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


Re: [flexcoders] package structure for different programming languages

2008-09-07 Thread Douglas Knudsen
which I find interesting.  Early days showed folks mixing the two, I did in
fact on  couple a projects.  Perter Marin of Adobe even had a special plugin
for eclipse that made it possible to mix the Flex and J2EE natures in one
project.  This is wrapped into FB 3 now.  What was seen then is to have a
Flex *source* tree under flexsrc and Java source under *src*.  Having this
in one project allowed you to have your J2EE container running in Eclipse
and a Flex compile would build the swf and the run button would execute the
swf in the same J2EE container.  This also allowed for easy war or ear
building.

Why is it suggested now to separate these?  Do JSP folks really use a
project for the JSPs, and probably some HTML, and another project for
beans/EJBs?  Do PHP folks seperate the PHP code into one project and the
HTML in another?  Certainly Flex/AS is a compiled player in this arean, but
it si still just the UI.

Just stirring the pot for discussion on why this separation is recomended.

DK

On Sat, Sep 6, 2008 at 5:46 PM, Doug McCune [EMAIL PROTECTED] wrote:

   ditto, same structure but different actual locations on the drive.
 Usually when I have a java project and flex project that have mirrored
 classes (usually when using remoting), that means that I have one Flex
 project and one Java project, which exist as separate projects within
 Eclipse. I never have java source classes in my Flex projects and never have
 AS classes within my java projects.

 Doug

 On Sat, Sep 6, 2008 at 2:43 PM, Ralf Bokelberg [EMAIL PROTECTED]wrote:

   completely separated, but the packages can have the same structure/name
 r.


 On Sat, Sep 6, 2008 at 11:37 PM, ibid049 [EMAIL 
 PROTECTED]ibid49%40gmail.com
 wrote:
  Just an organizational question.
 
  If you have a client-server app in flex, and you have your domain-
  specific package structure, e.g. com.yahoo.groups.tech.etc., Do you
  put your AS classes within the same structure as your server-side
  classes, whatever language they're written in, or do you keep you
  language-specific classes completely separate in duplicated
  com.yahoo.groups.tech folder structures elsewhere on the hard drive?
 
  I imagine this is a preference thing, but I wanted to know how
  everyone else usually does it, specifically for ease of development
  and setting up Flex Builder.


  




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


Re: [flexcoders] Reg:Data Tranfer

2008-09-05 Thread Douglas Knudsen
check the cowboy's app at  http://www.jamesward.com/census/ for some
comparisons
Besides speed, consider other angles as well. Interop, dev time, etc

DK

On Fri, Sep 5, 2008 at 10:22 AM, raj balaji [EMAIL PROTECTED] wrote:


  Okay no issues...

 - Original Message 
 From: Tom Chiverton [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Friday, 5 September, 2008 7:05:08 PM
 Subject: Re: [flexcoders] Reg:Data Tranfer

 On Friday 05 Sep 2008, raj balaji wrote:
  according to the Webserver it will be differ. If we use webORB technology
  RemoteObject will be better., else httpService when compare to
 HTTPService
  RemoteObject will be faster.

 The OP mentions Java, so BlazeDS is the obvious answer here.

 --
 Tom Chiverton

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A
 list of members is available for inspection at the registered office. Any
 reference to a partner in relation to Halliwells LLP means a member of
 Halliwells LLP.  Regulated by The Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents.  If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.com.

 

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




 --
 Unlimited freedom, unlimited storage. Get it 
 nowhttp://in.rd.yahoo.com/tagline_mail_2/*http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
 




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


Re: [flexcoders] noob question, css to swf, stylemanager

2008-09-05 Thread Douglas Knudsen
you can listen for failures, eh?

//load styles
var e:IEventDispatcher;
e = StyleManager.loadStyleDeclarations('my.swf',true);
e.addEventListener(StyleEvent.COMPLETE, onUpdateStylesComplete);
e.addEventListener(StyleEvent.ERROR, onStyleEventError );


DK

On Fri, Sep 5, 2008 at 11:25 AM, Sherif Abdou [EMAIL PROTECTED] wrote:

Your not actually calling it are you? cause I tested it out and It
 works fine,

 ?xml version=1.0 encoding=utf-8?

 mx:Application
 xmlns:mx=library:adobe/flex/halo

 xmlns=http://ns.adobe.com/mxml/2009;

 xmlns:ns=library:adobe/flex/gumbo xmlns:local=* creationComplete=
 initApp()

 Script

 ![CDATA[

 private function initApp():void

 {

 StyleManager.loadStyleDeclarations( 't.swf',true ,true);

 }

 ]]

 /Script

 /mx:Application
 --
 Sherif Abdou
 http://VadexFX.com
 http://Sherifabdou.com

 - Original Message -
 *From:* dsds99 [EMAIL PROTECTED]
 *To:* flexcoders@yahoogroups.com
 *Sent:* Friday, September 05, 2008 8:34 AM
 *Subject:* [flexcoders] noob question, css to swf, stylemanager

  by accident I posted on flexcomponents*

 I saw a tutorial online, yet I can't make it work...@@

 My css:
 /** ChangeBG.css **/
 Application{
 background-alpha:0.1;
 background-image: Embed(source=water.jpg);
 }

 All my files are in the src package and then I just run the option
 Compile css to swf. I do see that generated swf in my bin

 So, now in my creationComplete function. I have
 StyleManager.loadStyleDeclarations( 'ChangeBG.swf',true ,true);

 But my background never updates.

 @@

  




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


Re: [flexcoders] Need help with Logout and then Logging back into Flex App

2008-09-05 Thread Douglas Knudsen
You could just reload your app, 'tis the short sweet easy way...go ahead
mash that Easy Button!
Flex can load a new URL in the browser, so just load itself.

DK

On Fri, Sep 5, 2008 at 2:06 PM, scottyale2008 [EMAIL PROTECTED]wrote:

   After each of the different forms have been opened (via the button
 toolbar), the forms have been initialized and created. I recently
 added a logout button which just takes you back to the login form. If
 you login as a different user, some of the charts and forms don't
 update because they were created via creationComplete()

 At the main section of the Flex app (where the login page is), is
 there a way to reset all creationComplete's so the app will recreate
 the pages when they are re-selected?
 I tried invalidating all the properties and displaylists.

 If there isn't a quick and easy way I could do one of the following:

 - The logout page takes them to a screen that says Press the Browser
 Refresh Button to log back in.
 - The logout link does the Browser Refresh automatically. Is this
 an option, and if so what is the command to reload the flex app within
 flex?

 What's is best practices and/or best approach?

  




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


Re: [flexcoders] Horrible performance problems...Need some ideas on improving

2008-09-04 Thread Douglas Knudsen
These markers are graphic?
http://en.wikipedia.org/wiki/Restriction_fragment_length_polymorphism
If so, couldn't you use the drawing API maybe in a ItemRenderer for a List?
Much lighter than a DG and certainly far lighter then ADG.

DK

On Thu, Sep 4, 2008 at 12:21 PM, Adrian Williams
[EMAIL PROTECTED]wrote:

Hi Tom,

 Under normal circumstances, I would tend to agree...however, it's our
 users that are demanding the data...in a nutshell, we are displaying genetic
 DNA data and the columns are pertinent to the work our users are doing.  The
 100 columns are genetic markers and the row is a test sample with the
 information for each genetic marker.

 Adrian

 Tom Chiverton wrote:

 On Thursday 04 Sep 2008, Adrian Williams wrote:


  My ADG has approx. 100 columns with approx. 200 rows,


  I wouldn't consider a 100 row DataGrid a very good user experience, in the
 general case, so maybe you could redo the GUI.
 Probably not the quickest fix :-)



   




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


Re: [flexcoders] foreign keys in value objects

2008-09-03 Thread Douglas Knudsen
I suppose it depends.  Bet you never heard that answer before!  IMHO, if you
are just displaying data in a DG or something, just use some XML and go for
it.  If you need to actually interact with the data, use the VOs in a
architected model.  Suppose your use case is that a user needs to add a
department to a employee, code would be something like
myEmployeeInstance.department = chosenDepartment where chosenDepartment is a
Department instance.  Your objects on the server would be modeled this way,
model them in your RIA this way too, less work.

You may not be doing anythign wrong with your apporach, you know your use
case best, eh?  YMMV greatly here.  It may be that having the departmentID
and a lookup table is all you need really.  But what about next week when
suddenly a employee needs to be in two departments?  I used to work with
PeopleSoft data a lot, trust me rules get broken all the time :)  Or maybe
next month the client wants to see more info about the department?

I will note that you do not need to query for the department on each
employee interation in your server code.  Just make your SQL return the all
the (flat) data properly and while interating over it create both the
Employee instance and the Department instance.

DK

On Tue, Sep 2, 2008 at 2:23 PM, Derrick Anderson 
[EMAIL PROTECTED] wrote:

   well it has a department ID, not another object.  If I'm bringing back
 1000 employee records for my datagrid, I already have to loop over that
 query on the backend to create the array of 1000 VOs.  I don't want to have
 to query to get a Department VO for each iteration as well, when all I need
 is that name and it already exists in my BO by way of a lookup table.

 I store these lookups in my business logic and use them in comboboxes and
 such (this collection populates the Department dropdown on the Employee).
 usually i only bring them back with ID and Name.  I want to use these
 collections to get the name for an ID at any time I need it.

 The list of departments is a list of simple objects, I didn't see the need
 to create VO's for such things.  However I'm obviously doing something
 wrong.  I imagined I would have to write renderers for the datagrid and that
 would be easy enough, but that's not the only place I display data from
 lookup tables.  In Labels, Tab Headers, all sorts of places need to get the
 department name from the department ID in the employee VO (for one example).

 Should I just bring the department name back in the employee VO?  I'd
 rather not, it doesn't seem right- but if that's the way to do it I will.

 D.

 On Tue, Sep 2, 2008 at 10:34 AM, Douglas Knudsen [EMAIL PROTECTED]
  wrote:

   So, your Employee class 'has a' Department, eh?  Smells of
 composition.  Employee should maybe have a
 public var department:Department;
 inside it.  YMMV though, if you really need your VO to be flat for say
 easy DG only use or some such.

 DK


 On Tue, Sep 2, 2008 at 5:01 AM, Derrick Anderson 
 [EMAIL PROTECTED] wrote:

   Hi, I've been going thru my app now that I know the magic of VO's and
 converting most things to value objects- loading my VO's into datagrids,
 forms, all is great.

 I do have 1 question though, let's say I have a 'employee' value object
 that has the property 'departmentID'.  Is it common practice to also include
 the 'departmentName' in the value object?  I already have a collection of
 departments (departmentID,departmentName) value objects, I want to be able
 to at any point find the corresponding department record so I can display
 the name.  Keeping it in the VO seems like a hack though, sounds like it
 would leave the application open to display sync issues (name in department
 vo is updated but the customer vo is not).  I know I can write a renderer
 for the datagrids to show the related values from other collections, but
 there are other display situations too and I don't want this getting out of
 hand.

 So I guess the question is, what's the best way to handle foreign key
 values when dealing with VO's?  Include the related values in the VO, or
 look them up each time?

 thanks,
 d.




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


  




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


Re: [flexcoders] foreign keys in value objects

2008-09-02 Thread Douglas Knudsen
So, your Employee class 'has a' Department, eh?  Smells of composition.
Employee should maybe have a
public var department:Department;
inside it.  YMMV though, if you really need your VO to be flat for say easy
DG only use or some such.

DK

On Tue, Sep 2, 2008 at 5:01 AM, Derrick Anderson 
[EMAIL PROTECTED] wrote:

   Hi, I've been going thru my app now that I know the magic of VO's and
 converting most things to value objects- loading my VO's into datagrids,
 forms, all is great.

 I do have 1 question though, let's say I have a 'employee' value object
 that has the property 'departmentID'.  Is it common practice to also include
 the 'departmentName' in the value object?  I already have a collection of
 departments (departmentID,departmentName) value objects, I want to be able
 to at any point find the corresponding department record so I can display
 the name.  Keeping it in the VO seems like a hack though, sounds like it
 would leave the application open to display sync issues (name in department
 vo is updated but the customer vo is not).  I know I can write a renderer
 for the datagrids to show the related values from other collections, but
 there are other display situations too and I don't want this getting out of
 hand.

 So I guess the question is, what's the best way to handle foreign key
 values when dealing with VO's?  Include the related values in the VO, or
 look them up each time?

 thanks,
 d.
  




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


Re: [flexcoders] Question about Best Practices for Applications with many views using Cairngorm

2008-09-01 Thread Douglas Knudsen
I know this thread is being expounded upon, but thought I'd address your
post directly.  I would question storing all your view states in a big phat
view stack and managing that via modellocator.  The idea is, at least how
I've been practicing it, is to use this viewstack that has its state managed
by the modellocator to manage the MAIN view state, and I'm not talking State
with a capital S here.  eg, login and main or something like login, module1,
module2, etc.  Each of these top level views represent the major view
sections in your app.  Each of these may have its own view stacks with
children having even more view stacks, however you need set it up.  These
main views would manage the state of each child stack, not the
modellocator.


DK

On Sun, Aug 31, 2008 at 2:19 PM, j301c [EMAIL PROTECTED] wrote:

   I am developing an application using the cairngorm framework. The
 following is a descripton of how I have been using cairngorm according
 to what I have gleemed from the documentation and from my own usage.
 The framework suggests that you use ViewStacks in combination with
 constants and variables that hold the selectedIndex of the viewstack,
 which are then bound to the ViewStack itself. When an application gets
 very large, with many views, nested views and the need for hybrid views
 that require complex combinations of viewstack indexes this becomes
 very hard to maintain and also to make neccesary changes. For instance,
 if a container changes its location in a viewstack, it is very
 dependant on the variables stored in other files which becomes a
 tedious process to change. Also, the framework doesn't handle very
 well when a view needs to be instantiated in different ways when it is
 presented to the user. If this is wrong please correct me, because I
 feel like there must be a better way. If anyone knows a better way to
 deal with many views (whether using cairngorm or some other solution)
 please let me know what that is. Thanks.

  




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


Re: [flexcoders] Re: Question about Best Practices for Applications with many views using Cairngorm

2008-09-01 Thread Douglas Knudsen
personally, I leave States to component level 'dynamic Flexi-magik' and use
Viewstacks for major view changes.  Viewstacks just seem more appropriate
for major view changes.  States I leave to component changes, eg a edit vs
view in a form or something like that.  IIRC, States actually are more
complicated in implementation too, in case that matters.  I just think the
intent of States was not application state, rather component state.

DK

On Mon, Sep 1, 2008 at 1:56 PM, j301c [EMAIL PROTECTED] wrote:

   I agree that states are probably a much better option than viewstacks
 because they are more dynamic. I probably will consider doing this as
 I move along for this reason. I guess I was just wondering if there
 was a better way than using constants in the modellocator to bind what
 state, or selected index, that a component is in. If I used states, am
 I correct in saying I would still need to have a static variable in the
 modellocator that each views state variable would have to bind to? I
 am thinking there must be a better way to decouple the view from the
 model in this instance. Thanks, I appreciate this great feedback.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Justin
 J. Moses [EMAIL PROTECTED] wrote:
 
  For your application, have you considered separating your views within
  states, and only populate them on the EnterState event? You could
  employ modules that load up on that event, rather than preloading them
  with components.
 
  The advantage of using states is that when your user comes back to
  opened states, they show themselves as they were left. Although the
  obvious caveat is the memory they take up (which you'd need to analyse
  in the Flex Profiler - assuming ur using Flex Builder 3 Pro).
 
  You can create the states dynamically, say when your user logs in, to
  load up the modules that type of user might need.
 

  




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


Re: [flexcoders] FlexBuilder FDT I don' git it....

2008-09-01 Thread Douglas Knudsen
With Eclipse you have complete control to close any windows you want open,
eh?  Funny you mentioned DW.  Flex Builder 1/1.5 was built on DW and it
totally sucked.  As I recall, most folks at the time switched to Eclipse
then already.

DK

On Mon, Sep 1, 2008 at 9:52 PM, Sherif Abdou [EMAIL PROTECTED] wrote:

Ya i agree. I also Hate the Eclipse IDE, it's like they are having a
 race to see how many Windows they could have. The Flex IDE would have been
 perfect if it had the look and feel of the Flash IDE or Dreamweaver CS4(The
 BEta one). I tried FlashDevelop and I don't think they support Debugging so
 that was out.
 --
 Sherif Abdou
 http://VadexFX.com
 http://Sherifabdou.com

 - Original Message -
 *From:* Alan [EMAIL PROTECTED]
 *To:* flexcoders@yahoogroups.com
 *Sent:* Monday, September 01, 2008 8:34 PM
 *Subject:* [flexcoders] FlexBuilder  FDT I don' git it

  So all the huff n puff goin' on, I've been playing with FDT and also
 googled about it - and found Jesse's blog post

 http://flashartofwar.com/2008/04/24/flexbuilder-3-vs-fdt-3/

 So far all I can gather is that FDT is just a different IDE for Flex.
 Does it just have more bells and whistles? Jesse mentioned in his
 post about templates and code hinting...

 That's the LAST thing I want.

 Hell, I try to code as much as possible in Textmate ( ill post about
 this ). I want to write my own code - not big brother writing it for
 me. Plus, for me, that's the best way to learn an API - by having to
 know the components and their respective utilization.

 I mean right...?

 Alan

  




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


Re: [flexcoders] Whitepaper and Webinar -- Please read the Scene7.com posts Objectively

2008-08-27 Thread Douglas Knudsen
 of Adobe
 solution providers or individual developers, in fact having such solutions
 available may make more possible to deliver on projects by not having to
 reinvent functionality.  It is what it is and there's no shortage of work,
 so let's get on with it.

 Jeff

 -Original Message-
 *From:* flexcoders@yahoogroups.com [mailto:flexcoders@ flexcoders@
 yahoogroups.com] *On Behalf Of *Robert Thompson
 *Sent:* Wednesday, August 27, 2008 11:05 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Whitepaper and Webinar -- Please read the
 Scene7.com posts Objectively

 There is no harm meant in my postings.
 I'm posting so we are all *aware* of what may be going on with Scene7.com
 and it's implications to the FLEX and Flash CS3 development community.

 I'm a freelance developer, not with a large corporation.

 The Whitepaper is available on www.Scene7.com and I highly recommend
 posting any concerns and questions to the e-mail address of the CEO in
 there.

 I also recommend attending the Webinar on the subject tomorrow (I believe
 it's Thursday).

 -r




  




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


Re: [flexcoders] How to Create an object of Custom component dynamically / at Runtime / on-fly

2008-08-25 Thread Douglas Knudsen
var myLayout001 = new MyLayout001();

DK

On Mon, Aug 25, 2008 at 9:14 AM, morpankhy [EMAIL PROTECTED] wrote:

   I have some custom components. I want to make their objects at
 runtime. How to do that in flex ?

 Exa. MyLayout001.mxml, MyLayout002.mxml, MyLayout003.mxml,
 MyLayout004.mxml and MyLayout005.mxml and so on. ( lots of custom
 classes I have )

 Now on click of a button ( as per users' choice ) I want to create
 the corresponding object of above components

 How to do that ?

  




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


Re: [flexcoders] Re: XMLList to ArrayCollection

2008-08-22 Thread Douglas Knudsen
ugh, you can access the data easily with e4x, eh?  Unless you need to create
VOs of the data, why not just leave it?

DK

On Thu, Aug 21, 2008 at 11:59 PM, sdl1326 [EMAIL PROTECTED] wrote:

   Honestly, I do not know as I have not worked with XMLListCollections.
 I just need to be able to access the data easily and have only used
 Array Collections. It looks like an XMLListCollection might work. Is
 there a benefit of using one over the other?

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Gordon
 Smith [EMAIL PROTECTED] wrote:
 
  Could you use an XMLListCollection instead of an ArrayCollection?
 
 
 
  Gordon Smith
 
  Adobe Flex SDK Team
 
 
 
  
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
  Behalf Of Tracy Spratt
  Sent: Thursday, August 21, 2008 4:52 PM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: RE: [flexcoders] XMLList to ArrayCollection
 
 
 
  Sure, but you have to do it manually. Loop over the nodes, then use the
  attributes() to loop over the attributes. If I recall correctly,
  attribute[n] will give you the attr value, and attribute[n].name() will
  give you the attr name. XML.name() (or localName()) will give you the
  name of the node.
 
 
 
  Tracy
 
 
 
  
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
  Behalf Of sdl1326
  Sent: Thursday, August 21, 2008 5:56 PM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] XMLList to ArrayCollection
 
 
 
  I am retrieving the following xml via httpsService with the result
  format being 'e4x'.
 
  projects
  project date=08/01/08 description=Development hours=4
  user=AAQ3/project
  project date=08/01/08 description=Development hours=3
  user=AAQ4/project
  project date=08/04/08 description=Development hours=4
  user=AAQ3/project
  project date=08/04/08 description=Development hours=3
  user=BBQ4/project
  project date=08/05/08 description=Refinement hours=6
  user=BBQ3/project
  project date=08/06/08 description=Refinement hours=3
  user=CCQ3/project
  project date=08/07/08 description=Development hours=2
  user=CCQ3/project
  project date=08/08/08 description=Development hours=2
  user=CCQ3/project
  /projects
 
  What's the best way to convert an XMLList to an ArrayCollection? Is it
  possible to do so without knowing the names of the attributes?
 
  Thanks for the assistance.
 

  




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


Re: [flexcoders] Re: Vote or loose! MXML diff sucks, let's change it!

2008-08-22 Thread Douglas Knudsen
Is it not just using the Eclipse tools for compare?

DK
On Fri, Aug 22, 2008 at 11:30 AM, Dmitri Girski [EMAIL PROTECTED] wrote:

   C'mon, guys! I don't believe that I am the only one who uses Compare
 tool in Flex Builder.
 There was even an article in Cosmo that it's becoming popular among
 AIR developers to use Compare tool before checking their cool stuff
 into SVN :)

 http://bugs.adobe.com/jira/browse/FB-12492

 Cheers,
 Dmitri.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Dmitri
 Girski [EMAIL PROTECTED] wrote:
 
  Hi guys,
 
  Internal diff tool in FB3 sucks big time. It worked in FB2, but
  someone decided that this thing is too good for this world and changed
  it. This ugly proportional font and this terrible performance are just
  unbearable!
 
  Single diff on 1000 lines files takes around 50 seconds. Multiply it
  by 10-20 per day and this is a stolen time from you.
 
  It is time to change this. Here is the place to vote for this bug:
 
  http://bugs.adobe.com/jira/browse/FB-12492
 
 
  Sweet Adobe, please have a mercy on us all and give us back the
  simple, no-gimmick diff, which is just works.
 
 
 
  Cheers,
  Dmitri.
 
 
  --
  http://mitek.id.au/blog
 

  




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


Re: [flexcoders] Re: Vote or loose! MXML diff sucks, let's change it!

2008-08-22 Thread Douglas Knudsen
https://bugs.adobe.com/jira/browse/FB-11842  I'd guess that one...hot number
of votes that one, cast my ballot on this a way back.  No freaking hanging
chads on my ballot either, just a strong forceful 'hell yeah' click.

DK

On Fri, Aug 22, 2008 at 8:10 PM, Howard Fore [EMAIL PROTECTED] wrote:

   Kelly, what's the bug number on that?

 On Fri, Aug 22, 2008 at 6:45 PM, Kelly [EMAIL PROTECTED] wrote:

  Yea, I wish they would bring Subclipse up to par with Tortoise.

 I work on Linux so there is no Tortoise either.

 I will vote for your bug if you will vote for the Templates enhancement.

 Not having templates pisses me off continuously.




 --
 Howard Fore, [EMAIL PROTECTED]
 The universe tends toward maximum irony. Don't push it. - Jeff Atwood
  




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


Re: [flexcoders] Flex Builder 3.0.1 and Eclipse 3.4 classic not working together

2008-08-19 Thread Douglas Knudsen
http://www.adobe.com/devnet/flex/articles/sdk3_fb301.html

3.0.1 FB is supposed to support Eclipse 3.4 now.  FWIW, I too saw the
required compatibility notices from Eclipse 3.4 that bombed out.  I was
trying to install the plugin by pointing Eclipse 3.4 to the *C:\Program
Files\Adobe\Flex Builder 3 Plug-in *directory ala external extension.  Have
the Ganymede all in one JEE package.

DK

On Tue, Aug 19, 2008 at 11:13 AM, Howard Fore [EMAIL PROTECTED] wrote:

   Is FB supposed to work with 3.4? I thought it was 3.2/3.3 only.

 On Tue, Aug 19, 2008 at 11:08 AM, stephen.smithstone 
 [EMAIL PROTECTED] wrote:

 I downloaded a fresh copy of classic 3.4 and the new FB 3.0.1 from the
 adobe trail page, the install was successful, how ever there is no
 flex development , debug , profiler perspectives available in the menu
 any one got this to work in the error log it refers to a
 compatibleRequired to the osgi.bundle , but im not sure where to get
 that from any help will be good cheers



 --
 Howard Fore, [EMAIL PROTECTED]
 The universe tends toward maximum irony. Don't push it. - Jeff Atwood
  




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


Re: [flexcoders] Flex Builder 3.0.1 and Eclipse 3.4 classic not working together

2008-08-19 Thread Douglas Knudsen
jazzamin!  I have not tested all functionality yet, I do have work to do
after all, but here is how to get FB 3.0.1 into Eclipse 3.4 Ganymede.  These
are steps using what used to be called a extension point to install plugins
externally, a nicer way to enable easier Eclispe upgrades.

1) Help  Software Updates
2) Available Software
3) Add SIte  Local
4) point to flex builder plugin install
folder/com.adobe.flexbuilder.update.site
5) In the install dialog following this, you should see 4 features available
for installation, choose them all
6) mash Install and accept the agreements and KACHOW!

note that I am using Vista and have no time to check this under Ubuntu and
also I have no sour Apples around :)

DK

On Tue, Aug 19, 2008 at 11:38 AM, Douglas Knudsen
[EMAIL PROTECTED]wrote:

 http://www.adobe.com/devnet/flex/articles/sdk3_fb301.html

 3.0.1 FB is supposed to support Eclipse 3.4 now.  FWIW, I too saw the
 required compatibility notices from Eclipse 3.4 that bombed out.  I was
 trying to install the plugin by pointing Eclipse 3.4 to the *C:\Program
 Files\Adobe\Flex Builder 3 Plug-in *directory ala external extension.
 Have the Ganymede all in one JEE package.

 DK


 On Tue, Aug 19, 2008 at 11:13 AM, Howard Fore [EMAIL PROTECTED]wrote:

   Is FB supposed to work with 3.4? I thought it was 3.2/3.3 only.

 On Tue, Aug 19, 2008 at 11:08 AM, stephen.smithstone 
 [EMAIL PROTECTED] wrote:

 I downloaded a fresh copy of classic 3.4 and the new FB 3.0.1 from the
 adobe trail page, the install was successful, how ever there is no
 flex development , debug , profiler perspectives available in the menu
 any one got this to work in the error log it refers to a
 compatibleRequired to the osgi.bundle , but im not sure where to get
 that from any help will be good cheers



 --
 Howard Fore, [EMAIL PROTECTED]
 The universe tends toward maximum irony. Don't push it. - Jeff Atwood
  




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




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


Re: [flexcoders] Bi-directional binding

2008-08-18 Thread Douglas Knudsen
you can use the Binding tag to bind 'the other way'.  I'd suggest using say
the events though, change maybe, double binding can be a bit well awkward
and not very 'MVC', eh?

I do believe this topic has been brought up here too, try searching the
archives.


DK

On Mon, Aug 18, 2008 at 8:27 PM, Howard Fore [EMAIL PROTECTED] wrote:

   I'd create a function that fires on the KeyboardEvent for the textfield
 (do you mean TextInput?) and pass the event to the function. The function
 can get the value of the TextInput from the event.currentTarget structure
 and set the arr variable (which probably will be something other than an
 ArrayCollection) accordingly.

 On Mon, Aug 18, 2008 at 6:59 PM, Durres76 [EMAIL PROTECTED] wrote:

 hi, is this possible.
 var arr : ArrayCollection;

 textfield text='{arr.someProperty}'

 I know the textfield text will change everytime the ArrayCollection
 updates, but can the ArrayCollection update when a user types in the
 textfield. essentially binding the array propety to the textfield value



 --
 Howard Fore, [EMAIL PROTECTED]
 The universe tends toward maximum irony. Don't push it. - Jeff Atwood
  




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


Re: [flexcoders] Re: Flex is time consuming

2008-08-18 Thread Douglas Knudsen
I'd assume the DTD gets cached in Eclipse though.  It does in other Eclipse
tools at least.


DK

On Mon, Aug 18, 2008 at 8:25 PM, Guy Morton [EMAIL PROTECTED] wrote:

   Ah. That would make sense.

 On 19/08/2008, at 10:13 AM, Howard Fore wrote:


 Maybe it's using the URL in the xmlns attribute to get a DTD?

 On Mon, Aug 18, 2008 at 5:33 PM, Guy Morton [EMAIL PROTECTED] wrote:

 In my experience, Flex sometimes takes forever to compile when I'm on a
 lousy network. I've always wondered if it was due to it doing some http
 connections or DNS lookups, for reasons unknown (network licence checking
 perhaps?).
 __,_._,__



 --
 Howard Fore, [EMAIL PROTECTED]
 The universe tends toward maximum irony. Don't push it. - Jeff Atwood


  




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


Re: [flexcoders] Headless compilation with AdvancedDataGrid

2008-08-17 Thread Douglas Knudsen
Use Ant.  Some examples are in the docs.

DK



On 8/17/08, Sebastien ARBOGAST [EMAIL PROTECTED] wrote:
 I have a Flex Builder Pro license and I'm using it to develop an application
 using AdvancedDataGrid component. When I build my application in Flex
 Builder, everything works fine. But now I'm trying to setup a headless build
 script for continuous integration using mxmlc.
 How can I build my application with mxmlc outside of Flex Builder while
 using AdvancedDataGrid?

 --
 Sébastien Arbogast

 http://sebastien-arbogast.com


-- 
Sent from Gmail for mobile | mobile.google.com

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


Re: [flexcoders] Save Flex Projects

2008-08-11 Thread Douglas Knudsen
well, seems a 'professional developer' would certainly use a SCM tool  :)
All jests aside, you can export a project via the File  Export menu item.
Choose Flex Builder  Flex Project Archive in the Export dialog.  This will
make a zip file you, or whomever, can use the import tool to re-create
later.

side note: you can close a project in the Navigator.  This will remove it
from the current projects list freeing up memory and such, basically a
closed project is ignored.

DK

On Mon, Aug 11, 2008 at 11:19 AM, Shaq [EMAIL PROTECTED] wrote:

   Is there a way to save Flex projects? When the project is deleted
 from the Flex Navigator menu it seems as though you have to create a
 new Flex project to work with a previous project.

 Is there a way to save the whole project like VS .sln or Delphi .dpr?

 Thanks in advance.

  




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


Re: [flexcoders] Re: Can we subclass Application yet?

2008-08-05 Thread Douglas Knudsen
looks like the same approach for other 'templating' comps as seen on Peter
Ent's blog.

might run into other issues such as
http://bugs.adobe.com/jira/browse/SDK-15107  ???

DK

On Tue, Aug 5, 2008 at 11:55 PM, Alex Harui [EMAIL PROTECTED] wrote:

This pattern worked for me:

  PanelTemplate.mxml -
 ?xml version=1.0 encoding=utf-8?
 mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; width=200
 height=200 initialize=addNewChildren() 
 mx:Metadata
 [DefaultProperty(newChildren)]
 /mx:Metadata
 mx:Script
 ![CDATA[

  public var newChildren:Array;

  private function addNewChildren():void
  {
  if (!newChildren)
   return;

  for (var i:int = 0; i  newChildren.length; i++)
  {
   addChildAt(newChildren[i], i + 1);
  }
  }

 ]]
 /mx:Script
 mx:Button label=default top /
 mx:Button label=default bottom /
 /mx:Panel
 - test.mxml -

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=vertical xmlns:local=* 
  mx:TextInput /
  local:PanelTemplate
  mx:CheckBox label=pick me /
  mx:TextArea /
  mx:DateField /
  mx:NumericStepper /
  /local:PanelTemplate
 /mx:Application

  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Josh McDonald
 *Sent:* Tuesday, August 05, 2008 6:56 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Can we subclass Application yet?

   Alex - how can you use DefaultProperty for this? Doesn't the compiler
 stop you from using a default property on MXML root elements?

 -Josh

 On Fri, Aug 1, 2008 at 3:18 AM, Alex Harui [EMAIL PROTECTED] wrote:

  So you can use the defaultProperty trick, but I'd just subclass in AS
 and add the toolbar there.  Should be less painful.



 I don't answer chart questions.  Gotta have limits ;-)



 Hopefully one of the chart engineers will respond.






 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]

  




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


Re: [flexcoders] mx:WebService compilation - what's the secret sauce?

2008-08-05 Thread Douglas Knudsen
Try out the web service code gen tool in FB under Data  Import Web Service
It creates a butt load of code using the low level schtuff, might help here.

DK

On Wed, Aug 6, 2008 at 12:09 AM, Josh McDonald [EMAIL PROTECTED] wrote:

   Nothing in the WebService hierarchy includes the [DefaultProperty]
 metadata, mxml.Operation does not implement IMXMLObject or extend
 UIComponent, and I can't see anywhere how the compiler makes the leap from
 mx:operation (lowercase o) to the mx.rpc.soap.mxml.Operation class. Is
 it in some sort of manifest file?

 Is it hard-coded into the compiler, or is there another way to specify
 these things that I'm not aware of? Is it hard-coded to look for
 IMXMLSupport? Is there any actual documentation for IMXMLSupport?

 -Josh


 On Wed, Aug 6, 2008 at 1:45 PM, Alex Harui [EMAIL PROTECTED] wrote:

  mx:WebService is defined in the RPC.SWC manifest as
 mx.rpc.soap.mxml.WebService, which implements IMXMLObject

 mx.rpc.soap.mxml.WebService has a default property which is a map of
 mx:rpx.soap.mxml.Operation objects

 IMXMLObjects have an initialized() method

  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Josh McDonald
 *Sent:* Tuesday, August 05, 2008 8:06 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] mx:WebService compilation - what's the secret
 sauce?

   A few questions -

 How does the compiler make the leap from this:

 mx:WebService id=service
 mx:operation name=VehicleOutOfRepair/
 /mx:WebService

 to this:

 private function _main_WebService1_i() : mx.rpc.soap.mxml.WebService
 {
 var temp : mx.rpc.soap.mxml.WebService = new
 mx.rpc.soap.mxml.WebService();
 service = temp;
 temp.operations = {VehicleOutOfRepair: _main_Operation1_c()};
 temp.initialized(this, service)
 return temp;
 }

 private function _main_Operation1_c() : mx.rpc.soap.mxml.Operation
 {
 var temp : mx.rpc.soap.mxml.Operation = new
 mx.rpc.soap.mxml.Operation();
 temp.name = VehicleOutOfRepair;
 return temp;
 }

 ?? How does it know do create a mx.rpc.soap.mxml.Operation from
 mx:operation which doesn't seem to be defined? How does it know to collect
 these into a dynamic object and call it operations? I can't find any
 appropriate metadata or anything to make this leap?

 Anybody who can clear this up would definitely be appreciated!

 -Josh

 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]




 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]
  




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


Re: [flexcoders] sending a text message from air/flex application

2008-08-02 Thread Douglas Knudsen
or you can send via email.  If you are only concerned about sending outgoing
messages without replies and interaction you can send via email.  eg, for
t-mobile send email to [EMAIL PROTECTED]  Of course you still need a
server+middle ware to handle the sending.  Without a server you could use a
mailto link to use the users email client.

DK

On Sat, Aug 2, 2008 at 12:40 AM, Rick Winscot [EMAIL PROTECTED]wrote:


 You are going to need to have an SMS Gateway at your disposal. With such a
 tool of devastation – you can send texts until your enemies tremble!
 MUWHAHHAAA.

 Ahem. There are a lot of providers out there... But it would be a good idea
 to get a base on bridging the gap between http and sms with a quick wiki
 primer. I've worked on a few projects where providers (for a fee) were
 willing to allow the use of their gateway – they will provide you with an
 API/tokens to keep your services chugging along. You see... Depending on
 your setup – you may actually be making them money (on return texts). Have a
 read!

 http://en.wikipedia.org/wiki/SMS_gateway

 Rick Winscot



 On 8/1/08 9:22 PM, hworke [EMAIL PROTECTED] wrote:






 Sorry-- forgot to mention: I want to send the text
  message to a cell phone from AIR/Flex Application

 Thanks...





 




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


Re: [flexcoders] sending a text message from air/flex application

2008-08-02 Thread Douglas Knudsen
Flex can't as of yet send email.  You need some server and code there to
handle this.  Thus server+middleware, middleware being Java, PHP, PHP,
etc..  You can set this up pretty easy with a single page that accepts a
form POST and have Flex use HTTPService.

http://www.php-scripts.com/php_diary/122899.php3
is some example PHP code.  CF would be just as easy.

DK

On Sat, Aug 2, 2008 at 7:23 PM, Vivian Richard [EMAIL PROTECTED] wrote:


Thanks everyone. As Douglas mentioned, I actually do not need
or expect any reply. Douglas what did you mean by server+middle
ware. Can you send me some link where I can learn a little more
about it. Thanks in advance



  On Sat, Aug 2, 2008 at 12:33 PM, Douglas Knudsen 
 [EMAIL PROTECTED] wrote:

 or you can send via email.  If you are only concerned about sending
 outgoing messages without replies and interaction you can send via email.
 eg, for t-mobile send email to [EMAIL PROTECTED]  Of course you still
 need a server+middle ware to handle the sending.  Without a server you could
 use a mailto link to use the users email client.

 DK

  On Sat, Aug 2, 2008 at 12:40 AM, Rick Winscot [EMAIL PROTECTED]wrote:


 You are going to need to have an SMS Gateway at your disposal. With such
 a tool of devastation – you can send texts until your enemies tremble!
 MUWHAHHAAA.

 Ahem. There are a lot of providers out there... But it would be a good
 idea to get a base on bridging the gap between http and sms with a quick
 wiki primer. I've worked on a few projects where providers (for a fee) were
 willing to allow the use of their gateway – they will provide you with an
 API/tokens to keep your services chugging along. You see... Depending on
 your setup – you may actually be making them money (on return texts). Have a
 read!

 http://en.wikipedia.org/wiki/SMS_gateway

 Rick Winscot



 On 8/1/08 9:22 PM, hworke [EMAIL PROTECTED] wrote:






 Sorry-- forgot to mention: I want to send the text
  message to a cell phone from AIR/Flex Application

 Thanks...








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


 




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


Re: [flexcoders] Re: Got Error #2032: Stream Error invoking web service for IE6 and IE7

2008-07-25 Thread Douglas Knudsen
welcome to 2032 hell :)   as you should have run across, this is a generic
error thrown when th ebrowser says there is something wrong, but the
browser  does not tell FP what is wrong.  I've seen this afflict IE with
some webservices.  It would happen randomly and with the same exact
call/returned data pattern too, so I ruled out bad data.  Implement a retry
n times maybe, icky yes, but can drop the probability of total failure
down.

DK

On Fri, Jul 25, 2008 at 11:37 AM, thuvu03 [EMAIL PROTECTED] wrote:

   Anyone? I still have not found a solution to this problem. I have
 searched the web that there is an issue related to this that has to
 do with ssl and caching in IE. But I am not using ssl. It's very
 frustrating as my UI works fine if I have only one IE browser up. As
 soon as I bring up another IE browser, one of my UIs gets this
 Stream Error.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 thuvu03 [EMAIL PROTECTED] wrote:
 
  I am using Flex 2.0. I have been getting Error #2032: Stream Error
 on
  both IE6 and IE7 (but not Firefox) when I have mulitple UIs up in
  multiple IE browsers that invoke an operation of a web service. My
 web
  service uses Apache Axis 1.2 and it's deployed to jboss server.
 Here
  are the steps that will reproduce the #2032 error:
 
  1. Bring up my Flex UI on one IE browser and login successfully.
 Once
  logged in sucessfully, the UI will call the getEvents() webservice
  call with a timeout of 10s. If the server has any updates it will
  return the results right away. Else, it will wait for 10s to be up
 and
  returns with no data to update. After the UI receives the response
 it
  will then call getEvents() again. This will just go on indefintely
 for
  the UI to get new updates.
  2. Bring up my Flex UI on another new IE browser (on the same
 machine
  as in step 1) and login succesfully again. Same as in step 1, the
 UI
  will call the getEvents() webservice call to get new server
 updates if
  any.
  3. Using any of the UI (either in step 1 or 2), make some
  modifications to the data and submit to the server. The modified
 data
  got submitted sucessfully. When one of the UIs calls getEvents()
 it
  will get Error #2032 in the fault handler.
 
  Notes: I used Charles, TCP Monitor, and WireShark and I saw the
  getEvents() response coming back successfullly with valid SOAP
  response and the status code is 200 OK. I have searched the web
 with
  nothing relevant to this. I have read that maybe it has to do with
 the
  famous browser limitation of 2 http connections. If it is, it
 works
  fine with Firefox even if I have 5 browsers up. Isn't Firefox has
 2
  connections limit as well?
  It works perfectly fine if I have one and only one IE browser per
  client host.I even changed the http connections limit for IE to 10
 and
  still experiencing the same problem when I have 2 IEs up on the
 same
  machine.
 
  Any helps/suggestions is greatly APPRECIATED for I have banged my
 head
  on this problem for the past 4 days.
 
  Thanks,
  Thu
 

 




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


Re: [flexcoders] Re: Performance profile strangeness

2008-07-19 Thread Douglas Knudsen
double check that you are using the debug player too
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19245
some updates have a mysterious way of switching to the release player
I've noticed.

DK

On Fri, Jul 18, 2008 at 6:02 PM, Mike [EMAIL PROTECTED] wrote:
 9,0,115,0 ... the one that came with my copy of Flex Builder 3.

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

 Which version of the player are you using?



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Mike
 Sent: Friday, July 18, 2008 1:02 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Performance profile strangeness



 I went back to the default filters, no change.

 I see all of my methods as zero time... it would be nice if it were
 that fast :-)

 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Mike mike@ wrote:
 
  No, no filters.
 
  I've removed the flash.*.*  mx.*.* filters as well... I'm pretty sure
  what I'm looking for is at that level. I'll try a new run re-enabling
  these... maybe I'm overwhelming the profiler.
 
  Does the profiler have an error log? I'm not finding anything that
  looks likely.
 
 
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com , Gaurav. Jain gauravj@ wrote:
  
   Do you have any filters applied?
  
   Thanks,
   Gaurav
  
   -Original Message-
   From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
   Behalf Of Mike
   Sent: Friday, July 18, 2008 2:58 PM
   To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

   Subject: [flexcoders] Re: Performance profile strangeness
  
   Legitimate question... I just re-ran twice (once IE  once FF) to
 make
   sure I had the box checked... yes, it's checked.
  
   What throws me is that memory profiling is fine, and I do get a
   Performance Profile that shows all of the called methods and the
   number times the methods are called... just no timing statistics and
   the Method Statistics drill-down is empty (no callers or callees.
  
   It's strange.
  
   --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote:
   
You did check the box to actually profile performance when you
 started
up the profiler right?
   
   
   

   
From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ]
   On
Behalf Of Mike
Sent: Friday, July 18, 2008 4:47 AM
To: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
Subject: [flexcoders] Performance profile strangeness
   
   
   
I profiled my app and the only way I can see any method level
 activity
in the Performance Profile is to select 'Show zero time methods'.
   
It shows the number of times a method is called but all of the
 timing
columns are zero. Memory profiling looks fine.
   
Any ideas?
   
Thanks-- Mike
   
  
  
  
   
  
   --
   Flexcoders Mailing List
   FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives:
   http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo ! Groups
   Links
  
 


 



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


Re: [flexcoders] Re: Performance profile strangeness

2008-07-19 Thread Douglas Knudsen
even better
http://flashplayerversion.com/


nice!

DK


On Sat, Jul 19, 2008 at 4:02 PM, Douglas Knudsen
[EMAIL PROTECTED] wrote:
 double check that you are using the debug player too
 http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19245
 some updates have a mysterious way of switching to the release player
 I've noticed.

 DK

 On Fri, Jul 18, 2008 at 6:02 PM, Mike [EMAIL PROTECTED] wrote:
 9,0,115,0 ... the one that came with my copy of Flex Builder 3.

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

 Which version of the player are you using?



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Mike
 Sent: Friday, July 18, 2008 1:02 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Performance profile strangeness



 I went back to the default filters, no change.

 I see all of my methods as zero time... it would be nice if it were
 that fast :-)

 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Mike mike@ wrote:
 
  No, no filters.
 
  I've removed the flash.*.*  mx.*.* filters as well... I'm pretty sure
  what I'm looking for is at that level. I'll try a new run re-enabling
  these... maybe I'm overwhelming the profiler.
 
  Does the profiler have an error log? I'm not finding anything that
  looks likely.
 
 
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com , Gaurav. Jain gauravj@ wrote:
  
   Do you have any filters applied?
  
   Thanks,
   Gaurav
  
   -Original Message-
   From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
   Behalf Of Mike
   Sent: Friday, July 18, 2008 2:58 PM
   To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

   Subject: [flexcoders] Re: Performance profile strangeness
  
   Legitimate question... I just re-ran twice (once IE  once FF) to
 make
   sure I had the box checked... yes, it's checked.
  
   What throws me is that memory profiling is fine, and I do get a
   Performance Profile that shows all of the called methods and the
   number times the methods are called... just no timing statistics and
   the Method Statistics drill-down is empty (no callers or callees.
  
   It's strange.
  
   --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote:
   
You did check the box to actually profile performance when you
 started
up the profiler right?
   
   
   

   
From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ]
   On
Behalf Of Mike
Sent: Friday, July 18, 2008 4:47 AM
To: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
Subject: [flexcoders] Performance profile strangeness
   
   
   
I profiled my app and the only way I can see any method level
 activity
in the Performance Profile is to select 'Show zero time methods'.
   
It shows the number of times a method is called but all of the
 timing
columns are zero. Memory profiling looks fine.
   
Any ideas?
   
Thanks-- Mike
   
  
  
  
   
  
   --
   Flexcoders Mailing List
   FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives:
   http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo ! Groups
   Links
  
 


 



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




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


Re: [flexcoders] CFC/VO match not recognized

2008-07-18 Thread Douglas Knudsen
good to hear things are better and working there Tom.  No I didn't
know about __type__, interesting, thanks for the info.

cheers!

DK

On Fri, Jul 18, 2008 at 10:41 AM, Tom McNeer [EMAIL PROTECTED] wrote:
 Hi Douglas,

 First, thanks so much for helping. This is really the same issue I threw out
 last week, which you tried to help with.

 My supposition that it was an object translation issue was correct. But I
 wouldn't have solved it without you.

 A few specifics here, just to show what the problem was, since this could
 bite someone else.

 First, the ArrayCollection/Array mismatch you pointed out was just my own
 dumbness -- although in the end, I needed your ingenious custom
 accessor/mutator solution to work it out.

 See, the configAC was always an ArrayCollection in Estimate.as because I
 never intended to have an estimate.cfc.

 I worked happily through the whole app, stuffing nested objects into that
 AC. But when I sent the Estimate object back down the line, CF tried to tell
 me that the parameter wasn't supplied. And this was with a saveEstimate()
 method that accepted one argument - estimate - with a type of any for
 testing.

 Creating the getEstimate() was just a test to see if object translation was
 the problem -- and it was. Once I set up Estimate.as according to your blog
 entry, getEstimate() worked fine. The Estimate object was recognized
 correctly.

 Better yet, when I sent the Estimate back to CF, it was accepted.

 So here's the tip, for anyone with CFC/VO issues: I was originally trying to
 send an untyped object back to CF. My understanding (although it could be
 wrong) is that the untyped object should be handled by CF as a struct. I
 haven't had a chance to actually test that yet.

 But here's what I think was happening; since the untyped object contained
 some typed objects that CF recognized (the configAC has nested objects with
 CFC counterparts), CF threw up. It expected any object containing a typed
 object to be a typed object.

 At least, that's what I was guessing. And it appears to be true. Because
 once there was an estimate.cfc (and I got the Array/ArrayCollection thing
 straightened out), the parameter error went away. Whew!!

 So - problem solved. Great thanks to you.

 A couple of other things, since you mention it's been a while since you
 worked much with CF: you don't have to have getters/setters in the CFC. As
 long as you have property definitions that match the structure of the AS
 class, it'll work.

 And one question: you say that the following code will only return a generic
 Object in Flex:


  cffunction name=getEstimate access=remote output=false
  returntype=any
  cfset var estimate = structNew()/
  cfset estimate['__type__'] = meridien.model.estimate
  cfset estimate['estimateID'] = 1 /
  cfset estimate['order'] =
  createObject(component,meridien.model.products.order) /
  cfset estimate['customer'] =
  createObject(component,meridien.model.customer.customer) /
  cfset estimate['configAC'] = arrayNew(1) /
  cfreturn estimate /
  /cffunction
  =





 Did you say that because of the typed struct I was creating, or because of
 an error in the code itself? If it's the former, the method does work, and
 is pretty handy. Flex will recognize the __type__ as the name of the CFC and
 match it to the AS class. According to what I'm told (but have not tested),
 the CFC needs to exist -- but doesn't even need to have the right structure.
 Only the struct being sent to Flex has to be correct.

 It's pretty handy in working with situations where the real objects can't
 necessarily match. For instance, it's being used a lot by folks who use Mark
 Mandel's Transfer ORM with CF. The real object on the CF side may be a
 Transfer Decorator -- which can be a rich business object, in addition to
 wrapping the database record in the base Transfer object. So you can pull
 the data from the Decorator into a typed struct and have it identified
 correctly on the Flex side. Then when it comes back, the data can flow into
 the Decorator.

 On the other hand, if you already know all that, and were just referring to
 something stupid in my code, I apologize for being pedantic. And I hope
 you'll tell me what I did wrong.

 Anyway -- thanks again for straightening me out. I hope to be able to get to
 your presentation next week, but it's not looking good at the moment.

 I really appreciate all your help.

 --
 Thanks,

 Tom

 Tom McNeer
 MediumCool
 http://www.mediumcool.com
 1735 Johnson Road NE
 Atlanta, GA 30306
 404.589.0560
 



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


Re: [flexcoders] Re: Questions about Drag and Drop Tree Controlls

2008-07-18 Thread Douglas Knudsen
http://livedocs.adobe.com/flex/3/html/dragdrop_1.html
check this out, its the drag and drop section in the Flex dev manual.
THere is at least one Tree example in there.

By the way, the way I look at it at least, is that you do not drag and
drop nodes, list elements, itemRenderers, etc with drag-n-drop
functionality.  Rather you drag the data behind these elements with a
nifty little image to indicate what is being dragged.

DK

On Fri, Jul 18, 2008 at 12:58 PM, timgerr [EMAIL PROTECTED] wrote:
 I have spent so much time on this, I really need a helping hand. This
 group has been wonderful to me, I am asking for a little more help
 than what others are asking for. I was wondering if someone could
 create an example of the node being dropped (label that is) and the
 node being dropped into.

 public function DoThis():void
 {
 trace('I was called');
 }

 Thanks for all the help,
 timgerr

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

 In a drag and drop tree I was wondering how to get the name of the
 node being dropped and how to get the name of the node that it was
 dropped into? Here is what I have so far,
 ?xml version=1.0?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;

 !-- Here is the HTTP Request --
 mx:HTTPService id=xmlLoader
 url=http://127.0.0.1/try/xml/xml_v7.php; resultFormat=e4x
 contentType=application/xml
 result=xmlReturned(event) /
 mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=400
 height=300 left=20 top=10

 mx:Script
 ![CDATA[
 import mx.collections.XMLListCollection;
 [Bindable]
 private var xmlValue:XMLListCollection;
 private function xmlReturned(event:Event):void
 {
 xmlValue = new XMLListCollection(new XMLList(xmlLoader.lastResult));
 }

 public function DoThis():void
 {
 trace('I was called');
 }
 ]]


 /mx:Script

 mx:Button click=xmlLoader.send() label=get XML/
 mx:Tree dataProvider={xmlValue} y=100 labelField=@label
 width=300 showRoot=true
 dragEnabled=true dropEnabled=true dragMoveEnabled=true
 dragComplete=DoThis()
 /
 /mx:Canvas
 /mx:Application

 I do not know what to put for the DoThis function.
 Thanks for the help,
 timgerr


 



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


Re: [flexcoders] CFC/VO match not recognized

2008-07-17 Thread Douglas Knudsen
your first getEstimate() shoudl do it, the second will only return to
Object in Flex.  Now, that said, I believe you need setters/getters on
all vars in your CFC, this might be the case for sending from Flex to
CF, but not sure, its been a whole year since I messed with CF that
much :)  Also note two things about CFCs and arrays.  To return a
array of foo.cfc you use returntype=com.meridien.foo[] to specify a
array of foo.  Secondly, arrays in CFCs do not map to arraycollections
in Flex.  you can see my post here
http://www.cubicleman.com/2007/02/13/coldfusion-and-flex-composite-cfcs-and-arrays/
on how to get around that if you really need a arraycollection in your
Flex UI.

HTH!

DK
On Thu, Jul 17, 2008 at 12:25 PM, Tom McNeer [EMAIL PROTECTED] wrote:
 I'm trying to solve an issue I posted about earlier, where a call to a
 method of a ColdFusion CFC resulted in an error saying that the required
 parameter - Estimate - was missing, even though I could see through
 ServiceCapture that the object was, in fact, being sent.

 I'm working on the theory that it's an object translation problem. So I'm
 testing by calling a getEstimate() method on the CFC as the Flex app starts
 up, which should return an empty instance of an Estimate. However, the
 incoming result is being identified as an ObjectProxy, rather than being
 matched to the Estimate.as VO. And for the life of me, I can't figure out
 why. I have many other VO/CFC combinations in the application, all being
 matched up correctly. But the Estimate object just won't fly.

 I'm hoping someone here can help me figure it out.

 For reference, here's Estimate.as:
 
 package model
 {
 [RemoteClass(alias=meridien.model.estimate)]


 [Bindable]
 public class Estimate
 {
 public var estimateID:int = 0;
 public var order:Order = new Order;
 public var customer:Customer = new Customer;
 public var configAC:ArrayCollection = new ArrayCollection;

 public function Estimate(data:Object = null)
 {
 }
 }

 }
 }
 =

 Here's estimate.cfc
 =
 cfcomponent output=false
 cfproperty name=estimateID type=numeric default=0 /
 cfproperty name=order type=meridien.model.products.order /
 cfproperty name=customer type=meridien.model.customer.customer /
 cfproperty name=configAC type=array default=
 /cfcomponent
 =

 In my getEstimate() method, I have tried creating the object which I sent to
 Flex in two ways:
 =
 cffunction name=getEstimate access=remote output=false
 returntype=any
 cfset var estimate =
 createObject(component,meridien.model.estimate)
 cfreturn estimate /
 /cffunction

 ... and

 cffunction name=getEstimate access=remote output=false
 returntype=any
 cfset var estimate = structNew()/
 cfset estimate['__type__'] = meridien.model.estimate
 cfset estimate['estimateID'] = 1 /
 cfset estimate['order'] =
 createObject(component,meridien.model.products.order) /
 cfset estimate['customer'] =
 createObject(component,meridien.model.customer.customer) /
 cfset estimate['configAC'] = arrayNew(1) /
 cfreturn estimate /
 /cffunction
 =

 Neither work. The nested objects -- Customer and Order -- are recognized and
 translated in Flex. But the outer Estimate object isn't.

 Can anyone see what I'm doing wrong here? (All paths are correct, by the
 way.)

 --
 Thanks,

 Tom

 Tom McNeer
 MediumCool
 http://www.mediumcool.com
 1735 Johnson Road NE
 Atlanta, GA 30306
 404.589.0560
 



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


Re: [flexcoders] Object not passed as Remote Object parameter

2008-07-15 Thread Douglas Knudsen
Go get Service Capture
http://kevinlangdon.com/serviceCapture/
install it and check your traffic to be sure the goods are being sent
to the server properly.

Also, post the code for say Estimate.as

DK

On Tue, Jul 15, 2008 at 4:41 PM, Tom McNeer [EMAIL PROTECTED] wrote:
 Hi,

 I am building a product configurator, which creates an Estimate object. The
 Estimate contains a Customer object and an array of Configuration objects,
 each of which contains an array of Products.

 The objects are built properly in Flex. But when I attempt to send the
 Estimate object back to a ColdFusion CFC, the CFC acts as if there was no
 parameter passed.

 Specifically, if I call productService.saveEstimate(estimate), I get an
 error saying the parameter estimate is required, but not passed in.

 In debugging, just at the point of the RemoteObject (productService) call, I
 can see that the estimate object does exist in the proper scope.

 And if I create a string or array and put one in the method call:
   productService.saveEstimate(blah), or
   productService.saveEstimate(myArray)

 ... the method fires properly on the CFC. (The arg type in the CFC is set to
 any for testing, so any data type is accepted.)

 Why would the Estimate object (which exists) not be passed?

 Any thoughts would be greatly appreciated.

 --
 Thanks,

 Tom

 Tom McNeer
 MediumCool
 http://www.mediumcool.com
 1735 Johnson Road NE
 Atlanta, GA 30306
 404.589.0560
 



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


Re: [flexcoders] Object not passed as Remote Object parameter

2008-07-15 Thread Douglas Knudsen
well, even if your swf is loaded via file://, the RemoteObject call is
over the network, even if localhost, so service cap should see it, eh?

Not sure of the rest.  When I've worked with CF/Flex, I made it all
typed on both sides of the fence.

Hey, you are in Atlanta!  Come on out to http://www.affug.org next week.

DK


On Tue, Jul 15, 2008 at 5:51 PM, Tom McNeer [EMAIL PROTECTED] wrote:
 To Dan:

 Thanks for the suggestion, but this is a RemoteObject request.

 Mr. K:

 To learn anything from ServiceCapture, I'll have to move a few things, which
 I'll do tomorrow. Currently, the app is running on my laptop, and if there's
 no network traffic, well, ServiceCapture can't capture much.

 I'll move it to a true Dev server in the morning and let you know what I
 find.

 Meantime, here's Estimate.as:

 package model
 {

 import mx.collections.ArrayCollection;
 import model.Customer;
 import model.Order;

 [Bindable]
 public class Estimate
 {
 public var estimateID:int = 0;
 public var order:Order = new Order;
 public var customer:Customer = new Customer;
 public var configAC:ArrayCollection = new ArrayCollection;

 public function Estimate()
 {
 }

 }
 }

 Thanks for any suggestions.


 --
 Thanks,

 Tom

 Tom McNeer
 MediumCool
 http://www.mediumcool.com
 1735 Johnson Road NE
 Atlanta, GA 30306
 404.589.0560
 



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


Re: [flexcoders] Flex, Cairngorm callback function

2008-07-14 Thread Douglas Knudsen
I've made comments inline below.

DK

On Mon, Jul 14, 2008 at 5:36 AM, Manu Dhanda [EMAIL PROTECTED] wrote:

 Hii all,

 Here I want to have your opinion considering all three (Flex, Cairngorm 
 callback function) together.

 My consideration and approach is to utilize the Cairngorm's command class
 (execute method) to perform the required actions/tasks.
 In a few scenario's, when it comes to sequencing, that also can be achieved
 using SequenceCommand or dispatching another custom event in the
 responder's result/fault to sequence it.

This can make the command coupled to your view in a way, consider some
other gesture needing to result in this same command being enacted?
Whatever else is listening to this event you call at the end will
react and you may not want it to.

You may want to look at the EventGenerator instead of SequenceCommand


 So, now can anyone give me advantages of using callback function??

The Callback avoids the above.



 And why (or why not) it should be used?
 Whether it's a good approach using callback in Cairngorm MicroArchitecture?
 And if we using it, ain't we loosing the focus, the flow of application
 altogether ?

 Looking for some thoughts at this topic from you guyz.

 Thanks.
 --
 View this message in context:
 http://www.nabble.com/Flex%2C-Cairngorm---callback-function-tp18440431p18440431.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

 



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


Re: [flexcoders] Remote Object Paths

2008-07-14 Thread Douglas Knudsen
why not keep the paths the same?  Either directly or through application.cfc.

DK

On Mon, Jul 14, 2008 at 1:54 PM, Dan Vega [EMAIL PROTECTED] wrote:
 I have a quick questions about Remote Objects  ColdFusion paths. For the
 latest project I am working on the development took place on my local
 machine. I would have many remote calls similar to the following.

 mx:RemoteObject id=Clients destination=ColdFusion
 source=MyProject.src.cfc.Clients showBusyCursor=true
 mx:method name=listClients result=listClients(event)/
 /mx:RemoteObject

 The problem that I am running into is that when i want to push a release
 build the source path is going to change. When its published the path looks
 more like this

 +projectroot
   +myproject
-myswf.swf
+cfc
  -Clients.cfc


 My question is what do others do about this. I know that in the web world I
 could read a config file based on live or dev. The problem is that through
 out this project I have really learned that I need to stop thinking in terms
 of basic web application development.

 Thank You
 Dan Vega
 [EMAIL PROTECTED]
 http://www.danvega.org

 



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


Re: [flexcoders] Remote Object Paths

2008-07-14 Thread Douglas Knudsen
right, so have your server code (CFCs) sit in the same folder path in
dev, staging, and production so doesn't matter what Flex, Flash, HTML
client it is, who cares.  ORif you are running ColdFuison 8, you
can set application specific mappings in application.cfc.  So, in your
local dev application.cfc you could have a mapping that looks like
production set to whatever you want.

DK

On Mon, Jul 14, 2008 at 2:24 PM, Dan Vega [EMAIL PROTECTED] wrote:
 Douglas,
 The remote object path is used in the Flex app and therefor if its hard
 coded it doesn't that get compiled? I think the flash vars is a nice way of
 doing. I just threw in an initialize event, check to see if it existed and
 if not set it and pass that path on to my views.

 private function loadFlashVars():void {
 // load flash vars
 _ropath = Application.application.parameters.ropath;
 if(_ropath == null){
 // must be development
 _ropath = MyProject.src.cfc;
 }
 }

 This works for me but I am open to any suggestions, Im still learning.


 Thank You
 Dan Vega
 [EMAIL PROTECTED]
 http://www.danvega.org

 On Mon, Jul 14, 2008 at 2:17 PM, Douglas Knudsen [EMAIL PROTECTED]
 wrote:

 why not keep the paths the same? Either directly or through
 application.cfc.

 DK

 On Mon, Jul 14, 2008 at 1:54 PM, Dan Vega [EMAIL PROTECTED] wrote:
  I have a quick questions about Remote Objects  ColdFusion paths. For
  the
  latest project I am working on the development took place on my local
  machine. I would have many remote calls similar to the following.
 
  mx:RemoteObject id=Clients destination=ColdFusion
  source=MyProject.src.cfc.Clients showBusyCursor=true
  mx:method name=listClients result=listClients(event)/
  /mx:RemoteObject
 
  The problem that I am running into is that when i want to push a release
  build the source path is going to change. When its published the path
  looks
  more like this
 
  +projectroot
  +myproject
  -myswf.swf
  +cfc
  -Clients.cfc
 
 
  My question is what do others do about this. I know that in the web
  world I
  could read a config file based on live or dev. The problem is that
  through
  out this project I have really learned that I need to stop thinking in
  terms
  of basic web application development.
 
  Thank You
  Dan Vega
  [EMAIL PROTECTED]
  http://www.danvega.org
 
 

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

 



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


Re: [flexcoders] Component Questions

2008-07-12 Thread Douglas Knudsen
You need to inject data from parents into children.  If children need
to send data up the chain to parents, use a event.  Thus, in the below
add a public variable client and set this upon creation like this

comp:MyPanel client={_client} ..

note its odd to name a publicly available variable with a _

DK

On Sat, Jul 12, 2008 at 2:46 PM, Dan Vega [EMAIL PROTECTED] wrote:
 I built a small app that has 4 screens and everything is working great. I
 want to learn more about breaking up the views into different components
 before I move on to mvc in Flex. My question is lets say I have my main
 application and then each of my screens are views. In my main application I
 have a public variable called _client. On the first view I am trying to
 access that object and the compiler is telling me it is undefined. In my
 code you will the line _client = selected.

 My question is how does the component know about the data declared in the
 main application ?

 ?xml version=1.0 encoding=utf-8?
 mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml;
 width=100% height=100% layout=vertical
 title=Rogers Image Uploader - Start
 backgroundColor=#000
 creationComplete=init()

 mx:Script
 ![CDATA[
 import mx.events.ListEvent;

 private function init():void {
 // disable the next button until a client is selcted
 btnNextStart.enabled = false;
 // listen for changes on the client grid
 dgClients.addEventListener(ListEvent.CHANGE,onSelectClient);
 }

 private function onSelectClient(event:ListEvent):void {
 var selected:Object = event.itemRenderer.data;
 _client = selected;
 btnNextStart.enabled = true;
 }
 ]]
 /mx:Script

 mx:DataGrid id=dgClients dataProvider={_clients} width=100%
 height=100%
 mx:columns
 mx:DataGridColumn headerText= labelFunction=rowNumber
 width=40/
 mx:DataGridColumn headerText=Client dataField=client_name
 width=250/
 mx:DataGridColumn headerText=City dataField=city/
 mx:DataGridColumn headerText=State dataField=state/
 mx:DataGridColumn headerText=Zip dataField=zip/
 mx:DataGridColumn headerText=Phone dataField=phone/
 mx:DataGridColumn headerText=Status dataField=status
 labelFunction=statusRenderer/
 /mx:columns
 /mx:DataGrid

 mx:ControlBar
 mx:Button label=Previous enabled=false/
 mx:Spacer width=100%/
 mx:Label text=Select a client and click next. color=#ff/
 mx:Spacer width=100%/
 mx:Button id=btnNextStart label=Next
 click={this.currentState='uploader'}/
 /mx:ControlBar
 /mx:Panel

 Thank You
 Dan Vega
 [EMAIL PROTECTED]
 http://www.danvega.org

 



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


Re: [flexcoders] Cairngorm concepts

2008-07-10 Thread Douglas Knudsen
have a go at this
http://www.cairngormdocs.org/tools/CairngormDiagramExplorer.swf

DK

On Thu, Jul 10, 2008 at 7:37 AM, oscar.12321 [EMAIL PROTECTED] wrote:
 I have the past few days reading about Cairngorm and, at all, i don't
 understand the concept behind de events and commands.

 The people says that a event-command pair corresponds to a user
 gesture or system event: clicks, app init, etc. But when i browse the
 Cairngorm store app i found things like these:

 - Command modifies the model and the model notifies the view throw
 bindings: this seems logic to me.

 - Selecting a product in the view directly changes the
 model.selectedItem: where is the command?. What we have here is a user
 gesture and a model update without Cairngorm event or command.

 - Retrieving the products with a GetProductsCommand: what kind of
 event+command is this?. The system event shold be appInit or the like,
 and then usually you need to retrieve many things, not only products.
 Why server request = command?

 - Finally, the checkout process is divided in a sequence of commands.
 The user gesture is checkout, but the app uses serveral commands.

 This has no sense for me. I think the theory was right, but when
 applied is twisted to match the framework limitations.

 This is suposed to be the mother of the samples (an the only one, i
 think).

 Could any one clarify me when to use a command an how to explain the
 concept to other people?

 Thanks

 - Oscar

 



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


Re: [flexcoders] Re: mxml to swf on a J2EE server

2008-07-09 Thread Douglas Knudsen
 destinataire visé du présent
 message ou si vous l'avez reçu par erreur, veuillez cesser
 immédiatement de le lire et le supprimer, ainsi que toutes ses pièces
 jointes, de votre système. La lecture, la distribution, la copie ou
 tout autre usage du présent message ou de ses pièces jointes par des
 personnes autres que le destinataire visé ne sont pas autorisés et
 pourraient être illégaux. Si vous avez reçu ce courrier électronique
 par erreur, veuillez en aviser l'expéditeur.


 



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


Re: [flexcoders] Question for mx:RemoteObject?

2008-07-07 Thread Douglas Knudsen
yes, you can have a swf loaded from server A connect to server B via
RemoteObject.  Have to play with the config files some and a
crossdomain file.  Should be able to search these archives for how.

DK

On Mon, Jul 7, 2008 at 1:33 PM, markflex2007 [EMAIL PROTECTED] wrote:
 Hi,

 I just want to make sure if I have to save swf/html (created by Flex)
 and backed end code in same web server when I use mx:RemoteObject to
 do the backend access.

 But I can save swf/html and backend code in different server when I use
 web service.

 Thanks

 Mark

 



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


Re: [flexcoders] init function in component

2008-06-30 Thread Douglas Knudsen
With The Matrix in mind...there is no page.

How often and when do you think creationComplete is fired?  Check the
docs on it.

DK




On 6/29/08, markflex2007 [EMAIL PROTECTED] wrote:
 Hi,

 I have a mxml component page

 mx:Panel
   xmlns:mx=http://www.adobe.com/2006/mxml;   
creationComplete=init()
show = init()
   
  mx:Script
   ![CDATA[
   
   
private function init():void
{
  objuserID = new uuid();
  userID = objuserID.createUUID();
 }
 ]]
 /mx:Script

 ...
 

 createUUID() is like  a random function, but my problem is I get same
 number when I try to access the page. It should get different page
 when I access the page.

 I do not know why this happen

 Thanks for help

 Mark



-- 
Sent from Gmail for mobile | mobile.google.com

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


Re: [flexcoders] how to make coldfusion working with LCDS?

2008-06-26 Thread Douglas Knudsen
pay attention during the install of ColdFusion...you get asked to
install a integrated LCDS, eh?

DK

On Thu, Jun 26, 2008 at 11:47 PM, markflex2007 [EMAIL PROTECTED] wrote:
 Hi

 I install LCDS 251.and I see the web root is
 C:\lcds\jrun4\servers\default\,

 May I change the web root path (like c:\sites\)?

 I put *.jsp file in the web root,it works?

 but I put *.cfm,it doesn't work. How to make coldfusion file working
 in LCDS web root.

 Thanks.

 Mark

 



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


Re: [flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-25 Thread Douglas Knudsen
this is ok if you are not trying to cfdump a instance of it.  You
should be able to cfoutput a getPropertyName().  Think about one of
the points of using mutator/accessor pairs.


DK

On Wed, Jun 25, 2008 at 10:01 PM, holmgren.eric [EMAIL PROTECTED] wrote:
 Jeff,

 That was the ticket! For some reason the AS to CF wizard in FB3 puts
 all the properties in the variables scope.

 Thanks,

 Eric

 



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


Re: [flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-24 Thread Douglas Knudsen
The AS file's remoteobject metadata should have alias point to the CFC
using full dot-path notation.  The alias attribute on the CFC is not
required, but would be this same path.  You don't specify the path to
your AS object anywhere, would kind of defeat a few things that.
would, eh?

http://www.jeffryhouser.com/index.cfm/2007/10/9/Why-does-ColdFusion-return-a-CFC-to-Flex-as-a-generic-object
 :)  See Tom's comments thereBTW, your site is appears to be down
currently Jeff.

DK

On Tue, Jun 24, 2008 at 4:39 PM, Jeffry Houser [EMAIL PROTECTED] wrote:

 Was there a problem you were having with setting the aliases that you'd
 like to share?

 In the CFC your alias will be vo.VO
 In the AS file the alias will be components.VO

 Keep the paths case sensitive.

 holmgren.eric wrote:
 I guess I may be a little confused about how the aliases are supposed
 to work then. Take the following example:

 In flex builder I have a project named Test with the following
 hierarchy that's set to run from wwwroot/Test-debug/ on the local CF
 server ...

 + Test
 + bin-debug
 + html-template
 + libs
 + src
 main.mxml
 + vo
 VO.as

 On the ColdFusion side I have a folder in wwwroot with my components ...

 + wwwroot
 + components
 VO.cfc

 How should I set the aliases in Flex and CF when they don't share the
 same path?

 Thanks,

 Eric



 

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






 --
 Jeffry Houser
 Flex, ColdFusion, AIR
 AIM: Reboog711 | Phone: 1-203-379-0773
 --
 Adobe Community Expert
 http://www.adobe.com/communities/experts/members/JeffryHouser.html
 My Company: http://www.dot-com-it.com
 My Podcast: http://www.theflexshow.com
 My Blog: http://www.jeffryhouser.com

 



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


resource.properties usage [ was Re: [flexcoders] internationalization @ switching runtime]

2008-06-21 Thread Douglas Knudsen
Gordon, curious, I've heard it is recommended to use a Module for each
language and load them at runtime.  This still recommended?  I'd think
baking all languages into the swf would be ok, its all simple text
strings after all.  Perhaps its the ubiquitous 'it depends'?  What is
Adobe's recommendation on this the need to support several languages
and resource bundles?

DK

On Fri, Jun 20, 2008 at 5:14 PM, Gordon Smith [EMAIL PROTECTED] wrote:
 You want to learn about the ResourceManager class in Flex 3. It allows you
 to simply change its localeChain property at runtime and have the entire
 application redraw in a new language.



 Gordon Smith

 Adobe Flex SDK Team



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of artur_desig2dev
 Sent: Friday, June 20, 2008 6:12 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] internationalization @ switching runtime



 forgive my newbie question..

 just wanted to find out the best practice on this to date.
 on how to change all the components' language at runtime.

 i found 2 methods of doing this:

 http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/

 http://www.herrodius.com/blog/123
 http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/

 thanks

 



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


Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-19 Thread Douglas Knudsen
://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links







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


Re: [flexcoders] Re: Flex Debugger Ignoring all breakpoints/Errors

2008-06-19 Thread Douglas Knudsen
I'll add to this to look at this URL
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19245sliceId=1
to ensure you actually have the debug player

DK

On Thu, Jun 19, 2008 at 1:52 PM, Tracy Spratt [EMAIL PROTECTED] wrote:
 Glad you are working agin.  I will post this anyway, in case anyone finds
 this thread in the future.



 If you have not done so yet, verify the Flash Player version by visiting
 this url:

 http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15507



 Often it is hard to get Flash Player versions switched successfully.



 Tracy



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of aut0poietic_us
 Sent: Thursday, June 19, 2008 10:30 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flex Debugger Ignoring all breakpoints/Errors



 Minor update: I FINALLY have the debugger working in IE. Not entirely
 sure what the solution was, however, it dawns on me the other thing
 done to this system recently was install Firefox 3.

 I remember some problems with RC versions, but I thought that was all
 resolved. Either way, would be nice if FF would cooperate with the
 debugger, but my level of panic has dropped some.

 



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


Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-17 Thread Douglas Knudsen
Having been on this list since 2004, yeah back when the Iteration
folks were not Adobe Robe Wearers yet, I've seen this discussion come
up a few times.  I've asked for a associated FAQ a few times, but
there was no interest from the Iteration folks on this or splitting up
things, no offense Alistair or Stephen you more than rocked with
helping this community.  I'd certainly agree to a good FAQ be made
available and sent to the list monthly for all to be reminded and have
it linked at the footer.

Bjorn has a good point later in this thread about the idea that
answers are terse due to volume.

Matt, I do agree with your #1, but #2 and #3 sounds too much like list
mommies or invitations for list mommies.  Something quite uncommon to
the best of my recollection on flexcoders is the real need for list
mommies.

I'm in Anatole's camp on this, having multiple lists could be
beneficial to all as well as the community.  Do we know this for a
fact?  Nope, my crystal ball isn't helping, but it has with many other
topics in the past.  Conversely it may have hindered others, but
perhaps because the introduction of split lists was premature, who
knows.  Hey, there are already multiple lists, besides flexcomponents
there is HOF_Flex for one and the India based list too, I'm sure there
are others.

I suggest we start off with a couple very generic variants.
flexcoders_enterprise seems ok to me, those that work with enterprise
tools would find it obvious.  leave flexcoders as is, add in a
designer centric list, and a advanced list and go from there, revisit
in a few months to see how it went.

Oh, BTW there are other email readers that do threaded tricks like
GMail...though I don't use them. :)

DK

On Tue, Jun 17, 2008 at 1:48 PM, Matt Chotin [EMAIL PROTECTED] wrote:
 Hey folks, let's calm down a little here, K?

 Alright, based on what I've been seeing people say, here's my suggestion.

 1) Let's get an FAQ going that can be edited by moderators or members of the
 community. This will be about common problems that folks run into. One
 suggestion of course from me would be that we use the Cookbook for how-to
 type questions. But for things that don't seem like they're cookbook
 appropriate, we can put them in the FAQ. I like the idea of doing it in
 Buzzword, though Buzzword docs won't come up in Google. Long-term I think
 the right place might be in whatever we set up in the Adobe Developer
 Center. But for now how about we just allocate a page off of the opensource
 wiki. We can pick some moderators who can edit the page and I will get them
 added so they can take care of it. We can also add the link to the FAQ to
 the bottom of every email.

 2) Some folks suggested that you either mark in the body or in the subject
 something that indicates what you're talking about. Seems reasonable. We
 could use some of the topics that were being suggested. [UX], [Enterprise],
 [Data Services] [Announce], etc. We don't need to limit this, but by
 following a convention of placing the general area of discussion, folks will
 know if they're going to be capable of getting involved in the thread. The
 more people follow this convention, the more efficient it will become.

 3) We can get aggressive on the moderation. Rather than just scanning for
 spam, moderators can actually look at the posts by new users and decide if
 they meet the general criteria for asking a question. If they don't, the
 moderator can reject the post and point the user to the forum FAQ which has
 posting guidelines.

 4) We can update the flexcoders FAQ (which is actually linked at the bottom
 of every single post) to include the updated posting guidelines and remove
 the common questions section so that the forum FAQ is only about forum
 etiquette and the coding FAQ is about the actual problems.

 If this sounds OK then what we need are the two kinds of moderators:

 1. moderators for the forum itself who are willing to really look at all
 posts that are in moderation and analyze whether they should be passed
 through. If it is a poorly formed question, the post should be rejected with
 a pointer to the forum FAQ.
 2. moderators for the FAQ who can pay attention to common questions and
 update the FAQ as appropriate.

 If we're all on board, send those moderators to me and we can get things set
 up. And folks can start following the tagging convention instantly in the
 meantime.

 Matt

 



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


Re: [flexcoders] Re: Question regarding EventDispatcher

2008-06-17 Thread Douglas Knudsen
just remember to remove those listeners if you ever expect to remove
test from the display list.  If not test, will not get GC'd

DK

On Tue, Jun 17, 2008 at 7:06 PM, Kevin Fauth
[EMAIL PROTECTED] wrote:
 Bubbling is funny that way. If you don't need it to bubble, and can
 reference the object that's dispatching the event directly, you might
 be better off to set the listener on the object itself:

 var test:TestComponent = new TestComponent();
 test.addEventListener (MyEvent.EVENT_GOOD, doGood);
 test.addEventListener (MyEvent.EVENT_BAD, doBad);
 ...

 - Kevin

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

 Also keep in mind that events bubble up the display hierarchy, not
 necessarily your object graph hierarchy, even though they're often
 closely
 related. If B is not a direct (display list) descendant of A, A will
 never
 receive events bubbled from B, even if
 A.something.somethingElse.anotherField == B.

 -Josh

 On Wed, Jun 18, 2008 at 9:04 AM, Tracy Spratt [EMAIL PROTECTED] wrote:

  Unless a listener is assigned directly to the dispatching
 component, you
  need to set the bubbles argument when you dispatch the event
 
  dispatchEvent( new MyEvent (MyEvent.RESULT,true) );
 
 
 
  Tracy
  --
 
  *From:* flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] *On
  Behalf Of *LazerWonder
  *Sent:* Tuesday, June 17, 2008 6:26 PM
  *To:* flexcoders@yahoogroups.com
  *Subject:* [flexcoders] Question regarding EventDispatcher
 
 
 
  Here's the scenerio:
 
  - In a component, I'm dispatching an event. Let's call it: MyEvent
  - In the main application, there is an EventDispatcher that's
  listening for the component event.
 
  None of this is Cairnogorm for many reasons. (Although I have
  nothing against that framework).
 
  However, this is not working. Would someone be able to explain why
  and how I can go about solving this? Thanks!
 
  ===
  Sample code: (Assume all imports are there).
  ===
 
  public class MyClass extends EventDispatcher {
  //stuff
 
  public function myFunction():void {
  //more stuff... then...
  this.addEventListener (MyEvent.EVENT_GOOD, doGood);
  this.addEventListener (MyEvent.EVENT_BAD, doBad);
 
  var test:TestComponent = new TestComponent();
  }
 
  public function doGood(e:MyEvent):void {
  //do other stuff
  }
 
  public function doBad(e:MyEvent):void {
  //do stuff
  }
  }
 
  ---
  In component:
 
  package com.mystuff.test {
  public class TestComponent {
  public function TestComponent() {
  //do stuff here
  var t:TestDispatcher = new TestDispatcher();
  t.dispatchMyEvent();
  }
  }
  }
 
  package com.mystuff.test {
  public class TestDispatcher extends EventDispatcher {
  public function TestDispatcher() {
  super();
  }
 
  public function dispatchMyEvent():void {
  dispatchEvent( new MyEvent (MyEvent.RESULT) );
  }
  }
  }
 
  package com.mystuff.test.events {
  public class MyEvent extends Events {
  public static var EVENT_GOOD= goodStuff;
  public static var EVENT_BAD = badStuff;
 
  public function MyEvent (type:String) {
  super(type);
  }
  }
  }
 
 
 



 --
 Therefore, send not to know For whom the bell tolls. It tolls for
 thee.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]


 



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


Re: [flexcoders] Need array example

2008-06-12 Thread Douglas Knudsen
look into ObjectUtil.copy().  Note if you are using typed objects in
that Array, you should be, you will need to make use of
registerAlias() so this copy will work.

registerAlias(com.foo.goo, 'goo');
dest = ObjectUtil.copy( origin );

though my syntax may be a wee off...

DK

On Thu, Jun 12, 2008 at 6:50 PM, Chilcoat, Dee [EMAIL PROTECTED] wrote:
 I need an example of copying fields in an array to another array, but I
 don't want the fields to be pass-by-reference.  I'm trying to create a
 holdingarray for input in a datagrid.  This is code I have used.



 holdData[6] =
 quickEntryGrid.dataProvider[i].timerecordTrcPayRateAmount;

   holdData[7] =
 quickEntryGrid.dataProvider[i].timerecordTrcSickLeaveHours;

   holdData[8] =
 quickEntryGrid.dataProvider[i].timerecordTrcVacationHours;

   holdData[9] =
 quickEntryGrid.dataProvider[i].timerecordTrcRegularHours;

   holdData[10] =
 quickEntryGrid.dataProvider[i].timerecordTrcStraightOvertmHours;

   holdData[11] =
 quickEntryGrid.dataProvider[i].timerecordTrcPremiumOvertmHours;

   holdData[12] =
 quickEntryGrid.dataProvider[i].timerecordTrcOtherHours;

   holdData[13] =
 quickEntryGrid.dataProvider[i].timerecordTrcOtherHoursCode;

 holdRowData[i] = holdData;



 The problem is that whenever a user inputs data into the quickEntryGrid, it
 is reflected in the holdRowData, which I need to contain the original values
 before the user enters any data.  If I can't use a holding array, do I have
 other options?



 Dee A. Chilcoat

 Enterprise Web Application Development

 University of California San Diego

 [EMAIL PROTECTED]

 (858) 534-0719

 



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


Re: [flexcoders] webservice e4x-result can not be filtered??

2008-06-06 Thread Douglas Knudsen
why?  use e4x, eh?
have a look at http://livedocs.adobe.com/flex/3/langref/XML.html
there are examples at this URL of searching/matching using e4x

DK

On Fri, Jun 6, 2008 at 3:57 PM, mariovandeneynde [EMAIL PROTECTED]
wrote:

   Greetings!

 I have the following situation:

 [Application]
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=this.croplifedata.getBronnen.send
 ()
 mx:Script
 ![CDATA[
 import mx.collections.XMLListCollection;
 import mx.rpc.events.ResultEvent;
 import mx.rpc.soap.*;
 private namespace webNameSpace
 = http://tempuri.org/;;
 use namespace webNameSpace;

 [Bindable]
 public var sKeyWord:String = biotechnology;
 [Bindable]
 public var sMediaTypes:String = 1,2;
 [Bindable]
 public var sMediaSubTypes:String = 1,2,3;

 public function photoDataHandler
 (event:ResultEvent):void{
 trace(event.result);
 }

 ]]
 /mx:Script
 mx:WebService wsdl=http://xxx.xxx.xxx.xx/getData.asmx?
 wsdl id=croplifedata useProxy=false showBusyCursor=false
 mx:operation name=getBronnen resultFormat=e4x
 result=photoDataHandler(event);
 mx:request
 sSearchKeyword
 {this.sKeyWord}/sSearchKeyword
 sMediaTypes
 {this.sMediaTypes}/sMediaTypes
 sMediaSubTypes
 {this.sMediaSubTypes}/sMediaSubTypes
 langen/lang
 cust1/cust
 /mx:request
 /mx:operation
 /mx:WebService
 /mx:Application
 [/Application]

 this gives me the following xml:

 getBronnenResponse xmlns=http://tempuri.org/;
 xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 getBronnenResult
 Bronnen
 id81/id
 sCount260/sCount
 titlePlant grown from cell culture tissue in test tube/title
 number100121/number
 width180/width
 height134/height
 /Bronnen
 Bronnen
 id83/id
 sCount260/sCount
 titleScientist observing test plants/title
 number100123/number
 width180/width
 height180/height
 /Bronnen
 /getBronnenResult
 /getBronnenResponse

 Now, my question:

 How can I convert this result to a xml/xmllist/...on wich I can
 filter?

 for example getBronnenResult.Bronnen.(child(id).toString() == '83');

 I just can't get this to work...

 thanks you for the ones who can help!

  




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


Re: [flexcoders] programmatically using RemoteObject

2008-06-03 Thread Douglas Knudsen
dunno why you'd want to, using a framework you wouldn't have very many
instances of RO around, eh?  Anyhoo, you will need to use the non-mxml
version
http://livedocs.adobe.com/flex/3/langref/mx/rpc/remoting/RemoteObject.html

DK

On Tue, Jun 3, 2008 at 11:42 AM, blc187 [EMAIL PROTECTED] wrote:

   I'm trying to move some code out of my MXML into AS classes but having
 trouble with the RemoteObject.
 The following code:

 mx:RemoteObject id=remoteObject destination=genericDestination
 mx:method name=myMethod result=gotServerData(event)/
 /mx:RemoteObject

 How do I go about setting up the remoteObject method programmatically?

  




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


Re: [flexcoders] Flex Ant Tasks - can someone cut the umbilical?

2008-05-30 Thread Douglas Knudsen
FLEX_HOME is set in ANT, no?  So if two independent ANT scripts are running
this FLEX_HOME setting would not collide, right?

DK

On Fri, May 30, 2008 at 9:21 AM, Rick Winscot [EMAIL PROTECTED]
wrote:

   Tom - Flex Ant Tasks is looking for FLEX_HOME... so - if you have a CI
 machine doing all your builds... how would you recommend doing concurrent
 2.0.1 and 3.0 builds? Given the implementation you _will_ end up with a
 mess
 if two builds spawn at the same time. This is a Continuous Integration
 machine - it is not in the IDE.

 Rick Winscot


 -Original Message-
 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
 Behalf Of Tom Chiverton
 Sent: Friday, May 30, 2008 6:52 AM
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: Re: [flexcoders] Flex Ant Tasks - can someone cut the umbilical?

 On Friday 30 May 2008, Rick Winscot wrote:
  I've just had an excellent experience upgrading a huge project to Flex 3.
  all except the CI server that uses Flex Ant Tasks. In short - FLEX_HOME
 is
  hard coded so. there really isn't any way to run 2.0.1 and 3.0 builds on
  the same machine.

 This must be a problem in your Ant setup, because I did just that yesterday

 using Builder v3.

  Anyway - I'd love to contribute my work back to
  the community. Any recommendations Adobe-ites?

 Work on ?

 --
 Tom Chiverton

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is
 at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A
 list of members is available for inspection at the registered office. Any
 reference to a partner in relation to Halliwells LLP means a member of
 Halliwells LLP. Regulated by The Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may
 be confidential or legally privileged. If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents. If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.com.

 

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

  




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


Re: [flexcoders] Re: Compile css file to swf with ClassReference in the css file

2008-05-30 Thread Douglas Knudsen
agreed, a PITA of a bug.

DK

On Sat, May 31, 2008 at 12:51 AM, ben.clinkinbeard 
[EMAIL PROTECTED] wrote:

   Maybe we can get this reopened with some vote support (but I doubt
 it): http://bugs.adobe.com/jira/browse/FB-11925

 Ben


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 ealexdesign [EMAIL PROTECTED] wrote:
 
  Hello! I want compile my css theme in swf file.
  So I try to use mxmlc command but it failed since I have
  ClassReference in my css file.
 
  Could you help me please to compile my css file to swf file.
 

  




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


Re: [flexcoders] Re: flex war project

2008-05-29 Thread Douglas Knudsen
also, if you are using Eclipse WTP package or a subset, you can build a WAR
right there in Eclipse.

DK

On Thu, May 29, 2008 at 8:10 AM, nitinkalaskar2007 
[EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tom
 Preet [EMAIL PROTECTED] wrote:
 
  Hi All,
 
  I am working with Flex 2.0 with fds-tomcat.
  I need to create the project as a war file like flex.war.
 
  can anyone suggest me how to create war files for flex project and
 deploying
  this war file
  in any other tomcat.
 
  give me some suggestion on this..
 
  Thanks in Advance
 
  --Tomt
 
 Hello tom
 you can create a war using following command.

 --
 jar -cvf warname.war *.*
 --
 you need to be in the directory where which contains WEB-INF folder.

 Regards
 Nitin Kalaskar

  




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


Re: [flexcoders] Why is this renderer so slow?

2008-05-24 Thread Douglas Knudsen
ugh,yeah, CheckBox implements  IDropInItemListRenderer (or whatever its
called exactly) and can do the edit your data thing.  Have you tried this?

DK

On Sat, May 24, 2008 at 2:25 PM, leds usop [EMAIL PROTECTED] wrote:

   im just wondering why you think an ordinary check box wont retain it's
 selected state when scrolling? can you provide an example code that does
 that? maybe it will be more beneficial to approach the problem using that
 approach. Just a thought.


 --- On *Sun, 5/25/08, dbronk [EMAIL PROTECTED]* wrote:

 From: dbronk [EMAIL PROTECTED]
 Subject: [flexcoders] Why is this renderer so slow?
 To: flexcoders@yahoogroups.com
 Date: Sunday, May 25, 2008, 12:59 AM

 I have created a checkbox renderer. My datagrid has 5 out of 8
 columns that use it. The datagrid has only about 80 rows it it. When
 using this renderer the performance of the datagrid is horrible.
 Scrolling is extremely slow, click a checkbox is extremely slow. If I
 swap out and use a normal mx:CheckBox for the renderer the performance
 is just fine, but of course that doesn't work as it will not retain
 the state of the checkbox when scrolling. Here is my code for the
 renderer. I notice that many of these are re-executed whenever
 anything happens to the datagrid. That includes just mousing over.

 Thanks.

 Dale

 package renderer
 {
 import flash.events. MouseEvent;

 import mx.controls. CheckBox;

 import spectrumk12. minerva.util. BaseEvent;
 import spectrumk12. minerva.util. Utils;

 [Event(name= selectionSet , type=util.BaseEven t)]
 public class RendererCheckBoxXML extends CheckBox
 {
 private var _xmlItem : XML; //holds the current item xml node
 private var count:int=0;
 private var debug:String= ;

 /** The attribute in the xml to use to store the selected state of
 this checkbox. */
 [Inspectable( default= rendererSelected )]
 public var selectedAttribute : String = rendererSelected ;

 /** The default selection state (true/false) to give if the
 selectedAttribute is not there or null */
 [Inspectable( default= false, enumeration= true,false )]
 public var defaultSelectedStat e : Boolean = false;

 public function RendererCheckBoxXML ()
 {
 super();
 trace(RendererChec kBoxXML:Construc tor);
 this.addEventListen er(MouseEvent. CLICK, onClick, false, 0, true);
 }

 // Sets the state of the checkbox based on the selectedAttribute
 attribute.
 override public function set data(oItem:Object) : void
 {
 _xmlItem = XML(oItem);
 trace(RendererChec kBoxXML:set data:  + [EMAIL PROTECTED]) ;
 var bSelected : Boolean = false;
 var attrSelected : String = [EMAIL PROTECTED] Attribute] ;
 this.selected = ( Utils.nullOrBlank( attrSelected) ?
 defaultSelectedStat e : (attrSelected == true) );
 }

 override public function get data() : Object
 {
 trace(RendererChec kBoxXML:get data:  + (_xmlItem != null ?
 [EMAIL PROTECTED] : null));
 return _xmlItem;
 }

 /**
 * This overridden function is where the logic is for updating the xml.
 */
 override public function set selected(selectedFl ag:Boolean) : void
 {
 trace(RendererChec kBoxXML:set selected:  + [EMAIL PROTECTED]) ;
 super.selected = selectedFlag;

 // Only update the xml if it needs to be updated. Each time the xml
 // is updated it will fire any bindings to it so we want to keep these
 // to a minimum.
 if ( [EMAIL PROTECTED] Attribute] != selectedFlag )
 {
 // The selected flag is different than the selectedAttribute
 attribute.
 // Now we make one last check to see if the selectedFlag is false and
 // there is no attribute selectedAttribute. If this is the case, then
 // we do NOT update because having no attribute selectedAttribute will
 // default to a false. Again, we do this so that we update the xml as
 // infrequently as possible.
 if ( selectedFlag || [EMAIL PROTECTED] Attribute] .length()  0 )
 {
 [EMAIL PROTECTED] Attribute] = String(this. selected) ; //set the
 checkbox state into the dataProvider
 }
 }
 dispatchEvent( new BaseEvent(selectio nSet, selectedFlag) );
 }

 // Called by click of the checkbox
 private function onClick(mouseEvent: MouseEvent) : void
 {
 trace(RendererChec kBoxXML:onClick:  + [EMAIL PROTECTED]) ;
 // Simply need to trigger the set selected function as that is
 where the logic for updating the xml is.
 this.selected = this.selected;
 }

 }
 }


  




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


Re: [flexcoders] Re: Async Concurrent Requests with AMF for BlazeDS or LCDS

2008-05-23 Thread Douglas Knudsen
 in advance,
   Jay
  
 

   




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


Re: [flexcoders] Re: How to use WebServices in Flex 3?

2008-05-21 Thread Douglas Knudsen
buggy really?  So far I've only used it once with a fairly complex set of
.NET WS apis and it worked fine.  With a quick tweak to a base file, you can
tie it into a Cairngorm delgate class and bamm.

DK

On Wed, May 21, 2008 at 10:10 AM, Robert Csiki [EMAIL PROTECTED] wrote:


 FlexBuilder3 generates ActionScript code for you for both service and
 data model. The service class has a header with comments on how to
 utilize it. Good luck! I've found this generated code as being pretty
 buggy for complex web services, but if you're using simple ones, you
 might be luckier than me. I suppose we have to let this tool grow up a
 bit before trying real web services.

 Robert

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 flexawesome [EMAIL PROTECTED]
 wrote:

 
  Hi there,
 
  I am playing the WebServices in Flex3, on the top menu bar clicks
 data= import Web
  Sevice(WSDL), it creates coupe of as files for me, I have no idea how
 can I use them, do you
  know any good tutorials to teach user how to use WebServices?
 
  Thank you so much
 

  




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


Re: [flexcoders] Re: Using custom item renderer with List

2008-05-20 Thread Douglas Knudsen
is your renderer complex and using bindings?  Try making use of invalidation
approaches.  eg, in set data() call invalidateProperties() and override
commitProperties() where you do the actual work.  Ely G has a great paper
talking about this approach.
http://flex.org/ACDS/BuildingAFlexComponent.pdf

DK

On Tue, May 20, 2008 at 1:26 AM, the_braniak [EMAIL PROTECTED] wrote:

   Thanks Alex specifying a rowHeight fixed the problem. However there's
 still an interesting/odd thing in this case which I forgot to mention
 in my post. The setter itself executes twice for every row in the
 list, and this also seems to be a default behaviour. To be more
 specific if
 the data provider recieves from the model: one, two, three,
 four , the data setter trace outputs:

 one
 two
 three
 four
 one
 two
 three
 four

 Cheers.

 PS.
 @Amy
 I have read the post on your blog, and to some extent you are right
 however in my case i was working with a repeater as a renderer before
 and it proved to be a killing performance issue. The repeater
 compenent created a new instance every time the model got updated.
 Considering the fact that I got 4 rows in the list and I was pooling
 data every 3 seconds that means at least 20 new object per minute. You
 can use the caching ootion of the repeater but still when profiling
 the appication the memory usage kept growing ang growing and never
 stop growing. When switched to List, the memory leak was not an issue
 anymore, but instead I got this 2 new issues one already fixed by Alex
 and the other one mentioned above. To conclude, event with the extra
 object created by the list it is still a better choice for me than the
 repeater.

  




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


Re: [flexcoders] Re: Securely Interfacing Between Flex and Databases

2008-05-20 Thread Douglas Knudsen
what the heck did you use before Flex that was so uber secure?  This is the
world wide web here we are discussing, eh?

DK

On Mon, May 19, 2008 at 8:43 PM, kenny14390 [EMAIL PROTECTED] wrote:

   Well the concern is that no matter how you choose to encrypt/decrypt
 information, a Flash movie can always be decompiled and your
 decryption method is caught with its pants down, allowing users to
 find out how to view sensitive material that they're not supposed to
 be looking at. So how are we supposed to move this kind of data in and
 out of a Flex application without the worry? Does SSL even help? The
 concern is not the forging of data, but rather the interception and
 decryption of it.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 andrewwestberg

 [EMAIL PROTECTED] wrote:
 
  Simply having SSL (https) enabled on your php webserver will help.
  Another methodology for accessing DB data is using AMFPHP (although I
  haven't used it myself).
 
  -Andrew
 

  




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


Re: [flexcoders] Installing Flex-plugin without copying to SDK folder again?

2008-05-19 Thread Douglas Knudsen
Look at help  software updates  manage configuration and choose add a
extension.  Point to the 'eclipse' directory where you installed the plugin.
You really need two eclipse versions?  You do know you can have multiple
workspaces, right?

DK

On Mon, May 19, 2008 at 3:33 AM, Dan [EMAIL PROTECTED] wrote:

   Hi, I have a very simple question, but i can't figure out the answer.
 Is there way to install a Flex-plugin to a second eclipse in the same
 machine without Re-installing the whole SDK? Because, when i use the
 installer, it will ask for the desire SDK folder everytime and try to
 reinstall all the files inside it again...

 Daniel

  




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


Re: [flexcoders] Re: bug in setMonth() method?

2008-05-19 Thread Douglas Knudsen
try
myDate = new Date(2008, 3, 6,0,0,0,0); //use new Date(2008, 2, 8,0,0,0,0)
for US
myDate.date += 1;
instead, eh?

I suspect mutating myDate.time is looked at as low level manipulation for
special cases.  Just a guess.

DK

On Mon, May 19, 2008 at 1:55 AM, Dmitri Girski [EMAIL PROTECTED] wrote:

   Hi Alex,

 Here is the bug when you set correct value and get incorrect result.

 https://bugs.adobe.com/jira/browse/SDK-14983
 adding 24 hours does will not cause switching to the next date if it
 happens over the daylight saving change date [summer-winter])

 Cheers,
 Dmitri.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex
 Harui [EMAIL PROTECTED] wrote:
 
  I would not guarantee results if you set values that are out of range.
 
  
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
  Behalf Of Amy
  Sent: Friday, May 16, 2008 2:31 PM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] bug in setMonth() method?
 
 
 
  Hi, all;
 
  I'm working on making an app that will allow users to navigate from
  one month to the next based on a start date and end date. I noticed
  some interesting effects with the date object and days that fall
  outside the 1-31 range (http://tinyurl.com/5qc46j
  http://tinyurl.com/5qc46j ), so I thought I'd
  try something similar with months.
 
  What I find is if the current month is 11 and you add 1 to it, you'll
  actually wind up with a date that's not in the _next_ year, but one
  in the year following.
 
  Here's my code
 
  public function makeDisplayedMonths(beginDate:Date, endDate:Date):void
  {
  var today:Date= new Date();
  //set up date for loop
  var parseDate:Date = beginDate;
  //equalize parsedate and enddate
  parseDate.setDate(1);
  endDate.setDate(1);
  while (parseDate = endDate) {
  //update date
  parseDate.setMonth(++parseDate.month);
  trace(parseDate, endDate);
  }
  }
 
  the trace is this
 
  Tue Jul 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009
  Fri Aug 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009
  Mon Sep 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009
  Wed Oct 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009
  Sat Nov 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009
  Mon Dec 1 00:00:00 GMT-0600 2008 Thu Jan 1 00:00:00 GMT-0600 2009
  Fri Jan 1 00:00:00 GMT-0600 2010 Thu Jan 1 00:00:00 GMT-0600 2009
 
  Note that it goes from Dec 1 2008 to Jan 1 2010, skipping 2009
  altogether.
 
  Obviously now I know this I can code around it, but it seems like it
  should either throw an error that the month is out of range or just
  keep incrementing.
 
  Or have I missed something here?
 
  Thanks;
 
  Amy
 

  




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


Re: [flexcoders] Can AIR app get Workstation Credentials?

2008-05-15 Thread Douglas Knudsen
yes, on the wild internet I 100% agree.  But what about a inTRAnet with
strict IT rules in place?   The amount of time wasted logging in to the 25+
apps a day some enterprise employees have to use is expensive.

DK

On Thu, May 15, 2008 at 4:00 PM, Rick Winscot [EMAIL PROTECTED]
wrote:

Crossing authentication barriers is always a hot topic… and the
 EncryptedStore would be a great place to mount a single sign-on solution for
 AIR apps. However – to keep this all in perspective – remember that any
 authentication method that allows credentials acquired during a handshake to
 be 'handled' outside the originating system isn't secure… it's a very bad
 idea.



 Rick Winscot





 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Kevin Aebig
 *Sent:* Thursday, May 15, 2008 10:56 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* RE: [flexcoders] Can AIR app get Workstation Credentials?



 Isn't this a perfect usage of the EncryptedStore feature? Why not save the
 login credentials when the person first logs in, than save them via the
 EncryptedStore for the remaining usage.



 !k


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Geoffrey
 *Sent:* Wednesday, May 14, 2008 3:11 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Can AIR app get Workstation Credentials?



 Our flex app requires a login(HTML page) before launching the main
 app(the SWF does not handle the logging in).

 Converting to an AIR app and I was wondering if I could get the logged
 in user's credentials from the workstation so we don't require a login
 screen.

   




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


Re: [flexcoders] Data format for drag and drop

2008-05-14 Thread Douglas Knudsen
although there are a couple builtin formats for List based controls and the
Tree, the full list is up to you to create.  You can use what ever you
want.  eg

var ds:DragSource = new DragSource();
ds.addData(dragInitiator, 'superFuzz');

or

var ds:DragSource = new DragSource();
ds.addData(dragInitiator, 'lipsum');

DK


On Wed, May 14, 2008 at 8:59 AM, Josh Millstein [EMAIL PROTECTED]
wrote:

Ok, but in the dragsource addData call you have to specify the format
 of what you are dragging.  Where is a list of formats?


 On 5/13/08 10:47 PM, Alex Harui [EMAIL PROTECTED] wrote:




 You can drag anything.


 --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED][EMAIL 
 PROTECTED]
 *On Behalf Of *Josh Millstein
 *Sent:* Tuesday, May 13, 2008 6:55 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Data format for drag and drop


 Can anybody point me to a list of acceptable drag and drop formats that a
 Dragsource would use. I'm trying to drag a UIComponent that I have drawn
 in.

 var ds:DragSource = new DragSource();
 ds.addData(dragInitiator, 'graphics');



 --
 [EMAIL PROTECTED]
 785-832-9154

   




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


Re: [flexcoders] Can AIR app get Workstation Credentials?

2008-05-14 Thread Douglas Knudsen
not yet.  When I asked about this at the AIR bus tour...summarized 'AIR 1 is
really for consumers.  Air 2 or more may add enterprise type features such
as this.'

DK

On Wed, May 14, 2008 at 3:11 PM, Geoffrey [EMAIL PROTECTED] wrote:

   Our flex app requires a login(HTML page) before launching the main
 app(the SWF does not handle the logging in).

 Converting to an AIR app and I was wondering if I could get the logged
 in user's credentials from the workstation so we don't require a login
 screen.

  




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


Re: [flexcoders] Drag and Drop (modify default dragProxy)

2008-05-12 Thread Douglas Knudsen
perhaps you can create a Label with the text from these twocolumns and then
use this method
http://livedocs.adobe.com/flex/3/html/dragdrop_7.html#226768

DK

On Mon, May 12, 2008 at 8:40 AM, nwebb [EMAIL PROTECTED] wrote:

   Hi,

 I'm drag/dropping items within a DataGrid. I would like to modify the
 default dragProxy label that is shown when you drag an item.

 (i.e. my DataGrid may have 4 columns, but I only want to show text from
 the last two columns).

 Does anyone know how to access it?


  




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


Re: [flexcoders] Need help with TileList ItemRenderer

2008-05-10 Thread Douglas Knudsen
what is the error?  You speak of a dataProvider, a TileList, and a
itemRenderer but I see nothing in the renderer below referring to the 'data'
object of the TileList, rather its using info from the model directly.  Have
a look at this
http://blog.flexexamples.com/2008/01/25/removing-folder-icons-from-the-flex-tree-control/
there is a example of a itemRenderer for the TileList there.

HTH!

DK



On Sat, May 10, 2008 at 9:19 AM, donvoltz [EMAIL PROTECTED] wrote:

   I am trying to create a calendar of sorts that loops through a
 selected month and diplays a custom Panel for each day. I have
 constructed an ArrayCollection to hold the number of days for each
 month and have used this as the dataProvider for a TileList component.
 This functions fine. I am now trying to extend the Panel by using a
 custom component that will add labels into this Window. The following
 code is what I am using for my Panel component (which is also what I
 have assigned to my TileList ItemRenderer).

 ?xml version=1.0 encoding=utf-8?
 mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
 creationComplete=initComp()
 mx:Script
 ![CDATA[
 import mx.controls.Label;
 import
 com.dynamicmedicalventures.De2ORApplication.model.AppModelLocator;
 [Bindable]
 private var modelLocator:AppModelLocator =
 AppModelLocator.getInstance();

 public function initComp():void {
 var i:int;

 for (i=0; imodelLocator.callLocations.length(); i++){
 var callLabel:Label = new Label();
 callLabel.text = modelLocator.callLocations[i].callLocationName;
 addChild(callLabel);
 }

 }
 ]]
 /mx:Script


 /mx:Panel

 Can anyone help me to determine why I am getting an error when I try
 to loop through an array of objects to dynamically display these labels.

 Thanks in advance for the help

 Don

  




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


Re: [flexcoders] Error #2032: Stream Error

2008-05-07 Thread Douglas Knudsen
not necessarily.  this 2032 error is thrown when the browser tells the
player something mucked up in the response before the browser passed the
response to the player.  Whatever the mucked up issue is, the browser does
not tell the player what is at issue and it gets the 2032 label.  I've seen
this occur regularly for a web service call in IE, but not FF and Service
Capture indicated nothing wrong with the response, go figure.

search the archives, its not a uncommon subject.

DK

On Wed, May 7, 2008 at 9:40 AM, Josh McDonald [EMAIL PROTECTED] wrote:

   The stream error is what you get when the server returns a 500 fault.
 Try using a proxy like Charles to see what the actual data returned from the
 server was, there's usually better information in the response, but the
 browser doesn't let Flash see it.

 -J


 On Wed, May 7, 2008 at 9:45 PM, Deniz Davutoglu 
 [EMAIL PROTECTED] wrote:

I have a couple http services which pool data from mysql and apcahe,
  just one of them is trowing
 
  [RPC Fault faultString=HTTP request error
  faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent
  type=ioError bubbles=false cancelable=false eventPhase=2 text=Error
  #2032: Stream Error. URL: php/siteler.php]. URL: php/siteler.php]
  at
  mx.rpc::AbstractInvoker/
  http://www.adobe.com/2006/flex/mx/internal::faultHandler
  ()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:216]
  at
 
  mx.rpc::Responder/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:49]
  at
 
  mx.rpc::AsyncRequest/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
  at
 
  DirectHTTPMessageResponder/errorHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:343]
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at flash.net::URLLoader/redirectEvent()
 
  I know that this page exist and return data becouse when I enter url
  in browser it returns me data.
  Do you have any idea what about is this problem.
 
 


 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]
 




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


Re: [flexcoders] [Bindable] variables

2008-05-04 Thread Douglas Knudsen
Nope, only visually different.

DK



On 5/3/08, Steve Good [EMAIL PROTECTED] wrote:
 While doing the examples out of my Flex 3 book I had a question that, as far
 as I can tell, isn't covered by the book.  Is there any difference between
 the following two declarations?



 [Bindable]

 private var foo:String;



 OR



 [Bindable] private var foo:String;





 Thanks!



 ~Steve

 http://lanctr.com/





-- 
Sent from Gmail for mobile | mobile.google.com

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


Re: [flexcoders] can I have two separate mx:Script/ blocks?

2008-05-03 Thread Douglas Knudsen
Fastest way to that answer is try it, eh?  Sounds like you'd be better
off creating two components though to seperate your concerns.

DK



On 5/3/08, hoytlee2000 [EMAIL PROTECTED] wrote:
 Hello,

 can I use two separate mx:Script/ blocks?

 Such as:

 Application

 mx:Script
 ...
 ...
 ...
 /mx:Script

 mx:Tags/
 ...
 ...
 ...

 mx:Script
 ...
 ...
 ...
 /mx:Script

 /Application

 I'd want to do this to organize my script code between two canvases in a
 view stack
 container.  Are there any drawbacks to doing this?

 thanks,
 Hoyt





-- 
Sent from Gmail for mobile | mobile.google.com

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


Re: [flexcoders] Re: Cairngorm - always event, always command? Part2

2008-05-02 Thread Douglas Knudsen
certainly use the pattern for reading from a SO. Your Command should be
clueless if its a SO or RPC call, the Delegate does that job.  Consider the
case where you switch from storage in your SO to say S3 or a big phat Oracle
DB.  You only need change your delegate.   You can also have a Command that
mutates your Model in some way that doesn't need any Delegate or Responder.

Now, if you just want to add 1 + 1, try Googling on 'AbacusCommand'   hehe!

DK

On Fri, May 2, 2008 at 3:55 AM, chigwell23 [EMAIL PROTECTED] wrote:

   Thanks Jim. With the Delegate and Responder stuff, it seems on the
 surface that Cairngorm is predisposed to service/backend communication
 solutions. Taking the example of a function that at the moment is
 reading Shared object data - how would this be Cairngormed? When the
 Command code is reached, does one just stay there and run the SO code?
 i.e. does one move all the function code into a Command function for
 non-service oriented activity? Forget Delegates and Responders?

 Really interested in what people think here, as the majority of
 Cairngorm examples I have seen, have used Cairngorm events for the
 service-oriented stuff, but have regressed to embedded functions for
 the rest.

 I would really like someone to show me how add 1+ 1 is Cairngormed
  being serious here! Thanks in advance,

 Mic.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jim
 Hayes [EMAIL PROTECTED] wrote:
 
 
  I can't see how you'd benefit from sidestepping the cairngorm event
 - command way of working in this case.
  If you use a service to get the IP address then it's asynchronous,
 and has a few possible outcomes.
  I can't see why you wouldn't want to wait for it's got one of those
 results or an error event and then deal with the outcome.
  Which is where the cairngorm way of doing things is really helpful.
 
  If it's synchronous (like opening a database or prefs file in AIR,
 say), then you could maybe skip cairngorm (I do, and get away with it,
 mostly).
  In which case I can't see the benefit of thinking of (or packaging )
 it as a cairngorm command. I'd rather put it somewhere else and know
 it was a different thing.
 
  But what I've found most of the time is that if you're going to do a
 cairngorm app then it's really worth going with the flow and doing
 pretty well everything that way,
  even if it does mean writing 3 classes when you could get away with
 a local method.
  Generally, when I've made short cuts like that it's come back and
 bitten me on the arse.
  I do still do it when I'm in experimental/creative or lazy mode, but
 now I'll try to refactor it into the cairngorm way sooner rather than
 later.
  Which is sometimes a bit boring, but there you go.
 
  Hope that makes (at least some) sense!
 
 
 
  -Original Message-
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com on
 behalf of chigwell23
  Sent: Thu 01/05/2008 22:51
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] Cairngorm - always event, always command?
 
  pseudocode:
 
  creationComplete
  var ipAddress:String
  ipAddress = getUserIP()
 
 
  function getuserIP():String{
 
  // use Services to go out to ColdFusion which can tell me user IP
  return IP
  }
 
  But Cairngorm encapsulates actions into commands which are driven by
  an event and a delegate. So how does it handle examples like the one
  above? Should I create a getIP event, which is dispatched from
  creationComplete, and use the standard command/delegate path. If the
  event is not necessary, and it still makes sense to put the action
  in a command, how would that command get activated without the
  Cairngorm event process? I know what I mean grin. TIA,
 
  Mic.
 
 
 
  __
  This communication is from Primal Pictures Ltd., a company
 registered in England and Wales with registration No. 02622298 and
 registered office: 4th Floor, Tennyson House, 159-165 Great Portland
 Street, London, W1W 5PA, UK. VAT registration No. 648874577.
 
  This e-mail is confidential and may be privileged. It may be read,
 copied and used only by the intended recipient. If you have received
 it in error, please contact the sender immediately by return e-mail or
 by telephoning +44(0)20 7637 1010. Please then delete the e-mail and
 do not disclose its contents to any person.
  This email has been scanned for Primal Pictures by the MessageLabs
 Email Security System.
  __
 

  




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


Re: [flexcoders] Re: Cairngorm Model Locator

2008-04-30 Thread Douglas Knudsen
On Wed, Apr 30, 2008 at 10:49 AM, Tom Chiverton 
[EMAIL PROTECTED] wrote:

 On Wednesday 30 Apr 2008, Ben Clinkinbeard wrote:
   Do I have to give both success and failure callbacks
  Nope, only the first arg (result handler) is required

 But I can intermix UMEvent and Cairngorm Event as needed, right ?


Sure.  Just to reiterate UMEvent extends CairngormEvent.

DK



   will it use one
 
  defined in the Command if (say) the failure callback is missing from the
  UMEvent ?
 
  Exactly, that's a very common approach

 Rar.

 --
 Tom Chiverton
 Helping to evangelistically reinvent front-end architectures
 on: http://thefalken.livejournal.com

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England
 and Wales under registered number OC307980 whose registered office address
 is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.
  A list of members is available for inspection at the registered office. Any
 reference to a partner in relation to Halliwells LLP means a member of
 Halliwells LLP.  Regulated by The Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents.  If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.com.

 

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






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


Re: [flexcoders] Re: Best way to secure a ColdFusion web service

2008-04-28 Thread Douglas Knudsen
this is similar to ServiceCapture, Charles, Wireshark, etc, eh?  They are
'man-in-the-middle' tools.  They have to be installed and running on the PC
to intercept/view any http/https requests.

Tom, you are merely suggesting that it is possible that a user could have a
man-in-the-middle virus/proggy running unbeknownst to them?

DK

On Mon, Apr 28, 2008 at 11:13 AM, valdhor [EMAIL PROTECTED] wrote:

   Hmmm - I will have to check out WebScarab.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tom
 Chiverton [EMAIL PROTECTED]
 wrote:
 
  On Monday 28 Apr 2008, valdhor wrote:
   We use SSL Encryption of the username and password as well as the data
   going over the wire.
 
  Uh huh.
 
   Are you saying that it is trivial for someone to find out the source
   and destination of the encrypted SSL stream, grab this data off the
   wire and decrypt it?
 
  I'm saying I can, and have, used WebScarab (for instance) as an SSL
 proxy, and
  been able to see the plain text of both request and response.
  It's a free Java tool, and I've personally had it work on both WinXP
 and SuSE
  Linux.
 
  --
  Tom Chiverton
  Helping to dynamically reinvent frictionless e-commerce
  on: http://thefalken.livejournal.com
 
  
 
  This email is sent for and on behalf of Halliwells LLP.
 
  Halliwells LLP is a limited liability partnership registered in
 England and Wales under registered number OC307980 whose registered
 office address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
 Manchester, M3 3EB. A list of members is available for inspection at
 the registered office. Any reference to a partner in relation to
 Halliwells LLP means a member of Halliwells LLP. Regulated by The
 Solicitors Regulation Authority.
 
  CONFIDENTIALITY
 
  This email is intended only for the use of the addressee named above
 and may be confidential or legally privileged. If you are not the
 addressee you must not read it and must not use any information
 contained in nor copy it nor inform any person other than Halliwells
 LLP or the addressee of its existence or contents. If you have
 received this email in error please delete it and notify Halliwells
 LLP IT Department on 0870 365 2500.
 
  For more information about Halliwells LLP visit www.halliwells.com.
 

  




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


Re: [flexcoders] Re: mx:List with itemRenderer

2008-04-16 Thread Douglas Knudsen
try capturing whether a drag can occur based on a mouseOver maybe.  eg,
onMouserOver set canDrag = true if NOT over the footer.  Then in your drag
handler check this to see if drag is allowed or not.  This technique I use
usually to make sure the user clicks on the actual object to be dragged, but
not outside the object.

DK

On Wed, Apr 16, 2008 at 9:43 AM, tchredeemed [EMAIL PROTECTED] wrote:

   any ideas?


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 tchredeemed [EMAIL PROTECTED] wrote:
 
  I have a list that has an itemRenderer.
 
  The footer of the itemRenderer can be dragged up or down in order to
 show/hide data.
 
  I want to be able to drag that without triggering the dragHandler for
 the list.
 
  In other words, I want to be able to drag an item from anywhere except
 the footer to move
 it
  inside the list, but if i drag from the footer, i do not want it to
 trigger.
 
  Any ideaS?
 

  




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


Re: [flexcoders] RadioButtonGroup numRadioButtons never changing

2008-04-13 Thread Douglas Knudsen
Note, use of groupName in AS is not the way of the light so to speak.  Use
rb.group = refToRadioButtonGrp

DK

On Fri, Apr 11, 2008 at 10:21 PM, kenny14390 [EMAIL PROTECTED] wrote:

   I have a canvas consisting of 5 different radio button groups: Lec,
 Dis, Ind, Sem, and Act. In my Script I have the following:

 var rb:RadioButton;
 rb.label = (L) +l.dataProvider.source[m];
 rb.name = l.dataProvider.source[m];
 rb.groupName = Lec;
 rb.x = x;
 rb.y = y;
 y+=15;
 sectRadioCanvas.addChild(rb);

 This is done a variable number of times, depending on the list l.
 The radio buttons act as if they are in a group (only one of them is
 selectable at a time) but when I check the group's numRadioButtons
 field, it is always set to 0. What I wanted to do was later check the
 names of each radio button in the group and if it matches a given
 name, then change the radio button to be selected. This seems to be
 the best and only way to make a radio button be selected given only
 its name and group. Any ideas on how to circumvent this problem?

  




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


Re: [flexcoders] Soap and Dates - big problems! any soap+flex ninjas here can help?

2008-04-13 Thread Douglas Knudsen
set resultFormat='e4x' on your webservice methods.  Note that if you are
depending on the default Object format in your code, your code will need a'
changin.

DK

On Sat, Apr 12, 2008 at 10:36 PM, Josh McDonald [EMAIL PROTECTED] wrote:

   How do I switch to E4X format results? I didn't know you could do that,
 agnabbit!

 How on earth did this pass QA, and is it fixed in 3?

 -J

 On Sat, Apr 12, 2008 at 4:18 AM, Douglas Knudsen [EMAIL PROTECTED]
 wrote:

yeah, that section reads
 
  xsd:dateTime
 
 Date
 
If no timezone information is present, local time is assumed.
 
  which I do not see occurring.  Seems to ignore the TZ info in the SOAP
  response and uses local TZ in 2.0.1 HF1.  Note though that if you use the
  default return format of Object in a webservice method, this is automagic.
  If return format is say e4x, you can parse the date yourself correctly.
  IME, but YMMV and other cryptic letter combos.
 
  DK
 
  On Fri, Apr 11, 2008 at 2:30 AM, Peter Connolly [EMAIL PROTECTED]
  wrote:
 
 Not a ninja. But I find the following section of the livedocs
   invaluable:
  
   http://livedocs.adobe.com/flex/3/html/data_access_3.html#202409
  
   Especially the section: Decoding XML schema and SOAP to ActionScript 3
  
   And the equally important: XML Schema element support
  
   pc
  
 
 
 
  --
  Douglas Knudsen
  http://www.cubicleman.com
  this is my signature, like it?
 



 --
 Therefore, send not to know For whom the bell tolls, It tolls for thee.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]
  




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


Re: [flexcoders] How the hell do you debug a 1009 error from SOAP?

2008-04-13 Thread Douglas Knudsen
Service Capture, trace(), and some chicken bones :)  Seriously, I'd invest
in Service Capture or Charles to sniff your SOAP.  You  can certainly use
Wireshark or FireBug too, but not for AMF sniffing which smells better to
me!

DK

On Sun, Apr 13, 2008 at 7:27 PM, Josh McDonald [EMAIL PROTECTED] wrote:

   I've started getting a 1009 error for no apparent reason when trying to
 call a SOAP method, and there's absolutely no useful debugging information,
 it just comes up as a fault event. How is one supposed to track down and fix
 something like this? I'm stuck on 2.01 so there's no source to rpc.* to
 browse.

 Any help much appreciated.

 -J

 --
 Therefore, send not to know For whom the bell tolls, It tolls for thee.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]
  




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


Re: [flexcoders] Re: What do you think of UM Cairngorm Extensions,especially for Modular Apps?

2008-04-11 Thread Douglas Knudsen
After joining UM and working with this I found the most kewlest slick part I
like is the callback support in Cairngorm events.  Uber sweet at helping you
handle results and not bloating out your ModelLocator instances.  Also, the
sweet hook that easily sets up using dispatchEvent no matter if its a
Cairngorm event or not.  Concerning modules, err not the most entertaining
subject in my book so I will not speak too much about it, but yeah, no
example exists yet using the extensions for them TIKO, but we do use these
day-to-day.  The controllers added enable your modules to be part of the
eco-system yet separate and pluggable.  Consider a app that has module A and
B loaded at run time.  How does say a gesture in module B throw a Cairngorm
event that module A  reacts to?  The modified controllers enable this.
Peruse the inline comments in the com.universalmind.cairngorm.control
package for some info.

DK

On Fri, Apr 11, 2008 at 8:52 AM, ben.clinkinbeard 
[EMAIL PROTECTED] wrote:

   Well, they would all point to the same Cairngorm/UM Cairngorm SWC
 (that lives in the library project) but yes, you would have a model,
 services, etc in each project. The resulting swf is built using
 -link-report/-load-externs to optimize the inclusion of classes though
 so you don't have unnecessary bloat.

 Having each module be self-contained (as much as a module can be)
 isn't really possible if its relying on a base app for model,
 services, etc.


 Ben

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, João
 [EMAIL PROTECTED] wrote:
 
  Ben,
 
  but that would mean that I would have a lot of code duplicated for
  each module, right? In this case, the cairngorm source (or, at least,
  the singletons). Am I right?
  It doesn't seem a good practice to me... what do you think?
 
  João Saleiro
 

  




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


Re: [flexcoders] Soap and Dates - big problems! any soap+flex ninjas here can help?

2008-04-11 Thread Douglas Knudsen
yeah, that section reads

xsd:dateTime

   Date

  If no timezone information is present, local time is assumed.

which I do not see occurring.  Seems to ignore the TZ info in the SOAP
response and uses local TZ in 2.0.1 HF1.  Note though that if you use the
default return format of Object in a webservice method, this is automagic.
If return format is say e4x, you can parse the date yourself correctly.
IME, but YMMV and other cryptic letter combos.

DK

On Fri, Apr 11, 2008 at 2:30 AM, Peter Connolly [EMAIL PROTECTED]
wrote:

   Not a ninja. But I find the following section of the livedocs
 invaluable:

 http://livedocs.adobe.com/flex/3/html/data_access_3.html#202409

 Especially the section: Decoding XML schema and SOAP to ActionScript 3

 And the equally important: XML Schema element support

 pc
  




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


Re: [flexcoders] Re: What do you think of UM Cairngorm Extensions,especially for Modular Apps?

2008-04-11 Thread Douglas Knudsen
http://code.google.com/p/flexcairngorm/
from the home page there is
Implementation of EventGenerator to allow developers to automate
dispatching of sequences of events.

I have not actually used this.  It might be covered in Thomas' Flex Show
which you can find a link to here
http://www.cubicleman.com/2008/04/09/universal-minds-cairngorm-extensions/

DK

On Fri, Apr 11, 2008 at 3:28 PM, João Fernandes 
[EMAIL PROTECTED] wrote:

Jon,

 regarding chain events, I use modular which allows this ( in fact thanks
 to Bjorn Schultheiss ). All you have to do is to have your events extend
 ChainEvent (which extends cairngormEvent ) and your commands extend
 SequenceCommand.

 Then you can combine any of those events in any order or you can use them
 *standalone.*

 something like this

 ev1: firstChainedEvent = new FirstChainedEvent();
 ev2: secondChainedEvent= new SecondChainedEvent();
 ev3: someOtherEvent = new SomeOtherEvent();

 ev : ChainEvent = EventChainFactory.chainEvents( [ ev1 , ev2 , ev3 ] );
 ev.dispatch();

 all that your commands should do is to store in the command nextEvent
 property the value of  chainEvent(e).nextChainedEvent and call
 executeNextCommand() on result and fault handlers.

 Of course this approach could be enhanced and add specific events based on
 a result or fault.

 --

 João Fernandes
 http://www.onflexwithcf.orghttp://www.riapt.org
 Portugal Adobe User Group (http://aug.riapt.org)

  




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


Re: [flexcoders] DataGrid itemRenderer and Loader Class

2008-04-11 Thread Douglas Knudsen
Anytime Image.source changes the loader loads the image located at the
given URL. The browser would handle any caching of that. You can embed
images into your swf, check out the Embed meta word, but this will
require a custom itemRenderer.

DK




On 4/11/08, natjai [EMAIL PROTECTED] wrote:
 Thanks for your response.

 If Image is used as a renderer, would it load the image pointed to by
 the URL?
 If the image is already loaded by loader class (for a different
 purpose and is available in a local cache), would this not be
 redundant load?

 -nj

 --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:
 
  If your data objects contain an imageAttr field that is a URL, you
 can
  use Image as your renderer.  You shouldn't need to fool around with
 the
  image.data or setting the image into your dataArray.
 
 
 
  
 
  From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
  Behalf Of natjai
  Sent: Friday, April 11, 2008 11:29 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] DataGrid itemRenderer and Loader Class
 
 
 
  Hello,
  I am new to flex, i apologize if this questions seems out of
 context.
 
  I have an image loaded with the Loader class in actionscript (say
  in a variable loader)
 
  I need to display this image onto a DataGrid Cell.
 
  Can i use a drop-in itemRenderer of Image class?
 
  Assuming the dataGrid has been set with a dataprovider
  dataArray[rows][columns],
 
  And the specified (dynamic) dataColumn in question is set
  dataGridColumn.dataField = imageAttr
 
  Could i do something like
  var image:Image = new Image();
 
  image.data = Bitmap(loader).bitmapData
 
  dataArray[row][imageAttr] = image
 
  If this is not possible and i need to write a customRenderer, can
 you
  please guide me with a sample?
 
  thanks,
  -nj
 




-- 
Sent from Gmail for mobile | mobile.google.com

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


Re: [flexcoders] How to Clear/Reset Item Renderers When the Data Provider Changes?

2008-04-03 Thread Douglas Knudsen
Are you overriding the data mutator in your itemRenderer?  Sounds like
maybe a re-use issue. Read up on this stuff on Alex Harui's blog.
Sorry no link at hand but Google will hit on it I'm sure.

DK



On 4/3/08, Paul Whitelock [EMAIL PROTECTED] wrote:
 I just tried removing the DataGrid from the display list and then
 immediately re-adding it. The ghost data did not go away, so perhaps
 it's not a redraw issue.

 I can't understand why the last item edited in the grid sticks around
 when the data provider is changed.


 --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote:
 
  After a bit more investigation it appears that it might be a redraw
  issue since the last cell that is clicked is the one where the ghost
  data appears.
 
  Is there a way to force the DataGrid and all custom renderers to
  redraw? I've tried calling validateNow() on the DataGrid but it did
  not have an effect.
 
 
 
 
  --- In flexcoders@yahoogroups.com, Paul Whitelock paul@ wrote:
  
   I have a single row DataGrid with a typed object bound as a data
   provider. When data is entered in all columns the handler for
   itemEndEvent updates another DataGrid and creates a new empty object
   that replaces the previous data provider for the DataGrid.
  
   Even though the data in the new object that replaces the old data
   provider is empty, the data that was previously entered in the
   DataGrid columns randomly fills one or two of the five columns that
   should be empty (it most often happens with two DateFields that are in
   custom item renderers). Though data appears in the column cell, if you
   try to get the data it comes back as null.
  
   Somehow the DataGrid or the custom item renderer is caching the
   previous data and randomly re-displaying it. I've tried setting the
   DataGrid data provider to null, then attaching the new empty object as
   the data provider, but the ghost data still comes back.
  
   Any ideas how I can clear this old data when I replace the data
   provider for the DataGrid so it doesn't reappear in columns that
   should be empty? Thanks.
  
 




-- 
Sent from Gmail for mobile | mobile.google.com

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


  1   2   3   4   5   6   >