[flexcoders] Re: HttpService POST shows as GET on server logs

2008-11-05 Thread dantmcgowan
Tracy,
  That was it. Adding a param, now I see it as a POST. Thanks,
Dan

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> If the POST body is empty, Flex converts the POST to a GET.  Is this the
> case in your situation?
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of dantmcgowan
> Sent: Tuesday, November 04, 2008 7:28 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] HttpService POST shows as GET on server logs
> 
>  
> 
> Hi,
> I am using Version 3.0.0 build 477 of mxmlc. I have the following
> service code:
> 
>  id="sendTestRequest"
> url="http://localhost/basic.xml <http://localhost/basic.xml> "
> useProxy="false"
> method="POST"
> resultFormat="e4x"
> contentType="application/x-www-form-urlencoded"
> fault="onServiceError(event)"
> result="onComplete(event)" /> 
> 
> I have verified by tracing before my "send" that the service.method is
> POST. When I check in "live httpheaders" it shows a GET and from my
> apache access logs:
> 
> [04/Nov/2008:16:12:38 -0800] "GET /basic.xml HTTP/1.1" 200 40
> 
> Thanks in advance,
> 
> Dan
>




[flexcoders] HttpService POST shows as GET on server logs

2008-11-05 Thread dantmcgowan
Hi,
 I am using Version 3.0.0 build 477 of mxmlc. I have the following
service code:

http://localhost/basic.xml";
useProxy="false"
method="POST"
resultFormat="e4x"
contentType="application/x-www-form-urlencoded"
fault="onServiceError(event)"
result="onComplete(event)" /> 

I have verified by tracing before my "send" that the service.method is
POST. When I check in "live httpheaders" it shows a GET and from my
apache access logs:

[04/Nov/2008:16:12:38 -0800] "GET /basic.xml HTTP/1.1" 200 40

Thanks in advance,

Dan




[flexcoders] Example: Using an item renderer with a List control

2007-05-09 Thread dantmcgowan
Hello,
I created two files (one application file and one renderer file)
from the example (code) presented here:
   
http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=0855.html

It works great only I have several of these messages writing out
to the flashlog:

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

Do you know why this is occurring and what is needed to get rid of
the warnings? Thanks,

 Dan



[flexcoders] Re: visual effect of mouse over using dispatchEvent

2007-04-03 Thread dantmcgowan
Alex,
  Thanks, the wrong event was my problem. As soon as I changed my
addEventListener and my dispatchEvent lines to MouseEvent.ROLL_OVER
instead of MouseEvent.MOUSE_OVER it started working. Thanks again,

Dan
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> We fake events all of the time w/o much trouble.  The Automated Testing
> feature does some things like this.
>  
> However, you have to know which event to fake.  In this case, Buttons do
> not listen to MOUSE_OVER, they listen to ROLL_OVER
>  
> -Alex
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Bjorn Schultheiss
> Sent: Sunday, April 01, 2007 6:58 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] visual effect of mouse over using
> dispatchEvent
> 
> 
> 
> when you dispatch an Event that way does your handler still fire?
> You may have to manually switch the normalskin to the value of the
> overskin.
> 
> This would be nasty tho.
> Good question, perhaps Ely or Alex can elaborate?
> 
> 
> 
> On 01/04/2007, at 3:46 AM, dantmcgowan wrote:
> 
> 
>   
>   and I use dispatch event to simu! late the mouse over:
>   
>   myButton.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_OVER));
>




[flexcoders] visual effect of mouse over using dispatchEvent

2007-03-31 Thread dantmcgowan
Hi,
  I have a button that has skins:

> handler_mouseOver");
}

and I use dispatch event to simulate the mouse over:

myButton.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_OVER));

this all works greatexcept that what I was wanting was the visual
effect the overSkin provides upon mouse over and it is not happening.

Notice I effectively have nothing in the handler - just a trace -
thinking that the visual effect came with the dispatchEvent being
fired. - obviously I was wrong here. Any suggestions on how to get the
 "overSkin" visual effect programmatically? Thanks,

Dan





[flexcoders] Re: httpservice; ie and 2032 error

2007-03-09 Thread dantmcgowan
So I made some coding changes on the backend and the error went away.
Here is the coding change I made to the service that the httpservice
was receiving the xml from:

response.setDateHeader("Expires", System.currentTimeMillis());
response.setHeader("Pragma", "cache");
response.setHeader("Cache-control", "public");

Thanks,
Dan


--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Tuesday 06 Mar 2007, dantmcgowan wrote:
> > Tom,
> >Yes I am running under ssl. I did get a response back suggesting I
> > take a look at the response headers, particularly for "pragma: no
> > cache" or "expires". I was also given this link for reference:
> 
> And cache-control.
> The Adobe tech note is:
>
http://www.adobe.com/cfusion/knowledgebase/index.cfm?event=view&id=KC.fdc7b5c&extid=fdc7b5c&dialogID=5708881&iterationID=1&sessionID=48302006ea9e3b171831&stateID=0+0+5714280&mode=simple
> 
> We used an SSL proxy on the client computer to intercept the request
and show 
> us exactly what headers IE was seeing, and adjusted the web server
and SSL 
> accelerator (you may not have one) settings so as not to send the
headers in 
> question.
> 
> -- 
> Tom Chiverton
> Helping to widespreadedly generate dynamic information
> On: http://thefalken.livejournal.com
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 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 Law Society.
> 
> 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 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>



