[flexcoders] SOLVED - AMF, IE, and a non-trusted certificate

2009-07-23 Thread Anthony DeBonis
We solved the issue:
 
Added add-no-cache-headers to our channel definition - this problem was solved 
back in 2006 in this case: 
http://blogs.adobe.com/lin/archives/flex/security/index.html
 
We had requested our server admin to add this property to the 
service-config.xml a month ago but it never happened so we were chasing a ghost.
 Once we set up our own LCDS server we could isolate the problem fast.
properties
add-no-cache-headersfalse/add-no-cache-headers
 /properties


--- In flexcoders@yahoogroups.com, Anthony DeBonis anth...@... wrote:

 Still not working in IE - 
 If it was crossdomain it should not work with Firefox but it does work with 
 Firefox and Chrome - only IE is an issue. We are requesting back to the exact 
 server that is serving up the Flex app so it should not trigger a crossdomain 
 issue.  If we compile with Flex 4 SKD it works in IE... I tried monkey 
 patching rpc.swc from 4.o  to 4.2 and that did not seam to help.
 
 Any support would be appreciated.
 
 Anthony
 
 
 --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@ wrote:
 
  On Tuesday 21 Jul 2009, Anthony DeBonis wrote:
   More information on this IE issue - we don't think its a cert issue at all
   because if we compile with the Flex 4 SDK it works fine in IE.  Any ideas?
  
  Sounds like a cross domain policy type issue then. 
  
  -- 
  Helping to autoschediastically network eyeballs as part of the IT team of 
  the 
  year, '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] Re: AMF, IE, and a non-trusted certificate

2009-07-22 Thread Anthony DeBonis
Still not working in IE - 
If it was crossdomain it should not work with Firefox but it does work with 
Firefox and Chrome - only IE is an issue. We are requesting back to the exact 
server that is serving up the Flex app so it should not trigger a crossdomain 
issue.  If we compile with Flex 4 SKD it works in IE... I tried monkey patching 
rpc.swc from 4.o  to 4.2 and that did not seam to help.

Any support would be appreciated.

Anthony


--- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiver...@... wrote:

 On Tuesday 21 Jul 2009, Anthony DeBonis wrote:
  More information on this IE issue - we don't think its a cert issue at all
  because if we compile with the Flex 4 SDK it works fine in IE.  Any ideas?
 
 Sounds like a cross domain policy type issue then. 
 
 -- 
 Helping to autoschediastically network eyeballs as part of the IT team of the 
 year, '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] Re: AMF, IE, and a non-trusted certificate

2009-07-21 Thread Anthony DeBonis
Tom,

More information on this IE issue - we don't think its a cert issue at all 
because if we compile with the Flex 4 SDK it works fine in IE.  Any ideas?

--- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiver...@... wrote:

 On Friday 10 Jul 2009, jer_ela wrote:
  calls still fail, and when you come back in an new session, IE still
  complains about the certificate.
 
 This suggests the cert. is not being correctly installed, or something in 
 Group Policy (etc) is nuking it.
 
 -- 
 Helping to competently grow schemas as part of the IT team of the year, '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] Re: AMF, IE, and a non-trusted certificate

2009-07-17 Thread Anthony DeBonis
This is still a problem but we know more now..
It's not the cert or proxy.

IF we compile the Flex application with Flex 4  IT WORKS.
Tried 3.2, 3.3,3.4  and it does not work - remote object calls still fail when 
using IE

Any ideas?

Anthony


--- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiver...@... wrote:

 On Friday 10 Jul 2009, jer_ela wrote:
  calls still fail, and when you come back in an new session, IE still
  complains about the certificate.
 
 This suggests the cert. is not being correctly installed, or something in 
 Group Policy (etc) is nuking it.
 
 -- 
 Helping to competently grow schemas as part of the IT team of the year, '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] Re: AMF, IE, and a non-trusted certificate

2009-07-17 Thread Anthony DeBonis
No its all HTTPS  using SecureAMFChannel to make the call.



--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 Sounds like some sort of security sandbox issue.
 
 Are these AMF over HTTP or HTTPS? Is there any other parts of the enclosing 
 HTML page that are using HTTP? Perhaps IE does not like to have both HTTP and 
 HTTPS calls on the same page?
 
 Stabbing in the dark here ;-}
 
 
 --- In flexcoders@yahoogroups.com, Anthony DeBonis anthony@ wrote:
 
  This is still a problem but we know more now..
  It's not the cert or proxy.
  
  IF we compile the Flex application with Flex 4  IT WORKS.
  Tried 3.2, 3.3,3.4  and it does not work - remote object calls still fail 
  when using IE
  
  Any ideas?
  
  Anthony
  
  
  --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@ wrote:
  
   On Friday 10 Jul 2009, jer_ela wrote:
calls still fail, and when you come back in an new session, IE still
complains about the certificate.
   
   This suggests the cert. is not being correctly installed, or something in 
   Group Policy (etc) is nuking it.
   
   -- 
   Helping to competently grow schemas as part of the IT team of the year, 
   '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] Re: Remote AMF all in IE7 Fails NetConnection.Call.Failed: HTTP: Status 403

2009-07-15 Thread Anthony DeBonis
Very good idea - I tried the reset steps but still no joy.
You may be onto something because the certificate on this server is a internal 
generated cert - not a trusted cert so we do get a cert warning before 
page/application loads.

This is still a real problem for us and need to figure out why this is 
happening.


--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 403 is a Access Denied/Forbidden error. Seeing as you are making a secure 
 call, could it be a damaged certificate file in IE? You may want to try 
 repairing IE7 (http://support.microsoft.com/kb/318378) or perhaps some 
 registry error?
 
 
 --- In flexcoders@yahoogroups.com, Anthony DeBonis anthony@ wrote:
 
  Need a fix for this ASAP - any help would be great
  
  We have remote object calls to LCDS that work fine in Firefox and Chrome 
  but fail when we user IE 7 as the browser.
  
  FaultDetail: NetConnection.Call.Failed: HTTP: Status 403
  
  
  Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 403: 
  url: 
  'https://{servernamehere}/doh2/applinks/webserv/datavis/messagebroker/amf'
  
  IF I just hit the URL for the endpoint in IE7 it works fine - we get back a 
  blank white empty page so we know the endpoint us available.
  
  The Channel is using mx.messaging.channels.SecureAMFChannel 
  
  service-config.xml entries:
  
  channel-definition id=myAmf class=mx.messaging.channels.AMFChannel
  endpoint 
  url=http://{server.name}:{server.port}/{context.root}/messagebroker/amf; 
  class=flex.messaging.endpoints.AMFEndpoint/
  properties
 add-no-cache-headersfalse/add-no-cache-headers
  /properties
  /channel-definition
  
  channel-definition id=mySecureAmf 
  class=mx.messaging.channels.SecureAMFChannel
  endpoint 
  url=https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure;
   class=flex.messaging.endpoints.SecureAMFEndpoint/
  properties
  add-no-cache-headersfalse/add-no-cache-headers
  /properties
  /channel-definition
 





[flexcoders] Remote AMF all in IE7 Fails NetConnection.Call.Failed: HTTP: Status 403

2009-07-14 Thread Anthony DeBonis
Need a fix for this ASAP - any help would be great

We have remote object calls to LCDS that work fine in Firefox and Chrome but 
fail when we user IE 7 as the browser.

FaultDetail: NetConnection.Call.Failed: HTTP: Status 403


Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 403: url: 
'https://{servernamehere}/doh2/applinks/webserv/datavis/messagebroker/amf'

IF I just hit the URL for the endpoint in IE7 it works fine - we get back a 
blank white empty page so we know the endpoint us available.

The Channel is using mx.messaging.channels.SecureAMFChannel 

service-config.xml entries:

channel-definition id=myAmf class=mx.messaging.channels.AMFChannel
endpoint 
url=http://{server.name}:{server.port}/{context.root}/messagebroker/amf; 
class=flex.messaging.endpoints.AMFEndpoint/
properties
   add-no-cache-headersfalse/add-no-cache-headers
/properties
/channel-definition

channel-definition id=mySecureAmf 
class=mx.messaging.channels.SecureAMFChannel
endpoint 
url=https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure;
 class=flex.messaging.endpoints.SecureAMFEndpoint/
properties
add-no-cache-headersfalse/add-no-cache-headers
/properties
/channel-definition




[flexcoders] Re: Mate CacheSetter

2009-06-26 Thread Anthony DeBonis
We use static constants for all these properties so we don't end up with simple 
type Os

Example:
static public const PROP_APPLICATION_IS_READY:String = applicationIsReady;
private var _applicationIsReady:Boolean;
+ setter/getter

And in the map

mate:PropertyInjector 
targetKey={DvMainView.PROP_APPLICATION_IS_READY} source={AppState} 
sourceKey={AppState.PROP_APPLICATION_IS_READY}/


Odd to see it trapping the type check on foo... but hope this helps.

Anthony


--- In flexcoders@yahoogroups.com, Richard Rodseth rrods...@... wrote:

 Any Mate users here? The forums are down again.
 
 I'm trying to use the newish CacheSetter tag, as follows:
 
 CacheSetter cache=global cacheKey=legacyModel instance={this.model}/
 
 Elsewhere:
 
 PropertyInjector targetKey=foo source=legacyModel sourceKey=foo/
 
 This gives the error: 1069 Property foo not found on String
 
 If I use the class name instead it complains because the class in
 question has constructor arguments.
 
 What's the correct approach here? Thanks.





[flexcoders] Re: subversion ? where do i start

2009-06-23 Thread Anthony DeBonis
You can install SubClipse http://subclipse.tigris.org/  into FlexBuilder and 
follow instruction on pulling the src right into a Flex Project.

Or install something like Tortois  http://tortoisesvn.tigris.org/


--- In flexcoders@yahoogroups.com, luvfotography ygro...@... wrote:

 Hi, I want to check out a google project, where do I start?
 Do I need to install subversion?  or find a free subversion host?
 mucho thanks,





[flexcoders] Re: Flex / Fireworks integration

2009-06-03 Thread Anthony DeBonis
Yes we tried it for a while on a project with a UI designer... it generates 
allot of extra styles ie  style_2  for something on one screen and style_2 for 
something else on another screen.  Ok for quick mock up but not all that good 
for real UI development where you want to create custom components...

--- In flexcoders@yahoogroups.com, arieljake arielj...@... wrote:

 Anyone know in Fireworks how to load a css to make those styles available as 
 font styles, box styles, and image assets?





[flexcoders] Re: link examples to sell Flex apps to small business clients

2009-05-08 Thread Anthony DeBonis
For sending out emails with links and file download buttons I use 
www.kineticast.com - Flex based app that is perfect for this + it give the 
tracking to see who you sent the email to and if they pressed/followed the link 
or download button.



[flexcoders] LCDS - For a Chat Application

2009-04-21 Thread Anthony DeBonis
Anyone have an idea on how to use LCDS or BlazeDS for a Chat Application?   Its 
easy to get your basic chat up and running with a simple producer/consumer 
messaging BUT its not clear on how to:

1)Set up a list of available rooms (Subtopics)  so that all users get a pick 
list of available rooms.  I have a basic MultiTopicProducer/ MultiTopicConsumer 
set up but if a user comes online late they don't get the list of rooms… only 
new rooms that get created.  Or do we have to wait for Flash Collaboration 
Services (AFCS)

