Re: [flexcoders] Re: Webservice Random Faults

2010-02-24 Thread ArunKumar Madas
I am afraid having to do that will defeat the purpose of having webservices
in place!
To me it alternately looks like having HTTPService with required params to a
CF page that queries the db and returns the data back (in your case its via
AMF using remoteObj).
In-case someone is looking for an answer -

  I spent a lot of time trying to dig through the framework api with debug
points everywhere. Its unfortunate, i was in a place where finding the cause
of the problem was a pain as the faults were not consistent and any code
changes cannot be tested without it being reproducible. I read in the
comments of this url - http://www.judahfrangipane.com/blog/?p=87 that
getting rid of fiddler sometimes avoids these errors. In my case these were
not the IO errors (#2032) as i receive the HTTP status codes fine 200 in the
response in fiddler. I just couldn't give a straight solution to get rid of
fiddler without the issue being reproducible.

 While i debugged through the framework, i figured out that error was
getting generated from mx.rpc.AsyncRequest.as (Line 62) and the
acknowledgement forwarded by fiddler has DSErrorHint set to true. This is
the catch to isolate why fiddler receives the HTTP status 200 fine (acting
as proxy) just that it doesn't reach through till flash player fine. One of
the QA Engineers reproduced the problem in-house and I have witnessed having
fiddler on (acting as proxy) causes the problem and turning it off gets rid
of it [I was really lucky to reproduce it, it was like one out of 30-40
operations faults]. Hard to even convince any one even now, but hope this
saves someones time.

Use network sniffers instead of http proxies for debugging.

~ Arun

On Mon, Feb 22, 2010 at 12:12 PM, valdhor valdhorli...@embarqmail.comwrote:



 I came across multiple problems using Flex's built-in SOAP decoder. Instead
 I created a SOAP client on my server that makes all the calls and then
 returns the data to Flex using AMF. This also gets around any cross domain
 issues. It works for me 100% of the time ;-}


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 ArunKumar Madas arun.fle...@... wrote:
 
  We have been encountering random SOAP Faults in our application.
 Definitely
  something is going wrong.
  We have a CF implementation for webservices (using coldspring) consumed
 by
  the flex application.
  The end users are randomly encountering Fault events. We are using FLEX
 SDK
  3.5
 
  Here are the details -
 
  faultCode = DecodingError
  faultString = SOAP Response cannot be decoded. Raw response: null
  faultDetail = null
 
  The same webservice call works 99% of the time. Randomly we encounter
 some
  faults.
  I have gone through this URL http://www.judahfrangipane.com/blog/?p=87and
  some others with no resolution.
 
  Monitoring the network SOAP packets using Fiddler, we get HTTP 200 OK
  response without any error.
  We enabled Flash Debug logging with all events to be logegd
  into flashLog.txt and we found that the fault is generated internal to
 the
  framework -
 
  Here are the details -
 
  2/17/2010 09:28:11.935 [INFO] mx.rpc.soap.Operation Creating SOAP
 Operation
  for getCacheUpdates
  2/17/2010 09:28:11.935 [DEBUG] mx.rpc.soap.Operation Invoking SOAP
 operation
  getCacheUpdates
  2/17/2010 09:28:11.935 [DEBUG] mx.rpc.soap.SOAPEncoder Encoding SOAP
 request
  envelope
  2/17/2010 09:28:11.945 [DEBUG] mx.rpc.soap.SOAPEncoder Encoding SOAP
 request
  body
  2/17/2010 09:28:11.945 [INFO] mx.messaging.Producer
  'E62FB659-260E-FDD0-479B-DC8AAF12EE52' producer sending message
  'FACB3D46-5745-E0B7-4F3C-DC8B26A9872C'
  2/17/2010 09:28:11.945 [DEBUG] mx.messaging.Channel 'direct_http_channel'
  channel sending message:
  (mx.messaging.messages::SOAPMessage)#0
  body = SOAP-ENV:Envelope xmlns:SOAP-ENV=
  http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=
  http://www.w3.org/2001/XMLSchema; xmlns:xsi=
  http://www.w3.org/2001/XMLSchema-instance;
  SOAP-ENV:Body SOAP-ENV:encodingStyle=
  http://schemas.xmlsoap.org/soap/encoding/;
  intf:getCacheUpdates xmlns:intf=http://webservices.com.webservices;
  adex xsi:type=xsd:stringlt;adexgt;
  lt;headergt;
  lt;statusgt;truelt;/statusgt;
  lt;operatorToken/gt;
  lt;terminalToken/gt;
  lt;/headergt;
  lt;bodygt;
  lt;data name=cacheStatus
  dataType=objectgt;lt;![CDATA[{park:02/16/2010 06:02:07
  PM,parkPass:01/01/2000 12:00:00 AM,country:02/16/2010 06:02:07
  PM,site:02/16/2010 06:02:07 PM,loop:02/16/2010 06:02:07
  PM,ticketType:02/16/2010 06:02:07 PM,discount:02/16/2010 06:02:07
  PM,location:02/16/2010 06:02:07 PM,equipment:02/16/2010 06:02:07
  PM,campground:02/17/2010 09:28:11 AM,asset:01/01/2000 12:00:00
  AM,state:02/16/2010 06:02:07 PM,retail:02/16/2010 06:02:07
  PM}]]gt;lt;/datagt;
  lt;data name=parkId
  dataType=numericgt;lt;![CDATA[511]]gt;lt;/datagt;
  lt;data name=locationId
  dataType=numericgt;lt;![CDATA[6558]]gt;lt;/datagt;
  lt;/bodygt;
  lt;/adexgt;/adex
  /intf:getCacheUpdates
  /SOAP-ENV:Body
  

