[flexcoders] simple RSS reader can't read with one item

2009-08-15 Thread hworke


Hi, when I am trying to read a RSS link with one item node in it I do not get
anything but when the RSS link has more then one item node all
the nodes show up. Why can't I read when RSS has only one item?
How do I solve this problem?

here is how I am handling the the result event of the httpservice:

private function userUpdateMyplate(event:ResultEvent):void
{
   var f_Array:ArrayCollection = event.result.RDF.item as ArrayCollection;
   myDataGrid.dataProvider = f_Array;
}



Re: [flexcoders] simple RSS reader can't read with one item

2009-08-15 Thread Wesley Acheson
I think its because it doesn't know if its an item or a collection

try the following.  If its not this I can't help.

  var f_Array:ArrayCollection = event.result.RDF.item as ArrayCollection;
  if (f_Array == null) {
   f_Array = new ArrayCollection([event.result.RDF.item]);
  }
myDataGrid.dataProvider = f_Array;


On Sat, Aug 15, 2009 at 9:49 AM, hworke kanps...@gmail.com wrote:



 Hi, when I am trying to read a RSS link with one item node in it I do not
 get
 anything but when the RSS link has more then one item node all
 the nodes show up. Why can't I read when RSS has only one item?
 How do I solve this problem?

 here is how I am handling the the result event of the httpservice:

 private function userUpdateMyplate(event:ResultEvent):void
 {
   var f_Array:ArrayCollection = event.result.RDF.item as ArrayCollection;
   myDataGrid.dataProvider = f_Array;
 }



 

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






Re: [flexcoders] Flex and NT Login

2009-08-15 Thread Wesley Acheson
I think this is LDAP authentication.  If your using server technology look
at what that sever supports
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailsproductId=2postId=7122

On Fri, Aug 14, 2009 at 9:01 PM, ballofmagic ballofma...@yahoo.com wrote:

 Do you know how to create an NT Authentication which will then extract role
 persmissions from a separate database with a Flex UI?



 

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






Re: [flexcoders] Event Best Practices

2009-08-15 Thread claudiu ursica
As long as the component are oon the display list and the event bubbles 
property is set to true you can listen for the event in the main app. However 
you can catch the event in every component nested in the main app which parents 
the component that dispatched the event...

THT,
C





From: jdizowat jasonharr...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Friday, August 14, 2009 6:48:52 PM
Subject: [flexcoders] Event Best Practices

   
Super Noob Question Incoming - 

So if I my application looks like the following -

mx:app
mx:customComponent 
mx:customComponent /
/mx:customComponen t
/mx:app

That deepest custom component dispatches an event and I would like that event 
to make it to the application level.  Is that even normal to have components 
that nested? 

Thanks for any insight,
Jason


   


  

Re: [flexcoders] Re: Event Best Practices

2009-08-15 Thread Magnus Lassi
I don't see the event mentioned, is it a custom event you created or an
event in the framework? If it's a custom event, did you override the clone
function?

On Fri, Aug 14, 2009 at 3:15 PM, jdizowat jasonharr...@gmail.com wrote:



 Thanks for all the help. I have exactly what you said, Jake. A little more
 info -

 I have the following:

 mx:app - event never gets here
 mx:customComponent - this tabcontainer handles it just fine
 mx:customComponent / - this is a popup titlewindow which dispatches the
 event
 /mx:customComponent
 /mx:app

 I dispatch the event from the popped-up titlewindow. I have bubbles=true.
 I'm sorry, I'm not understanding why the event isn't making it up to the
 application level. I even tried taking out the event listener on the next
 level up. What now? I know what I'm reading up on this weekend :)

  



[flexcoders] Spark DropDownList Items Tooltip

2009-08-15 Thread michaelisraelcaplan
Hi there,

I'm trying to figure out how to add tool tips for a hovered list item in a 
spark dropdownlist.


This guy posted how to accomplish this with combobox:

http://raghuonflex.wordpress.com/2007/09/19/tooltips-for-combobox-items-or-list-items/

Any tips on doing the same thing with the spark dropdownlist?

Thanks,

Mike




Re: [flexcoders] simple RSS reader can't read with one item

2009-08-15 Thread Vivian Richard
   You solution works like MAGIC. Thanks a lot...