2)Online User list – need a way to have a server side list that is kept up 
today with who is online… something like a Server Side Shared object like Flash 
Media server has.

3) Make durable messages – so users who come online later can get caught up on 
messages they missed..   I tried a bunch of settings in messaging-config.xml  
like durabletrue/durable  but they don't work or as the docs say they 
should.


Any insight would be helpful

A



[flexcoders] flex.portal.GenericFlexPortlet - app_uri on Web Logic

2009-04-14 Thread Anthony DeBonis
Has anyone got this to work and if so what did you put into app_uri?

The GenericFlexPortlet class is not well documented but it sort of works when 
you need to deploy a Flex app inside a portal.  I can get the application to 
come up inside the portal running on WebLogic Portal ONLY if I put the swf(s), 
protlet and portal all in the same directory.  If I try to organize the portlet 
into directories it can not resolve the location of the swf.

Plus when trying to use your Flex based portlet at a Remote Portlet, as 
stated in the Adobe docs, the app_uri does not seam to do anything.

Here is my portlet.xml

?xml version=1.0 encoding=UTF-8?
portlet-app version=1.0

portlet
portlet-nameCampGround/portlet-name
portlet-classflex.portal.GenericFlexPortlet/portlet-class
supports
mime-typetext/html/mime-type
portlet-modeview/portlet-mode
/supports
 init-param
namewsrp_folder/name
value../resources/value
 /init-param   
portlet-info
titleCampGround/title
/portlet-info
portlet-preferences
preference
nameapp_uri/name 

valuehttp://PEARL031157.health.state.ny.us:7001/FlexPortal/CampGround/CampGround/value
 
read-onlytrue/read-only
/preference   
preference
namenorm_width/name
value100%/value 
read-onlytrue/read-only
/preference   
preference
namenorm_height/name
value400/value 
read-onlytrue/read-only
/preference   
/portlet-preferences 

portlet-app
portlet
remotabletrue/remotable
portlet-nameCampGroundPortlet/portlet-name
/portlet
/portlet-app  

/portlet
/portlet-app







[flexcoders] Re: Uploading file over HTTPS produces Error #2038: File I/O Error.

2009-04-13 Thread Anthony DeBonis
I ran into this exact issue with a self signed cert on a staging server- once 
we installed a valid cert all was well.



[flexcoders] Re: Spring vs Flex

2009-03-30 Thread Anthony DeBonis
Check out what Christophe Coenraets has put together using BlazeDS
http://www.adobe.com/devnet/livecycle/articles/blazeds_spring.html

--- In flexcoders@yahoogroups.com, senthilkumarirtt senthilkumari...@... 
wrote:

 hi 
 i need to integrate spring and flex application.
 ( i  want to get data retun by spring from Db to Advanced datagrid in flex 
 app)





[flexcoders] Re: Database Viewer

2009-03-25 Thread Anthony DeBonis
If the DB is SqlLite  you can use Christophs Coenraet's  application
http://coenraets.org/blog/2008/02/sqlite-admin-for-air-10/  

If your are talking MySql, Oracle... you can't connect dirrect to DB and there 
are plenty of posts on this topic.

We wrote a in-house tool that connects to DB though ColdFusion.. basic select, 
alter, drop functions - it was not all that hard.

--- In flexcoders@yahoogroups.com, Paresh M More pareshm...@... wrote:

 Try out TOAD s/w
 
 Regards,
 Paresh M. More
 Software Engineer
 
 Nashik/Pune, Maharashtra, India.
 Email - pareshm...@...
 
 
 On Wed, Mar 25, 2009 at 10:59 AM, akn_carnage akn_carn...@... wrote:
 
Hi everyone,
 
  Can someone please suggest any database viewer application either
  commercial or open-source made in Flex?
 
  I need to able to see the relationships, columns etc of the tables and the
  data as well.
 
  Thanks,
  Anil
 
   
 





[flexcoders] Re: Database Viewer

2009-03-25 Thread Anthony DeBonis
Very nice - thanks for the heads up on this tool.

--- In flexcoders@yahoogroups.com, Alan K ultr...@... wrote:

 Dude, 4get that!
 
 Lita is where it¹s at.
 
 http://www.dehats.com/drupal/?q=node/58
 
 HollA!!!
 
 Alan
 
 If the DB is SqlLite you can use Christophs Coenraet's application
 http://coenraets.org/blog/2008/02/sqlite-admin-for-air-10/





[flexcoders] Re: comboBox in datagrid

2009-03-10 Thread Anthony DeBonis
Are you talking about an example like this?
You may be better off creating a reusable/testable component in separate AS or 
MXML file.

mx:Component
mx:CheckBox creationComplete=init()
mx:Script
![CDATA[
 
private 
var _data:Object;   
private function init():void {  
  this.addEventListener(MouseEvent.CLICK, 
update);
}   
override public 
function get data():Object {

return _data; 
}
 

[Bindable]

override public function set data(o:Object):void {

_data = o;

if(_data.checked == true) this.selected = true;

else this.selected = false;
}
 
private 
function update(event:MouseEvent):void {

if(this.selected) _data.checked = true;

else _data.checked = false;
}
 
 
]]
  /mx:Script
/mx:CheckBox
/mx:Component



[flexcoders] Re: How to acces POST of REST Service thru Flex (Couldn't establish a connection

2009-03-09 Thread Anthony DeBonis
Try switching destination  to url

destinations need to be preset in services-config.xml

url=http://10.176.95.32:8889/SunRestTest/sunTest/testRest;

Also add a fault handler would help so you can place a break point and look at 
fault event object for details.


--- In flexcoders@yahoogroups.com, bjgindia bjgin...@... wrote:

 Hi,
 
 I have got the REST POST working thru simple HTML Form submit.
 This REST Service takes an XML and returns back an XML.
 
 But, when I tried it with FLEX, I am getting Couldn't establish a
 connection errors:
 
 FLEX CODE:
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
  mx:HTTPService id=RESTService
  method=POST
 
 destination=http://10.176.95.32:8889/SunRestTest/sunTest/testRest;
  resultFormat=e4x
 
   mx:request xmlns=
{this.payload}
   /mx:request
  /mx:HTTPService
 
  mx:Script
  ![CDATA[
  private function processValues():void {
  RESTService.send();
  }
  ]]
  /mx:Script
 
 mx:VBox width=100% height=100%
 mx:Form width=100% height=50%
  mx:FormItem label=Payload width=100% height=100%
  mx:TextArea id=payload width=100% height=80%
  text=Paste or Type the XML Payload here:/
  mx:Button
  label=Submit
  click=processValues();/
  /mx:FormItem
  /mx:Form
 
  mx:TextArea width=100% height=50%
  text=
{RESTService.lastResult.toString()}/
 
 /mx:VBox
 
 /mx:Application
 
 FAULT ON Clicking the Submit Button:
 
 [RPC Fault faultString=[MessagingError message='Destination
 'http://10.176.95.32:8889/SunRestTest/sunTest/testRest' either does not
 exist or the destination has no channels defined (and the application
 does not define any default channels.)'] faultCode=InvokeFailed
 faultDetail=Couldn't establish a connection to
 'http://10.176.95.32:8889/SunRestTest/sunTest/testRest']
 at
 mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invo\
 ke()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvok\
 er.as:263]
 at
 mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal\
 ::invoke()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\http\mx\
 ml\HTTPService.as:249]
 at
 mx.rpc.http::HTTPService/send()[C:\autobuild\3.2.0\frameworks\projects\r\
 pc\src\mx\rpc\http\HTTPService.as:767]
 at
 mx.rpc.http.mxml::HTTPService/send()[C:\autobuild\3.2.0\frameworks\proje\
 cts\rpc\src\mx\rpc\http\mxml\HTTPService.as:232]
 at
 CallRESTServices/processValues()[D:\SourceCodes\FLEX_SOURCE\CallRESTServ\
 ices\src\CallRESTServices.mxml:17]
 at
 CallRESTServices/___CallRESTServices_Button1_click()[D:\SourceCodes\FLEX\
 _SOURCE\CallRESTServices\src\CallRESTServices.mxml:29]
 
 Appreciate your useful suggestions.
 
 thanks
 Bhaskar





[flexcoders] Re: writing data to SQL database

2009-02-17 Thread Anthony DeBonis
You may find not many people use the wizard - its ok for a quick demo 
(maybe code table admins) but not for real application development.

Check the CF Logs under the CF install dir, there may be something in 
the logs to tell what the problem is IF its on the CF side.

I often create a basic cfm file to test call the CFC function to be 
sure it returns what I expect and removed Flex from the complexity.
Write cfunit test is another great way to test each CFC call to be 
sure its correct.

Find the fault event handler (OR add one if it does not exist)and put 
a break just inside the event handler function - look at the 
FaultEvent in the debugger - it should have some info that will help 
you.

Anthony
www.troywebconsulting.com

--- In flexcoders@yahoogroups.com, Danny Buetow da...@... wrote:

  
 
 Greetings All,
 
  
 
 Yes, I am new to FLEX, as my question will surely show. I am making 
a simple
 CRUD app designed to administer my table of users. I used the 