Re: [flexcoders] Is removing a child from DisplayList better the visible=includeInLayout=false?

2010-02-24 Thread claudiu ursica
Removing is expensive it is better to hide, or to try reparenting.
C






From: tntomek tnto...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Wed, February 24, 2010 6:14:39 AM
Subject: [flexcoders] Is removing a child from DisplayList better the 
visible=includeInLayout=false?

   
Assuming you want to use that UIComponenet again in future and not destro it, 
does the lifecycle of a UiComponent still kick in when includeInLayout is 
false? is it much more efficient to remove it from displ


 


  

[flexcoders] Scanning documents

2010-02-24 Thread Allan Pichler
Anyone know if this is possible and if so, have any examples?

 

 

Best regards and have a wonderful day!

 

Allan Pichler

Brewmaster - ColdFusion/Flex/AJAX/UI

 

Email: dreamc...@gmail.com

Skype: apichler

Yahoo: allan_pichler

 



[flexcoders] Re: File Upload Modules

2010-02-24 Thread criptopus
Yes modules directory changed thus i had to ../../ as it where.

- Thanks

--- In flexcoders@yahoogroups.com, Flex myflexdownlo...@... wrote:

 Did you try using an absolute URL for server file upload url as opposed to 
 relative paths? I am not sure what url you are loading the module from 
 relative to web root and te same realtive paths as in your original app may 
 not work.
 
 Web Manager
 Flexdownloads.com
 
 --- In flexcoders@yahoogroups.com, criptopus sd_brown@ wrote:
 
  Why would file upload work before its component became a module but after 
  it becomes a module does it fail with the error...
  
  Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.
  
  I am completely lost?
  
  - Stephen
 





[flexcoders] File Upload Problem - Duplicate File Names

2010-02-24 Thread criptopus
I'm having trouble with file upload.

I have three files:

C:/File1/myfile.flv
C:/File2/myfile.flv
C:/File3/myotherfile.flv

When I try to upload the first it works fine video plays brilliant. Then I 
select the second file (same name, different video) and it plays the first 
file. Just to check it again I upload the 3rd file and it plays the third file, 
try and load the second file and it plays the first file again.

I even tried sending the time along with the Request to make sure it wasn't a 
caching issue with the browser, even done a HTML FORM and that works fine.

No idea whats going on here,

Any ideas?

- Stephen



[flexcoders] Binding Issues with ArrayCollections

2010-02-24 Thread chefbrittison
I'm using Cairngorm in a project and using Commands to update the model.  Upon 
adding an item to an ArrayCollection in the model, custom components that are 
bound to it are not updated.  It seems that bindings are only fired upon a 
change of reference.  Is there something I'm missing or a better way to 
accomplish the same task.  Any help is much appreciated.  Thanks.

//code in command
private var modelLocator:ModelLocator = ModelLocator.getInstance();
modelLocator.view.fields.addItem(newItem);





Re: [flexcoders] Label help

2010-02-24 Thread Jayant C R
One way to solve your problem is to position the dots behind your label and
make the backgrounds of your labels opaque so that your labels cover part of
the dots and give the appearance that the dots extend from one label to
another.

1) Add a label containing just , as long as
the width available for the two labels.
2) Add your two labels so that they're positioned on top of the above label.
3) Set the opaqueBackground color of your labels to 0xFF (or whatever is
the right background color)

Hope this helps,
Jayant

On Tue, Feb 23, 2010 at 1:55 PM, Ariel J arielj...@yahoo.com wrote:



 I could really use some help with this one.

 I have an item renderer consisting of two labels, positioned horizontally.

 I want to fill the distance between them with , for example:

 Car.$40,000
 House..$400,000

 Any ideas how to do this?

 Also, there is the caveat that I draw the ... in a way that matches the
 ... from Flex truncating the first item.

 I am using Spark Label Components, which matters because I can't change the
 truncationText anymore without affecting all Labels in the app (who decided
 to change this on the flex team i have no idea or why!).

 Thanks all.

 