On Sat, Aug 15, 2009 at 3:07 AM, Wesley Achesonwesley.ache...@gmail.com wrote:


 I think its because it doesn't know if its an item or a collection

 try the following.  If its not this I can't help.

   var f_Array:ArrayCollection = event.result.RDF.item as ArrayCollection;
   if (f_Array == null) {
    f_Array = new ArrayCollection([event.result.RDF.item]);
   }
 myDataGrid.dataProvider = f_Array;


 On Sat, Aug 15, 2009 at 9:49 AM, hworke kanps...@gmail.com wrote:


 Hi, when I am trying to read a RSS link with one item node in it I do not
 get
 anything but when the RSS link has more then one item node all
 the nodes show up. Why can't I read when RSS has only one item?
 How do I solve this problem?

 here is how I am handling the the result event of the httpservice:

 private function userUpdateMyplate(event:ResultEvent):void
 {
   var f_Array:ArrayCollection = event.result.RDF.item as ArrayCollection;
   myDataGrid.dataProvider = f_Array;
 }



 

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




 


Re: [flexcoders] This mailing list vs the forum.

2009-08-15 Thread Jochem van Dieten
On Sat, Aug 15, 2009 at 12:54 AM, Matt Chotin wrote:
 You can assume that we have this as an issue on our private contract-based
 forums with them.

I could assume that, but why should I? I have previously assumed that
issues I reported to Adobe were escalated to Jive, based on feedback
from Adobe on my reports. Until I checked with Jive and they said they
never got it: http://www.jivesoftware.com/jivespace/message/234157#234157

So instead of assuming why not just tell us what the issue number on
your private forum is? Then I'll get the public case tagged with that
one too.


 WE at least got the
 replies to work in most email clients by getting rid of the stupid [xxx]
 suffix on each.

If you consider the current situation to work I guess I just have
higher standards.


If everybody in this thread had sent his messages by email to the
Adobe forums email 'feature' instead of Yahoo, 5 messages would be
missing part or all of their content. If you had sent your message to
the forums we would not be reading it the way you sent it, because the
Jive software would have converted your [xxx] to something else.

Jochem


-- 
Jochem van Dieten
http://jochem.vandieten.net/


[flexcoders] Singletons and Modules - Application domain problem

2009-08-15 Thread Everson Alves
Hello guys,

I'm facing a weird problem. I'm working with flex Modules that are tide mxml
components . Using ModuleManager to load the modules. If I load using
moduleInfo.load(ApplicationDomain.currentDomain) it loads fine but as I want
to use the module as independent sub applications and they use the same
class definitions that doens't play nice with singletons (ModelLocator) .
When loading using  moduleInfo.load() expecting that it uses it's own
ApplicationDomain it loads, dispatches ModuleEvent.READY event but
moduleEvent.module.factory.create() gives me null. I also tried
moduleInfo.load(new ApplicationDomain(ApplicationDomain.currentDomain)) but
this case dispatches a ModuleEvent.ERROR saying that file isn't a loadable
module or something like that. An detail that might be important is that the
module is marked to be optimized to my application in compilation.

thanks in advance.

-- 
Jhonny Everson


[flexcoders] Html Title and Google rank

2009-08-15 Thread christophe_jacquelin
Hello, 

How to set the balise Title,Description, Keywords of the html file that launch 
the SWF, because it is automatically regenerated. 

How to have a good rank on Google with a Flex Application ? 

Thank you,
Christopher, 



Re: [flexcoders] Html Title and Google rank

2009-08-15 Thread Wesley Acheson
I probably woudn't use that file in production.  You can easily copy out
areas that you want.

Google Rank I don't know.  Get many incomming links.

On Sat, Aug 15, 2009 at 10:04 PM, christophe_jacquelin 
christophe_jacque...@yahoo.fr wrote:

 Hello,

 How to set the balise Title,Description, Keywords of the html file that
 launch the SWF, because it is automatically regenerated.

 How to have a good rank on Google with a Flex Application ?

 Thank you,
 Christopher,



 

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






[flexcoders] Re: Java/Flex questions answered by James Ward

2009-08-15 Thread meteatamel
Are you using AMFChannel? AMFChannel uses NetConnection and NetConnection, by 
default, batches request that are close in a single POST. You can try to 
increase the time between requests or you can wait for a result/fault before 
sending the next request. If I remember correctly, HTTPChannel does not do this 
(it uses URLLoader), so you can try using HTTPChannel as well.

-Mete