ColdFusion
 wizard and created a Master/Detail set. The query is simple and 
tests out
 fine, however, when I Run the application and test it live, I am 
able to
 edit and delete records, yet I am not able to add a record. I 
receive no
 error and when running in debug mode, I get no breaks. I have tried 
to
 re-create the app and have googled my question in hopes of finding 
other
 newbie's with the same question. I have looked through all of the 
CFC's
 and see nothing glaring that would raise my lightly trained eyebrow.
 
  
 
 Any ideas why I would not be able to add a record?
 
  
 
 Thank You 
 
  
 
 Danny Buetow
 
 President and LOC
 
 DMB Services
 
 da...@...
 
 804.918.1027
 
  
 
  
 
 DMB Services accepts no liability for the content of this email, or 
for the
 consequences of any actions taken on the basis of the information 
provided,
 unless that information is subsequently confirmed in writing. Any 
views or
 opinions presented in this email are solely those of the author and 
do not
 necessarily represent those of DMB Services. WARNING: Computer 
viruses can
 be transmitted via email. The recipient should check this email and 
any
 attachments for the presence of viruses. DMB Services accepts no 
liability
 for any damage caused by any virus transmitted by this email. 
 
 
**
**
 
 IMPORTANT: This email is intended for the use of the individual 
addressee(s)
 named above and may contain information that is confidential, 
privileged or
 unsuitable for overly sensitive persons with low self-esteem, no 
sense of
 humour or irrational religious beliefs. If you are not the intended
 recipient, any dissemination, distribution or copying of this email 
is not
 authorised (either explicitly or implicitly) and constitutes an 
irritating
 social faux pas. 
 
 Unless the word
 http://www.it.rit.edu/~jxs/definitions/absquatulation.html 
absquatulation
 has been used in its correct context somewhere other than in this 
warning,
 it does not have any legal or grammatical use and may be ignored. No 
animals
 were harmed in the transmission of this email, although the kelpie 
next door
 is living on borrowed time, let me tell you. Those of you with an
 overwhelming fear of the unknown will be gratified to learn that 
there is no
 hidden message revealed by reading this warning backwards, so just 
ignore
 that Alert Notice from Microsoft. 
 
 However, by pouring a complete circle of salt around yourself and 
your
 computer you can ensure that no harm befalls you and your pets. If 
you have
 received this email in error, please add some nutmeg and egg whites, 
whisk
 and place in a warm oven for 40 minutes. 
 
 
**
**
 ***






[flexcoders] Re: problem with services-config.xml in multiple work environments..

2009-02-17 Thread Anthony DeBonis
What is the service type?  If you talking AMF be sure to use 
{server.name}  and not hard code the name... this is the default for 
most of the services in the config... did you have to change yours?

Example - 
channel-definition id=my-amf 
class=mx.messaging.channels.AMFChannel
endpoint 
url=http://{server.name}:{server.port}/{context.root}/messagebroker/a
mf class=flex.messaging.endpoints.AMFEndpoint/
properties
polling-enabledfalse/polling-enabled
/properties
/channel-definition


--- In flexcoders@yahoogroups.com, tchredeemed apth...@... wrote:

 Basically..
 
 We develop on localhost:3000, we test on http://dev.oursite.com, and
 we go live on https://www.oursite.com.
 
 I need 3 different environments, one for each environment.
 
 Right now I have to recompile the SWF everytime I want to create it
 for a new environment.
 
 Obviously, when we have multiple people using it on localhost, I 
have
 to create these swf's too often.
 
 I was hoping there is a way that I can set up services-config.xml to
 point to the right url...
 
 I would almost like to set up a daisy chain or something, it tries
 www, if it can't get that, it tries dev, if it cant get that, it 
tries
 localhost.
 
 Any help would really be greatly appreciated...






[flexcoders] Re: Form on several page

2009-02-11 Thread Anthony DeBonis
We do this all the time for things like credit card processing 
forms... create a component (mxml or AS) - then you can reuse it many 
times - even in other applications with just a little work.

Check out this link:

http://www.adobe.com/devnet/flex/quickstart/building_components_in_mxm
l/

Anthony DeBonis
www.troywebconsulting.com


--- In flexcoders@yahoogroups.com, christophe_jacquelin 
christophe_jacque...@... wrote:

 Hello, 
 
 How to make a form inside several pages ? 
 
 Thank you,
 Christophe,






[flexcoders] Re: Adobe Presentation Tool

2009-02-09 Thread Anthony DeBonis
If you need to send out and track views of a presentation checkout:
http://www.kineticast.com

Includes recording and embedding video too...



[flexcoders] Re: filtering blazeds messages

2009-01-21 Thread Anthony DeBonis

Message Service destinations support subtopics -  The subtopic feature 
lets you divide the messages that a Producer component sends to a 
destination into specific categories in the destination. You can 
configure a Consumer component that subscribes to the destination to 
receive only messages sent to a specific subtopic or set of subtopics. 
You use wildcard characters (*) to subscribe for messages from more 
than one subtopic.

http://livedocs.adobe.com/blazeds/1/blazeds_devguide/help.html?
content=messaging_7.html

Also you could use- Message filtering
Use the AsyncMessage.headers property of the message to specify the 
message headers. The headers are contained in an associative Array 
where the key is the header name and the value is either a String or a 
number

message.headers = new Array();
message.headers[prop1] = 5;


It depends on what you need


--- In flexcoders@yahoogroups.com, netdeep deep...@... wrote:

 I have blazeds working on a channel I have set up, but how do you 
filter out the 
 information you broadcast on that channel? If I want to send data to 
one instance of my 
 application, but no another, how do I determine that. Here is how I 
set up the message in 
 java and flex. I have tried setting the consumer.selector as it says 
to in the documentation, 
 but that doesn't seem to do anything, at least not the way I'm doing 
it.  Here is the code:
 
 
 !-- flex code --
 mx:Consumer id=consumer destination=factory 
 message=msgHandler(event.message)/
 !-- actionscript snippet
 consumer.selector = reportID = '+reportID+';
 consumer.subscribe();
 --
 
 // java code
 message = new AsyncMessage(); 
 message.setDestination(factory); // the channel I've set up
 message.setClientId(clientID);
 message.setMessageId(UUIDUtils.createUUID());
 message.setTimestamp(System.currentTimeMillis());
 message.setHeader(reportID, this.getRepID());
 message.setBody(channelDef);  // my object
 service.pushMessageToClients(message, false);






[flexcoders] Re: Accessibility stopped working

2009-01-15 Thread Anthony DeBonis
Try compiling with accessible turned off and get the swf size - when 
you turn accessible compile back on the swf size should be a bit 
larger. This will tell you if the compile is backing in the needed 
classes. If so it may be the client tool you're using to run the 
application. Can you give more information?


--- In flexcoders@yahoogroups.com, Guy Morton g...@... wrote:

 I had been successfully compiling my app via flexbuilder 3 using the 
- 
 accessible compiler flag. Then it stopped working, for no apparent  
 reason. I tried reinstalling fb but it made no difference. The  
 compiler option is still set but now my app gets compiled with no  
 accessibility features.
 
 Anyone got any ideas as to why this might have happened or how to 
fix  
 it?
 
 Guy






[flexcoders] Re: warning on 'back' button before closing application?

2009-01-14 Thread Anthony DeBonis
Yes it is possible but you need some JavaScript

You can create a js include file or put this in your wrapper template 
file.  The idea is to put a event listener on the onbeforeunload  
function.  I have tested this in a few more common browsers  and it 
works. 

window.onbeforeunload = warnOfUnsavedChanges;

function warnOfUnsavedChanges(){
//You can add a boolean to be set using externalInterface IF 
the form/data is dirty in Flex
return 'You have unsaved changes on this page, which will be 
discarded if you leave now. Click Cancel in order to save them 
first.';
}


Simple string return from the onbeforeunload method does the trick.
I would also like to get this working from inside Flex to use the 
externalInterface to inject the needed JS but I did not have luck yet 
with this.



--- In flexcoders@yahoogroups.com, Maciek Sakrejda msakre...@... 
wrote:

 Is there a way to warn the user that they're about to navigate away 
from
 the app through the browser's back button? This is actually a 
request
 from our users: we don't use BrowserManager (I don't think it would 
even
 make sense for us), but they are used to browser paradigms, and
 sometimes hit 'back' inadvertently, navigating away from the
 application. Is there a way to issue a warning beforehand?
 
 -- 
 Maciek Sakrejda
 Truviso, Inc.
 http://www.truviso.com






[flexcoders] Re: ExternalInterface erros

2009-01-12 Thread Anthony DeBonis
-What browser are you using - or does it happen in all browsers

- Can you get something simple to work like this
ExternalInterface.call(alert('TEST'));

-Can you post the code?



[flexcoders] Re: How to config LCDS in websphere 6?

2009-01-05 Thread Anthony DeBonis
LCDS can be deployed as a war (or part of ab ear) or even picked apart 
and integrated into an existing application if needed.

Help Doc
http://help.adobe.com/en_US/livecycle/es/lcds_installation.html#websph
ere 

I have deployed it to WS in the past so I know it can be done - not 
sure if your asking for more that this...



[flexcoders] Re: DataGrid - create dynamic columns

2008-12-29 Thread Anthony DeBonis
Here is a snip of code that shows you how to do this. Its from a tool 
that just dumps rows/columns based on some basic xml data.

Hope it helps you out

nameList = dvDmML.rawData.fld_names.fld_name;
var rows:XMLList = dvDmML.rawData.rows.row; 

var dgc:DataGridColumn;
var aColumnsNew:Array = [];
columnCount=nameList.length();

//Create the columns
for (var i:int=0; icolumnCount;i++) {
var columnName:XML= nameList[i];
dgc = new DataGridColumn(); 
 
dgc.dataField=columnName;   

dgc.headerText = 
columnName.toString();
aColumnsNew.push(dgc)  
}

dg.columns = aColumnsNew;
//set the dataprovider  
  
dg.dataProvider = _dataGridData;   




[flexcoders] Re: Flex Certification for Flex 3

2008-12-11 Thread Anthony DeBonis
It already is 
http://www.adobe.com/devnet/flex/articles/flex_certification.html