[flexcoders] Re: httpservice; ie and 2032 error

2007-03-06 Thread dantmcgowan

Tom,
   Yes I am running under ssl. I did get a response back suggesting I
take a look at the response headers, particularly for "pragma: no
cache" or "expires". I was also given this link for reference:

http://support.microsoft.com/kb/323308

Would appreciate any additional insight. I will post my findings when
I am able to test out these changes to the response. Thanks,

Dan

--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Monday 05 Mar 2007, dantmcgowan wrote:
> > Hi,
> >   I am getting a 2032 (stream error )what I first hit my httpservice
> > using internet explorer. This does not happen with firefox. 
> 
> Are you running over SSL/TLS ?
> 
> -- 
> Tom Chiverton
> Helping to evangelistically consolidate bleeding-edge clusters
> On: http://thefalken.livejournal.com
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 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 Law Society.
> 
> 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 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




[flexcoders] httpservice; ie and 2032 error

2007-03-05 Thread dantmcgowan
Hi,
  I am getting a 2032 (stream error )what I first hit my httpservice
using internet explorer. This does not happen with firefox. In either
case I am getting a success response back from the service (status =
200). When I clear the cache on ie, I do not get the error. Only on
the first access. Here is my service:



{someServiceAction}
{deviceIndex}



I am executing via someService.send() which is executed in a method
that is invoked on a module preinitialize. Thanks,

Dan



[flexcoders] Re: basic exception handling

2007-02-07 Thread dantmcgowan
Got to the error in the event handler. Just to wrap this up, here is
the code for those interested:

http://example.com/someservice/";
useProxy="false"
method="GET"
fault="onServiceError(event)">

and here is the event handler for the fault:

   import mx.rpc.events.FaultEvent;
   private function onServiceError(event:FaultEvent):void {
trace("<<<<< service error: ");
trace(event.fault.faultString);
trace("<<<<< error detail: ");
trace(event.fault.faultDetail);
   }

Thanks again,
Dan