--- In flexcoders@yahoogroups.com, ilikeflex ilikef...@... wrote:

 Hi James
 
 I asked the question in StackOverflow.com but by mistake i tagged 
 httprequest. Please answer this time and i will tag properly next time.
 
 Thanks
 ilikelfex
 
 --- In flexcoders@yahoogroups.com, James Ward jaward@ wrote:
 
  This would be a great question to ask on StackOverflow.com.  :)
  
  -James
  
  
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
  Behalf Of ilikeflex
  Sent: Friday, August 14, 2009 1:59 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Java/Flex questions answered by James Ward
  
  
  
  HI
  
  I am using Blazeds. At the start of my application i am making couple of 
  request to get the data from the backend. I am tracking my request through 
  Charles Debugger. I see that all my initial request are put together in one 
  POST request. I want that each service call to backend be a different POST 
  request. So that i can get the data fast.
  
  Please have a look at the screen 
  shot.(http://4.bp.blogspot.com/_v7fXKpvsYl0/SoW5_0lZl6I/APg/caJ1-RzjZAE/s1600-h/Query.png)
  
  How can i achieve this?
  I am using the Remote Objec to make the calls
  
  indexProfileListRemoteObject = new RemoteObject(indexMasterDAO);
  indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT, 
  indexProfileListHandler );
  
  indexListRemoteObject = new RemoteObject(indexMasterDAO);
  indexListRemoteObject.addEventListener( ResultEvent.RESULT, 
  indexListHandler );
  
  Thanks
  ilikeflex
  
  
  --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
  James Ward jaward@ wrote:
  
   Thanks for the plug. I'm using StackOverflow.com to manage the questions. 
   Just tag them with riacowboy so that I can find them.
  
   I'm seeing a big shift from the Adobe forums, flexcoders, etc to Stack 
   Overflow - so hopefully many here will start getting more involved in 
   Stack Overflow.
  
   BTW: Here is the Ask The RIA Cowboy post:
   http://www.jamesward.com/blog/ask-the-ria-cowboy/
  
   -James
  
  
   From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
   [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] 
   On Behalf Of hworke
   Sent: Friday, August 14, 2009 11:17 AM
   To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
   Subject: [flexcoders] Java/Flex questions answered by James Ward
  
  
  
  
   Hello Devs,
  
   James Ward the Technical Evangelist for Flex at Adobe
   encourages all to post RIA related questions in his
   blog. I asked him JAVA/LCDS questions before and got
   instant answer from him. If you have JAVA/BlazeDS/
   LCDS related questions then you can post it here:
  
   http://www.jamesward.com/blog/
  
 





[flexcoders] Content area of a container.

2009-08-15 Thread Wesley Acheson
How do I find the content area of a container?  For example a panel. This as
far as I can tell is different to its height, width, explicitHeight,
explicitWidth are all the height and width of the panel not of its content
area.


Re: [flexcoders] Hierarchical Tree Data

2009-08-15 Thread Wesley Acheson
I usually do this at the server level.  I collect all my data from the
database and then I put it into objects.  (I use java) Then I use Xstream to
convert to XML if required.  However usually I just use a remote object and
bypass the XML stage.

Regards,
Wesley Acheson

On Fri, Aug 14, 2009 at 10:25 PM, Baz li...@thinkloop.com wrote:



 How do you generally handle generating hierarchical tree data from a
 database. Lets say I had a query that returned *Name, ID, ParentID* with
 an indefinite number of nest levels, and I wanted to turn that into a nice
 xml structure - do you usually peform that transofrmation at the DB layer,
 the app layer, or is there perhaps an easy Flex function that can take care
 of that?

 The ideal function would take the query and ask for the id and parentid
 properties to use to recurse through the query, i.e.
 generateNestedXMLFromFlatQuery(QueryData, ID_ColumnName,
 ParentID_columnName):XML;

 Thoughts?


 



[flexcoders] Bindable object / combobox issue

2009-08-15 Thread Scott
I've got an object I pull from CF and point to a combobox.  

 

script

[Bindable] private var acMessageList:ArrayCollection;

/script

...

mx:ComboBox x=10 y=38 dataProvider={acMessageList}
labelField=vcMessageDesc id=selectedMSG editable=true
/mx:ComboBox

 

When I select an item in the combobox the associated text for that item
shows in the text editor changes.  This works just fine.  Now, I also
have a tab navigator that goes out and gets another class of objects
(a query) from my DB.

 