[flexcoders] Re: Flex training

2008-12-10 Thread Anthony DeBonis
If you have a group I would recommend an Adobe Training Class
If 1-2 people a custom class/mentoring works great.

Farata Systems is a good call in NYC
Troy Web Consulting - Albany NY Certified Adobe Instructors + Mentoring

This link can help you find a training partner
http://partners.adobe.com/public/partnerfinder/tp/show_find.do 



[flexcoders] Re: Invoking Flex fuction from Javascript for close.window

2008-12-09 Thread Anthony DeBonis
With ExternalInterface.call you can inject JavaScript into the wrapper 
document.

if ( ExternalInterface.available ) {
ExternalInterface.call('alert(TEST)'); 
}
A good example of what your talking about is here thanks to Greg Jessup

http://gregjessup.com/flex-3-catch-browser-exit-or-close-event-using-
javascript-and-externalinterface/




[flexcoders] Re: Invalid Login error connecting to salesforce.com using as3salesforce.swc

2008-12-04 Thread Anthony DeBonis
All my Flex/AS code still works with my ID that I have been using for 
9+months.

I am using as3Salesforce.swc 52KB in size

as3Salesforce.swc is provide by SalesForce.com under 
developer.force.com  so you would need to post a issue with them I 
believe.





[flexcoders] Re: data serialization

2008-12-03 Thread Anthony DeBonis
Need to add this to your UserList.as file

 [RemoteClass(alias=com.whatever.UserList)

Read up on RemoteClass meta tag to be sure you get your data types 
from/to Java and AS correct.  This works if the var names match and you 
get the data types correct - We do it all the time.



[flexcoders] Re: data serialization

2008-12-02 Thread Anthony DeBonis
You did not post your code for UserList.as

Did you add the meta tag RemoteClass? If not Flex does not know how 
to map the class back...

  [RemoteClass(alias=com.whatever.UserList) 




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

 Hello,
 Im having problem getting the data from java to flex and im totally
 new to flex and cairngorm... here is my code snippet:
 
 im my java end:
 
  ListUsers getAll() {  // from hibernate dao then return result
 which llist of users }
 
 in AS files:
 
 public class ListDelegate extends EventDispatcher
 {
 private var userService:RemoteObject;
 private var responder:IResponder;

 public function ListDelegate(responder:IResponder)
 {
 this.userService = new 
 RemoteObject(userService);

 this.responder = responder;
 }

 public function getUserList():void
 {

 var call : Object = userService.getAll();

 call.addResponder( responder );

 }
 }
 
 
 public class ListUserCommand extends BaseCommand
 {


 override protected function callDelegate():void
 {
 var listdelegate:ListDelegate = new
 ListDelegate(this);
 listdelegate.getUserList();
 }

 override public function result( event : Object ) : 
void
 {
 this.modelHelper.onResultUser(event);

 }

 override public function fault( event : Object ) : 
void
 {
 var faultevt:FaultEvent = event as 
FaultEvent;
 Alert.show(faultevt.fault.rootCause.toString
());
 }
 
 }
 
 public class ModelHelper
 {
 [Bindable]
 public var userlist: UserList;

 public function ModelHelper(userlist: UserList)
 {
 this.userlist = userlist;
 }

 public function getUserList():void
 {
 new ListUserEvent(this).dispatch();
 }

 public function onResultUser(event:Object):void
 {
 this.userlist.listusers = event.result as
 ArrayCollection;
 }
 
 }
 
 ..and i use DataGrid to display datas:
 
 ?xml version=1.0 encoding=utf-8?
 mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;
 initialize=init()
 creationComplete=loadAll() 

 mx:Script
   ![CDATA[
   import com.test.flex.util.UserList;
   import mx.rpc.events.ResultEvent;
   import com.test.flex.model.ViewModelLocator;
   import com.test.flex.events.ListUserEvent;
   import com.test.flex.model.ModelHelper;
  
   [Bindable]
   private var modelLocator:ViewModelLocator =
 ViewModelLocator.getInstance();
  
   [Bindable]
   public var modelHelper:ModelHelper;
   [Bindable]
   public var users:UserList;
  
   public function init():void
   {
 this.users = new UserList();
 this.modelHelper = new ModelHelper(users);

   }
  
   public function loadAll():void
   {
   this.modelHelper.getUserList();
   }
  
  
  
   ]]
  /mx:Script
  
  !-- mx:Label text={modelLocator.test}/ --
  
  mx:DataGrid id=userlist
 dataProvider={modelHelper.userlist.listusers}
   mx:columns
   mx:DataGridColumn headerText=ID dataField=id/
   mx:DataGridColumn headerText=Username dataField=username/
   mx:DataGridColumn headerText=Password dataField=password/
   /mx:columns
  /mx:DataGrid
  

 mx:Button id=logout label=LogOut
 click={modelLocator.modelWorkflowState =
 ViewModelLocator.LOGIN_SCREEN}/
 /mx:VBox
 
 ..and the rest are straigthforward code. When I change the return
 value to String it works fine nut when put it back to List it 
display
 nothing or error i get but when i debug it i gets the results:
 
 11:20:14,459 INFO  [STDOUT] Hibernate: select this_.ID as ID1_0_,
 this_.USERNAME as USERNAME1_0_, this_.PASSWORD as PASSWORD1_0_ from
 user this_
 11:20:14,464 INFO  [STDOUT] [BlazeDS]12/02/2008 [DEBUG]
 [Service.Remoting] Adapter 'java-object' called
 'userService.getAll(java.util.Arrays$ArrayList (Collection size:0)
 )'
 11:20:14,465 INFO  [STDOUT] [BlazeDS]12/02/2008 [DEBUG]
 [Service.Remoting] Result: 'java.util.ArrayList (Collection size:2)
   [0] = com.test.flex.model.User
 id = 1
 username = eman
 password = password
 
   [1] = com.test.flex.model.User
 id = 2
 

[flexcoders] Re: how to play partially downloaded local flv file ?

2008-12-02 Thread Anthony DeBonis
Are you using FileStream? 

Are you calling open()  with FileMode.READ ?


On systems that support file locking, a file opened in write 
or update mode (FileMode.WRITE or FileMode.UPDATE) is not readable 
until it is closed.



[flexcoders] Re: Security sandbox and two domains

2008-11-24 Thread Anthony DeBonis
I don't think it matters what is in the swf it matters that one swf 
is requesting something from other then the server it was loaded from.

If your running Flash 10 things have changed - you have to do more 
things then just a basic crossdomain file.

Run your application in FireBug and you will see the requests - and 
see requests errors that occur..

A lot of people are having issues with this now:

Adobe implemented the stricter requirements in Flash Player in three
phases. In Phase 1, which began with Flash Player 9,0,115,0, a small
number of strict rules were enforced immediately, but most violations
of the strict rules resulted only in warnings visible in Debug 
versions
of Flash Player. In Phase 1.5, which began with Flash Player 
9,0,124,0,
the warnings of Phase 1 became errors in the specific case of socket
operations. In Phase 2, which began with Flash Player 10.0, all of the
warnings of Phase 1 became errors and the transition to stricter rules
was complete.

Recommend you read this document
http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.htm
l




[flexcoders] Re: need help in BlazeDS

2008-11-21 Thread Anthony DeBonis
Try adding mx:TraceTarget /  to you main application file and run 
the application in debug mode.  You should get more information in 
the console window showing traffic.

Also test that the endpoint is working:
example:
https://local/doh2/applinks/ServiceTester/messagebroker/amfsecure

Also deploy
ds-console.waryou will find this at the main dir created during 
install

You hit it with this URL
http://localhost:8400/ds-console/ 
Change your port # ect...
This will allow you to see what is going on inside the server

Steps to Create Flex Project in Eclipse
FileNew Flex Project

Under Server Technology Choose J2EE
Next
Set the Root Folder ect...
This should work I have done this many times

More Help 
http://learn.adobe.com/wiki/display/Flex/Creating+Flex+Builder+Project
s+that+Use+Server+Technologies 


http://techblogging.wordpress.com/2008/03/02/setting-up-blazeds-with-
flex/




[flexcoders] Re: Security Sandbox Violation message

2008-11-21 Thread Anthony DeBonis
A lot of people are having issues with this now:

Adobe implemented the stricter requirements in Flash Player in three 
phases. In Phase 1, which began with Flash Player 9,0,115,0, a small 
number of strict rules were enforced immediately, but most violations 
of the strict rules resulted only in warnings visible in Debug versions 
of Flash Player. In Phase 1.5, which began with Flash Player 9,0,124,0, 
the warnings of Phase 1 became errors in the specific case of socket 
operations. In Phase 2, which began with Flash Player 10.0, all of the 
warnings of Phase 1 became errors and the transition to stricter rules 
was complete.

Recommend you read this document
http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html



[flexcoders] Re: how to improve performance in flex application

2008-11-06 Thread Anthony DeBonis
Can you test the back end http service independent of Flex to see how 
fast it is...
Make as many improvements you can, including server side caching if 
possible.

Firebug plug to Firefox in can give you a quick view of how fast your 
data is returned and what size the payload is

If the data service is returning your data fast enough and Flex is 
working too hard parsing the data can you pre-aggregate the data on the 
server side with counts/group by's  and return just the data the chart 
needs to display

-Be sure to load test more then just one browser – what is you expected 
user base
-Be sure to optimize you query (show plan.. ) add indexes if possable

I am sure there are other tricks too but these you can do in the short 
term




[flexcoders] Re: Charts

2008-11-06 Thread Anthony DeBonis
Go to: 
http://examples.adobe.com/flex2/inproduct/sdk/dashboard/dashboard.html

Right Click View Source on the app

Dirrect link is here
http://examples.adobe.com/flex2/inproduct/sdk/dashboard/srcview/index.ht
ml 

Check out RegionalDetail.mxml

This should help



[flexcoders] Re: flex and oracle

2008-10-21 Thread Anthony DeBonis
Yes - good point but I should have been clearer. I was thinking about 
my experience with PowerBuilder and VB type application with direct 
DB connection being held open.

There are many examples of connecting to get data for Flex but 
because of the sandbox of the browser we can't (easily) directly 
connect to the database.  Flex can be thought of N-tier because to 
get to the database you will normally use an application server.

Thanks Tom


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

 On Monday 20 Oct 2008, Anthony DeBonis wrote:
  You would not want to make a direct Oracle connection from Flex – 
old
  Client/Server technology does not work over the Intranet.
 
 web applications are the perfect example of a client/server 
technology, aren't 
 they ?
 
 -- 
 Tom Chiverton
 Helping to quickly promote markets
 
 
 
 
 
 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] Re: flex and oracle