--- In flexcoders@yahoogroups.com, "Clint Tredway" <[EMAIL PROTECTED]> wrote:
>
> yes, a faultEvent is passed which has the info in it. I dont have
the exact
> syntax at the moment.
> 
> On 2/7/07, dantmcgowan <[EMAIL PROTECTED]> wrote:
> >
> >   Peter, Clint,
> > Thanks. One last question: so in the event handler do I have any
> > access to the exception that was raised (for trace purposes)?
> > Dan
> >
> > --- In flexcoders@yahoogroups.com ,
"Peter
> > Farland"  wrote:
> > >
> > > Right, the requests made by HTTPService are asynchronous... so
you have
> > > to wait for events to be dispatched some time later. Any errors that
> > > occur prior to actually sending the request are typically caught and
> > > dispatched as fault events too so there shouldn't be a need for a
> > > try/catch.
> > >
> > >
> > >
> > > 
> > >
> > > From: flexcoders@yahoogroups.com 
[mailto:
> > flexcoders@yahoogroups.com ] On
> > > Behalf Of Clint Tredway
> > > Sent: Wednesday, February 07, 2007 2:37 PM
> > > To: flexcoders@yahoogroups.com 
> > > Subject: Re: [flexcoders] basic exception handling
> > >
> > >
> > >
> > > there is a fault attribute of the HTTPService tag that you can
set to a
> > > function. that will catch any faults from the call.
> > >
> > >
> > > On 2/7/07, dantmcgowan < dan.mcgowan@
> > > <mailto:dan.mcgowan@> > wrote:
> > >
> > > All,
> > > When I am catching exceptions the catch seems to be ignored and
> > > the
> > > actionscript error window pops up. For example if I have a
> > > simple
> > > service like this:
> > >
> > >  > > id="simpleService"
> > > url="http://example.com/someservice/
> > > <http://example.com/someservice/> "
> > > useProxy="false"
> > > method="GET">
> > >
> > > And I have a try catch block like this with one statement
> > > inside. If I
> > > comment out this statement no errors...so I know this statement
> > > is
> > > causing the error:
> > >
> > > try {
> > > simpleService.send();
> > > }
> > > catch(errObject:Error) {
> > > trace(" "+errObject.message);
> > > }
> > >
> > > The scenarios that throw errors (for example TypeError: Error
> > > #1034)
> > > opens the actionscript error window and the trace does not
> > > appear.
> > > What do I need to be doing so the exception is consumed in the
> > > catch
> > > and no error window? Thanks,
> > >
> > > Dan
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > http://indeegrumpee.spaces.live.com/
> > > <http://indeegrumpee.spaces.live.com/>
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> http://indeegrumpee.spaces.live.com/
>



[flexcoders] Re: basic exception handling

2007-02-07 Thread dantmcgowan
Peter, Clint,
   Thanks. One last question: so in the event handler do I have any
access to the exception that was raised (for trace purposes)? 
Dan

--- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]> wrote:
>
> Right, the requests made by HTTPService are asynchronous... so you have
> to wait for events to be dispatched some time later. Any errors that
> occur prior to actually sending the request are typically caught and
> dispatched as fault events too so there shouldn't be a need for a
> try/catch.
>  
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Clint Tredway
> Sent: Wednesday, February 07, 2007 2:37 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] basic exception handling
> 
> 
> 
> there is a fault attribute of the HTTPService tag that you can set to a
> function. that will catch any faults from the call. 
> 
> 
> On 2/7/07, dantmcgowan < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> > wrote: 
> 
>   All,
>   When I am catching exceptions the catch seems to be ignored and
> the
>   actionscript error window pops up. For example if I have a
> simple
>   service like this:
>   
>  id="simpleService"
>   url="http://example.com/someservice/
> <http://example.com/someservice/> "
>   useProxy="false"
>   method="GET">
>   
>   And I have a try catch block like this with one statement
> inside. If I
>   comment out this statement no errors...so I know this statement
> is
>   causing the error:
>   
>   try {
>   simpleService.send();
>   }
>   catch(errObject:Error) {
>   trace(" "+errObject.message);
>   }
>   
>   The scenarios that throw errors (for example TypeError: Error
> #1034)
>   opens the actionscript error window and the trace does not
> appear.
>   What do I need to be doing so the exception is consumed in the
> catch
>   and no error window? Thanks,
>   
>   Dan 
>   
>   
> 
>   
> 
> 
> 
> 
> -- 
> http://indeegrumpee.spaces.live.com/
> <http://indeegrumpee.spaces.live.com/>
>



[flexcoders] basic exception handling

2007-02-07 Thread dantmcgowan
All,
  When I am catching exceptions the catch seems to be ignored and the
actionscript error window pops up. For example if I have a simple
service like this:

http://example.com/someservice/";
useProxy="false"
method="GET">

And I have a try catch block like this with one statement inside. If I
comment out this statement no errors...so I know this statement is
causing the error:

   
try {
simpleService.send();
}
catch(errObject:Error) {
trace(" "+errObject.message);
}

The scenarios that throw errors (for example TypeError: Error #1034)
opens the actionscript error window and the trace does not appear.
What do I need to be doing so the exception is consumed in the catch
and no error window? Thanks,

Dan 



[flexcoders] flash 9 and firefox 2.0

2007-02-05 Thread dantmcgowan
All,
   I have been asked about flash player 9 and support for firefox 2.0.
I looked here:
http://www.adobe.com/products/flashplayer/productinfo/systemreqs/
and did not see any support for 2.0. Is this an old version, or is
there no support for 2.0?   Thanks,

Dan



[flexcoders] ant mxmlc aix Error: Unsupported file type

2007-01-29 Thread dantmcgowan
All,
  I am attempting to run the mxlmc compiler via ant from an AIX
platform. I am running under JDK 1.4.2.  In order to use the xerces
parser that comes with flex I am issuing the following within my java
task:



see http://tech.groups.yahoo.com/group/flexcoders/message/53653 for an
explanation for why I am doing this.

After making this change I also specifed "verbose" to see class
loading messages. The build fails and it seems to be while loading
classes:

[java] [Loaded flex2.compiler.SourceList from
file:/home/somedir/adobe/lib/
mxmlc.jar]
[java] Error: Unsupported file type:
/ibdcms/ccmdb/eas/st_root/cache/source
/#24/290224
 [java] [Loaded flex2.compiler.util.Benchmark from
file:/home/somedir/adobe/
lib/mxmlc.jar]
 [java] [Loaded java.lang.Shutdown from /usr/java14/jre/lib/core.jar]
 [java] [Loaded java.lang.Shutdown$Lock from
/usr/java14/jre/lib/core.jar]
 [java] [Loaded java.lang.Shutdown$HaltLock from
/usr/java14/jre/lib/core.jar]

A couple of questions:
   1) This is the only output I am receiving from the the build. Am I
right in assuming that the Error above is fatal?
   2) Is this error output from SourceList.java? If so if there anyway
to look at the source? Is there a distribution of the source?
   3) The path that error references is a cms synergy (source control)
area. Any clue as to why this path would be examined?

Thanks,
Dan



[flexcoders] example combo box in module

2006-11-24 Thread dantmcgowan
example combo box in module

So if I run the sample code for a combo-box as an application it works
fine:

http://www.adobe.com/2006/mxml"; creationComplete="init()"
cornerRadius="0" borderColor="#ff" borderStyle="outset">

 
 
 

 
 

 
 
 
 
 
 



But If I have this code in a  with an outside application
including this module in a  I get the following when I
try to select something from the combo box for the first time:

TypeError: Error #1006: getInstance is not a function.
 at mx.core::Singleton$/getInstance()

Any idea on why this is happening? Thanks,

Dan