private function ChangeTab( nSelected:int ):void

{

this.MsgEditor.GetAllMessagesByType(Application.application.intID,
nSelected );


}

 

This does pull the next set of data over correctly, I can see it in the
debugger.  The combobox re-populates with the data but the text editor
goes blank.

 

mx:RichTextEditor x=2 y=0 title=EMail Message width=865
height=344 text={selectedMSG.selectedItem.vcMessage}

/mx:RichTextEditor

 

The RichTextEditor doesn't show the new data.  Now I'm also getting this
warning in the console:

 

 warning: unable to bind to property 'vcMessage' on class 'Object'
(class is not an IEventDispatcher)

 

I made the whole object bindable so this warning shouldn't show.
However, I get one or two of these every time I use the combobox.  I'm
not sure this is my problem or not because the first time I load the
data into the combobox it works just fine.

 

Anyone have any idea on what is preventing the richtexteditor from
populating and/or why I'm seeing that warning?

 

 Thanks

  Scott



RE: [flexcoders] Bindable object / combobox issue

2009-08-15 Thread Scott
Ok, the warning had nothing to do with this issue...  for future
posterity sake and documentation, I found this article that helped me
correct the warning message.
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg48635.html

 

Anyone know why the RichTextEditor isn't working?

 

Thanks

  Scott

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Saturday, August 15, 2009 5:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Bindable object / combobox issue

 

  

I've got an object I pull from CF and point to a combobox.  

 

script

[Bindable] private var acMessageList:ArrayCollection;

/script

...

mx:ComboBox x=10 y=38 dataProvider={acMessageList}
labelField=vcMessageDesc id=selectedMSG editable=true
/mx:ComboBox

 

When I select an item in the combobox the associated text for that item
shows in the text editor changes.  This works just fine.  Now, I also
have a tab navigator that goes out and gets another class of objects
(a query) from my DB.

 

private function ChangeTab( nSelected:int ):void

{

this.MsgEditor.GetAllMessagesByType(Application.application.intID,
nSelected );


}

 

This does pull the next set of data over correctly, I can see it in the
debugger.  The combobox re-populates with the data but the text editor
goes blank.

 

mx:RichTextEditor x=2 y=0 title=EMail Message width=865
height=344 text={selectedMSG.selectedItem.vcMessage}

/mx:RichTextEditor

 

The RichTextEditor doesn't show the new data.  Now I'm also getting this
warning in the console:

 

 warning: unable to bind to property 'vcMessage' on class 'Object'
(class is not an IEventDispatcher)

 

I made the whole object bindable so this warning shouldn't show.
However, I get one or two of these every time I use the combobox.  I'm
not sure this is my problem or not because the first time I load the
data into the combobox it works just fine.

 

Anyone have any idea on what is preventing the richtexteditor from
populating and/or why I'm seeing that warning?

 

 Thanks

  Scott




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] Bindable object / combobox issue

2009-08-15 Thread Scott
NEVERMIND.  I need some sleep... =/

 

There was a different entry method set up on the last two tabs that
prevented it from appearing... different component.

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Saturday, August 15, 2009 5:36 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Bindable object / combobox issue

 

  

Ok, the warning had nothing to do with this issue...  for future
posterity sake and documentation, I found this article that helped me
correct the warning message.
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg48635.html
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg48635.html 

 

Anyone know why the RichTextEditor isn't working?

 

Thanks

  Scott

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Saturday, August 15, 2009 5:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Bindable object / combobox issue

 

  

I've got an object I pull from CF and point to a combobox.  

 

script

[Bindable] private var acMessageList:ArrayCollection;

/script

...

mx:ComboBox x=10 y=38 dataProvider={acMessageList}
labelField=vcMessageDesc id=selectedMSG editable=true
/mx:ComboBox

 

When I select an item in the combobox the associated text for that item
shows in the text editor changes.  This works just fine.  Now, I also
have a tab navigator that goes out and gets another class of objects
(a query) from my DB.

 

private function ChangeTab( nSelected:int ):void

{

this.MsgEditor.GetAllMessagesByType(Application.application.intID,
nSelected );


}

 

This does pull the next set of data over correctly, I can see it in the
debugger.  The combobox re-populates with the data but the text editor
goes blank.

 

mx:RichTextEditor x=2 y=0 title=EMail Message width=865
height=344 text={selectedMSG.selectedItem.vcMessage}