2008-10-20 Thread Anthony DeBonis
You would not want to make a direct Oracle connection from Flex – old 
Client/Server technology does not work over the Intranet.

You need to make service call either RemoteObject / WebService/HTTP 
Service calls.

For RemoteObject calls you can look into BlazeDS 
http://biemond.blogspot.com/2008/03/deploy-blazeds-on-oc4j-oracle-
as.html 

The oracle application server could support xml over http (or REST) 

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

 hello people
 its show time
 
 ok i have a question i'm new in programming with flex but im student
 and im looking for a way that i can connect oracle data base with 
flex
 it can help me a lot even a simple connection that can extract 
 something of database
 
 and what do u think bout adobe what they want to do?
 coz silverlight growup too quickly and i'm vory bout this
 
 thanks a lot to all of you and the admin of this group
 god bless you and try to make a world better place , peace  peace





[flexcoders] Any luck with FlexBuilder Web Service Import Wizard and JAX-WS?

2008-10-20 Thread Anthony DeBonis
Has anyone had the with the FlexBuilder Web Service Import Wizard work 
with JAX –WS?  Just checking - I am hearing reports it does not work.

Looks to be a problem working with JAX-WS based web service – works 
with less complex JAX-RPC based service but can also fail on more 
complex RPC 




[flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Anthony DeBonis
I tend to use the Flex Debugger at this point and break in the result 
handler.  Then right click the var in the code  event and watch it 
it will be in the Expressions Tab and you can drill in to see exactly 
what is in the event object.  You must be close so dont give give up.



[flexcoders] Re: Dynamic Embedded Images

2008-10-07 Thread Anthony DeBonis
You will increase the swf size if you just embed so you may want to 
look at using modules  or check this cool idea out by Dirk Eismann.

This will allow the application to load fast but then stream in the 
other graphics you need.

http://www.richinternet.de/blog/index.cfm?entry=FF295F89-DAD8-CCDC-
960413842BC0D478

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

 Hi flexcoders! I have an app with a couple large sets of images that
 are setup to be loaded dynamically through the source property string
 based on user inputs. I'd like to change these to embedded images to
 improve performance, but A.) I don't want to have to go through the
 tedium of manually embedding each image in the script block and B.) I
 don't know how to dynamically reference the embedded images. Any
 ideas? Seems like this would be a fairly common task but can't seem to
 turn up anything via livedocs or google. Thanks!
 
 -Dane





[flexcoders] Re: Livecycle / FMS3 - remote calls

2008-09-26 Thread Anthony DeBonis
Looks to be a bug that is solved in BlazeDS - so you would expect it to 
work in LCDS.

Can you try it with BlazeDS?

Bug https://bugs.adobe.com/jira/browse/BLZ-83 



[flexcoders] Re: Java from Flex

2008-09-22 Thread Anthony DeBonis
You can call these libs from LCDS or BlazeDS (or WebOrb too) using the 
RemoteObject tag and alittle server side config - check out the example 
apps deployed.

I would suggest creating a service facade layer of POJO, plan old Java 
objects, that abstract all your backend Java code/libs.  Wrap any 
security you need at this facade layer too.

Its not hard to do and with BlazeDS you can get it up and running in 
15+- min and its free.



[flexcoders] Re: Problem in Identfying Flash Objects in QTP 9.2

2008-08-07 Thread Anthony DeBonis
Did you include automation.swc, automation_agent.swc, and qtp.swc?

Besure to use IE and not Firefox... but if your using ActiveX I would 
guess your already using firefox.

Also - turn off Tabbed browsing - this can cause issues.



It should work 



[flexcoders] Re: Remote file accesing

2008-07-16 Thread Anthony DeBonis
Can you supply more information?

Type of file, what server backend you have...



[flexcoders] Re: how can I get the Java Session 's data from Flex cilent side

2008-07-11 Thread Anthony DeBonis
If your not using RemoteObject (recommended) you could use a 
httpservice to a Servet that wrapped the session data in xml and return 
it.  Just an idea.



[flexcoders] Re: Question about LCDS ES2.6 setting?

2008-06-25 Thread Anthony DeBonis
Under dir \tomcat\bin you will find server.xml file

Change the port in this section:
  Connector port=8400 protocol=HTTP/1.1 
   connectionTimeout=2 
   redirectPort=9400 /

to

  Connector port=80 protocol=HTTP/1.1 
   connectionTimeout=2 
   redirectPort=9400 /

The ip/domain name should just work if it points to your desktop/server

I just tested it on my laptop and it worked fine after I turned off my 
default webserver that was already listening on port 80.





Re: RES: [flexcoders] Server to client calls

2008-06-23 Thread Anthony DeBonis
BlazeDS has some examples of dispatching events from Java but in your 
Flex application you will have to set up consumer to listen(pole) for 
messages.

Sample in BlazeDS: http://localhost:8400/samples/#traderdesktop
Start the feed triggers a JSP with code like this...
Feed feed = new Feed();
feed.start();


Then inside Feed.java

AsyncMessage msg = new AsyncMessage();
msg.setDestination(feed);
msg.setClientId(clientID);
msg.setMessageId(UUIDUtils.createUUID());
msg.setTimestamp(System.currentTimeMillis());
msg.setBody(new Double(currentValue));
msgBroker.routeMessageToService(msg, null);

Hope this helps.



[flexcoders] Re: How to convert Powerpoint presentation tp Flex or Flash?

2008-05-31 Thread Anthony DeBonis
We have used both flashSpring and dreamsoft on a Coldfusion server to 
take a upload PPT and convert them into swf files that get pulled back 
into the Flex application.  

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

 I have a ppt file and want to play it with Flex.
 
 Please give me a idea how to do this.
 
 Thanks
 
 Mark





[flexcoders] Re: The BlazeDS server ?

2008-05-31 Thread Anthony DeBonis
CF can do RemoteObject no problem out of the Box.

You can use BlazeDS if you want to do messaging... push or pull/ 
publish subscribe.  It also allows you to call Java/pojo from Flex and 
other features too.

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

 Hi
 
 Do I have to install BlazeDS if I want to use remoteobject with
 Coldfusion and Flex.
 
 I am very confuse when I need use BlazeDS.Please give me an idea.
 
 Thanks
 
 
 Mark





[flexcoders] Re: 1120 Error

2008-04-29 Thread Anthony DeBonis
Try and do a full code/src search for Footarget  maybe you had it at 
one time - if its not found try and do a Project  Clean  to get rid of 
the ghost.

If not please post your code.



[flexcoders] Re: LinkButton in DataGrid

2008-04-29 Thread Anthony DeBonis
mx:DataGridColumn headerText=COlumn 1
   mx:itemRenderer
 mx:Component
   mx:Button label=Click Test width=200 
click=outerDocument.handleClick(event)  /
 /mx:Component
   /mx:itemRenderer  
 /mx:DataGridColumn

Once you get this to work its the same idea but put a chart in place 
of the button.


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

 Hey Techies,
 I need to place a link button like Table | Graph in datagrid column 
(both of
 them are different links) means clicking on table will open one 
thing while
 on graph will open the other. Can anyone tell me how to accomplish 
that in
 Flex.
 
 Regards,
 
 -- 
 Muhammad Hasan Maqbool
 Software Engineer
 Techlogix Pakistan (Pvt) Limited
 +92-321-6690881





[flexcoders] Re: Cache memory Issue (Strange)

2008-04-28 Thread Anthony DeBonis
Yes – we have seen this issue mainly in IE not Firefox.  The browser 
cache would need to be cleared for it to pick up the new swf file.  

We ended up adding in a version check to be sure the user is running 
the latest swf

Also see: 
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhel
p.htm?context=LiveDocs_Book_Partsfile=performance_118_13.html 




[flexcoders] Re: problem with MessageService in custom ServiceAdapter

2008-04-11 Thread Anthony DeBonis
In our application we have have set the destination

messageChatConsumer = new Consumer();
messageChatConsumer.destination=evacML.messageChatDestinationName;
 
destination is set in the config files:
C:\fds2\jrun4\servers\default\{YOUR APP}\WEB-INF\flex
data-management-config.xml  or messaging-config.xml or... depending 
on what your doing.


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

 When I send messages from my flex app to my custom ServiceAdapter, 
it receives them 
 successfully in the invoke(Message msg) method.
 
 However, when I push a message after launching the app manually as 
a java app, I get the 
 error:
 
 MessageBroker failed to start: flex.messaging.MessageException: No 
destination 'null' 
 exists in service flex.messaging.services.MessageService
 
 Here is the code that causes the crash:
 
 public class ReportManager extends ServiceAdapter {
 
 public void init() {
 MessageService msgService = (MessageService)getDestination
().getService();
 msgService.pushMessageToClients(message, true);
 }
 
 }
 
 So the statements in init() work fine when they are in invoke() but 
fail when I use them this 
 way.  Why would that be?





[flexcoders] Re: Power point in FLEX

2008-02-20 Thread Anthony DeBonis
sliderocket creates presentation  not in ppt format thought
http://www.sliderocket.com  

I have code we use to import a ppt file and export .swf files for each 
slide in a ppt file - if you need it.  Can be used with ColdFusion or 
Java.
- one is using FlashSpring 
- one uses DreamSoft PPT import tool



[flexcoders] Re: Reset State in Flex

2008-02-20 Thread Anthony DeBonis
This will do it