-- 
main(){int
j,i=0;for(;i54;++i%18==0?putchar(10):i)putchar((j=b`bxb]]0xxb]xb]b`b:QAabR^`wabRQ1Q;Q/bww2^_...@w3^^=^?_[i])66?32:j+98);}


[flexcoders] Re: Flex and LCDS - Cannot Remove Client?

2010-02-24 Thread headj...@bellsouth.net
Thank you for the info Jefflooking at the logs it does appear this happens 
when the server is restarted. 

Like I said, we are having a problem with some hangs and was not sure if this 
was a result of that issue.  Sounds like it's only related because we have to 
restart the server.  

JB



--- In flexcoders@yahoogroups.com, Jeffrey Vroom j...@... wrote:

 LCDS maintains several data structures on the server to track clients using
 the messaging system.   The standard HttpSession is kept by the app server
 using the cookie.  The FlexClient is associated with an individual Flash
 player instance.  Each subscription has a corresponding MessageClient to
 track that subscription.   I think this error occurs when the client is
 trying to send a message to the server to clean up that flex client data
 structure.   It might be occurring though when a session is expiring or
 something.  I'd expect to see this type of thing if you restart a server or
 are using non-sticky load balancing - so the HttpSession and FlexClient
 states get out of sync.  It may well not be a problem but might cause a
 memory leak or something like that.
 
 If you want to track it down further, turning on the debug logs for some of
 the categories would show you the context in which it is happening.
 
 Jeff
 
 On Mon, Feb 22, 2010 at 7:04 PM, headj...@... 
 headj...@... wrote:
 
 
 
  I am using Flex 3.4/Hibernate/ and LCDS 2.6 with polling AMF running on
  Tomcat 5.5 The application works fine, but occasionally I get a message in
  the logs that says [ERROR] [Service.Message] Failed to remove client:
  884EDC33-A098-231E-44AD-F76A5A6E1A76} . (The session ID changes obviously.)
 
  I've looked for information on this message in an attempt to diagnose what
  it is, but haven't found anything on it. Has anyone else run into this
  message or does anyone know anything about what this means?
 
  I'm also wondering if this might have something to due with network
  performance. Does anyone have any pointers for tuning and setting
  parameters? This is not a large application, but our network does suffer
  from some congestion issues and RTMP is not an option due to firewalls.
  Could that message above be related to poor network performance?
 
  Disclaimer: I'm new to LCDS, so bear with me!
 
  Thanks,
  JB
 
   
 





Re: [flexcoders] Binding Issues with ArrayCollections

2010-02-24 Thread claudiu ursica
In a non related thins you shouldn't have view refereces in your model - 
modelLocator.view.fields . You could listen for the COLLECTION_CHANGE event in 
the view and see it that fires when you add the item. If so you can do the 
update in the handler by hand. On the other hand if you use list based 
controls in your view it kind of always works...
HTH,
C





From: chefbrittison britton.j...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Wed, February 24, 2010 3:12:32 AM
Subject: [flexcoders] Binding Issues with ArrayCollections

   
I'm using Cairngorm in a project and using Commands to update the model.  Upon 
adding an item to an ArrayCollection in the model, custom components that are 
bound to it are not updated.  It seems that bindings are only fired upon a 
change of reference.  Is there something I'm missing or a better way to 
accomplish the same task.  Any help is much appreciated.  Thanks.

//code in command
private var modelLocator: ModelLocator = ModelLocator. getInstance( );
modelLocator. view.fields. addItem(newItem) ;




 


  

[flexcoders] Flex 4 - hover issue on itemrenderer OR data property for group. Take your pick

2010-02-24 Thread rdm0004
I've created a repeated custom component in a data list via Flash
Catalyst.  The component has 4 custom states that change the appearance
based on a global variable.  It generated the component as a s:Group and
the states worked just fine, but the s:Group did not have access to the
data property even though it was assigned as the itemRenderer in the
list.  So I changed the component from s:Group to s:ItemRenderer and had
access to the data property.  However, now when I roll over a component,
it changes it's state to the first defined state in the s:states
declaration.

So I need to know how to override the hover state in an ItemRenderer so
that it leaves the current state in tact, or how to get access to the
data / owner properties if using a s:group as the itemRenderer.  Many
thanks!

Robert




[flexcoders] Re: File Upload Problem - Duplicate File Names

2010-02-24 Thread valdhor
Check the server logs. It will probably say something to the effect that there 
is already a file by that name and it can't replace it.

--- In flexcoders@yahoogroups.com, criptopus sd_br...@... wrote:

 I'm having trouble with file upload.
 
 I have three files:
 
 C:/File1/myfile.flv
 C:/File2/myfile.flv
 C:/File3/myotherfile.flv
 
 When I try to upload the first it works fine video plays brilliant. Then I 
 select the second file (same name, different video) and it plays the first 
 file. Just to check it again I upload the 3rd file and it plays the third 
 file, try and load the second file and it plays the first file again.
 
 I even tried sending the time along with the Request to make sure it wasn't a 
 caching issue with the browser, even done a HTML FORM and that works fine.
 
 No idea whats going on here,
 
 Any ideas?
 
 - Stephen





[flexcoders] Re: CROSS-DOMAIN POLICY HELP PLEASE!!!

2010-02-24 Thread jaywood58
I ran into this same issue recently. When you load the image, you just need to 
specify a LoaderContext with checkPolicyFile set to true. 

Here's a link to a blog post that explains it pretty well: 
http://www.toybot.nl/blog/2008/03/19/bitmapdatadraw-and-checkpolicyfile/


--- In flexcoders@yahoogroups.com, s_hernandez01 s_hernande...@... wrote:

 Hey does anyone know why I get this error:
 
 SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: 
 http://localhost/beta/Test-debug/Test.swf cannot access 
 http://MyDomainName.com/beta/images-standard/backgrounds/paper.png. A policy 
 file is required, but the checkPolicyFile flag was not set when this media 
 was loaded.
 at flash.display::BitmapData/draw()
 
 I have the xml file crossdomain.xml on the root of my webserver:
 
 ?xml version=1.0?
 cross-domain-policy
 allow-access-from domain=www.MyDomainName.com/
 /cross-domain-policy
 
 but when I run the app locally I always get this error.  All I'm doing is 
 trying to retreive images from my database.  What more do I need to do?
 
 
 Thanks
 
 Sal





[flexcoders] Re: LCDS: Problem with destination inheritance

2010-02-24 Thread Jeff
I am running into this same problem below with a fill command. (Error: but we 
could not find a destination in the list of sub-types). Any thoughts on a 
workaround for just a simple fill of an extended destination?

I must admit my frustration with LCDS is growing especially considering the 
recent change of licensing for LCDS 3.  I have not had any luck with Adobe's 
very expensive paid support so continuing to dump money into their 
licenses/support seem futile.  I am wondering if now is the time to migrate to 
another solution.

Has anyone had better luck with WebOrb, GraniteDS or Blaze in terms of 
ease-of-use and community support?  I primarily need Hibernate integration and 
real-time data push.

Thanks for the help and advice,

Kevin

--- In flexcoders@yahoogroups.com, gordon_greg m...@... wrote:

 Hi Jeff,
 
 Thanks for the usual quick response, the workaround is fine for the
 time being, looking forward to the update release.
 
 greg
 
 --- In flexcoders@yahoogroups.com, Jeff Vroom jvroom@ wrote:
 
  Hi Greg,
  
  Yeah, thanks for sending this as it did uncover an LC DS bug.  It
 occurs with the combination of the deleteItem and the commit(item)
 or commit([item]) case.  The code is trying to look up the DataService
 associated with the item in the argument... to do that we look in the
 cache for each item.  We can't find it (since it has been deleted) and
 the code is improperly returning the last data service in the list. 
 So when it works, it is because the list of data services is generated
 in some particularly lucky order.
  
  If you can commit everything - not just that item, that would be an
 easy workaround though most likely you are using that variant of
 commit for a reason.
  
  I'll contact you off-list to get you a patched fds.swc to try out
 the fix.   For your reference, the bug number I filed is:
  
  https://bugs.adobe.com/jira/browse/LCDS-351
  
  Jeff
  
  
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
 On Behalf Of gordon_greg
  Sent: Thursday, July 03, 2008 12:53 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] LCDS: Problem with destination inheritance
  
  
  Hello,
  
  I'm using the latest LCDS 2.6.RC1 with the HibernateAssembler and a
  non-trivial data model that relies upon destination inheritance in a
  few places.
  
  In general everything works great, but occasionally, when I remove an
  element from a collection using dataService.deleteItem, when I then
  call dataService.commit, I end up with an exception that indicates
  that the wrong destination is being invoked...
  
  For our purposes, let's just deal with 4 destinations:
  
  Folder
  ResourceFolder (extends folder)
  Meeting
  MeetingParticipant (is a many-to-one child of Meeting)
  
  Now, if I call:
  
  meetingParticipantDataService.deleteItem(meetingParticipant);
  
  meetingParticipantDataService.commit([meetingParticipant],true);
  
  I end up with the following exception:
  
  == begin exception 
  
  Error: Destination: spring.folder received an instance of class:
  demo.model.meetings::MeetingParticipant but we could not find a
  destination in the list of sub-types: spring.resourceFolder which
  extends this destination.
  at
 
 mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::getDestinationForInstance()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:5309]
  at
 
 mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::getItemDestination()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:5290]
  at
 
 mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::getItemMetadata()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:5275]
  at
 
 mx.data::MessageBatch/addMessageIdsForItem()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\MessageBatch.as:591]
  at
 
 mx.data::MessageBatch/extractMessages()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\MessageBatch.as:456]
  at
 
 mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::doCommit()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\DataStore.as:1807]
  at
 
 mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::internalCommit()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\DataStore.as:818]
  at
 
 mx.data::ConcreteDataService/commit()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:337]
  at
 
 mx.data.mxml::DataService/commit()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\mxml\DataService.as:433]
  at [my code here]
  
  == end exception 
  
  Note that there is no relationship at all between 

[flexcoders] Re: Flex 4 - hover issue on itemrenderer OR data property for group. Take your pick

2010-02-24 Thread rdm0004
OK, easy enough.  I used an inline itemRenderer with s:Group and just passed 
the data to a public variable.  If anyone knows of a better way, please let me 
know.

Robert



Re: [flexcoders] Re: Will Flash 10.1 do much for Flex or is it mostly for video?

2010-02-24 Thread Tom Chiverton
On Saturday 20 Feb 2010, Laurence wrote:
 Assuming they bother to bring those optimizations to the big computers, of
 course...  But if they do, I think your theory has merit.

They've said they will.

-- 
Helping to enthusiastically enhance wireless web-enabled meta-services as part 
of the IT team of the year 2010, '09 and '08



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 together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. 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] Where can I pass my Flex Certification? Online? Or in an Adobe Exam center?

2010-02-24 Thread fred44455
I can't find any valuable information regarding that. Also I wonder if you can 
pass the Adobe Certification in Europe? Thanks.



Re: [flexcoders] Where can I pass my Flex Certification? Online? Or in an Adobe Exam center?

2010-02-24 Thread Jochem van Dieten
On Wed, Feb 24, 2010 at 6:16 PM, fred44455 wrote:
 I can't find any valuable information regarding that. Also I wonder if you 
 can pass the Adobe Certification in Europe? Thanks.

Go to http://www.vue.com/, log in and check the Adobe curriculum.

Jochem


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


Re: [flexcoders] Re: LCDS: Problem with destination inheritance

2010-02-24 Thread Jeffrey Vroom
Hi Kevin,

On your specific bug, the bug below where this error occurred improperly was
fixed before I left Adobe.   It could be a simple problem in your
configuration or code.   When you use sub-types in Java with hibernate and
LCDS, you need a corresponding type hierarchy of ActionScript classes.   If
Foo extends Bar in Java and both are hibernate model classes, you need a
Foo.as which has its remoteClass alias set to Foo.java and similar for Bar.
  You might also check the XML downloaded from the server at the time this
error occurs.  It is in flex.messaging.config.ServerConfig.xml (a static
property).   If you dump that out you should see destinations which match up
with the type hierarchy for your model.

Jeff

On Wed, Feb 24, 2010 at 7:26 AM, Jeff li...@kevinmerritt.com wrote:



 I am running into this same problem below with a fill command. (Error: but
 we could not find a destination in the list of sub-types). Any thoughts on
 a workaround for just a simple fill of an extended destination?

 I must admit my frustration with LCDS is growing especially considering the
 recent change of licensing for LCDS 3. I have not had any luck with Adobe's
 very expensive paid support so continuing to dump money into their
 licenses/support seem futile. I am wondering if now is the time to migrate
 to another solution.

 Has anyone had better luck with WebOrb, GraniteDS or Blaze in terms of
 ease-of-use and community support? I primarily need Hibernate integration
 and real-time data push.

 Thanks for the help and advice,

 Kevin

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 gordon_greg m...@... wrote:
 
  Hi Jeff,
 
  Thanks for the usual quick response, the workaround is fine for the
  time being, looking forward to the update release.
 
  greg
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jeff
 Vroom jvroom@ wrote:
  
   Hi Greg,
  
   Yeah, thanks for sending this as it did uncover an LC DS bug. It
  occurs with the combination of the deleteItem and the commit(item)
  or commit([item]) case. The code is trying to look up the DataService
  associated with the item in the argument... to do that we look in the
  cache for each item. We can't find it (since it has been deleted) and
  the code is improperly returning the last data service in the list.
  So when it works, it is because the list of data services is generated
  in some particularly lucky order.
  
   If you can commit everything - not just that item, that would be an
  easy workaround though most likely you are using that variant of
  commit for a reason.
  
   I'll contact you off-list to get you a patched fds.swc to try out
  the fix. For your reference, the bug number I filed is:
  
   https://bugs.adobe.com/jira/browse/LCDS-351
  
   Jeff
  
  
   From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com[mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com]
  On Behalf Of gordon_greg
   Sent: Thursday, July 03, 2008 12:53 PM
   To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   Subject: [flexcoders] LCDS: Problem with destination inheritance
  
  
   Hello,
  
   I'm using the latest LCDS 2.6.RC1 with the HibernateAssembler and a
   non-trivial data model that relies upon destination inheritance in a
   few places.
  
   In general everything works great, but occasionally, when I remove an
   element from a collection using dataService.deleteItem, when I then
   call dataService.commit, I end up with an exception that indicates
   that the wrong destination is being invoked...
  
   For our purposes, let's just deal with 4 destinations:
  
   Folder
   ResourceFolder (extends folder)
   Meeting
   MeetingParticipant (is a many-to-one child of Meeting)
  
   Now, if I call:
  
   meetingParticipantDataService.deleteItem(meetingParticipant);
  
   meetingParticipantDataService.commit([meetingParticipant],true);
  
   I end up with the following exception:
  
   == begin exception 
  
   Error: Destination: spring.folder received an instance of class:
   demo.model.meetings::MeetingParticipant but we could not find a
   destination in the list of sub-types: spring.resourceFolder which
   extends this destination.
   at
  
  mx.data::ConcreteDataService/
 http://www.adobe.com/2006/flex/mx/internal::getDestinationForInstance
 ()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:5309]
   at
  
  mx.data::ConcreteDataService/
 http://www.adobe.com/2006/flex/mx/internal::getItemDestination
 ()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:5290]
   at
  
  mx.data::ConcreteDataService/
 http://www.adobe.com/2006/flex/mx/internal::getItemMetadata
 ()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:5275]
   at
  
 
 

[flexcoders] Missing component in flexbuilder 3

2010-02-24 Thread aceoohay
I created a a component called ValidatedRadioButtonGroup. Intellisense finds 
it, I can use it and everything is good.

Flexbuilder does not show it in the components panel. Which means I can't 
easily drag it onto forms during development.

Any ideas?

Paul



Re: [flexcoders] Missing component in flexbuilder 3

2010-02-24 Thread Tim Statler
That typically means that the custom component doesn't extend UIComponent or
another Flex component based on UIComponent. If it already extend one of
those types, I'm not sure why else it wouldn't show up. What SDK/Builder
version are you using?

Tim

On Wed, Feb 24, 2010 at 1:46 PM, aceoohay pa...@compuace.com wrote:



 I created a a component called ValidatedRadioButtonGroup. Intellisense
 finds it, I can use it and everything is good.

 Flexbuilder does not show it in the components panel. Which means I can't
 easily drag it onto forms during development.

 Any ideas?

 Paul

  



RE: [flexcoders] Partial LineSeries - is it possible?

2010-02-24 Thread Battershall, Jeff
Geoff,

Good call - that works perfectly - thanks!!!

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Geoff White
Sent: Tuesday, February 23, 2010 3:48 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Partial LineSeries - is it possible?




You shouldn't need to do this.  Try setting the minimum and maximum values on 
the date time axis to the desired dates and it should do the rest(regardless of 
which dates there are data for).



From: Battershall, Jeff jeff.battersh...@dowjones.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Tue, February 23, 2010 1:44:39 PM
Subject: RE: [flexcoders] Partial LineSeries - is it possible?


Thanks Richard,

I'm going to give this a try - basically I'm going make placeholder data 
elements that map to my DateTimeAxis and fill in the remaining values for the 
decade.

Jeff


From: flexcod...@yahoogro ups.comhttp://ups.com [mailto:flexcoders@ 
yahoogroups. com] On Behalf Of Richard Rodseth
Sent: Tuesday, February 23, 2010 2:59 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Partial LineSeries - is it possible?



I'm not sure I quite understand the question, but a couple of thoughts:

- if you have a data function that returns null you can get gaps in a line 
chart, if that's desired
- on the other hand, if your data provider filters out the empty data points, 
the chart should fill the available space
- I think you might be able to have a separate data provider for the axis

In other words, I would be surprised if custom renderers are necessary.
On Tue, Feb 23, 2010 at 10:26 AM, Battershall, Jeff jeff.battershall@ 
dowjones. commailto:jeff.battersh...@dowjones.com wrote:

I have a line chart with a DateTimeAxis that is stipulated to be about 750 
pixels wide and it's used to display a decade's worth of data points.  However, 
in the current decade, there are only a couple month's worth of data points.  
As a result the line series takes up the entire chart's entire available 
horizontal space.  What I'd LIKE to have happen is have the line series only as 
wide as the data points require - kind of like a YTD graph.  See what I'm 
getting at?

Any charting experts available?  Eli?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battershall@ dowjones. commailto:jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)








[flexcoders] Accessing 'change' property in a dynamically-created TextInput.

2010-02-24 Thread Laurence
Suppose I have the following code:
 var myTextInput:TextInput = new TextInput();
 this.addChild(myTextInput);

How do I access the 'change' property of that TextInput?  If I try:
 myTextInput.change=myChangeHandler()
it gives me a error:
 Access of possibly undefined property change through a reference with 
static type mx.controls:TextInput.

So, how do I tell that dynamically-created TextInput what to do when its value 
is changed?

Thanks,
Laurence MacNeill
Mableton, Georgia, USA




[flexcoders] Changing the speed of sound?

2010-02-24 Thread Nick Middleweek
Hi,

Is it possible to load in an mp3 and slow the playback down slightly? I've
looked at the API but can't see anything specific but am wondering if
there's any tricks?


Thanks,
Nick


[flexcoders] Re: Binding Issues with ArrayCollections

2010-02-24 Thread chefbrittison
I'm not actually referencing the view with the 'modelLocator.view.fields' 
statement.  That's kind of confusing but the code is for a View Builder 
application so the view in that context refers to a View model class.  
Listening to COLLECTION_CHANGE events works fine and from reading other posts, 
I'm guessing is more performant?  I knew there were binding issues with updates 
to an item within a ArrayCollection but I thought adding items worked as 
advertised.  Anyhow, thanks for your help.

--- In flexcoders@yahoogroups.com, claudiu ursica the_bran...@... wrote:

 In a non related thins you shouldn't have view refereces in your model - 
 modelLocator.view.fields . You could listen for the COLLECTION_CHANGE event 
 in the view and see it that fires when you add the item. If so you can do the 
 update in the handler by hand. On the other hand if you use list based 
 controls in your view it kind of always works...
 HTH,
 C
 
 
 
 
 
 From: chefbrittison britton.j...@...
 To: flexcoders@yahoogroups.com
 Sent: Wed, February 24, 2010 3:12:32 AM
 Subject: [flexcoders] Binding Issues with ArrayCollections
 

 I'm using Cairngorm in a project and using Commands to update the model.  
 Upon adding an item to an ArrayCollection in the model, custom components 
 that are bound to it are not updated.  It seems that bindings are only fired 
 upon a change of reference.  Is there something I'm missing or a better way 
 to accomplish the same task.  Any help is much appreciated.  Thanks.
 
 //code in command
 private var modelLocator: ModelLocator = ModelLocator. getInstance( );
 modelLocator. view.fields. addItem(newItem) ;





[flexcoders] Combobox in a Datagrid not retaining values

2010-02-24 Thread md_ars
Hello, 

I have following piece of code from main mxml and below that I have 
component code for Combobox. I am using label function to decode values as 
Yes/No when populating Data Grid from the database. It wipe the value from the 
cell once I click on the combobox and don't select values from it. I used 
prompt in combobox which works to avoid blank but it change the values to 
prompt.

I tried many examples but didn't work for me. Please help. Also I want to use 
Item Renderer instead if Item Editor.

Thanks 
Arshad 


main.mxml 
- 
[Bindable] private var queryData:ArrayCollection = new ArrayCollection(); 
-- 
-- 
mx:DataGrid id=dgGrid width=644 dataProvider={queryData} height=270 
editable=true  
-- 
- 
mx:DataGridColumn width=175 textAlign=center 
   headerText=Tax sortable=false dataField=tax 
   labelFunction=taxLabel 
   editable=true editorDataField=value 
itemEditor=yesNoComboBox 
/mx:DataGridColumn  

-yesNoComboBox -- 
mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; 
implements=mx.controls.listClasses.IDropInListItemRenderer,mx.managers.IFocusManagerComponent

mx:Script
![CDATA[
import mx.controls.listClasses.ListData;
import mx.controls.dataGridClasses.DataGridListData;
import mx.controls.listClasses.BaseListData;
import mx.controls.dataGridClasses.DataGridItemRenderer
import mx.events.FlexEvent;

private var _listData:DataGridListData;

[Bindable]
public var cmbValue:Object;

  
override public function get data():Object {
return super.data;
}

override public function set data(value:Object):void {
   cbo.data=value[_listData.dataField];
   cbo.selectedItem= value[_listData.dataField];
   trace(+cmbValue)
   }
public function get listData():BaseListData
{
return _listData;
}

public function set listData(value:BaseListData):void
{
_listData = DataGridListData(value);
}  

]]
/mx:Script
mx:Binding destination=cmbValue source=cbo.value/
   
mx:ComboBox id=cbo editable=true width=100% 
mx:dataProvider
mx:StringYes/mx:String
mx:StringNo/mx:String
/mx:dataProvider
/mx:ComboBox
/mx:VBox




[flexcoders] LCDS / Tomcat - Fill Data Not Returned

2010-02-24 Thread headj...@bellsouth.net
I have a question regarding LCDS and Tomcat.  My sample application runs fine, 
but I notice that after a period of time data is not returned.  Looking at the 
Tomcat window I see the query executing successfully and data coming back.  But 
the data never appears in my data grid.If I restart Tomcat, everything 
works fine again.

Has anyone else noticed behavior like this?  Is it an app memory leak that is 
causing it or a timeout (like session timeout) setting?

Thanks,
JB

  



[flexcoders] Re: Changing the speed of sound?

2010-02-24 Thread jamesfin
Hi Nick,

This will get ugly quickly as this isn't as easy as it sounds, pardon the pun. 
;)

You need to do some pitch-shifting to the audio stream before sending it along 
to play.

Here's a good discussion on it
http://www.dspdimension.com/admin/pitch-shifting-using-the-ft/

Here's a working java sample which you might want to play with before porting 
it over to as3 unless you want to just convert prior to streaming

http://www.mediafire.com/?ze3mymjguim

Let us know what you end up doing as this could be a nice AS3 component.

Thx,
james


--- In flexcoders@yahoogroups.com, Nick Middleweek n...@... wrote:

 Hi,
 
 Is it possible to load in an mp3 and slow the playback down slightly? I've
 looked at the API but can't see anything specific but am wondering if
 there's any tricks?
 
 
 Thanks,
 Nick





[flexcoders] Group displaying label for all dates in a month, or a range of date?

2010-02-24 Thread Vishal
I am using candlestick charts with category axis on the horizontal for 
displaying date, now I want group displaying the label for all the dates in a 
month or a range of date.

For all dates in Feb, I should display one label 'Feb' and similarly for other 
months.
or
For some dates like Feb 2, Feb 3, Feb 4, Feb 5, Feb 6 label should be Feb 2 - 
Feb 6


Once achieved I want to draw grid lines separating the labels formed in the 
above example.

Any pointers?

Thanks



Re: [flexcoders] Strategies for switching between testing and deployment addresses

2010-02-24 Thread Tim Romano
I'm too new at Flex to do anything fancy like reading files from the O/S 
file system, so I use the Project compile option.


-locale en_US -define=CONFIG::debug,true

Then I have me some constants:

   public static  const DEBUGMODE:Boolean =  CONFIG::debug;
   public static const DEBUG_BASEURL:String = http://localhost/foo/;
   public static const RELEASE_BASEURL:String = 
http://www.somedomain.com/foo;;


And then in my wrapper for the HTTPService:


if ( SearchConstants.DEBUGMODE) {
baseURL = SearchConstants.DEBUG_BASEURL ;
}else{
baseURL= SearchConstants.RELEASE_BASEURL ;
}

All you have to do is change the compiler settings to debug, false and 
-- voilà -- or wa-la if you like that better. There's still the 
forgetting to change the compiler options issue, but it's probably a 
good habit to examine the Compiler options before each compile, and this 
approach inculcates a good habit.


Take this with a grain of salt; I'm new to Flex; my expertise, if I have 
any at all, is not in Flex programming.

Regards
Tim Romano




On 2/21/2010 8:00 PM, David Adams wrote:


I've been writing some small programs that use HTTPService calls to
fetch data from a back-end. During testing, I'm using 127.0.0.1 or an
IP address on my subnet. When I deploy, I update the IP address in
service definitions to the right external address and build the app.
Or at least I mean to. It's all too easy to accidentally change the
addresses for internal testing and then forget to switch them back
before building.

Is there a best practice or simple strategy for putting the IP address
somewhere outside of the source code that it can easily be edited
without a rebuild?

Thanks for any advice.

__




[flexcoders] Re: Missing component in flexbuilder 3

2010-02-24 Thread aceoohay
FlexBuilder 3.0 build 3.0.2.214193, sdk 3.5.0

I am extending the RadioButtonGroup, which is a UIcomponent, I believe. I have 
created a number of similar components based on TextInput, ComboBox, etc. and 
they all show up in the components panel of FlexBuilder.

Is there a component name length restriction? ValidatedRadioButtonGroup is 25 
characters long.

Paul

--- In flexcoders@yahoogroups.com, Tim Statler tim.stat...@... wrote:

 That typically means that the custom component doesn't extend UIComponent or
 another Flex component based on UIComponent. If it already extend one of
 those types, I'm not sure why else it wouldn't show up. What SDK/Builder
 version are you using?
 
 Tim
 
 On Wed, Feb 24, 2010 at 1:46 PM, aceoohay pa...@... wrote:
 
 
 
  I created a a component called ValidatedRadioButtonGroup. Intellisense
  finds it, I can use it and everything is good.
 
  Flexbuilder does not show it in the components panel. Which means I can't
  easily drag it onto forms during development.
 
  Any ideas?
 
  Paul
 
   
 





Re: [flexcoders] Accessing 'change' property in a dynamically-created TextInput.

2010-02-24 Thread Peeyush Tuli
myTextInput.addEventListener(
flash.events.Event.CHANGEfile:///C:/Documents%20and%20Settings/peeyushtuli/My%20Documents/flex3_documentation/langref/flash/events/Event.html#CHANGE,myChangeHandler);


On Thu, Feb 25, 2010 at 4:44 AM, Laurence lmacne...@comcast.net wrote:



 Suppose I have the following code:
 var myTextInput:TextInput = new TextInput();
 this.addChild(myTextInput);

 How do I access the 'change' property of that TextInput? If I try:
 myTextInput.change=myChangeHandler()
 it gives me a error:
 Access of possibly undefined property change through a reference with
 static type mx.controls:TextInput.

 So, how do I tell that dynamically-created TextInput what to do when its
 value is changed?

 Thanks,
 Laurence MacNeill
 Mableton, Georgia, USA

  



Re: [flexcoders] Re: Missing component in flexbuilder 3

2010-02-24 Thread Peeyush Tuli
RadioButtonGroup is not a desendant of UIComponent as mentioned in the
livedocs so Tim might be right.But what's really interesting is that how
does the mx:RadioButtonGroup manage to be visible in the controls section.

~Peeyush
  http://www.mds.asia


On Thu, Feb 25, 2010 at 7:09 AM, aceoohay pa...@compuace.com wrote:



 FlexBuilder 3.0 build 3.0.2.214193, sdk 3.5.0

 I am extending the RadioButtonGroup, which is a UIcomponent, I believe. I
 have created a number of similar components based on TextInput, ComboBox,
 etc. and they all show up in the components panel of FlexBuilder.

 Is there a component name length restriction? ValidatedRadioButtonGroup is
 25 characters long.

 Paul


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tim
 Statler tim.stat...@... wrote:
 
  That typically means that the custom component doesn't extend UIComponent
 or
  another Flex component based on UIComponent. If it already extend one of
  those types, I'm not sure why else it wouldn't show up. What SDK/Builder
  version are you using?
 
  Tim
 
  On Wed, Feb 24, 2010 at 1:46 PM, aceoohay pa...@... wrote:
 
  
  
   I created a a component called ValidatedRadioButtonGroup. Intellisense
   finds it, I can use it and everything is good.
  
   Flexbuilder does not show it in the components panel. Which means I
 can't
   easily drag it onto forms during development.
  
   Any ideas?
  
   Paul
  
  
  
 

  



[flexcoders] using a class once throughout the all app

2010-02-24 Thread ZIONIST
Hi guys, in my research on how to reduce the size of a flex application swf, i 
was led to believe that classes are one of the factors that contribute to the 
size of any flex swf and in order to reduce the size, one has to make sure he 
only calls the classes that are needed. but again i noticed that certain 
classes are used more than once in an app, take for example, popup class, i my 
have about three titlewindow custom components that i use for popup and on each 
i call the popup class. is there a way to call all classes used only once in 
the main app file and use them throughout the all application like the way we 
use css and if so will that help bring down the size of the complete 
application?



Re: [flexcoders] using a class once throughout the all app

2010-02-24 Thread Alex Harui
If you are concerned about SWF size and the total amount of bytes downloaded, 
be sure to use the framework RSLs.  They are increasingly likely to be cached 
and save you significant download costs.  After that, use modules to load 
classes not needed at startup “later” and “on-demand”.

If you are concerned about runtime-memory usage, once a class is instantiated 
once, if the instance is garbage collected, the next instance you create won’t 
take up more memory.  But the first time you use a class to make an instance or 
refer to statics, it will initialize the class and take up a chunk of memory, 
but not until first accessed.

There are hundreds of classes in most Flex swfs so 3 additional popups classes 
won’t be noticed.


On 2/24/10 9:35 PM, ZIONIST stinas...@yahoo.com wrote:






Hi guys, in my research on how to reduce the size of a flex application swf, i 
was led to believe that classes are one of the factors that contribute to the 
size of any flex swf and in order to reduce the size, one has to make sure he 
only calls the classes that are needed. but again i noticed that certain 
classes are used more than once in an app, take for example, popup class, i my 
have about three titlewindow custom components that i use for popup and on each 
i call the popup class. is there a way to call all classes used only once in 
the main app file and use them throughout the all application like the way we 
use css and if so will that help bring down the size of the complete 
application?






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


Re: [flexcoders] Combobox in a Datagrid not retaining values

2010-02-24 Thread Alex Harui
I assume your editorDataField is really cmbValue.

I don’t know what your data looks like, but you probably don’t want to use 
Binding in the renderer.  When the data is set, you want to set cmbValue to 
whatever value is currently in the dataField for that data item.  Then only 
change it when the combobox sends out a change event.


On 2/24/10 11:41 AM, md_ars mdar...@gmail.com wrote:






Hello,

I have following piece of code from main mxml and below that I have
component code for Combobox. I am using label function to decode values as 
Yes/No when populating Data Grid from the database. It wipe the value from the 
cell once I click on the combobox and don't select values from it. I used 
prompt in combobox which works to avoid blank but it change the values to 
prompt.

I tried many examples but didn't work for me. Please help. Also I want to use 
Item Renderer instead if Item Editor.

Thanks
Arshad

main.mxml
-
[Bindable] private var queryData:ArrayCollection = new ArrayCollection();
--
--
mx:DataGrid id=dgGrid width=644 dataProvider={queryData} height=270 
editable=true 
--
-
mx:DataGridColumn width=175 textAlign=center
 headerText=Tax sortable=false dataField=tax
 labelFunction=taxLabel
 editable=true editorDataField=value itemEditor=yesNoComboBox
/mx:DataGridColumn

-yesNoComboBox --
mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;
implements=mx.controls.listClasses.IDropInListItemRenderer,mx.managers.IFocusManagerComponent

mx:Script
 ![CDATA[
 import mx.controls.listClasses.ListData;
 import mx.controls.dataGridClasses.DataGridListData;
 import mx.controls.listClasses.BaseListData;
 import mx.controls.dataGridClasses.DataGridItemRenderer
 import mx.events.FlexEvent;

 private var _listData:DataGridListData;

[Bindable]
 public var cmbValue:Object;

override public function get data():Object {
 return super.data;
 }

override public function set data(value:Object):void {
 cbo.data=value[_listData.dataField];
 cbo.selectedItem= value[_listData.dataField];
 trace(+cmbValue)
 }
 public function get listData():BaseListData
 {
 return _listData;
 }

public function set listData(value:BaseListData):void
 {
 _listData = DataGridListData(value);
 }

]]
 /mx:Script
 mx:Binding destination=cmbValue source=cbo.value/

 mx:ComboBox id=cbo editable=true width=100% 
 mx:dataProvider
 mx:StringYes/mx:String
 mx:StringNo/mx:String
 /mx:dataProvider
 /mx:ComboBox
/mx:VBox






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