/mx:RichTextEditor

 

The RichTextEditor doesn't show the new data.  Now I'm also getting this
warning in the console:

 

 warning: unable to bind to property 'vcMessage' on class 'Object'
(class is not an IEventDispatcher)

 

I made the whole object bindable so this warning shouldn't show.
However, I get one or two of these every time I use the combobox.  I'm
not sure this is my problem or not because the first time I load the
data into the combobox it works just fine.

 

Anyone have any idea on what is preventing the richtexteditor from
populating and/or why I'm seeing that warning?

 

 Thanks

  Scott


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


[flexcoders] Controlling Datagrid with Keyboard : Tab and Spacebar

2009-08-15 Thread arpan srivastava
Hi All,

I am struggling from a long time implementing tabbing in Datagrid in Flex 2. Is 
there any issue with controlling datagrid with keyboard?
I have a datagrid with 5 columns:
Radio Button
Chekbox
TextInput
Label
Label
Label

//i need both renderer and editor same
rendererIsEditor = true;

Now I have to implement tabbing such that, focus comes to radio button then in 
same row to checkbox then to textiput then goes to next row radio button. Also 
when I press spacebar radio button or checkbox should get selected.

Tabbing is working fine but when i select any radio button with spacebar and 
then move on to next radio button and select it, the previous one is sometimes 
not unselected but doing trace() it says false, also sometimes more than one 
radio button gets selected, scrolling the grid produces same issue. I even 
checked the skin class that sets the radio button selected skin but it is 
selecting only one.

Thanks
Arpan



  Love Cricket? Check out live scores, photos, video highlights and more. 
Click here http://cricket.yahoo.com

[flexcoders] Re: Singletons and Modules - Application domain problem

2009-08-15 Thread Everson Alves
I tried removing the option to optimize the module but the problem persists.
Any idea?

On Sat, Aug 15, 2009 at 1:11 PM, Everson Alves
jho...@eversonalves.com.brwrote:

 Hello guys,

 I'm facing a weird problem. I'm working with flex Modules that are tide
 mxml components . Using ModuleManager to load the modules. If I load using
 moduleInfo.load(ApplicationDomain.currentDomain) it loads fine but as I want
 to use the module as independent sub applications and they use the same
 class definitions that doens't play nice with singletons (ModelLocator) .
 When loading using  moduleInfo.load() expecting that it uses it's own
 ApplicationDomain it loads, dispatches ModuleEvent.READY event but
 moduleEvent.module.factory.create() gives me null. I also tried
 moduleInfo.load(new ApplicationDomain(ApplicationDomain.currentDomain)) but
 this case dispatches a ModuleEvent.ERROR saying that file isn't a loadable
 module or something like that. An detail that might be important is that the
 module is marked to be optimized to my application in compilation.

 thanks in advance.

 --
 Jhonny Everson




-- 
Jhonny Everson


Re: [flexcoders] Hierarchical Tree Data

2009-08-15 Thread Baz
Hey Wesley, when does the hierarchy get setup? Do you use an orm that builds
and nests all objects - then, I guess, send that entire strucutre off to
flex through remote object (amf). What do you get in flex, a nested
ArrayCollection of objects, with a nested ArrayCollection of objects,
indefinitely until all levels are fulfilled?

Cheers,
Baz



On Sat, Aug 15, 2009 at 2:23 PM, Wesley Acheson wesley.ache...@gmail.comwrote:



 I usually do this at the server level.  I collect all my data from the
 database and then I put it into objects.  (I use java) Then I use Xstream to
 convert to XML if required.  However usually I just use a remote object and
 bypass the XML stage.

 Regards,
 Wesley Acheson


 On Fri, Aug 14, 2009 at 10:25 PM, Baz li...@thinkloop.com wrote:



 How do you generally handle generating hierarchical tree data from a
 database. Lets say I had a query that returned *Name, ID, ParentID*
 with an indefinite number of nest levels, and I wanted to turn that into a
 nice xml structure - do you usually peform that transofrmation at the DB
 layer, the app layer, or is there perhaps an easy Flex function that can
 take care of that?

 The ideal function would take the query and ask for the id and parentid
 properties to use to recurse through the query, i.e.
 generateNestedXMLFromFlatQuery(QueryData, ID_ColumnName,
 ParentID_columnName):XML;

 Thoughts?