navigateToURL(new URLRequest(http://.;, _self);



[flexcoders] Re: Simulating Flex Client requests using Java?

2008-02-15 Thread Anthony DeBonis
Yes it supports Async calls using addAsync

Here is a snip

beerDataService.addEventListener(ResultEvent.RESULT, addAsync(result, 
3000));
beerDataService.send();



[flexcoders] Re: Flex 3.0 Beta + QTP 9.2 Trial Version Problem

2008-02-15 Thread Anthony DeBonis
Did you include automation libraries (SWCs) at compile time 

-include-
libraries C:\...\libs\automation.swc C:\...\libs\automation_agent.swc
 C:\...\libs\qtp.swc

Besure not to use Tabbed Browser feature - turn it off.

Compare project settings between your project and sample store looking 
for how they set it up may give you a clue.

Thanks all I can think of.



[flexcoders] Re: Flex training classes in the east coast, USA

2008-02-04 Thread Anthony DeBonis
I recommend
http://www.figleaf.com/training/flex.cfm 

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

 Hi all,
 
 I'm looking for a 2-3 day Flex course anywhere in the east coast and
 preferably in the Washington DC metro area. Any recommendations would
 be appreciated. I am currently a Java developer and will be doing some
 Flex now so any advice on which course will suit me best will also be
 appreciated.
 
 Thanks,
 Sharat





[flexcoders] Re: Please help - Flex component kit

2008-01-25 Thread Anthony DeBonis
I have this working in both Flex 1.2 w/Kit 1.0.1  and Flex 3 w/Kit 
1.1.2

But what I found in Flex 3 is there are now 2 Commands:

Convert Symbol to Flex Component
Convert Symbol to Flex Container

I needed to use the 1st one Flex Componet

I also needed to change my code to use the Symbol Name not the 
instance name  the Output message clued me in on this change-it said

Symbol Ny_Metro_export can be used as a Flex component.

in Flex I just used that name and Flex compiled and it runs.
local:Ny_Metro_export id=nysMap  
scaleX={(layoutCanvas.height/MAPHEIGHT)*.80}  
scaleY={(layoutCanvas.height/MAPHEIGHT)*.80} /

Other things to check:
-Besure you get a fresh swc  even delete it 1st to be sure your 
publishing to the correct location.
-Besure you publish then trigger a recompile on the Flex side else 
you are running an old version of the swc.  To be sure I put trace 
out in Flash with a number and I incrument the number.  Then run the 
Flex app in debug mode and you will see the trace.



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

 (I also posted this on the adobe labs forum.  Apologies if you see 
it 
 twice)
 
 I've tried several examples of using the flex component kit for 
Flash 
 AS3 and none of them are working for me.  Whenever I run 
the Convert 
 Symbol to Flex Component Command, I get the following output:
 
 Command made the following changes to the FLA:
   Turned on Permit Debugging
   Turned on Export SWC
   Set frame rate to 24
   Imported FlexComponentBase component to library
 Symbol BallComponent can be used as a Flex component.
 Select File  Publish to create the SWC file for use in Flex.
 
 This appears to be correct but after adding the SWC to the flex 
 library, my flex application does not seem to see the new 
 component.  I've managed to pull in components that others have 
made 
 with Flash AS3 and the component kit so I don't think I'm doing 
 anything wrong on the flex side.
 
 I noticed that in Flash, FlexComponentBase does not show up in my 
 library after converting my symbol to a flex component.  
 Additionally, nothing happens when I drag FlexComponentBase into my 
 library.  It just doesn't show up.  When I go to the properties 
 dialog for my exported component and try to validate 
 mx.flash.UIMovieClip, I get the following message:
 
 A definition for the base class could not be found in the 
classpath.  
 Please enter the name of a class that is defined in the classpath, 
or 
 enter the default base class 'flash.display.MovieClip'.
 
 I suspected there was something wrong with my installation of Flash 
 CS3 or the Component Kit so I just uninstalled and reinstalled 
Flash 
 CS3, Flex Builder, and the component kit with the same results.
 
 I've now seen the same behavior with Flash CS3 9.0.2, Flex Builder 
3 
 (tried both beta 2 and beta 3), and component kit 1.1.2.
 
 Has anyone seen this behavior before?
 
 Thanks in advance,
 Jake





[flexcoders] Re: How to compile my application?

2008-01-25 Thread Anthony DeBonis
This is easy, just save (auto build will compile it) and run the app 
local to make sure it works.

It will launch a browser and if you look at the path you will see it 
points to an html file in the /bin dir.

You need almost everything in the /bin dir deployed/ftp to the web 
server... including AC_OETags.js, history.* and the html and swif 
files.

You don't need a bin dir on the server  it can be at the root of a 
site and you can rename myapp.htm to index.htm and the app will load 
at the root.

hope this helps
Anthony

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

 I'm beginner in flex builder 2  and I have a flex builder 2 
application and
 I want to compile it to release on web server.
 
 Plz give me an example and compilation steps.
 
  
 
 Thanks





[flexcoders] Re: Access TWAIN scanners from Air

2008-01-23 Thread Anthony DeBonis
Everyone has opinions on AIR, but I can tell you I am writing some 
AIR base apps that solve some real life problems, I just can't wait 
for it to get out of Beta to share AIR with more customers. To me AIR 
is no Joke.

Sorry I can't help you with the TWAIN issue.

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

 a colleague of mine has written an app to do this with AIR and 
 Artemis and a handful of java classes.  its pretty sweet.
 
 If used properly, AIR is anything but a joke.
 
 At 08:43 PM 1/20/2008, you wrote:
 
 Javier de la Torre wrote:
   Hi all,
  
   I would like to access the TWAIN API from an AIR application. I 
have
   been looking around and the only way I have found it is by using
   Artemis. Although accessing from Java would be great, there are 
great
   APIs out there, the Artemis connection looks very preliminar 
and with
   a deploying process that can be too hard.
  
   I have understood also that there is no way to run command line
   processes from AIR in thi version.
  
   Another idea I have heard is to create an external program that 
will
   provide me access to TWAIN through sockets connections. But 
then I
   would have to distribute the two things together, set up 
services in
   windows, uff... it sounds is gonna be complicate to distribute 
such a
   software.
  
   Any other idea?
  
 
 Don't use air. Its pretty much useless for this type of app as far 
as i
 can tell. It's a bit of a bad joke really. Pity.
 
 cheers,
 - shaun
 
 
 
 Jeff Tapper
 Senior Technologist
 Digital Primates IT Consulting Group
 [EMAIL PROTECTED]
 http://www.digitalprimates.net





[flexcoders] Re: Multiple Files Download

2008-01-07 Thread Anthony DeBonis
We have used this component by Ryan Favroand it works great;

http://ryanfavro.newmediateam.com/blog/index.cfm/2006/8/12/Flex-2-Multi-
File-Upload-Example 

It's wired to CF in this example but could work with any backend.



[flexcoders] Re: How to use flexmdi framework in flex builder 2.0.1

2008-01-07 Thread Anthony DeBonis
I worked up 2 simple examples for you 1st in AIR and the 2nd one is 
Flex- hope this helps:

The only thing I did under properties was add flexmdi.swc to library 
path using add swc


?xml version=1.0 encoding=utf-8?
mx:WindowedApplication 
xmlns:mx=http://www.adobe.com/2006/mxml;
xmlns:flexmdi=http://flexmdi.googlecode.com/;
width=1020 height=590
layout=absolute xmlns:gis=gis.* 
mx:Style source=assets/css/styles.css /

mx:Script
![CDATA[

import 
flexmdi.effects.effectsLib.MDILinearEffects;
import flexmdi.effects.MDIEffectsDescriptorBase;
import flexmdi.events.MDIWindowEvent;
import flexmdi.effects.effectsLib.MDIVistaEffects;
import flexmdi.events.MDIManagerEvent;

]]
/mx:Script


flexmdi:MDICanvas id=mdic width=100% height=100%

effectsLib={flexmdi.effects.effectsLib.MDIVistaEffects}

flexmdi:MDIWindow id=win1 title=Window 1 x=10 
y=10

/flexmdi:MDIWindow
flexmdi:MDIWindow id=win2 title=Window 2 x=100 
y=100

/flexmdi:MDIWindow
flexmdi:MDIWindow id=win3 title=Window 3 x=200 
y=200

/flexmdi:MDIWindow

/flexmdi:MDICanvas
/mx:WindowedApplication

-- Flex---


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
xmlns:flexmdi=http://flexmdi.googlecode.com/;
layout=vertical  

mx:Script
![CDATA[

import 
flexmdi.effects.effectsLib.MDILinearEffects;
import flexmdi.effects.MDIEffectsDescriptorBase;
import flexmdi.events.MDIWindowEvent;
import flexmdi.effects.effectsLib.MDIVistaEffects;
import flexmdi.events.MDIManagerEvent;

]]
/mx:Script


flexmdi:MDICanvas id=mdic width=100% height=100%

effectsLib={flexmdi.effects.effectsLib.MDIVistaEffects}

flexmdi:MDIWindow id=win1 title=Window 1 x=10 
y=10

/flexmdi:MDIWindow
flexmdi:MDIWindow id=win2 title=Window 2 x=100 
y=100

/flexmdi:MDIWindow
flexmdi:MDIWindow id=win3 title=Window 3 x=200 
y=200

/flexmdi:MDIWindow

/flexmdi:MDICanvas



/mx:Application





[flexcoders] Re: Multiple Files Download

2008-01-07 Thread Anthony DeBonis
Are you taking download to client desktop or download to server?

Air or Flex Application



[flexcoders] Re: filedownload from internet to local disc

2007-12-12 Thread Anthony DeBonis
You can not in Flex because of the Flash/Browser security.
The FileReferance obj will allow you to browse/pick a file and post it 
back to the server but you do not have access to the bits in Flash.

You need to use AIR if this is a requirement.

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

 hi how can i download an file from the internet and save it to local 
 disk ?
 
 regards enrico hofmann





[flexcoders] Re: Printing a large string over multiple pages

2007-12-03 Thread Anthony DeBonis
Here is some code we use to slice up a long list and print on X# of 
pages. You should be able to do somethink like this...
Hope the code gets formated ok



// Add 2nd page displaying names of selected organizations
var selectedOrgList:List = new List();
selectedOrgList.setActualSize(printJob.pageHeight, 
printJob.pageWidth);
selectedOrgList.setStyle(fontSize,8);
//selectedOrgList.dataProvider = orgList.selectedItems;
var facilitiesPerPage:int = RECORDS_PER_PAGE;
if (printJob.pageHeight  printJob.pageWidth)
{   //height is less than width so we are in landscape mode and 
can't fit as many records per page
facilitiesPerPage = LS_RECORDS_PER_PAGE;
}
selectedOrgList.rowCount = facilitiesPerPage;

var pageCount:int = Math.ceil(orgList.selectedItems.length / 
facilitiesPerPage) ;

var printFacilityViewHolder:Array = new Array();
chartTitle = chartTitle + \nFacility List;
var sortedOrgs:Array = orgList.selectedItems;
sortedOrgs.sortOn(name);
for (var loopCtr:int = 0; loopCtr  pageCount; loopCtr++) {
var pfv:PrintFacilityView = new PrintFacilityView();
addChild(pfv);
pfv.setDimensions(printJob.pageHeight, printJob.pageWidth);
var startIndex:int = facilitiesPerPage * loopCtr;
var endIndex:int = facilitiesPerPage * (loopCtr + 1);
var pagedOrgList:Array = 
sortedOrgs.slice(startIndex, endIndex);
selectedOrgList.styleName = facilityListStyle;
selectedOrgList.dataProvider = pagedOrgList;
selectedOrgList.labelField = name;

pfv.facilityListView.addChild(selectedOrgList);
pfv.setChartTitle(chartTitle +  ( + (loopCtr + 1) +  of  
+ pageCount + )); 
printFacilityViewHolder[loopCtr] = pfv;
printJob.addObject(pfv, FlexPrintJobScaleType.MATCH_WIDTH);
} 
//And send the job to the printer.
printJob.send();
//make the print view invisible then remove it
printView.visible = false;

//ATD 10/23/2006 changed to call removeChild from 
printView.facilityListView not printView
for (loopCtr = 0; loopCtr  pageCount; loopCtr++) {
removeChild(printFacilityViewHolder[loopCtr]);
}  

removeChild(printView);
//selectedOrgList.visible = false;
//restore the regionChartStack to its original condition
restoreStack(chartSwitch, stackSelected);



[flexcoders] Re: creationComplete Not Firing

2007-11-30 Thread Anthony DeBonis
Be sure you put ()

creationComplete=onCreationComplete()

With out parentheses you get warning but no error - but the method does 
not fire...



[flexcoders] Re: How to open a flex project that was created elsewhere?

2007-11-30 Thread Anthony DeBonis

Go to Menu: File  Import ... then choose Existing Project to Workspace.

Then choose the directory where the project lives, works well.


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

 
 I've downloaded a sample flex application, how do I open it in the 
flex
 builder 3 IDE? There is no 'Open Project' menu option, only New...Flex
 Project and so forth?
 -- 
 View this message in context: http://www.nabble.com/How-to-open-a-
flex-project-that-was-created-elsewhere--tf4923183.html#a14088912
 Sent from the FlexCoders mailing list archive at Nabble.com.





[flexcoders] Re: QTP doesn't record any actions.

2007-10-19 Thread Anthony DeBonis
I am using IE 7.05 and to turn off Tabbing you just:

Menu  Tools  Internet Options  On General Tab click Settings button 
under Tabs... then Uncheck Enable Tabbing

Hope this helps

Anthony



[flexcoders] Re: QTP doesn't record any actions.

2007-10-15 Thread Anthony DeBonis
I want to confirm that this does work, I even demo'd it at MAX in 
Chicago, but I did find that every once and a while it will stop 
recording clicks.  Be sure to turn off Tabbing in IE for sure.

I just wish there were some other 3rd OS/free tools that could record 
and play back user test cases in Flex/Air... maybe soon I hope.



[flexcoders] Re: Does anybody use JMeter for load testing?

2007-10-15 Thread Anthony DeBonis
Tom,

http://jakarta.apache.org/jmeter/ says - JMeter does not execute the 
Javascript found in HTML pages - 

When you have used JMeter in the past is it to run a Flex/Flash app or 
http load test the backend services?

Thanks in Advance,

Anthony



[flexcoders] Re: Web Hosting and RemoteObject

2007-10-15 Thread Anthony DeBonis
Also check that they are using CF 7.0.2 +  because 7.0.1 does not have 
remoting as far as I have seen.



[flexcoders] Re: Timezone Problem

2007-09-21 Thread Anthony DeBonis
This is correct - Flash is converting the datetime on you based on your 
TimeZOne/Daylight Savings setting.

If you return just a string date back from you DB query (or what every 
dataprovider) Flash will not do the convert but may mess up your sort.

The data is comming from the Date object and that has a bunch of methods
Try toUTCString () +- offset as needed



[flexcoders] Re: Working with Session....

2007-05-24 Thread Anthony DeBonis
Hope one of these helps you:

I have not tried this yet  could not find any example code BUT if 
your using FDS you could try FlexSessionBindingEven
http://docs.greendog.ru/Programming/Flex/docs/fds2javadoc/flex/messagi
ng/class-use/FlexSessionBindingEvent.html 

OR
 mx:RemoteObject 
http://www.adobe.com/devnet/flex/articles/flex_portals_05.html 

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml/

mx:RemoteObject id=sessionObj source=servlet 
showBusyCursor=true/

mx:HBox
mx:TextInput id=fromSession 
text={sessionObj.session.result}/
mx:Button label=Get userName Session Attribute 
click=sessionObj.session('get', 'userName')/
/mx:HBox

mx:HBox
mx:TextInput id=toSession/
mx:Button label=Set userName Session Attribute 
   click=sessionObj.session('set', 'userName', 
toSession.text)/
/mx:HBox

/mx:Application

OR

Create a simple JSP that returns session key/value pars in xml and 
use httpService call to request it...

+ Im sure there are other ways too I cant think of right now.





[flexcoders] Re: Working with Session....

2007-05-23 Thread Anthony DeBonis
I am sure there are many ways to make this happen some better then 
others.

-IF values never change once they are logged in then you could pass 
them in a FlashVars... kinda oldschool but still works

- Write them as JavaScript vars on page and read them in, like with at 
External Interface 
(http://livedocs.adobe.com/flex/2/langref/flash/external/ExternalInterfa
ce.html) or  Flex/AJax bridge

- Write a service (jsp or something) that returns the users session 
vars as XML and just call the service anytime you want to recheck the 
users current session values.





[flexcoders] Does Flex support Client Side Digital Certificates

2007-05-23 Thread Anthony DeBonis
Does Flex support Client Side Digital Certificates?

I have been asked this question several times each time I have a hard 
time finding and answer/proof.  

Has anyone implemented this and do you have a code that tests it out. 

If it's all https traffic I am sure the browser handles this fine but 
what if you're using Flex Data Services for AMF binary transfer or 
messaging with Flash/Flex support the client side certificate?




[flexcoders] Re: XML, does it have to be RSS?

2007-05-21 Thread Anthony DeBonis
On your httpService  setresultFormat=xml 
Then use debugger to see what you get back in result event to then 
see how to pick out what your looking for.  Should work with out a 
problem.


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

 Does the XML data HAVE to be an RSS?  If I change 
 
 rss version=2.0
 xmlns:content=http://purl.org/rss/1.0/modules/content/;
 xmlns:wfw=http://wellformedweb.org/CommentAPI/;
 xmlns:dc=http://purl.org/dc/elements/1.1/;
 
 To
 
 ?xml version=1.0 encoding=UTF-8 ?
 
 The load fails.  I haven't worked to much with XML so a lot of this 
is
 new to me.
 
 ***
 
 I am using the following syntax:
 
 private function onFeedResult(event:ResultEvent):void {
   var xml:XML = new XML(event.message.body);
   xml.ignoreWhitespace = true;
   feedItems = new XMLListCollection(xml.foo.item);
   panelTitle = xml.foo.title;
   }
 
 
 
 mx:HTTPService 
id=dataRequest
url=data/data.xml
result=onFeedResult(event);
useProxy=false/
 
 
 Any suggestions? I'm somewhat new to Flex having worked mostly with
 older versions of Flash.
 
 
 - Jason





[flexcoders] FYI - SYS-CON.TV To Present RIA Shootout Live From Times Square

2007-05-17 Thread Anthony DeBonis
This should be interesting:

Panel will discuss Adobe's Flex, Microsoft's Silverlight, and Sun'
JavaFX technologies as compared to AJAX


Monday, June 4, 2007 - 1 PM EST



[flexcoders] Re: Flex and responsiveness

2007-04-04 Thread Anthony DeBonis
Recommend you close projects that you do not need open.

Make sure to close Help page or just not leave in Releated Topics 
mode because each time you change focuse (like click on a class name 
in code) it will search all help docs...

Minimize your installed pugins - the more you have the more memory 
gets used (sometimes) even if your not using that plugin or persective

And just hope that it gets better...

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

 
   Yes, Flex Builder is a dog.  The more I use it, the slower it 
 gets.  Especially if you are using the debugger.  I'm in the habit 
of 
 restarting every 2-4 hours.  And I'll probably double the RAM on my 
machine.
 
 At 05:58 PM 4/3/2007, Patrick Lemiuex wrote:
 
 Hi.
 
 Is it just me or once in a while when using flex does it, for
 instance, slow to crawl and take several seconds to perform a cut 
and
 paste (or other operation). Or, does it seem to run slowly after
 your desktop goes to sleep and you re-log in. I experience this
 stuff often enough where I have to restart flexbuilder 2 or 3 times
 in a day. However, compared to eclipse, flexbuilder seems to run a
 lot slower. I am just curious if any other developers have noticed
 this? Would these improvements be expected in version 3?
 
 Thanks,
 Patrick
 
 
 --
 Jeffry Houser, Software Developer, Writer, Songwriter, Recording 
Engineer
 AIM: Reboog711  | Phone: 1-203-379-0773
 --
 My Company: http://www.dot-com-it.com
 My Podcast: http://www.theflexshow.com
 My Blog: http://www.jeffryhouser.com
 Connecticut Macromedia User Group: http://www.ctmug.com





[flexcoders] Re: Generate Flex Forms on the fly

2007-02-19 Thread Anthony DeBonis
I just coded something like this - a adhoc custom form builder.
I store the form definition in XML like xforms and at runtime I use
the xml to create a Flex from on the fly.  

Create a empty mx:form tag with a ID

For each element in your xml create a form item ( control) and do a
addChild() to the form… in a loop.

I created a object w/ create methods for each type of control + added
grid to layout the form for the special need I had…

Hope this helps,

Anthony

Example:
for each (var fld:XML in lvl.fld)
{
//New row in grid for each control
var gridRow:GridRow =new GridRow();
var gridItem:GridItem=new GridItem();
var itemSpacer:Spacer = new Spacer();
itemSpacer.width=curLevelNum * INDENT_LEVEL;
gridItem.addChild(itemSpacer);

//create each form control  
createField(fld,gridItem);  

gridRow.addChild(gridItem);
mainGrid.addChild(gridRow); 
}




[flexcoders] Flex 2 Dynamic DataGrid column width issue

2006-08-04 Thread Anthony DeBonis
We are using a DataGrid and appending columns to the right side and it 
works fine ONLY if the DataGrid is visable.

IF we add columns and the DataGrid is in a ViewStack and not the 
current visible item in the stack THEN make it visible – the column 
widths are all messed up.  We can find no way to get it to resize the 
columns correctly – we would have to force the widths to something 
hard coded.

Is there a way to get the grid to recalc column widths based on the 
current data its holding?






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

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

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

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





[flexcoders] Re: How do you install CF Extensions for Flex 2?

2006-08-04 Thread Anthony DeBonis
After installing FlexBuilder 2 I found this dir:
C:\WINDOWS\Downloaded Installations\Adobe Flex Builder 2\ColdFusion 
Extensions for Flex Builder 
and it has a file called Installing the ColdFusion Extensions for 
Flex Builder 2.htm

Here are the instructions that worked for me:
Installing the ColdFusion Extensions for Adobe® Flex™ Builder™ 2

Before you install the ColdFusion Extensions for Flex Builder, you 
must have the following products installed:

* Flex Builder 2
* ColdFusion MX 7.0.2 

Note: If you installed a previous version of the ColdFusion 
Extensions for Flex Builder, you must uninstall that version before 
installing the ColdFusion Extensions for Flex Builder feature. To do 
so, stop Flex Builder, delete all files that begin 
with com.adobe.coldfusion. from the plugins folder that is under 
the Flex Builder folder, and then restart Flex Builder.

To install the ColdFusion Plugin for Flex Builder 2:

   1. In Flex Builder, select Help  Software Updates  Find and 
Install.
   2. Select the Search For New Features To Install option, and then 
click Next.
   3. Click New Archived Site.
   4. Select the ColdFusion_FlexBuilder_Feature.zip file, and then 
click Open.
   5. When the Edit Local Site dialog box appears, click OK.
   6. Ensure that the ColdFusion_FlexBuilder_feature.zip is 
selected, and then click Finish.
   7. In the Search Results window, select the check box next to 
ColdFusion_FlexBuilder_Feature.zip, and then click Next.
   8. Select the I Accept The Terms In This License Agreement 
option, and then click Next.
   9. Click Finish.
  10. Click Install All.
  11. When the installation is complete, click Yes to restart Flex 
Builder. 

To uninstall the ColdFusion Extensions for Flex Builder, you must 
first disable them, and then uninstall them.

Installing the ColdFusion Extensions for Adobe® Flex™ Builder™ 2

Before you install the ColdFusion Extensions for Flex Builder, you 
must have the following products installed:

* Flex Builder 2
* ColdFusion MX 7.0.2 

Note: If you installed a previous version of the ColdFusion 
Extensions for Flex Builder, you must uninstall that version before 
installing the ColdFusion Extensions for Flex Builder feature. To do 
so, stop Flex Builder, delete all files that begin 
with com.adobe.coldfusion. from the plugins folder that is under 
the Flex Builder folder, and then restart Flex Builder.

To install the ColdFusion Plugin for Flex Builder 2:

   1. In Flex Builder, select Help  Software Updates  Find and 
Install.
   2. Select the Search For New Features To Install option, and then 
click Next.
   3. Click New Archived Site.
   4. Select the ColdFusion_FlexBuilder_Feature.zip file, and then 
click Open.
   5. When the Edit Local Site dialog box appears, click OK.
   6. Ensure that the ColdFusion_FlexBuilder_feature.zip is 
selected, and then click Finish.
   7. In the Search Results window, select the check box next to 
ColdFusion_FlexBuilder_Feature.zip, and then click Next.
   8. Select the I Accept The Terms In This License Agreement 
option, and then click Next.
   9. Click Finish.
  10. Click Install All.
  11. When the installation is complete, click Yes to restart Flex 
Builder. 

To uninstall the ColdFusion Extensions for Flex Builder, you must 
first disable them, and then uninstall them.

To uninstall the ColdFusion Extensions for Flex Builder:

   1. Select Help  Software Updates  Manage Configuration.
   2. Select the ColdFusion Plugins feature.
   3. Click Disable and then click OK.
   4. Click Yes to restart Flex Builder.
   5. When Flex Builder restarts, select Software Updates  Manage 
Configuration.
   6. Click the Show Disabled Feature button, if you don't see the 
ColdFusion Flex Builder feature.
   7. Select the ColdFusion Flex Builder feature and click Uninstall.
   8. Click Yes to confirm that you want to uninstall.
   9. Restart Flex Builder. 





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

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

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

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





[flexcoders] Re: Variable number of columns in ColumnChart

2006-07-31 Thread Anthony DeBonis

I also ran into an issue like while dynamicly creating ColumnSeries() 
this and .push onto the Array worked BUT does not update the Legend.

I have tired resetting leged's DP back to the Chart again but nothing.

Any ideas?

Flex 2 w/Charting







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

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

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

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




[flexcoders] Re: Variable number of columns in ColumnChart

2006-07-31 Thread Anthony DeBonis
Brendan - thank you that worked!!!

In my case it was:
in side a loop
{ 
  var cs:ColumnSeries = new ColumnSeries();
  cs.yField = some dynamic val...
  cs.name = some dynamic val...
  //added the next line and Legend now displays...
  cs.displayName = some dynamic val...

  then
  chart.series.push(cs); //to add the new ColumnSeries()

}





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

 Anthony,
 
 I had a similar issue with my legend not getting updated... check 
carefully
 that you're setting displayName on your new Series item... without 
that, my
 legend wasn't getting updated...
 
 HTH,
 
 Brendan
 
 On 7/31/06, Anthony DeBonis [EMAIL PROTECTED] wrote:
 
 
  I also ran into an issue like while dynamicly creating 
ColumnSeries()
  this and .push onto the Array worked BUT does not update the 
Legend.
 
  I have tired resetting leged's DP back to the Chart again but 
nothing.
 
  Any ideas?
 
  Flex 2 w/Charting
 
   
 








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

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

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

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





[flexcoders] Re: Flex 2.0 Deployment with Remote Coldfusion Server

2006-07-31 Thread Anthony DeBonis
The short answer is yes you can but there are many variables that 
will effect you setup.

I was able to do it no problem using ColdFusion CFCs - worked on my 
local laptop and have deployed to several servers.  If Flex app is 
delivered from the same host/port name then Flex will have no 
problem making the calls.  IF not you will need to set 
whitelist/crossdomain policy file ...ect theres lots of doc out on 
that.  Hope this helps


Exmple:
http://www.adobe.com/support/documentation/en/flex/1/deployingcheckli
st/deployingchecklist2.html

Its not the best but give you a line of sight...


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

 Hello,
 
 I see this question asked over and over again but with no one able 
to
 answer the simple Question.
 
 It is not a problem to develope on a local machine we all know that
 and have got that working. But at some point we need to deploy the
 app. And some of us would like to link to Coldfusion. Hell we might
 even go as far as having multiple devs who would all like to 
develop
 on a local machine and hook up to Coldfusion remotely ( WOW! what a
 concept ).
 
 Now my Question -- Does anyone have a step by step, concise
 instructions on how to accomplish this?
 
 1. Dev with Flex Locally and Link to a CF Server Remotely. 
(I can get to the Server with RDS Plug-in)
 2. Then Deploy the app on the remote CF Server running  Say Apache 
2.0
 
 Thank for the help







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

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

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

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




[flexcoders] Re: Flex 2.0 Deployment with Remote Coldfusion Server

2006-07-31 Thread Anthony DeBonis
The short answer is yes you can but there are many variables that 
will effect you setup.

I was able to do it no problem using ColdFusion CFCs - worked on my 
local laptop and have deployed to several servers.  If Flex app is 
delivered from the same host/port name then Flex will have no 
problem making the calls.  IF not you will need to set 
whitelist/crossdomain policy file ...ect theres lots of doc out on 
that.  Hope this helps


Exmple:
http://www.adobe.com/support/documentation/en/flex/1/deployingcheckli
st/deployingchecklist2.html

Its not the best but give you a line of sight...


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

 Hello,
 
 I see this question asked over and over again but with no one able 
to
 answer the simple Question.
 
 It is not a problem to develope on a local machine we all know that
 and have got that working. But at some point we need to deploy the
 app. And some of us would like to link to Coldfusion. Hell we might
 even go as far as having multiple devs who would all like to 
develop
 on a local machine and hook up to Coldfusion remotely ( WOW! what a
 concept ).
 
 Now my Question -- Does anyone have a step by step, concise
 instructions on how to accomplish this?
 
 1. Dev with Flex Locally and Link to a CF Server Remotely. 
(I can get to the Server with RDS Plug-in)
 2. Then Deploy the app on the remote CF Server running  Say Apache 
2.0
 
 Thank for the help








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

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

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

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





[flexcoders] Re: Datagrids and Updating a database!!

2006-07-31 Thread Anthony DeBonis
Here is an exmple - hope it helps:
http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html
/wwhelp.htm?context=LiveDocs_Partsfile=0509.html 

Unless your using ColdFusion and the CF Wizards or DataServices you 
will need to code action script objects and CFC by hand to handle 
the get, set and delete type functions

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

 Ok, just to let u know I'm very new to Flex 2.0. 
 Two questions here. First - I've managed to get a Datagrid to 
populate 
 with data - i.e. Filename, Start Date, End Date, etc. I want to be 
 able to remove a row from the datagrid (which I have managed to do 
 with removeItemAt) and it update my Coldfusion database. Second -
 I 
 want to be able to edit and update the row and it update the 
database 
 also. 
  
 Anyone please help - once I get this my life will be complete!!!
  
 Thanks








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

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

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

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