RE: [flexcoders] Re: Font Embedding from *.ttc files

2010-03-25 Thread Peter Farland
In the @font-face rule use the full font name in the fontFamily alias to 
describe the specific face in the TTC file that you're trying to embed. 

@font-face {
fontFamily: Helvetica Neue Condensed Bold;
...
}


Pete

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of dmjabbo
Sent: Thursday, March 25, 2010 10:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Font Embedding from *.ttc files

Anyone got any ideas on this? I'm desperate!


--- In flexcoders@yahoogroups.com, dmjabbo dmja...@... wrote:

 Hi All,
 This may be a very quick one for one of you clever folks but it has got
 me completely stumped.
 How on earth do you embed a specific typeface from a .ttc file?
 I have HelveticaNeue.ttc which contains 11 typfaces and I'm embedding
 using css / @font-face. I can get at the standard typefaces such as
 regular, bold and italic by setting the fontStyle attribute but and I
 need to embed some others like Condensed Bold and UltraLight.
 If I set fontStyle to anything non-standard I just get the regular /
 normal typeface.
 Any anyone shed some light on this please?
 ThanksDuncan
 PS - using Flex 4 and CFF







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





RE: [flexcoders] flex 4 and descendant CSS selectors

2009-11-24 Thread Peter Farland
If those nested List components consider the mySitesList to be an ancestor in 
their style chain then it will apply because of the use of a descendant 
selector. You could prove this by recursively calling .styleParent from the 
nested List instances to find your mySitesList List.

Pete


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Ariel J
Sent: Tuesday, November 24, 2009 1:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flex 4 and descendant CSS selectors

i have a css stylesheet applied to my component like this:

#mySitesList #scroller #verticalScrollBar {
skinClass: 
ClassReference(com.safepage.view.mysitespanel.scrollbar.VScrollBarSkin);
}

in my component i have a list whose id is mySitesList.

the item renderers used in mySitesList list also contain List components. The 
secondary lists are being affected by the style above by having their 
scrollbars changed. Is that expected? 





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





RE: [flexcoders] HTTPService HTTPChannel 2032 Channel.Ping.Failed trying to do asimple form post

2009-05-29 Thread Peter Farland
If you've setup a crossdomain.xml file correctly then there's no need to set 
useProxy=true for your scenario (you could just leave it as the default, 
which is false).

The HTTPService url property does not appear to be marked with [Bindable] 
metadata. You can programmatically change its in ActionScript:

connectPG.url = urlInput.text;


Note: The 'proxy' in useProxy refers to a BlazeDS ProxyService - if you were to 
use BlazeDS then you'd either need to setup your own ChannelSet 
programmatically and assign it to your HTTPService instance, or point the 
compiler to the BlazeDS web application's /WEB-INF/flex/services-config.xml 
file using the -services option.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of ciminop
Sent: Thursday, May 28, 2009 10:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HTTPService HTTPChannel 2032 Channel.Ping.Failed trying 
to do asimple form post

I must be missing something since I'm trying to do something fairly basic. It 
really can't be this difficult, can it? I'm trying to use the HTTPService to 
post to a form. No web services. And I even put a crossdomain.xml policy file 
on the server for good measure.

First I got the dreaded 2032 Stream error, and after some digging saw that the 
FaultEvent was complaining that no channels were set. So I added a ChannelSet, 
now I'm getting a ping failure?

Here is a sample of my service:

mx:HTTPService id=connectPG 
  result=resulthandler(event) fault=fault_handler(event)
  resultFormat=text showBusyCursor=true
  url=urlInput.text
  useProxy=true method=POST
mx:channelSet
  mx:ChannelSet id=pGChannelSet
mx:HTTPChannel id=pGChannel pollingEnabled=false
  mx:url
{urlInput.text}
  /mx:url
/mx:HTTPChannel
  /mx:ChannelSet
/mx:channelSet
mx:request xmlns=
  username{userName.text}/username
  password{userPW.text}/password
/mx:request
/mx:HTTPService

And when I call the send() method, the fault_handler() reports :

[FaultEvent fault=[RPC Fault faultString=Send failed 
faultCode=Client.Error.MessageSend faultDetail=Channel.Ping.Failed error  
url: 'http://www.my_test_domain.com/beta/db_access.html''] 
messageId=5BF9E4BD-0CED-145E-B224-8A20D0E36345 type=fault bubbles=false 
cancelable=true eventPhase=2]
Channel.Ping.Failed error  url: 
'http://www.my_test_domain.com/beta/db_access.html''





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





RE: [flexcoders] ColdFusion typed object problem - but not the usual issues

2009-05-12 Thread Peter Farland
You don't have two types mapped to the same alias by any chance do you?


RE: [flexcoders] Eclipse Crashing

2009-04-30 Thread Peter Farland

Are you mixing AIR and Flex library projects in the same workspace?

Have you tried excluding all of the Flex SDK swcs from the project library path 
that are not needed by each project?


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Geoffrey
Sent: Thursday, April 30, 2009 2:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Eclipse Crashing

Recently, FB(Eclipse) keeps crashing on me.  I've looked all over the place for 
solutions, have tried many, but none seem to do the trick.

My current setup is:
Eclipse 3.4.2 (M20090211-1700)
FB 3.0.2.214193
Flex SDK 3.3
JDK 1.6.0_13

My eclipse.ini is:
-showsplash
org.eclipse.platform
-framework
plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
-vm
C:\Program Files (x86)\Java\jdk1.6.0_13\bin\javaw.exe
-vmargs
-Xms1024M
-Xmx1024M
-XX:PermSize=256M
-XX:MaxPermSize=512M
-XX:+UseParallelGC
-Dosgi.requiredJavaVersion=1.5
-Djava.net.preferIPv4Stack=true
-Dcom.sun.management.jmxremote

Our Flex application is a collection of 30 projects (one main one and 29 flex 
library projects).  All have to be open at the same time or else you get 
build(dependency) errors.

There's a few projects that are linked to many of the other projects.  For 
example, we have a project that holds all of the VOs.  Making changes to that 
project always took a long time to build (several minutes), but now it crashes 
with OutOfMemory errors.

I've run jconsole to watch the JVM performance statistics.  I don't fully 
understand all the numbers, but I can see that my PS Old Gen pool gets 100% 
full, and that's when I usually expect a crash to happen soon.

My machine has 8GB of RAM, although I can only allocate 1GB to Eclipse it 
seems.  If I raise -Xmx higher than 1024M, Eclipse won't even start.

Anyone have any suggestions?

Thanks,
 ~Geoff





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





RE: [flexcoders] Re: Eclipse Crashing

2009-04-30 Thread Peter Farland
Ah - for the second part, go into each of the Flex Library projects' properties 
panels, look at the Flex Build Path section, then select the Library path 
tab. Expand the Flex 3 node and look at the *.swc files that are listed 
(which is effectively your library path for compilation). For example, a Flex 
project would need playerglobal.swc and framework.swc at a minimum, but other 
swcs may not be needed so you could try reducing the list to the bare minimum 
to save memory.

Pete


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Geoffrey
Sent: Thursday, April 30, 2009 4:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Eclipse Crashing

Yes, there are AIR and Flex projects in the same workspace, but at the moment, 
the AIR projects are closed.

I'm not sure what you mean by the second response.  Could you give me an 
example?

--- In flexcoders@yahoogroups.com, Peter Farland pfarl...@... wrote:

 
 Are you mixing AIR and Flex library projects in the same workspace?
 
 Have you tried excluding all of the Flex SDK swcs from the project library 
 path that are not needed by each project?
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of Geoffrey
 Sent: Thursday, April 30, 2009 2:30 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Eclipse Crashing
 
 Recently, FB(Eclipse) keeps crashing on me.  I've looked all over the place 
 for solutions, have tried many, but none seem to do the trick.
 
 My current setup is:
 Eclipse 3.4.2 (M20090211-1700)
 FB 3.0.2.214193
 Flex SDK 3.3
 JDK 1.6.0_13
 
 My eclipse.ini is:
 -showsplash
 org.eclipse.platform
 -framework
 plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
 -vm
 C:\Program Files (x86)\Java\jdk1.6.0_13\bin\javaw.exe
 -vmargs
 -Xms1024M
 -Xmx1024M
 -XX:PermSize=256M
 -XX:MaxPermSize=512M
 -XX:+UseParallelGC
 -Dosgi.requiredJavaVersion=1.5
 -Djava.net.preferIPv4Stack=true
 -Dcom.sun.management.jmxremote
 
 Our Flex application is a collection of 30 projects (one main one and 29 flex 
 library projects).  All have to be open at the same time or else you get 
 build(dependency) errors.
 
 There's a few projects that are linked to many of the other projects.  For 
 example, we have a project that holds all of the VOs.  Making changes to that 
 project always took a long time to build (several minutes), but now it 
 crashes with OutOfMemory errors.
 
 I've run jconsole to watch the JVM performance statistics.  I don't fully 
 understand all the numbers, but I can see that my PS Old Gen pool gets 100% 
 full, and that's when I usually expect a crash to happen soon.
 
 My machine has 8GB of RAM, although I can only allocate 1GB to Eclipse it 
 seems.  If I raise -Xmx higher than 1024M, Eclipse won't even start.
 
 Anyone have any suggestions?
 
 Thanks,
  ~Geoff
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links







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





RE: [flexcoders] include .as file question.

2009-04-08 Thread Peter Farland
This is not possible as #include is a compiler directive.

It is possible to load a SWF dynamically at runtime with additional classes, 
but I don't think you can load a new definition for a class that is already 
defined in an application domain. The following may be a little low level to 
jump into:
http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/system/LoaderContext.html#applicationDomain

So I would search for examples on Flex modules, starting with Alex's blog entry:

http://blogs.adobe.com/aharui/2007/03/modules.html

Pete


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of sailorsea21
Sent: Wednesday, April 08, 2009 9:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] include .as file question.

Hi everyone, is it possible to do something similar to this on the MXML file:

include this[parentApplication.filename + .as];

I want to dynamically include an .as file depending on what is received from 
my AMFPHP object...

If this is not possible, is there a simpler way to accomplish this?

Thanks.

-David





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





RE: [flexcoders] RemoteObject in AS3 Project

2009-04-01 Thread Peter Farland
While there shouldn't be too many dependencies, I know rpc.swc depends on this 
class from framework.swc:

http://opensource.adobe.com/svn/opensource/flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/messaging/config/LoaderConfig.as

... you could try to mimicking this class and see how far you get?

You'll also want to avoid the mxml subclasses of the service APIs, e.g.

http://opensource.adobe.com/svn/opensource/flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/rpc/remoting/mxml/RemoteObject.as
http://opensource.adobe.com/svn/opensource/flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/rpc/remoting/mxml/Operation.as

... and focus on the classes in the parent package.

Pete





-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Nick
Sent: Wednesday, April 01, 2009 1:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RemoteObject in AS3 Project

Hello all! 

I am trying to use the RemoteObject class along with ResultEvent etc in an AS3 
project in FB3. Ideally I would like to remote out using these objects and not 
have to load the entire Flex framework within an Application container. Is this 
possible? I have done some searching and my results suggests it is not BUT I 
could of sworn I have seen some people doing this a while back. Am I mistaken? 

I appreciate it!! 

Thanks. 

Nick 





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





RE: [flexcoders] Re: RemoteObject in AS3 Project

2009-04-01 Thread Peter Farland
If you're comfortable with calling the NetConnection API directly and are fine 
with having to manage connectivity issues, faults, setting up request/response 
messages etc... then you could go that route.

Pete


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Nick
Sent: Wednesday, April 01, 2009 3:15 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: RemoteObject in AS3 Project

Thanks everyone! I really learned alot from your posts!! 

I think I found the solution to my problem. I am using the NetConnection object 
described in this post: 

http://www.oscartrelles.com/archives/as3_flash_remoting_example

It seems to be giving me the same results as I was looking for with the 
RemoteObject path I was going down. 

Any draw back to this approach that I may be missing? 

Thanks! 

Nick


--- In flexcoders@yahoogroups.com, Nick nick...@... wrote:

 Hello all! 
 
 I am trying to use the RemoteObject class along with ResultEvent etc in an 
 AS3 project in FB3. Ideally I would like to remote out using these objects 
 and not have to load the entire Flex framework within an Application 
 container. Is this possible? I have done some searching and my results 
 suggests it is not BUT I could of sworn I have seen some people doing this a 
 while back. Am I mistaken? 
 
 I appreciate it!! 
 
 Thanks. 
 
 Nick







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





RE: [flexcoders] Re: Embedding a font with a space in it

2009-03-29 Thread Peter Farland
Try specifying font-weight:bold; in addition to the other properties in the 
@font-face rule. 

Pete

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Amy
Sent: Sunday, March 29, 2009 3:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Embedding a font with a space in it

--- In flexcoders@yahoogroups.com, Eric Cancil ecan...@... wrote:

 When I try to embed a font with a space in it in Flex I get an error.
 
 @font-face {
 src: url(../asset/font/futura.swf);
 fontFamily : Futura Medium;
 }
 
 Although this font exists within the SWF i get the following error  font (*)
 with normal weight and regular style not found.

I don't think that the name you put in the fontFamily spot in the CSS has to 
agree with anything in the font itself...I belive it's just a handle to allow 
you to refer to it as you're applying it to components.

Try:

@font-face {
src: url(../asset/font/futura.swf);
fontFamily : foo;
}

And see what happens.





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





RE: [flexcoders] Re: AIR has different behaviour in XML.appendChild() vs Flex for String values?

2009-03-23 Thread Peter Farland
https://bugs.adobe.com/jira/browse/SDK-19598

Not a perfect solution, but to help out with your issue of modifying generated 
code - your generated Service stub should have a method called getWebService() 
which retuns a subclass of mx.rpc.soap.AbstractWebService. You should be able 
to set the xmlSpecialCharsFilter property on this web service instance, and 
that'll trickle down to any Operation's and then to any SOAPEncoders used by 
these Operations.

Pete


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Francis Potter
Sent: Monday, March 23, 2009 5:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: AIR has different behaviour in XML.appendChild() vs 
Flex for String values?


I'm glad you wrote this up because I thought I was going crazy.

In my case, I'm using the FlexBuilder-generated web services client code in 
AIR. The SOAPEncoder and XMLEncoder classes actually end up double-escaping any 
XML characters in strings that are being passed up to my web service so a 
simple  character becomes amp;lt;, which is decoded on the other end as 
lt; instead of as .

I can see where it's happening. XMLEncoder.as, line 1784, looks like this:

currentChild.appendChild(xmlSpecialCharsFilter(Object(value)));

The xmlSpecialCharsFilter is doing the escaping, then appendChild (as your 
note points out) escapes the string again.

Of course, since the problem is too much escaping, pre-escaping the string 
won't help.

The only way around it in XMLEncoder is to replace the xmllSpecialCharsFilter. 
But in my case, I'm using the FlexBuilder-generated web services code (from 
Data - Import Web Services). So for now I'm editing that code. Of course that 
means I have to re-edit the code each time my service changes and I regenerate 
it. What a pain.

Here's what I did, in Baseservicename.call:

var enc:SOAPEncoder = new SOAPEncoder();
enc.xmlSpecialCharsFilter = function(value:Object):String {return 
value.toString()}
var soap:Object = new Object;

That works, but only in AIR (I assume, not really trying it in Flex).

So there's a hacky workaround. But really this should be fixed. At the very 
least, the FlexBuilder-generated code should be set up to work in either 
environment. As it is, Import Web Services will err for an AIR app where 
there is a  or  in any text property passed to the web service.

Is there a bug for this?






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





RE: [flexcoders] Re: AIR has different behaviour in XML.appendChild() vs Flex for String values?

2009-03-23 Thread Peter Farland
You're right, I took a closer look into the generated stub code and in the 
subclass of AbstractWebService - they've by-passed the usual RPC 
service/operation behavior and implemented a custom private call() method (and 
it's in there a new SOAPEncoder is constructed). This service stub really 
should expose a delegate to the SOAPEncoder. So. I think it's still worth 
logging a request in Flex Builder for this generated code to be updated in 
general, but I agree that really SDK-19811 needs to be fixed.

(Note: It seems SDK-19598 has become SDK-19811).

Pete


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Francis Potter
Sent: Monday, March 23, 2009 7:10 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: AIR has different behaviour in XML.appendChild() vs 
Flex for String values?


Pete,

Thanks for the tip. I can set xmlSpecialCharsFilter on the service, but it 
doesn't get passed into the encoder.

Looking around at the generated code and that in the 3.2 SDK (maybe it's 
changed for 3.3?) I see that the FlexBuilder-generated code is using a class 
called WSDLOperation, and doesn't seem to be using Operation at all -- and it's 
in Operation (as you noted) that the xmlSpecialCharsFilter is passed down. Am I 
missing something?

Francis



--- In flexcoders@yahoogroups.com, Peter Farland pfarl...@... wrote:

 https://bugs.adobe.com/jira/browse/SDK-19598
 
 Not a perfect solution, but to help out with your issue of modifying 
 generated code - your generated Service stub should have a method called 
 getWebService() which retuns a subclass of mx.rpc.soap.AbstractWebService. 
 You should be able to set the xmlSpecialCharsFilter property on this web 
 service instance, and that'll trickle down to any Operation's and then to any 
 SOAPEncoders used by these Operations.
 
 Pete
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of Francis Potter
 Sent: Monday, March 23, 2009 5:20 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: AIR has different behaviour in XML.appendChild() vs 
 Flex for String values?
 
 
 I'm glad you wrote this up because I thought I was going crazy.
 
 In my case, I'm using the FlexBuilder-generated web services client code in 
 AIR. The SOAPEncoder and XMLEncoder classes actually end up double-escaping 
 any XML characters in strings that are being passed up to my web service so a 
 simple  character becomes amp;lt;, which is decoded on the other end as 
 lt; instead of as .
 
 I can see where it's happening. XMLEncoder.as, line 1784, looks like this:
 
 currentChild.appendChild(xmlSpecialCharsFilter(Object(value)));
 
 The xmlSpecialCharsFilter is doing the escaping, then appendChild (as your 
 note points out) escapes the string again.
 
 Of course, since the problem is too much escaping, pre-escaping the string 
 won't help.
 
 The only way around it in XMLEncoder is to replace the 
 xmllSpecialCharsFilter. But in my case, I'm using the FlexBuilder-generated 
 web services code (from Data - Import Web Services). So for now I'm editing 
 that code. Of course that means I have to re-edit the code each time my 
 service changes and I regenerate it. What a pain.
 
 Here's what I did, in Baseservicename.call:
 
 var enc:SOAPEncoder = new SOAPEncoder();
 enc.xmlSpecialCharsFilter = function(value:Object):String {return 
 value.toString()}
 var soap:Object = new Object;
 
 That works, but only in AIR (I assume, not really trying it in Flex).
 
 So there's a hacky workaround. But really this should be fixed. At the very 
 least, the FlexBuilder-generated code should be set up to work in either 
 environment. As it is, Import Web Services will err for an AIR app where 
 there is a  or  in any text property passed to the web service.
 
 Is there a bug for this?
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links







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





RE: [flexcoders] Flex app fails when moved to server hosting web services

2009-03-20 Thread Peter Farland
I'd take a look at the soap:address location=... / in the WSDL for your 
service and port (typically towards the bottom of the WSDL) and note the host 
that is being contacted. What location is mentioned here?



-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of wubac1
Sent: Friday, March 20, 2009 2:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex app fails when moved to server hosting web services

I have a Flex application that runs fine from my desktop.  When I move the 
files to a virtual machine that already hosts the web services for the app, it 
no longer works as expected.  Now, when the app creates a WebService and calls 
an operation, I see that the WSDL if located and downloaded, but the operation 
never executes.  Via Charles, I see a 404 Not Found for URL 
http://schemas.xmlsoap.org/crossdomain.xml.  While I do not call any services 
at xmlsoap.org, it is part of the namespaces in my web services.  Any 
suggestions as to correcting this problem on the VM?



RE: [flexcoders] Re: Flex app fails when moved to server hosting web services

2009-03-20 Thread Peter Farland
Hmm, if it's not the SOAP address location, then perhaps there is a WSDL or 
Schema import or include? Can you look around in the types section?

Pete

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of wubac1
Sent: Friday, March 20, 2009 1:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex app fails when moved to server hosting web 
services

Also, I removed the call to the operation completely and see that the failed 
request for the crossdomain.xml from xmlsoap.org is generated by the loading of 
the WSDL:

ws = new WebService();
ws.loadWSDL(mywsdlloc);   -- the GET is successful, but it subsequently 
requests http://schemas.xmlsoap.org/crossdomain.xml, which produces a 404

--- In flexcoders@yahoogroups.com, Peter Farland pfarl...@... wrote:

 I'd take a look at the soap:address location=... / in the WSDL for your 
 service and port (typically towards the bottom of the WSDL) and note the host 
 that is being contacted. What location is mentioned here?
 
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of wubac1
 Sent: Friday, March 20, 2009 2:29 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex app fails when moved to server hosting web services
 
 I have a Flex application that runs fine from my desktop.  When I move the 
 files to a virtual machine that already hosts the web services for the app, 
 it no longer works as expected.  Now, when the app creates a WebService and 
 calls an operation, I see that the WSDL if located and downloaded, but the 
 operation never executes.  Via Charles, I see a 404 Not Found for URL 
 http://schemas.xmlsoap.org/crossdomain.xml.  While I do not call any services 
 at xmlsoap.org, it is part of the namespaces in my web services.  Any 
 suggestions as to correcting this problem on the VM?







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





RE: [flexcoders] Re: Flex app fails when moved to server hosting web services

2009-03-20 Thread Peter Farland
There you go - the schema definition for SOAP 1.1 is implied for our processing 
of WSDL, so you could remove that import.

Pete

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of wubac1
Sent: Friday, March 20, 2009 1:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex app fails when moved to server hosting web 
services

There is an import:

import namespace=http://schemas.xmlsoap.org/soap/encoding/; 
schemaLocation=http://schemas.xmlsoap.org/soap/encoding//


--- In flexcoders@yahoogroups.com, Peter Farland pfarl...@... wrote:

 Hmm, if it's not the SOAP address location, then perhaps there is a WSDL or 
 Schema import or include? Can you look around in the types section?
 
 Pete
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of wubac1
 Sent: Friday, March 20, 2009 1:23 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flex app fails when moved to server hosting web 
 services
 
 Also, I removed the call to the operation completely and see that the failed 
 request for the crossdomain.xml from xmlsoap.org is generated by the loading 
 of the WSDL:
 
 ws = new WebService();
 ws.loadWSDL(mywsdlloc);   -- the GET is successful, but it subsequently 
 requests http://schemas.xmlsoap.org/crossdomain.xml, which produces a 404
 
 --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote:
 
  I'd take a look at the soap:address location=... / in the WSDL for your 
  service and port (typically towards the bottom of the WSDL) and note the 
  host that is being contacted. What location is mentioned here?
  
  
  
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
  Behalf Of wubac1
  Sent: Friday, March 20, 2009 2:29 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flex app fails when moved to server hosting web 
  services
  
  I have a Flex application that runs fine from my desktop.  When I move the 
  files to a virtual machine that already hosts the web services for the app, 
  it no longer works as expected.  Now, when the app creates a WebService and 
  calls an operation, I see that the WSDL if located and downloaded, but the 
  operation never executes.  Via Charles, I see a 404 Not Found for URL 
  http://schemas.xmlsoap.org/crossdomain.xml.  While I do not call any 
  services at xmlsoap.org, it is part of the namespaces in my web services.  
  Any suggestions as to correcting this problem on the VM?
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links







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





RE: [flexcoders] Re: Flex app fails when moved to server hosting web services

2009-03-20 Thread Peter Farland
I doubt it - I've not yet seen a WSDL that needed to explicitly import the SOAP 
encoding schema for the types section. If you do end up needing it for some 
reason you'd have to establish a proxy or make a local copy of the schema to 
avoid Flash Player sandbox security restrictions. 

Pete


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of wubac1
Sent: Friday, March 20, 2009 2:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex app fails when moved to server hosting web 
services

Thanks, Pete.

If I remove the import will that import other client types (C++, Java, etc) 
negatively?

--- In flexcoders@yahoogroups.com, Peter Farland pfarl...@... wrote:

 There you go - the schema definition for SOAP 1.1 is implied for our 
 processing of WSDL, so you could remove that import.
 
 Pete
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of wubac1
 Sent: Friday, March 20, 2009 1:57 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flex app fails when moved to server hosting web 
 services
 
 There is an import:
 
 import namespace=http://schemas.xmlsoap.org/soap/encoding/; 
 schemaLocation=http://schemas.xmlsoap.org/soap/encoding//
 
 
 --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote:
 
  Hmm, if it's not the SOAP address location, then perhaps there is a WSDL or 
  Schema import or include? Can you look around in the types section?
  
  Pete
  
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
  Behalf Of wubac1
  Sent: Friday, March 20, 2009 1:23 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Flex app fails when moved to server hosting web 
  services
  
  Also, I removed the call to the operation completely and see that the 
  failed request for the crossdomain.xml from xmlsoap.org is generated by the 
  loading of the WSDL:
  
  ws = new WebService();
  ws.loadWSDL(mywsdlloc);   -- the GET is successful, but it subsequently 
  requests http://schemas.xmlsoap.org/crossdomain.xml, which produces a 404
  
  --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote:
  
   I'd take a look at the soap:address location=... / in the WSDL for 
   your service and port (typically towards the bottom of the WSDL) and note 
   the host that is being contacted. What location is mentioned here?
   
   
   
   -Original Message-
   From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
   Behalf Of wubac1
   Sent: Friday, March 20, 2009 2:29 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Flex app fails when moved to server hosting web 
   services
   
   I have a Flex application that runs fine from my desktop.  When I move 
   the files to a virtual machine that already hosts the web services for 
   the app, it no longer works as expected.  Now, when the app creates a 
   WebService and calls an operation, I see that the WSDL if located and 
   downloaded, but the operation never executes.  Via Charles, I see a 404 
   Not Found for URL http://schemas.xmlsoap.org/crossdomain.xml.  While I 
   do not call any services at xmlsoap.org, it is part of the namespaces in 
   my web services.  Any suggestions as to correcting this problem on the VM?
  
  
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location: 
  https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  Search Archives: 
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links







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





RE: [flexcoders] Embedding/visualizing special characters issue

2009-03-20 Thread Peter Farland
For ANT, you may have to provide the arguments using the jvmarg as child tag 
to mxmlc or compc instead of relying on /bin/jvm.config, e.g. something 
like:

jvmarg line=-Dtrace.font/

Pete

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Christian Giordano
Sent: Friday, March 20, 2009 10:41 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Embedding/visualizing special characters issue

I tried to add the parameter to the java compiling but doesn't seem to
work. I'm using Ant and I'm on a mac.

Cheers, chr



2009/3/20 Christian Giordano christ...@nuthinking.com:
 Funnily enough it was just the font missing the characters. What was
 driving me crazy is that Flash IDE when putting the textfield in the
 field was generously embedding another font to render the missing
 characters. So the textfield created in the IDE was magically
 embedding two fonts and was able to render all the characters.

 Cheers, chr



 2009/3/20 Peter Farland pfarl...@adobe.com:
 Hey Christian,

 Make sure there are no null chars 0x00 in the String as the display of such 
 Strings are truncated at the first null char.

 What version of Flex are you using?

 Are you using an @font-face to embed your font? If so, can you post a 
 snippet showing the complete @font-face rule?

 Can you provide the fontsmanagers section of your Flex SDK 
 /frameworks/flex-config.xml?

 Also, you could try adding -Dtrace.font as JVM args to get the compiler to 
 print out more debug information about embedding fonts while compiling. If 
 you're using mxmlc.exe, you can add these to the java.args property in the 
 /bin/jvm.config file of your Flex SDK.

 Pete


 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of Christian Giordano
 Sent: Thursday, March 19, 2009 8:41 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Embedding/visualizing special characters issue

 Hi guys, this is getting a bit mad, can anyone manage to embed and
 visualize characters like: ř (U+0159) ?

 I'm trying to embed an OpenType font (AvantGarde) to be able to show
 Chek chars, like: ůěČžíýř
 And regardless the unicodeRange, there is no way to make it see it :S

 Also other chars of the string are not visible. I tried from Flash IDE
 too, without success unless they are typed on the instance itself, for
 this reason I'm considering it can be a problem of string handling
 more than font embedding. Any idea how I could sort this?

 Cheers, chr


 

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





 

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









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







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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:flexcoders-dig...@yahoogroups.com 
mailto:flexcoders-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

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



RE: [flexcoders] swf file size changes from build to build?

2009-03-19 Thread Peter Farland
I would have to agree with Maciek as on seeing the file size differences I was 
skeptical it would just be timestamps causing the difference (although the 
point that the consecutive compiles will not result in the exact same bytes is 
a valid one).

Fotis, I'd be interested if you could investigate whether forcing a clean first 
before building results in the same file size, where as incremental 
compilations lead to the larger variants in file size that you're seeing? Have 
you tried running each differently sized SWF to see if they behave or look 
different? A guess at what may cause something like this would be a bug during 
prelink where perhaps a different set of style-mixins are getting linked in. If 
you could save the different sized SWFs you could use something like SWF Dump 
to look at the contents to see what was different.

Pete



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Fotis Chatzinikos
Sent: Thursday, March 19, 2009 4:46 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] swf file size changes from build to build?

Hi Gordon,

I meant that changes are minimal (I am not adding or removing a 3d library or 
any embedded fonts).

Adding a couple of actionscript lines / removing a couple of lines resulted in 
variations of about 200K in swf size...

Maybe its something to do with builder? Sometimes it cleans better than others?

I do not know what is going on but in the last couple of days I was adding new 
bits of code which at some point
resulted in the small file - I said cool! I possibly removed a couple of 
references to some unused classes
or something similar and then after a couple of compile/build the size went up 
again...

I just thought of asking on the forum in case somebody else had seen something 
similar...

Thanks for the reply. Its not a big problem, but still 200K is about 15-20% 
file size change...
On Thu, Mar 19, 2009 at 5:52 AM, Gordon Smith 
gosm...@adobe.commailto:gosm...@adobe.com wrote:

I think Alex was joking. He was simpily confirming that you don't get the same 
size each time you build (although I'm surprised by the size of the variation).



What did you mean by myIntVar = 1 instead of 0? The SWFs should execute 
exactly the same.



- Gordon



From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On 
Behalf Of Romeo Obane
Sent: Wednesday, March 18, 2009 8:18 PM
To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Subject: Re: [flexcoders] swf file size changes from build to build?



I'm quite puzzled of what you've said about right date and time, what do you 
mean by that? Is the right date and time affects the swf file size?

On Thu, Mar 19, 2009 at 5:47 AM, Alex Harui 
aha...@adobe.commailto:aha...@adobe.com wrote:

Just wait for the right date and time.  SWFs are zipped and there is some 
date/time bytes in the SWF that affect the compression table.  No two builds 
are the same.



Alex Harui

Flex SDK Developer

Adobe Systems Inc.http://www.adobe.com/

Blog: http://blogs.adobe.com/aharui



From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On 
Behalf Of fotis.chatzinikos
Sent: Wednesday, March 18, 2009 9:55 AM
To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Subject: [flexcoders] swf file size changes from build to build?



Hi,

I am working on a project where the debug build is about 1MB.

The problem is that from build to build i have seen the resulting swf changing 
sizes. The builds do not add or remove any code, its just minor changes ie 
myIntVar = 1 instead of 0.

Last 5 builds:

1. 1086 KB
2. 1086 KB
3. 894 KB
4. 933 KB
5. 1087 KB

I am not sure yet if this happens in the release build as well...

Anybody seen that before?

PS: Else i will keep rebuilding until i get the smaller possible size to 
publish... (just joking)





--
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.commailto:fotis.chatzini...@gmail.com,






RE: [flexcoders] What are the chances Flex could be causing this?

2009-03-19 Thread Peter Farland
Jonathon had a good point - look out for maximum number of connections, perhaps 
there is a specific maximum number of connections per host.

Pete


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of nwebb
Sent: Thursday, March 19, 2009 5:34 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] What are the chances Flex could be causing this?

Thanks Jonathon, 

I'll get the guys to do that - much appreciated.


On Wed, Mar 18, 2009 at 7:17 PM, Jonathon Stierman jonat...@wolfmotell.com 
wrote:
You could be hitting your servers' (IIS, Apache) maximum number of connections 
- which means your application (and thus your custom logs) wouldn't even be 
run.  The server would just eat the requests and send back a 500 level HTTP 
response.
 
Check your servers' error logs, and see if anything appears in there.
 
Jonathon
 


RE: [flexcoders] Embedding/visualizing special characters issue

2009-03-19 Thread Peter Farland
Hey Christian,

Make sure there are no null chars 0x00 in the String as the display of such 
Strings are truncated at the first null char.

What version of Flex are you using?

Are you using an @font-face to embed your font? If so, can you post a snippet 
showing the complete @font-face rule? 

Can you provide the fontsmanagers section of your Flex SDK 
/frameworks/flex-config.xml?

Also, you could try adding -Dtrace.font as JVM args to get the compiler to 
print out more debug information about embedding fonts while compiling. If 
you're using mxmlc.exe, you can add these to the java.args property in the 
/bin/jvm.config file of your Flex SDK.

Pete


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Christian Giordano
Sent: Thursday, March 19, 2009 8:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Embedding/visualizing special characters issue

Hi guys, this is getting a bit mad, can anyone manage to embed and
visualize characters like: ř (U+0159) ?

I'm trying to embed an OpenType font (AvantGarde) to be able to show
Chek chars, like: ůěČžíýř
And regardless the unicodeRange, there is no way to make it see it :S

Also other chars of the string are not visible. I tried from Flash IDE
too, without success unless they are typed on the instance itself, for
this reason I'm considering it can be a problem of string handling
more than font embedding. Any idea how I could sort this?

Cheers, chr




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







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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:flexcoders-dig...@yahoogroups.com 
mailto:flexcoders-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

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



RE: [flexcoders] OS-dependent mxmlc behavior for fonts?

2009-03-18 Thread Peter Farland
 I need to install? I've searched my
 local HD and didn't find anything.

 We're so close, I can feel it! :)

 Peldi
 ---
 Giacomo 'Peldi' Guilizzoni
 Founder, Balsamiq Studios, LLC
 http://www.balsamiq.com
 ph: +1 (415) 367-3531, Skype, GTalk, Facebook, Twitter, FriendFeed: balsamiq



 On Wed, Mar 18, 2009 at 2:50 AM, Peter Farland pfarl...@adobe.com wrote:
 Peldi, by system font, do you mean device fonts (i.e. not embedded)?

 What version of Flex? Are you pointing to a .ttf file using an @font-face
 CSS rule with a url?

 If so, and if you're using Flex SDK 3, go into your
 /frameworks/flex-config.xml and comment out the BatikFontManager from the
 list of font managers, and try just leaving the AFEFontManager.

 Pete

 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Peldi Guilizzoni, Balsamiq Studios
 Sent: Tuesday, March 17, 2009 5:34 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] OS-dependent mxmlc behavior for fonts?

 Thanks for the reply Rick. I am using 2 TTF files for the embedded
 fonts, and a system font (Arial) as well.
 I do not anticipate any change to my fonts, no. Why?
 I don't really like the SWF option...do you or anyone else know why
 I'm getting these differences? What part of mxmlc is
 platform-dependent? Can it be tweaked/fixed?

 Peldi
 ---
 Giacomo 'Peldi' Guilizzoni
 Founder, Balsamiq Studios, LLC
 http://www.balsamiq.com
 ph: +1 (415) 367-3531, Skype, GTalk, Facebook, Twitter, FriendFeed: balsamiq

 





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





RE: [flexcoders] Where I can examples of how to use ByteArray

2009-03-18 Thread Peter Farland
You may want to have loader as a member variable so that you can access it in 
other contexts or make subsequent requests without using init()

private var loader:URLLoader;


Also, you should set the loader.dataFormat to URLLoaderDataFormat.BINARY before 
loading binary data. See:
http://livedocs.adobe.com/flex/3/langref/flash/net/URLLoader.html#dataFormat

Finally, in the complete event, you can cast loader.data to a ByteArray:

private function onComplete(e:Event):void
{
var byteArr:ByteArray = loader.data as ByteArray;
  // ...
}

Pete

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of gilbert_mizrahi
Sent: Wednesday, March 18, 2009 11:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Where I can examples of how to use ByteArray

I have searched everywhere and I can't find useful examples of how to use the 
ByteArray class and the Flex 3 documentation does not include much.

I want to read and FLV file with ByteArray, but I don't know how.

I tried:

private function init():void
{
var request:URLRequest = new URLRequest(assets/street.flv);
var loader:URLLoader = new URLLoader();
   try {
loader.load(request);
   } catch (error:ArgumentError) {
trace(An ArgumentError has occurred.);
   } catch (error:SecurityError) {
trace(A SecurityError has occurred.);
}
   loader.addEventListener(Event.COMPLETE, onComplete);
}

private function onComplete(e:Event):void
{
var byteArr:ByteArray = new ByteArray ();
byteArr.readByte(); //
trace(byteArr +byteArr);
}

the ByteArray readByte method accept 0 parameters, so what should I do?





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





RE: [flexcoders] What are the chances Flex could be causing this?

2009-03-18 Thread Peter Farland
I would have thought that if you were hitting the maximum connections per host 
limitation then your requests would just queue and take longer to respond. Out 
of curiosity, how many fail and how many return data? Does the number change?

Are the 10 SWFs calling back to the same dev server hosting the SWFs, or are 
they hitting a different URL? If they are hitting a different URL, can you 
possibly host your swf on the remote URL and try again (ensuring that the URL 
used to load the SWF has exactly the same host name as the service being 
contacted)?

You could try testing your theory by modifying the registry to allow IE to make 
more requests simultaneously, see:
http://support.microsoft.com/kb/282402

You could also try Firefox for comparison?

Pete


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of nwebb
Sent: Wednesday, March 18, 2009 2:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] What are the chances Flex could be causing this?

Hi, we've got a webservice with about 10 methods. When the application starts 
up it calls about 6 of them in quick succession (I'm currently chaining those 
calls).

If I upload the SWF to our dev environment, create a tab-group in IE (10 tabs 
in total), with each tab loading the swf, I can load 10 instances of the 
application similtaneously.
When I do that I'm seeing that several instances of the app are throwing errors 
like this:

18:06:08.273 | [ERROR] | mx.messaging.Producer | 
'B8ED2C1F-ABBE-DB29-3DB4-1AC289775CF2' producer fault for 
'F87115A3-7C5D-2F13-2EA0-1AC2ED13E733'.18:06:08.304 | [ERROR] | 
Tools.business.AbstractRPCConsumer.fault | faultCode:Server.Error.Request 
faultString:'HTTP request error' faultDetail:'Error: [IOErrorEvent 
type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2032: 
Stream Error. URL: http://dev- 

I'm pretty sure this is a server-side issue but want to make absolutely sure. 
The server logs in place don't show any errors  (but I'm just a front-end guy 
looking at some custom error logs - I could easily be missing something!) - 
many of the Flex calls are getting rejected.

Or could this be a red herring? Perhaps the browser is imposing a limits on the 
number of connections opened and I can't test things this way.  If anyone has 
thoughts on whether I could be doing anything weird on the front-end to cause 
this please let me know.

Thanks.








RE: [flexcoders] Re: Where I can examples of how to use ByteArray

2009-03-18 Thread Peter Farland
Although not FLV, I wrote a sample AMF 0/AMF 3 client based on 
flash.utils.ByteArray and flash.net.URLLoader. See my blog entry 
http://blogs.adobe.com/pfarland/2008/06/using_amf_with_flashneturlload.html 
which mentions the ActionScript source which was submitted to BlazeDS as an 
attachment to BLZ-209. See amf.zip at:
https://bugs.adobe.com/jira/browse/BLZ-209

For FLV, the key is to understand the Type column for each field. I took a 
quick look at the spec and it seems to use conventions similar to the SWF 
format.

private function onComplete(e:Event):void
{
var ba:ByteArray = loader.data as ByteArray;
 
  if (ba != null  ba.length  9)
  {
  // Peek at the first 3 bytes to check for 'F' 'L' 'V'
  if (ba.readUnsignedByte() == 0x46  ba.readUnsignedByte() == 0x4C  
ba.readUnsignedByte() == 0x56)
  {
  ba.position = 0;
  decodeFLV(ba);
  }
  }
}

i.e. For UI8, use readUnsignedByte() to get a uint
For UB[n], use readUnsignedByte() and then shift to find the relevant bit(s) 
for each flag.
For UI32, use readUnsignedInt() to get a uint
For UI24, use 3 successive readUnsignedBytes() and shift values appropriately 
to form a uint from the 24bits.
etc...

Pete


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of gilbert_mizrahi
Sent: Wednesday, March 18, 2009 6:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Where I can examples of how to use ByteArray

Alex, Thanks. Yes I have seen that, but there is noting similar for what I 
want, that is to read the flv content to get its tags according to FLV spec 
from http://www.adobe.com/devnet/flv/.

Pete, that is a good starting point, thank you. However, I need more help to be 
able to read the data from the FLV. readByte() returns an int and readBytes 
expects at least one parameter of type ByteArray which I have no clue what to 
put in there. And readObject(0 throws an ouf of bounds error.

Gilbert

--- In flexcoders@yahoogroups.com, Peter Farland pfarl...@... wrote:

 You may want to have loader as a member variable so that you can access it in 
 other contexts or make subsequent requests without using init()
 
 private var loader:URLLoader;
 
 
 Also, you should set the loader.dataFormat to URLLoaderDataFormat.BINARY 
 before loading binary data. See:
 http://livedocs.adobe.com/flex/3/langref/flash/net/URLLoader.html#dataFormat
 
 Finally, in the complete event, you can cast loader.data to a ByteArray:
 
 private function onComplete(e:Event):void
 {
   var byteArr:ByteArray = loader.data as ByteArray;
   // ...
 }
 
 Pete
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of gilbert_mizrahi
 Sent: Wednesday, March 18, 2009 11:22 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Where I can examples of how to use ByteArray
 
 I have searched everywhere and I can't find useful examples of how to use the 
 ByteArray class and the Flex 3 documentation does not include much.
 
 I want to read and FLV file with ByteArray, but I don't know how.
 
 I tried:
 
 private function init():void
 {
 var request:URLRequest = new URLRequest(assets/street.flv);
 var loader:URLLoader = new URLLoader();
try {
   loader.load(request);
} catch (error:ArgumentError) {
   trace(An ArgumentError has occurred.);
} catch (error:SecurityError) {
   trace(A SecurityError has occurred.);
   }
loader.addEventListener(Event.COMPLETE, onComplete);
 }
 
 private function onComplete(e:Event):void
 {
   var byteArr:ByteArray = new ByteArray ();
   byteArr.readByte(); //
   trace(byteArr +byteArr);
 }
 
 the ByteArray readByte method accept 0 parameters, so what should I do?
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links







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





RE: [flexcoders] OS-dependent mxmlc behavior for fonts?

2009-03-17 Thread Peter Farland
Peldi, by system font, do you mean device fonts (i.e. not embedded)?

What version of Flex? Are you pointing to a .ttf file using an @font-face CSS 
rule with a url?

If so, and if you're using Flex SDK 3, go into your /frameworks/flex-config.xml 
and comment out the BatikFontManager from the list of font managers, and try 
just leaving the AFEFontManager.

Pete


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Peldi Guilizzoni, Balsamiq Studios
Sent: Tuesday, March 17, 2009 5:34 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] OS-dependent mxmlc behavior for fonts?

Thanks for the reply Rick. I am using 2 TTF files for the embedded
fonts, and a system font (Arial) as well.
I do not anticipate any change to my fonts, no. Why?
I don't really like the SWF option...do you or anyone else know why
I'm getting these differences? What part of mxmlc is
platform-dependent? Can it be tweaked/fixed?

Peldi
---
Giacomo 'Peldi' Guilizzoni
Founder, Balsamiq Studios, LLC
http://www.balsamiq.com
ph: +1 (415) 367-3531, Skype, GTalk, Facebook, Twitter, FriendFeed: balsamiq



RE: [flexcoders] HTTPService never returning...

2009-03-17 Thread Peter Farland
Can you try getting an HTTP Sniffer to see what the raw response looks like? 
Are they HTTPS URLs?

Pete

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of nathanpdaniel
Sent: Tuesday, March 17, 2009 12:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HTTPService never returning...

 I have an AS3 HTTPService (that is, the HTTPService is all AS3 based, no MXML) 
which travels off and gets an XML feed, returns and displays the data.  There 
are several (20+) instances where I can click on an item and this happens 
properly.  However, I have 1 (just one) instance where this crashes my AIR app. 
 
 I've verified the URL, it DOES render in an HTML page (as XML) so, there is no 
issue with the URL.  I can click on ANY other item to load the XML and it 
loads - every time.  My App works fine as long as I never select the one item 
in particular.  I've profiled the app, memory usage actually drops off when I 
selecte that one item.  I've got listeners for every possible event - none of 
which ever get sent after hitting HTTPService.send().  The app acts as though 
everything's fine, it's just loading data.  I put a timeout of 5 seconds on the 
HTTPService.  After about 2 minutes of still nothing, I manually shut down the 
app.

Anyone have any ideas?





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





RE: [flexcoders] HttpService headers - age old problem

2009-03-17 Thread Peter Farland
See: http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html

For POST requests, the confusion probably arises because it was possible to 
send Authorization headers in the past, but it was added to the list of 
restricted headers (I don't have the exact version handy, but it might have 
been 9.0.124). Even though the crossdomain policy format was expanded to 
include an allowed header list, I believe the restricted headers are still 
always ignored. See 
http://livedocs.adobe.com/flex/3/langref/flash/net/URLRequestHeader.html for a 
list of restricted headers.

For GET requests, headers not being sent is a different issue logged against 
URLLoader - I believe this is due to a limitation of the plugin APIs exposed to 
the player. There are several duplicates logged, but one is: 
https://bugs.adobe.com/jira/browse/FP-209.

Pete


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of stevepruitt97
Sent: Wednesday, February 11, 2009 12:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HttpService headers - age old problem

This seems to be an age-old issue.  I need to set the Authorization 
header for GET requests.  I read it cannot be done and I have read 
articles that hint it is doable.  Which is it?

I have no cross-domain issues.  Everything is sent to the same server.

I found the following adobe TechNote: 
http://kb.adobe.com/selfservice/viewContent.do?
externalId=kb403184sliceId=1
appears to state that post Flash player 9.0.115.0 the Authorization 
header can be sent with either GET or POST.  I have player 9.0.224.0.  
However, I cannot the Authorization header or a custom header to go 
across.

Has anyone successfully set the Authorization header for any customer 
header for that matter with the HttpService?

Thanks.


-S





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





RE: [flexcoders] Re: Problems with POST or GET

2009-01-20 Thread Peter Farland
If you set resultFormat=text does it work? Is it just not working for 
resultFormat=e4x?

Have you confirmed that the request is actually making it to the server, and 
have you confirmed the nature of the response that comes back (using an HTTP 
sniffer tool, like Charles or Paros Proxy)?

Also, try adding a mx:TraceTarget level=0 / tag in your MXML Application 
and then use a debugger to launch your application. Try to look for errors in 
the debug console that may not be making it through to the fault handler.


Pete

 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of markgoldin_2000
 Sent: Monday, January 19, 2009 10:17 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Problems with POST or GET
 
 I have Alert box in a fault handler.
 Never seen it's popping.
 
 --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@...
 wrote:
 
  Also, do you have a fault handler?  Have you checked to see if
 it is
  being called?
 
  Tracy Spratt
  Lariat Services
 
  Flex development bandwidth available
 
  
 
  From: flexcoders@yahoogroups.com
 [mailto:flexcod...@yahoogroups.com] On
  Behalf Of Peter Farland
  Sent: Monday, January 19, 2009 4:39 PM
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Re: Problems with POST or GET
 
 
 
  Are you POST'ing to a host on a domain that is not the same as
 the
  domain hosting the SWF?
 
  Are you using HTTPS? If so, does it work when using HTTP?
 
  Does it happen in all browsers, or just a particular one?
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-
 b4cf-1e62079f6847
 Search Archives: http://www.mail-
 archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
 
 
 


RE: [flexcoders] Re: Problems with POST or GET

2009-01-19 Thread Peter Farland
Are you POST'ing to a host on a domain that is not the same as the domain 
hosting the SWF?

Are you using HTTPS? If so, does it work when using HTTP?

Does it happen in all browsers, or just a particular one?




RE: [flexcoders] flex application is not loading under HTTPS

2008-10-06 Thread Peter Farland
Note there are several variants of no-cache headers. This is a separate known 
issue with MSIE listed here:
http://support.microsoft.com/kb/323308



RE: [flexcoders] flex application is not loading under HTTPS

2008-10-05 Thread Peter Farland
You may be running into something like this known MSIE issue:
http://support.microsoft.com/kb/871205

Pete

-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
venkateswarlu naidu
Sent: Sunday, October 05, 2008 11:56 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] flex application is not loading under HTTPS

Hi Pete,

I ran IEWatch tool and saw one error ERROR_INTERNET_UNABLE_TO_CACHE_FILE as 
status while loading the SWF.
What could be the problem?

Thanks  Regards,
Venkat.


RE: [flexcoders] flex application is not loading under HTTPS

2008-10-03 Thread Peter Farland
Can you  use a client side HTTP sniffer (like Charles, Paros Proxy, etc...) and 
look at the raw HTTP response that is delivering the SWF. Look to see if any 
no-cache headers are being returned. Also try to determine if chunked encoding 
is being used with gzip compression (as this combination can be a problem for 
MSIE).

Pete

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
venkateswarlu naidu
Sent: Friday, October 03, 2008 9:18 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] flex application is not loading under HTTPS

Any idea on the below problemI am stuck please help!

Thanks,
Venkat.


- Original Message 
From: venkateswarlu naidu [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com; [EMAIL PROTECTED] [EMAIL PROTECTED]
Sent: Friday, 3 October, 2008 12:21:30 AM
Subject: Re: [flexcoders] flex application is not loading under HTTPS
Hi Peter,

SWF itself is not loading, i am just seeing the regular flex app background 
color, pls give some clues about configuring the flex application for secure 
environment, also let me know if we have to configure some thing in 
services-config file. I am stuck at QA env...big trouble for me :(

Aaron,
 SSL certificate is installed, i think it is from verisign.

Thanks for your time,

Thanks  Regards,
Venkat.


- Original Message 
From: Peter Farland [EMAIL PROTECTED] com
To: flexcoders@ yahoogroups. com [EMAIL PROTECTED] ups.com; 
flexcomponents@ yahoogroups. com flexcomponents@ yahoogroups. com
Sent: Thursday, 2 October, 2008 11:20:44 PM
Subject: RE: [flexcoders] flex application is not loading under HTTPS

Does the SWF load but no data is received, or does the SWF itself fail to load?

 -Original Message-
 From: [EMAIL PROTECTED] ups.commailto:flexcoders%40yahoogroups.com 
 [mailto:[EMAIL PROTECTED] ups.commailto:flexcoders%40yahoogroups.com] On
 Behalf Of venkateswarlu naidu
 Sent: Thursday, October 02, 2008 9:30 PM
 To: [EMAIL PROTECTED] ups.commailto:flexcoders%40yahoogroups.com; 
 flexcomponents@ yahoogroups. commailto:flexcomponents%40yahoogroups.com
 Subject: [flexcoders] flex application is not loading under HTTPS

 Hi All,

 Today we have deployed our flex application in weblogic (firewall and
 secure enabled). When i try accessing the site (ex: https://), flex
 application is not loading in INTERNET EXPLORER where as it is loading
 in firefox. The same application is working fine under HTTP where as it
 is NOT working under HTTPS.

 Please let me know the all possible reasons for this, i need to fix
 this issue asap.

 Any help is highly appreciated.

 Thanks in advance,
 Venkat.



 Connect with friends all over the world. Get Yahoo! India
 Messenger at http://in.messenger .yahoo.com/ 
 ?wm=n/http://in.messenger.yahoo.com/?wm=n/

  - - --

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





Add more friends to your messenger and enjoy! Invite them 
now.http://in.rd.yahoo.com/tagline_messenger_6/*http:/messenger.yahoo.com/invite/



Connect with friends all over the world. Get Yahoo! India 
Messenger.http://in.rd.yahoo.com/tagline_messenger_1/*http:/in.messenger.yahoo.com/?wm=n/
 


RE: [flexcoders] flex application is not loading under HTTPS

2008-10-03 Thread Peter Farland
Did you try to run an HTTP sniffer on your client and enable it with MSIE to 
capture the raw HTTP response that is the result of the GET to load the SWF? 
You really need to get that information first.


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
venkateswarlu naidu
Sent: Friday, October 03, 2008 9:47 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] flex application is not loading under HTTPS

Hi Pete,

Thanks a lot for the reply, as you said our guys are using gzip compression at 
server side (using weblogic 9).
How can i solve this problem? The same code is working under DEV env under HTTP.

somebody is saying it is bcos of javascript errors, Is javascript errors stop 
loading the SWF?

Please help me on this.

Thanks,
Venkat.


- Original Message 
From: Peter Farland [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Friday, 3 October, 2008 9:37:53 PM
Subject: RE: [flexcoders] flex application is not loading under HTTPS
Can you  use a client side HTTP sniffer (like Charles, Paros Proxy, etc...) and 
look at the raw HTTP response that is delivering the SWF. Look to see if any 
no-cache headers are being returned. Also try to determine if chunked encoding 
is being used with gzip compression (as this combination can be a problem for 
MSIE).

Pete


RE: [flexcoders] flex application is not loading under HTTPS

2008-10-02 Thread Peter Farland
Does the SWF load but no data is received, or does the SWF itself fail to load?

 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of venkateswarlu naidu
 Sent: Thursday, October 02, 2008 9:30 PM
 To: flexcoders@yahoogroups.com; [EMAIL PROTECTED]
 Subject: [flexcoders] flex application is not loading under HTTPS

 Hi All,

 Today we have deployed our flex application in weblogic (firewall and
 secure enabled). When i try accessing the site (ex: https://), flex
 application is not loading in INTERNET EXPLORER where as it is loading
 in firefox. The same application is working fine under HTTP where as it
 is NOT working under HTTPS.

 Please let me know the all possible reasons for this, i need to fix
 this issue asap.

 Any help is highly appreciated.

  Thanks in advance,
 Venkat.



   Connect with friends all over the world. Get Yahoo! India
 Messenger at http://in.messenger.yahoo.com/?wm=n/

 

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





RE: [flexcoders] Re: Base64Encoder / Base64Decoder

2008-09-25 Thread Peter Farland
What do you want to do with Base64? I might be able to point you at an example. 
I've also logged a bug for documentation to ask them to provide examples in 
these classes (note this, and commenting on the live docs, is a better way to 
get the doc team's attention). https://bugs.adobe.com/jira/browse/FLEXDOCS-509


RE: [flexcoders] Re: Base64Encoder / Base64Decoder

2008-09-25 Thread Peter Farland
Just curious, where'd folks see the decoder docs talk about a toString()? 
Base64Decoder's primary use is to decode to a ByteArray so it has a 
toByteArray() method. If you wanted to construct a String from this ByteArray 
you'd need to know the charset encoding used in the bytes.

Pete

 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Doug McCune
 Sent: Thursday, September 25, 2008 1:29 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: Base64Encoder / Base64Decoder

 I assume the bug here is that the toString() method was supposed to be
 implemented the same way in Base64Decoder as it is in Base64Encoder,
 which would then make the docs at least make sense. But it looks like
 that method simply got left out of the decoder class. Add it in just
 like in the encoder and things aren't as confusing (although I'd argue
 that using the toString() method to retrieve the result is an
 inherently confusing way to use the classes).

 Doug




RE: [flexcoders] Bizarre XML data transformation

2008-09-17 Thread Peter Farland
How are you loading the XML? HTTPService? If so, have you set 
resultFormat=e4x?



RE: [flexcoders] Date issue - need to create date out of string like xxxx-xx-xx from XML

2008-09-16 Thread Peter Farland
Josh, have you logged bugs for specific issues with SOAP date unmarshalling?
Pete

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh 
McDonald
Sent: Tuesday, September 16, 2008 2:05 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Date issue - need to create date out of string like 
-xx-xx from XML

I don't actually use that code I posted above, as all our dates come in via 
SOAP, for which Flex's unmarshaller is even worse :)

I like the strict checking you can do with a regex. Dates are an awful touchy 
subject in this business.

-Josh


RE: [flexcoders] Cannot unmarshall

2008-09-11 Thread Peter Farland
Unfortunately you cut off the most important part - what do the namespaces in 
the schema map to? They may be declared on the wsdl definitions root tag or the 
schema tag, but it's not clear from your post what the S2 namespace prefix maps 
to... I'm guessing that it is (incorrectly) the XML Schema 1.0 namespace which 
is not expected by Flex's XML Schema marshaller (it only expects actual XML 
Schema types in this namespace!).

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alban
Sent: Thursday, September 11, 2008 5:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cannot unmarshall

Hello *,
we've got a problem with flex builder 3 (Version: 3.0.194161)
and a generated webservice.
Our wsdl file is generated by openedge (progress).
This is a sample of it where i think the problem come from:
[code]
element name=dsOrder
complexType
sequence
element maxOccurs=unbounded minOccurs=0 name=ttOrder
complexType
sequence
element name=Ordernum nillable=true type=xsd:int/
element name=CustNum nillable=true type=xsd:int/
element name=OrderDate nillable=true type=xsd:date/
element name=ShipDate nillable=true type=xsd:date/
element name=PromiseDate nillable=true type=xsd:date/
element name=Carrier nillable=true type=xsd:string/
element name=Instructions nillable=true type=xsd:string/
element name=PO nillable=true type=xsd:string/
element name=Terms nillable=true type=xsd:string/
element name=SalesRep nillable=true type=xsd:string/
element name=BillToID nillable=true type=xsd:int/
element name=ShipToID nillable=true type=xsd:int/
element name=OrderStatus nillable=true type=xsd:string/
element name=WarehouseNum nillable=true type=xsd:int/
element name=Creditcard nillable=true type=xsd:string/
element name=OrderTotal nillable=true type=xsd:decimal/
element name=CustName nillable=true type=xsd:string/
element name=RepName nillable=true type=xsd:string/
/sequence
/complexType
/element
element maxOccurs=unbounded minOccurs=0 name=ttOline
prodata:beforeTable=BIttOline
complexType
sequence
element name=Ordernum nillable=true type=xsd:int/
element name=Linenum nillable=true type=xsd:int/
element name=Itemnum nillable=true type=xsd:int/
element name=Price nillable=true type=xsd:decimal/
element name=Qty nillable=true type=xsd:int/
element name=Discount nillable=true type=xsd:int/
element name=ExtendedPrice nillable=true type=xsd:decimal/
element name=OrderLineStatus nillable=true type=xsd:string/
/sequence
/complexType
/element
element maxOccurs=unbounded minOccurs=0 name=ttItem
complexType
sequence
element name=Itemnum nillable=true type=xsd:int/
element name=ItemName nillable=true type=xsd:string/
element name=Price nillable=true type=xsd:decimal/
element name=Onhand nillable=true type=xsd:int/
element name=Allocated nillable=true type=xsd:int/
element name=ReOrder nillable=true type=xsd:int/
element name=OnOrder nillable=true type=xsd:int/
element name=CatPage nillable=true type=xsd:int/
element name=CatDescription nillable=true type=xsd:string/
element name=Category1 nillable=true type=xsd:string/
element name=Category2 nillable=true type=xsd:string/
element name=Special nillable=true type=xsd:string/
element name=Weight nillable=true type=xsd:decimal/
element name=Minqty nillable=true type=xsd:int/
/sequence
/complexType
/element
/sequence
/complexType
unique name=OrderNum prodata:primaryIndex=true
selector xpath=.//S2:ttOrder/
field xpath=S2:Ordernum/
/unique
unique name=orderline prodata:primaryIndex=true
selector xpath=.//S2:ttOline/
field xpath=S2:Ordernum/
field xpath=S2:Linenum/
/unique
unique name=ItemNum prodata:primaryIndex=true
selector xpath=.//S2:ttItem/
field xpath=S2:Itemnum/
/unique
keyref name=OrderLine refer=S2:OrderNum
selector xpath=.//S2:ttOline/
field xpath=S2:Ordernum/
/keyref
annotation
appinfo
prodata:relation name=LineItem prodata:child=ttItem
prodata:parent=ttOline prodata:relationFields=Itemnum,Itemnum/
/appinfo
/annotation
/element
[/code]

And this is the schema generated by flex when we import the wsdl :
[code]
xsd:element name=dsOrder type=S2:dsOrder_type0
xsd:annotation
xsd:appinfo
prodata:relation name=LineItem
prodata:child=ttItem prodata:parent=ttOline
prodata:relationFields=Itemnum,Itemnum/
/xsd:appinfo
/xsd:annotation
xsd:keyref name=OrderLine refer=S2:OrderNum
xsd:selector xpath=.//S2:ttOline/
xsd:field xpath=S2:Ordernum/
/xsd:keyref
xsd:unique name=OrderNum
xsd:selector xpath=.//S2:ttOrder/
xsd:field xpath=S2:Ordernum/
/xsd:unique
xsd:unique name=orderline
xsd:selector xpath=.//S2:ttOline/
xsd:field xpath=S2:Ordernum/
xsd:field xpath=S2:Linenum/
/xsd:unique
xsd:unique name=ItemNum
xsd:selector xpath=.//S2:ttItem/
xsd:field xpath=S2:Itemnum/
/xsd:unique
/xsd:element
[/code]

That result on this error 

RE: [flexcoders] Add methods to RemoteObject in AS?

2008-01-11 Thread Peter Farland
It's something like this:

import mx.rpc.events.ResultEvent;
import mx.rpc.remoting.mxml.RemoteObject;
import mx.rpc.remoting.Operation;

...


public var srv:RemoteObject;

...

private function init():void
{
srv = new RemoteObject(pojo);
srv.showBusyCursor = true;
var op1:Operation = srv.getConfigForCompany;
op1.addEventListener(ResultEvent.RESULT, showConfig);
var op2:Operation = srv.getConfiguredCompanies;
op2.addEventListener(ResultEvent.RESULT, showConfig);
}

...

Note, you should always add a fault handler too.

Also, I'm assuming that you want to add event listeners at the operation
level as you ultimately want to create different handlers (otherwise
you'd just add the event listeners to the service).

Finally, note that you can also add per-invocation responders that
handle result and faults.

Pete


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Dale
Sent: Friday, January 11, 2008 7:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Add methods to RemoteObject in AS?

Howdy ... anyone know what the AS equivilent for  this is?

 mx:RemoteObject id=srv showBusyCursor=true destination=pojo
mx:method name=getConfigForCompany result=showConfig(event) /
mx:method name=getConfiguredCompanies result=showConfig(event)
/ /mx:RemoteObject

I'm not seeing how to add a handler for a specific method on a remote
object in AS ...

Many thanks :)

Paul


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





RE: [flexcoders] crossdomain not working with HTTP Request Error

2008-01-08 Thread Peter Farland
You can tell it to load from a specific subdirectory using the
loadPolicyFile API, but the default location is to look for it in the
webroot of a server (so deploying a war with a default context root of
the empty string is one way to achieve that).



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dominique Bessette - Halsema
Sent: Tuesday, January 08, 2008 4:51 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] crossdomain not working with HTTP Request
Error


i understand that, what i dont understand is where exactly the file is
supposed to go, as i said right now it is at
 
http://[host]:[port]/weemc-service/crossdomain.xml
 
which is the web root of that ear file it is trying to access.  so are
you saying i'm supposed to put it in the web root of the server, where
is that or what does that mean?
 
 
 
 
 


 
On 1/8/08, Alex Harui [EMAIL PROTECTED] wrote: 



When you run on your local machine, there is no enforcement of
security rules (mainly because there is no server serving the swf and
thus no domain to verify against), but also as a convenience for
development. 

 

When you deploy to a server, that server becomes the domain for
your SWF.  Any access to a different domain in a url (even the ip
equivalent of the domain) is considered cross-domain and the server
being accessed must grant permission via crossdomain.xml.

 





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Dominique Bessette -
Halsema
Sent: Tuesday, January 08, 2008 11:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] crossdomain not working with HTTP Request
Error

 



I'm trying to finish this project and i'm running out of time if
anyone has any ideas PLEASE let me know.

 

I have a flex application that calls my web service through the
wsdl which is located in an ear file

 

http://{svr8}:port/weemc-service/weemc?wsdl
http://%7bsvr8%7d:port/weemc-service/weemc?wsdl 

 

on my local machine the flex app works when i try to get the
data from the database, but on my production server (which is svr8)  i
get a security access error.  when i change the url so that i am
viewing the file throught the web server (ie. svr8) and not the ip
address I get a 

 

[WSDLError faultString=Element  not resolvable
faultCode=WSDL.BadElement faultDetail=null] 

 

error.  After i select dismiss all and refresh the flex app then
it's get's the data from the database.  

if i try to post/update data in the database on either my local
machine I get this error

 

[RPC Fault faultString=HTTP request error
faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent
type=ioError bubbles=false cancelable=false eventPhase=2 text=Error
#2032: Stream Error. URL: 

 

but then it still updates the data

 

if i try to post/update data on production server nothing
happens

 

 

 i put the crossdomain.xml file in the ear file i am trying to
call

 

http://{svr8}:port/weemc-service/crossdomain.xml
http://%7bsvr8%7d:port/weemc-service/crossdomain.xml the database the
ear file is accessing is on 

 

http://{svr7}:port/isqlplus http://%7bsvr7%7d:port/isqlplus 

 

 

 

More info:

 

svr8 is a weblogic server that is running in a cluster with an
Admin server and a managed server

 

flex running as a war file on svr8

 

the secure attribute in the crossdomain file is set to true

 

 

 








 


RE: [flexcoders] Re: Handling authorization/Authentication info using remoteObject services

2008-01-07 Thread Peter Farland

You make use of the HTTP sessions for RemoteObject too. Just make sure
you're communicating with the server over secure HTTP, such as
mx.messaging.channels.SecureAMFChannel (which posts binary AMF over
HTTPS). Cookies are sent on subsequent requests to maintain your
session.

You have two options for securing your RemoteObject endpoint

1.) Assuming you're using LCDS 2.5.1 or BlazeDS Beta as your server for
now, you can either lock down the message broker servlet URL or some
sub-path of this in your /WEB-INF/web.xml with BASIC authentication.
Note that this has the disadvantage of locking down all requests to a
particular endpoint and it presents an HTTP Basic challenge dialog to
the user outside of the Flash Player.

2.) Or you can rely on custom authentication and lock down your endpoint
(or individual destinations) with a security-constraint in
/WEB-INF/flex/services-config.xml (or in an individual destination
config in /WEB-INF/flex/remoting-config.xml) - for which you use the
setCredentials() API on RemoteObject to send credentials to the message
broker. With this approach you have finer control over what is
accessible and you can create your own custom login UI.

Both mechanisms also allow for roles based authorization.

There should be documentation on this in LCDS.

 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lytvynyuk
Sent: Monday, January 07, 2008 3:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Handling authorization/Authentication info
using remoteObject services

I would like to know about this more too. People please share!

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

 Hi,
 I am implementing a system which makes use of RemoteObject services 
 within flex to speak to server side services like database, and other 
 server-side code.  What I am wondering is what are the best practices 
 for securing the remoteObject services from being called either 
 directly, or via a client which might have been altered through 
 reverse-engineering, etc.
 
 In the past I would have perhaps done this with HttpSession objects...
 is there a similar mechanism for flex remote objects?  or maybe i am 
 just missing the obvious due to inexperience.
 
 Any thoughts/advice appreciated.
 regards,
 
 Brian





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





RE: [flexcoders] Re: Flex SSL over AMF with ColdFusion services-config.xml

2008-01-03 Thread Peter Farland
If your destination refers to both a secure and non secure channel in
that order, and the non secure channel is being used, and you're not
specifying an endpoint property on the mx:RemoteObject tag, that
sounds like failover is working? To confirm, you could use
mx:TraceTarget level=0 / as I described and then check the
flashlog.txt.
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Douglas Knudsen
Sent: Thursday, January 03, 2008 11:14 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Flex SSL over AMF with ColdFusion
services-config.xml


Not the case in my experience.  If the swf is loaded over SSL and AMF is
not setup for SSL in CF land, AMF will go over non-SSL.  

Peter, FWIW, I never got this supposed failover to work, maybe others
have by now dunno.  I manually setup AMFChannel  to use SSL in
production environments.  Note that you have to compile your swf against
the proper services-config to do this.  What I did was have a
services-config for dev, staging, and production environments and had my
build scripts use the proper one.  YMMV. 


DK


On Jan 3, 2008 10:34 AM, nasawebguy [EMAIL PROTECTED] wrote:


Thanks Peter. My assumption was that if I'm loading via https,
the
secure channel would be used. If not, the unsecure channel would
be used. 

I can try the TraceTarget, but where is the flashlog located?

Don



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

 
 If you're loading your SWF via HTTPS then you should be able
to make
 secure connections from the Flash Player. As for the right
channel being
 automatically selected, it depends on whether channel failover
happens
 correctly. I didn't see a destination configuration below, but
if the
 channels snippet represents the list of channels for your
destination,
 then I believe it will try to connect using the
SecureAMFChannel first
 and fall back to the AMFChannel on failing. While this might
be useful
 in development, I wouldn't suggest it for deployment -
especially if you
 really do have a requirement to connect to a secure endpoint.
 
 Can you add mx:TraceTarget / to your MXML, recompile, and
then debug
 or look at flashlog.txt for more information about what might
be going
 wrong in the channel connection phase?
 
 
 
 
 
 
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of nasawebguy
 Sent: Wednesday, January 02, 2008 8:45 PM
 To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Flex SSL over AMF with ColdFusion
 services-config.xml
 
 When I use smartsniff/Charles, my remoteObject content is not
 encrypted/https/port 443. IE/Firefox shows SSL to the user,
eventhough
 the data is NOT actually encrypted over AMF!
 
 Below is my services-config.xml file and remoteObject code
snips.
 
 I've been researching this all day with no clear solution. As
I
 understand it so far, I should be able to use two channels in
my
 ColdFusion destination and the correct channel would be used
 automatically. Not the case. I need https pages to use SSL and
http
 pages to not.
 
 I tried splitting them up into two destinations, ColdFusion
and
 ColdFusionSecure, in the same services-config, but I keep
getting
 errors that ColdFusionSecure cannot be found, when it is used
at the
 remoteObject destination.
 
 I'd appreciate any suggestions.
 
 Thanks,
 Don
 
 channels
 channel ref=my-secure-cfamf/
 channel ref=my-cfamf/
 /channels
 
 
 channel-definition id=my-cfamf
 class=mx.messaging.channels.AMFChannel
 endpoint
 uri=http://{server.name}:{server.port}/flex2gateway/;
 class=flex.messaging.endpoints.AMFEndpoint/ 
 
 properties
 polling-enabledfalse/polling-enabled
 serialization
 instantiate-typesfalse/instantiate-types
 /serialization
 /properties
 /channel-definition
 
 channel-definition id=my-secure-cfamf
 class=mx.messaging.channels.SecureAMFChannel
 endpoint
 uri=https://{server.name}:{server.port}/flex2gateway/;
 class=flex.messaging.endpoints.SecureAMFEndpoint/ 
 
 properties
 
 add-no-cache-headersfalse/add-no-cache-headers
 polling

RE: [flexcoders] Re: Flex SSL over AMF with ColdFusion services-config.xml

2008-01-03 Thread Peter Farland
If you use Flex Builder in debug mode then the Console panel will show
trace output. However, if you're using a debug Flash Player plugin in a
browser (or the debug standalone Flash Player), then so long as you have
setup a mm.cfg file in your user directory, the flashlog.txt file will
appear in the predefined log location. For windows, mm.cfg would likely
need to be setup in 

C:\Documents and Settings\yourusername\mm.cfg

...and specify:

ErrorReportingEnable=1
TraceOutputFileEnable=1

Then trace output will appear in:

C:\Documents and Settings\yourusername\Application Data\Macromedia\Flash
Player\Logs\flashlog.txt

On windows I use tail.exe from cygwin to monitor the file.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nasawebguy
Sent: Thursday, January 03, 2008 10:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex SSL over AMF with ColdFusion
services-config.xml

Thanks Peter. My assumption was that if I'm loading via https, the
secure channel would be used. If not, the unsecure channel would be
used. 

I can try the TraceTarget, but where is the flashlog located?

Don

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

 
 If you're loading your SWF via HTTPS then you should be able to make 
 secure connections from the Flash Player. As for the right channel 
 being automatically selected, it depends on whether channel failover 
 happens correctly. I didn't see a destination configuration below, but

 if the channels snippet represents the list of channels for your 
 destination, then I believe it will try to connect using the 
 SecureAMFChannel first and fall back to the AMFChannel on failing. 
 While this might be useful in development, I wouldn't suggest it for 
 deployment - especially if you really do have a requirement to connect
to a secure endpoint.
 
 Can you add mx:TraceTarget / to your MXML, recompile, and then debug

 or look at flashlog.txt for more information about what might be going

 wrong in the channel connection phase?
 
 
 
 
 
 
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of nasawebguy
 Sent: Wednesday, January 02, 2008 8:45 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex SSL over AMF with ColdFusion 
 services-config.xml
 
 When I use smartsniff/Charles, my remoteObject content is not 
 encrypted/https/port 443. IE/Firefox shows SSL to the user, eventhough

 the data is NOT actually encrypted over AMF!
 
 Below is my services-config.xml file and remoteObject code snips.
 
 I've been researching this all day with no clear solution. As I 
 understand it so far, I should be able to use two channels in my 
 ColdFusion destination and the correct channel would be used 
 automatically. Not the case. I need https pages to use SSL and http 
 pages to not.
 
 I tried splitting them up into two destinations, ColdFusion and 
 ColdFusionSecure, in the same services-config, but I keep getting 
 errors that ColdFusionSecure cannot be found, when it is used at the 
 remoteObject destination.
   
 I'd appreciate any suggestions.
 
 Thanks,
 Don
 
 channels
 channel ref=my-secure-cfamf/
 channel ref=my-cfamf/
 /channels
 
 
 channel-definition id=my-cfamf
 class=mx.messaging.channels.AMFChannel
 endpoint
 uri=http://{server.name}:{server.port}/flex2gateway/;
 class=flex.messaging.endpoints.AMFEndpoint/
 
   properties
 polling-enabledfalse/polling-enabled
 serialization
 instantiate-typesfalse/instantiate-types
 /serialization
 /properties
 /channel-definition
 
 channel-definition id=my-secure-cfamf
 class=mx.messaging.channels.SecureAMFChannel
 endpoint
 uri=https://{server.name}:{server.port}/flex2gateway/;
 class=flex.messaging.endpoints.SecureAMFEndpoint/
 
   properties
   
 add-no-cache-headersfalse/add-no-cache-headers
 polling-enabledfalse/polling-enabled
 serialization
 instantiate-typesfalse/instantiate-types
 /serialization
 /properties
 /channel-definition
 
 
 mx:RemoteObject 
   id=cfdata showBusyCursor=true 
   destination=ColdFusion source=flex.secure.send
   mx:method name=sendUpdate 
   result=sendUpdate_Result(event)
   fault=sendUpdate_Fault(event) /
   /mx:RemoteObject
 
 
 
 --
 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





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





RE: [flexcoders] Re: Flex SSL over AMF with ColdFusion services-config.xml

2008-01-03 Thread Peter Farland

In /WEB-INF/flex/remoting-config.xml, you can either set the default
channel to be just my-secure-cfamf, or explicity configure the channels
on the destination in question.

If you set the RO channelSet property it will use that ChannelSet to
connect rather than the configuration (in fact, you can stop specifying
-services command line configuration argument if you manually create
your own ChannelSets for RemoteObject based apps) - just make sure you
only assign one channel in the channelset and then use this simplified
scenario to debug what the problem is (rather than complicating it with
failover URLs etc).

One thing you may have to do is check if it's a problem only in MSIE. If
it is, you may be running into the known issue with HTTPS responses that
contain no-cache headers. You seem to have the correct
add-no-cache-headers property set to false in your secure
channel-definition, but that's not a guarantee that something else is
not adding this header, such as another filter upstream or even your
webserver. You should use a client side HTTP Sniffer such as Paros Proxy
with MSIE which will allow you to see your HTTPS responses decrypted to
check raw header information.

Also watch out for known issues with MSIE and chunked encoded + gzip
compressed responses over SSL as this will also fail.

Finally, if you find that it's an issue with Firefox only... there is
one obscure but known issue with this platform. If your SWF is hosted
somewhere other than the CF server, then a crossdomain.xml is probably
being requested first before your connection is made (due to sandbox
security requirements of the Flash Player in the browser). If this
request for crossdomain.xml is challenged for HTTP Basic credentials
over an SSL connection that contains a port then it may just fail
silently.


RE: [flexcoders] Flex SSL over AMF with ColdFusion services-config.xml

2008-01-02 Thread Peter Farland

If you're loading your SWF via HTTPS then you should be able to make
secure connections from the Flash Player. As for the right channel being
automatically selected, it depends on whether channel failover happens
correctly. I didn't see a destination configuration below, but if the
channels snippet represents the list of channels for your destination,
then I believe it will try to connect using the SecureAMFChannel first
and fall back to the AMFChannel on failing. While this might be useful
in development, I wouldn't suggest it for deployment - especially if you
really do have a requirement to connect to a secure endpoint.

Can you add mx:TraceTarget / to your MXML, recompile, and then debug
or look at flashlog.txt for more information about what might be going
wrong in the channel connection phase?






 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nasawebguy
Sent: Wednesday, January 02, 2008 8:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex SSL over AMF with ColdFusion
services-config.xml

When I use smartsniff/Charles, my remoteObject content is not
encrypted/https/port 443. IE/Firefox shows SSL to the user, eventhough
the data is NOT actually encrypted over AMF!

Below is my services-config.xml file and remoteObject code snips.

I've been researching this all day with no clear solution. As I
understand it so far, I should be able to use two channels in my
ColdFusion destination and the correct channel would be used
automatically. Not the case. I need https pages to use SSL and http
pages to not.

I tried splitting them up into two destinations, ColdFusion and
ColdFusionSecure, in the same services-config, but I keep getting
errors that ColdFusionSecure cannot be found, when it is used at the
remoteObject destination.
  
I'd appreciate any suggestions.

Thanks,
Don

channels
channel ref=my-secure-cfamf/
channel ref=my-cfamf/
/channels


channel-definition id=my-cfamf
class=mx.messaging.channels.AMFChannel
endpoint
uri=http://{server.name}:{server.port}/flex2gateway/;
class=flex.messaging.endpoints.AMFEndpoint/ 

properties
polling-enabledfalse/polling-enabled
serialization
instantiate-typesfalse/instantiate-types
/serialization
/properties
/channel-definition

channel-definition id=my-secure-cfamf
class=mx.messaging.channels.SecureAMFChannel
endpoint
uri=https://{server.name}:{server.port}/flex2gateway/;
class=flex.messaging.endpoints.SecureAMFEndpoint/ 

properties

add-no-cache-headersfalse/add-no-cache-headers
polling-enabledfalse/polling-enabled
serialization
instantiate-typesfalse/instantiate-types
/serialization
/properties
/channel-definition


mx:RemoteObject 
id=cfdata showBusyCursor=true 
destination=ColdFusion source=flex.secure.send
mx:method name=sendUpdate 
result=sendUpdate_Result(event)
fault=sendUpdate_Fault(event) /
/mx:RemoteObject



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





RE: [flexcoders] HTTPService call using a private SSL cert PEM

2007-12-27 Thread Peter Farland
What does the AS3 params variable look like, is it of type XML? 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of robbarreca
Sent: Tuesday, December 25, 2007 6:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HTTPService call using a private SSL cert PEM

I have a REST web services call that uses a private SSL cert to
authenticate communication. It works in PHP and command line cUrl, but I
don't know how to pass the PEM file in the Flex 3 / Actionscript 3.0
HTTPService call. Is it possible? 

Below I give my PHP and cUrl snippets that work now, and followed by the
beginning of my Flex service call. How do I pass the PEM to that Flex
call so Flex can securely talk to the REST web service over this private
SSL cert?

-
PHP
-

This worked in PHP where $cert contained the path to the PEM file.

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch,
CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,
FALSE); curl_setopt($ch, CURLOPT_SSLCERT, $cert);

-
cUrl (command line)
-

This worked in command line cUrl, where client.pem contains a private
PEM file for privatesslcerthost.com.

curl ... --cert-type PEM --cert client.pem 

---
Flex code
---

This needs to pass the PEM in the HTTPService call. How do I do it?

service = new HTTPService();
service.contentType = text/xml;
service.resultFormat = e4x;
service.useProxy = false;
service.method = POST;
service.addEventListener(ResultEvent.RESULT, onRestCallResult);
service.addEventListener(FaultEvent.FAULT, onRestCallFault); service.url
= https://privatesslcerthost.com/; + path; service.send(params);



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





RE: [flexcoders] Re: Debugging RemoteClass serialization [SOLVED]

2007-12-19 Thread Peter Farland
Tom is correct. The compiler starts out from the root class (i.e.
typically your subclass of mx.core.Application) and resolves types as
needed. Types can be found in source path(s) or library path(s). This is
why mxmlc enforces the one public definition per file rule and also
establishes the convention of a sub-package is a sub-directory as it
makes type resolution from sources predictable. Both of these
conventions are Flex specific and not inherent to the ActionScript 3.0
language.

If it were the other way around then I guess you would have to create a
project that explicitly added each source to the configuration (if we
were to scan all sources then ActionScript include fragments would be
invalid definitions etc...). That would seem more of an effort to me...

If the tool were changed to scan all types, including non-referenced
types, for [RemoteClass] metadata then your SWF would be unnecessarily
large because you would start embedded classes that you never intended
to use.



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Wednesday, December 19, 2007 5:49 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Debugging RemoteClass serialization
[SOLVED]

 The compiler, right now, already has to scan *all the other* classes 
 to verify that a particular one is not used, in order to choose to 
 remove it from the SWF if it isn't needed.

Uhh, I'd be surprised if it worked that way, I would expect it to only
include classes that are referenced or imported from code.

--
Tom Chiverton
Helping to enthusiastically transform eligible bandwidth
on: http://thefalken.livejournal.com


Halliwells wishes all of its clients and suppliers the Very Best for
Christmas  the New Year


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

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

CONFIDENTIALITY

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

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


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





RE: [flexcoders] Re: Debugging RemoteClass serialization [SOLVED]

2007-12-19 Thread Peter Farland

 Peter, why should the size of the SWF increase
 unnecessarily including all the classes marked
 with [RemoteClass] metadata?

[Pete] There's 4 usages of [RemoteClass] in framework.swc, 21 usages in
rpc.swc, and 15 usages in fds.swc.



 I still think that referencing all the classes
 by hand in my code is not really a viable
 solution...

 As I said in a previous post, a way to include
 an entire package of classes (compiler
 switch/ide support) would at least allow us to

[Pete] If you had your DTOs in a separate Flex Library project and
created a SWC, you should be able to use -compiler.include-libraries to
force all of the classes in the SWC to be added to the SWF.

Alternatively, if you have a tool that is code-generating the DTOs, then
getting it to also generate a simple class that has a list of static
vars in it should be all you need to introduce a dependency.


RE: [flexcoders] BlazeDS and Java 5 Enum Support - works only one way?

2007-12-19 Thread Peter Farland
If you have an Enum argument in a Java method, you need to send it a
String. During method invocation, BlazeDS will use
Enum.valueOf(desiredClass, yourStringValue) to create an enum on your
behalf.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of moonusamy
Sent: Wednesday, December 19, 2007 3:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] BlazeDS and Java 5 Enum Support - works only one
way?


If I have a Java method that returns an Enum, it seems to be serialized
ok as a String, but if I have a Java method that takes an Enum argument,
I get the same error I used to get before with LCDS 2.5.1:

faultDetail = Types cannot be instantiated without a public, no
arguments constructor.

Java 5 Enums don't have public no-arg constructors.

Unless I am missing something, Enum support in BlazeDS works only one
way. Anyone hit this?

Vijay




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





RE: [flexcoders] Re: Looking for component to generate PDF files

2007-12-19 Thread Peter Farland
Note that in Flex 2.0.1 HF2 + LCDS 2.5.1 we added a simple feature that
allowed a Flex developer to send XML data to a RemoteObject destination
and call a helper Java API that would inject this XML into a XDP or PDF
an serve as an XFA dataset.

Note that for image capture, you can scale the capture size to a get a
higher resolution and thus a better DPI for printing by applying an
affine transformation (see the Matrix class) when using
flash.utils.BitmapData.draw().

Pete

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sprezzatura1
Sent: Wednesday, December 19, 2007 4:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Looking for component to generate PDF files

Thanks, I was not aware of this resource. Looks like it might come in
handy in the future.

However, PDFonline are geared to receive text-type files as input (DOC,
HTML, RTF, text). Our app creates vector graphics (curves, polygons,
gradients). I don't believe PDFonline would be able to process the
graphics input. (I have sent them an inquiry).

Converting to an image (JPG, BMP) is not an option because it gets
coarse and pixellated as you zoom in. Vector remains crisp and sharp.

Pierre

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

 I don't know of any flex/flash components that can accomplish this,
but you
 may be able to workaround your server limitations. There are at
least a few
 free online pdf creators (such as https://www.pdfonline.com). Maybe
you can
 mashup with one of them and use that to create the pdf.
 
 -Sam
 
 



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





RE: [flexcoders] Remove Object ref

2007-12-18 Thread Peter Farland

delete obj.second; 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt
Sent: Tuesday, December 18, 2007 9:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Remove Object ref

In ActionScript if I create:

var obj:Object = new Object();
obj.first = 'One';
obj.second = 'Two';
obj.third = 'Three';

and then I want to remove 'second' from the Object how would I do so?
I've tried setting it to null:

obj.second = null;

However, that leaves it still existing if I iterate over it. Is there
any way to completely remove it?



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





RE: [flexcoders] Re: Debugging RemoteClass serialization [SOLVED]

2007-12-18 Thread Peter Farland

Unfortunately that would involve the compiler scanning all of the
classes (source or swcs) in the project to find [RemoteClass] metadata,
so this will make it in Flex Builder 3.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Cosma
Sent: Tuesday, December 18, 2007 11:18 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Debugging RemoteClass serialization [SOLVED]

I've found the problem.

Enabling the 'debug' logging level, I saw that my services are returning
subclasses of SoggettoVO.. my local VOs are correctly extending
themself, so it is fine to consider all those objects as instances of
SoggettoVO class, but those other subclasses are never referenced in my
code.. then, yes, it was the linker optimization issue :)

It would be really a great improvement if the flex compiler was so smart
to keep the classes marked with the [RemoteClass] metadata in the SWF,
even if not referenced in the code.. any hope to see this in the final
build of FlexBuilder 3? (maybe it's already like this - I'm still using
the SDK version 2.0.1 to use LCDS 2.5)

Again, I want to thank Johnny and Den for their help.

Cosma






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





RE: [flexcoders] Re: Debugging RemoteClass serialization [SOLVED]

2007-12-18 Thread Peter Farland
Sorry, that is, this will NOT make it into Flex Builder 3 :) 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Farland
Sent: Tuesday, December 18, 2007 11:26 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Debugging RemoteClass serialization
[SOLVED]


Unfortunately that would involve the compiler scanning all of the
classes (source or swcs) in the project to find [RemoteClass] metadata,
so this will make it in Flex Builder 3.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Cosma
Sent: Tuesday, December 18, 2007 11:18 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Debugging RemoteClass serialization [SOLVED]

I've found the problem.

Enabling the 'debug' logging level, I saw that my services are returning
subclasses of SoggettoVO.. my local VOs are correctly extending
themself, so it is fine to consider all those objects as instances of
SoggettoVO class, but those other subclasses are never referenced in my
code.. then, yes, it was the linker optimization issue :)

It would be really a great improvement if the flex compiler was so smart
to keep the classes marked with the [RemoteClass] metadata in the SWF,
even if not referenced in the code.. any hope to see this in the final
build of FlexBuilder 3? (maybe it's already like this - I'm still using
the SDK version 2.0.1 to use LCDS 2.5)

Again, I want to thank Johnny and Den for their help.

Cosma






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





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





RE: [flexcoders] Array handling from Beta 2 to Beta 3?

2007-12-17 Thread Peter Farland
Based on your syntax, it looks like you're trying to return a .NET
DataSet from a WebService?
 
Have you checked the data type of table? Perhaps it's not an Array? If
WebService's makeObjectsBindable property is set to true (which it is by
default), perhaps you already have an ArrayCollection (in which case the
constructor for ArrayCollection does not expect another
ArrayCollection... if you're trying to cast, remove the new keyword or
use the as operator... there's no automatic coercion into
ArrayCollection)?
 
To answer your question, there's nothing different at a low level in
Beta 3 (let alone Flex 3) about how it handles Arrays or
ArrayCollections. However, the answer will be in what the e.result
object graph looks like. You can either use the Flex Builder debugger or
use trace() with mx.utils.ObjectUtil.toString(e.result) to get a better
picture about what this object graph might have in terms of types etc...
 
Note that while strongly-typed WebService decoding for .NET DataSets was
added in Beta 2, bugs may have been fixed since. A scenario that may
explain the change is that perhaps now the makeObjectsBindable property
is now correctly honored for the collection or Rows in such a DataSet.
 
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Clinton D. Judy
Sent: Monday, December 17, 2007 9:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Array handling from Beta 2 to Beta 3?



I used to have this code working in Flex 3 Beta 2:

 

var table:* = e.result.Tables.Table0.Rows;

JFA = new ArrayCollection(table);

 

Now that I've installed Flex 3 Beta 3, I'm getting a 1034 error, where I
can't convert mx:collections:ArrayCollection to an Array. But it still
appears that the Beta 2 version is running fine, as it should just be
converting an ArrayCollection to an ArrayCollection. Does Beta 3 handle
arrays and arraycollections much differently?

 

Clinton Judy

Web Developer

Glenn O. Hawbaker, Inc.

 

 


RE: [flexcoders] Flex 3 Beta 3: Servlet MessageBrokerServlet is not available??

2007-12-17 Thread Peter Farland
Is the URL correct?
 
Can you check your /WEB-INF/web.xml and check it has the servlet and
servlet-mapping defined for MessageBrokerServlet?
 
If it is there, can you check your server logs to see if there was an
error initializing your web application?
 
Did you try and merge any WAR files together during this upgrade?
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin
Sent: Monday, December 17, 2007 1:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 3 Beta 3: Servlet MessageBrokerServlet is not
available??


All of a sudden after upgrading to Flex 3 Beta 3 I am getting the
following error.

faultDetail=Channel.Connect.Failed error NetConnection.Call.Failed:
HTTP: Failed: url: 'http://localhost:8080/myApp/messagebroker/amf'

When I try to access the url directly I get:

 Servlet MessageBrokerServlet is not available
The requested resource (Servlet MessageBrokerServlet is not available)
is not available.

Obviously some resource disappeared or got corrupted.  Any idea how I
can remedy this?  Not sure where this resource is located?

- Kevin
 


RE: [flexcoders] Re: How to send Arrays in WebService request???

2007-12-17 Thread Peter Farland

In Flex 3 SDK builds 189998 or later, you should be able to set the
forcePartArrays on the WS operation:

myWebService.myOperation.forcePartArrays = true;

Regards,
Pete

P.S. Another issue is for RPC-Encoded operations responses - by default
these decode as an Array, but often you want to reference multiple parts
by name as an Object (note that for document-literal operation responses
Object is the default). From 189998 onwards, the existing behavior was
left as is for backwards compatibility, but you will also be able to
control this by setting for any operation style by setting the
multiplePartsFormat:

myWebService.myOperation.multiplePartsFormat = object; // the
alternative is array

 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Monday, December 17, 2007 2:01 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: How to send Arrays in WebService
request???

On Thu, Dec 13, 2007 at 08:26:17AM -0800, Peter Farland wrote:

 note that Beta 3 was just released). Note that very recently (build
 189998) further properties were added to the ISOAPDecoder interface to

 provide more control over how possibly-reoccuring result parts are 
 decoded in a response. The existing behavior was preserved, but when 
 we get more details about your response we'll be able to see whether 
 you can take advantage of these settings.

What are these settings and what do they affect?  The behavior where the
webservice call returns an object if it finds a single element versus an
array if it finds multiple elements, for an element whose maxOccurs is
defined as unbounded in the schema, is driving us insane.


-Jeff


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





RE: [flexcoders] Re: How to send Arrays in WebService request???

2007-12-13 Thread Peter Farland
Hi Peter,
 
Thankyou for logging that bug (although we require a WSDL and any
imported XML Schemas to be provided with any WebService bug logged,
would you mind adding that too?).
 
We expect Arrays to be marshalled correctly for both requests and
responses. However, there's not just one scenario for encoding an Array
and not one scenario for decoding Array - in fact, there are many
scenarios. The WSDL will help us narrow down which particular scenario
you're dealing with...
 
You mentioned the response isn't handled as you wanted it. Did you add
further details in your bug about what you want the response to look
like as well? 
 
In general, when logging bugs, please try to stay with the latest
nightly builds of the SDK. Much work has been done since Beta 2 (and
note that Beta 3 was just released). Note that very recently (build
189998) further properties were added to the ISOAPDecoder interface to
provide more control over how possibly-reoccuring result parts are
decoded in a response. The existing behavior was preserved, but when we
get more details about your response we'll be able to see whether you
can take advantage of these settings.
 
Regards,
Pete
 
 




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Connolly
Sent: Thursday, December 13, 2007 1:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to send Arrays in WebService request???


I just discovered what looks like another, related bug.

A web service response containing arrays marshals correctly under Flex
2, but under Flex 3 Beta 2 returns 'null's in the 1st array encountered
in the response.

I've opened yet another bug about this one:


Web service array marshalled correctly in Flex 2 not marshalled
in Flex 3
https://bugs.adobe.com/jira/browse/SDK-13968


So now I'm between a rock and a hard place.  I have a set of web
services that use arrays in requests and in responses.  Flex 2 doesn't
handle response arrays.  And Flex 3 is WORSE because it's not handling
request OR response arrays correctly.

 


RE: [flexcoders] How to do equivalent of makeObjectsBindable=false on mx:Consumer

2007-12-12 Thread Peter Farland
Hey Robin,

 Tried that out but it didn't seem to have any
 effect - the collections were still wrapped. 
 Isn't that setting more to do with AMF 1/2/3
 - wouldn't the array collection wrapping take
 place inside the mx.messaging client code?  

What client Channel and server Endpoint are you using? What messaging
service adapter are you using?

As far as I know client Consumers do not do any wrapping. You should be
able to turn on Debug level logging for the Endpoint.* category in your
/WEB-INF/services-config.xml, restart your application, and watch the
console log to see what AMF type is being sent for your AsyncMessage
body property (assuming that it's this property that you don't want to
be wrapped).

I suspect something on the server is returning a collection type that is
perhaps being special cased because it is Externalizable.



RE: [flexcoders] conflict between 2 HTTPService objects

2007-12-12 Thread Peter Farland
There is a browser dependent limit on the number of concurrent HTTP
connections that can be made to a given domain. For HTTP 1.1 this is
typically set to 2 connections for a given domain. Can you try making
your second HTTPService call to another domain to see if it has any
effect?

Pete

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of yannick_legarff
Sent: Wednesday, December 12, 2007 11:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] conflict between 2 HTTPService objects

Hi,

I'm using 2 HTTPService objects in parallel and the flash player seems
to be confused with that in a particular situation.


I'm using the first HTTPService to retrieve asynchronous events from an 
http api server.
To use this api, I have first to register. Then I send an http POST 
request with an xml content (get_event). The api server sends me the 
response only once it has something to tell me (it could be few minutes 
after my request). This part works fine.

I use my second HTTPService in a more regular way to retrieve 
information from an http api servers. In this case the server sends me 
the response to my request immediately.

This second HTTPService works fine alone. But if I have sent a request 
with my first HTTPService (and if I'm still waiting from a server 
response), the request is not sent. I see that by analysing the TCP/IP 
trafic.
Even more strange: when I receive a response in my first HTTPService, 
the, the request from the second HTTPService is finally sent ...


Thanks for any hint to bypass this problem.
Except if it is a bug in the flash player, I don't understand why an 
HTTPService could disturb another one.

John



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





RE: [flexcoders] Re: How to send Arrays in WebService request???

2007-12-12 Thread Peter Farland
Did you get a chance to try out the latest SDK nightly build from Flex 3
on Adobe Labs?

http://labs.adobe.com/technologies/flex/sdk/flex3sdk.html

Pete


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Connolly
Sent: Wednesday, December 12, 2007 12:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to send Arrays in WebService request???

Meanwhile, found this thread:

Web Services and Arrays
http://tech.groups.yahoo.com/group/flexcoders/message/95853

that describes something similar to my problem.

But changing to resultFormat=e4x' does not do the trick.


RE: [flexcoders] Re: How to send Arrays in WebService request???

2007-12-12 Thread Peter Farland
I would log it regardless just to make sure it doesn't slip through the
cracks. 

http://bugs.adobe.com/flex/

Please let me know the bug number if you do log it.

Thanks,
 Pete
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Connolly
Sent: Wednesday, December 12, 2007 7:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to send Arrays in WebService request???

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

 Did you get a chance to try out the latest SDK nightly build from Flex

 3 on Adobe Labs?
 
 http://labs.adobe.com/technologies/flex/sdk/flex3sdk.html
 
 Pete
I downloaded Flex 3 Beta 2 Builder (stand-alone), rebuilt the app and
retried the same request.  Same problem.

I then downloaded and unzipped the latest nightly build (190753), fired
up F3B2BSA again, rebuilt the app and retried the request. 
Still no progress.

Any idea if this is already posted as a bug?




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





RE: [flexcoders] How to do equivalent of makeObjectsBindable=false on mx:Consumer

2007-12-11 Thread Peter Farland
You can try setting the following property in your services-config.xml
channel-definition(s):
 
...
properties
serialization
legacy-collectiontrue/legacy-collection
/serialization
/properties
...
 
Note that properties that are returned as normal Arrays will not detect
property change events and will not be bindable or managed.
 
Pete



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Robin Hilliard
Sent: Tuesday, December 11, 2007 8:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to do equivalent of
makeObjectsBindable=false on mx:Consumer


Hi All, 

Just trying to avoid having arrays in my message bodies wrapped as
ArrayCollections (because I am trying to pass them out through
ExternalInterface.call() as normal arrays).  makeObjectsBindable seems
to only apply to RPC services, any ideas on the messaging side?

Thanks,
Robin







Robin Hilliard


CEO - RocketBoots Pty Limited
Consulting . Recruitment . Software Licensing . Training
http://www.rocketboots.com.au http://www.rocketboots.com.au 


switch+61 (0)2 9323 2500
fax   +61 (0)2 9323 2501
direct+61 (0)2 9323 2507
mobile+61 (0)418 414 341
email [EMAIL PROTECTED]


 


RE: [flexcoders] Re: Web Services and Arrays

2007-12-07 Thread Peter Farland
Can you log a bug here?

http://bugs.adobe.com/flex/

Also, can you try out a nighty build of the Flex 3 Pre-release to see if
this has been fixed already?

http://labs.adobe.com/technologies/flex/sdk/flex3sdk.html

Pete
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of triggersoftware
Sent: Friday, December 07, 2007 10:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Web Services and Arrays

That's rubbish!  Who at Adobe do I have to bribe?

I've never submitted a Bug report to Adobe before.  Where should it be
done?

Here ? http://www.adobe.com/bin/fp9betafeedback.cgi



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





RE: [flexcoders] Re: Sloooooow Flex Builder

2007-12-06 Thread Peter Farland
Make sure that you're not using a JVM that has IO performance issues...
Java 1.5.0_07 is known to have IO problems that seriously slows down
compilation, on both PC and Mac. Try to move to Java 1.5.0_13 which has
proven to have resolved this issue (note for Mac, Java 1.5.0_13 ships
with Leopard OS).

For Java 1.4.2, I suggest getting the latest possible. There are issues
in Java 1.4.2_02 through Java 1.4.2_05, and 1.4.2_10. If you can avoid
these particular update versions it will make life simpler.

Pete 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of denny431
Sent: Thursday, December 06, 2007 2:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Sloow Flex Builder

Forgot to note:

Plug In version

would be eclipse.ini



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

 
 I had the same problem on large Flex projects.
 Try adjusting the settings in FlexBuilder.ini file.(Standalone
 version)
 
 You can increase the amount of memory alloted to Flex Builder.
 
 Such as:
 -vmargs
 -Xms512M
 -Xmx1024M
 -XX:MinHeapFreeRatio=20
 
 DJM
 
 
 
 
 --- In flexcoders@yahoogroups.com, Paul Andrews paul@ wrote:
 
  Plenty of disc space?
  
  - Original Message -
  From: Tim Ashworth tim@
  To: flexcoders@yahoogroups.com
  Sent: Thursday, December 06, 2007 4:52 PM
  Subject: RE: [flexcoders] Sloow Flex Builder
  
  
   One project open, sometimes save to a network drive, sometimes
 save
   locally,
   always slow.
  
   I learnt about the open project thing and that's made things
 better, but
   really it's still pretty unbearable.
  
   -Original Message-
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
   Behalf Of Tom Chiverton
   Sent: 06 December 2007 13:10
   To: flexcoders@yahoogroups.com
   Subject: Re: [flexcoders] Sloow Flex Builder
  
   On Thursday 06 Dec 2007, Tim Ashworth wrote:
   pauses on saves or just get used to sitting on my hands
looking 
 out
   the window (at the rain)?
  
   Are you saving locally or to a network ? Do you have an on-
access 
 virus
   scanner running ? How many projects do you have open ?
  
   --
   Tom Chiverton
   Helping to preemptively extend value-added methodologies
   on: http://thefalken.livejournal.com
  
   
  
   Please note, as of 10th December 2007 the registered office
 address of
   Halliwells LLP will be at 3 Hardman Square, Spinningfields,
 Manchester, M3
   3EB
  
   
  
   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 Solicitors Regulation Authority.
  
   CONFIDENTIALITY
  
   This email is intended only for the use of the addressee named
 above and
   may
   be confidential or legally privileged.  If you are not the
 addressee you
   must not read it and must not use any information contained in
 nor copy it
   nor inform any person other than Halliwells LLP or the
addressee 
 of its
   existence or contents.  If you have received this email in
error 
 please
   delete it and notify Halliwells LLP IT Department on 0870 365
 2500.
  
   For more information about Halliwells LLP visit
 www.halliwells.com.
  
  
   --
   Flexcoders Mailing List
   FAQ: 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives: http://www.mail-archive.com/flexcoders%
 40yahoogroups.com
   Yahoo! Groups Links
  
  
  
  
  
  
   --
   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
  
  
  
  
 





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





RE: [flexcoders] URL of the loaded swf.

2007-12-04 Thread Peter Farland
Also note that if you're using Modules, you can get the URL used to load
each module swf via the Module's loaderInfo.url property.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Maximilian Nyman
Sent: Tuesday, December 04, 2007 6:38 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] URL of the loaded swf.

Application.application.url



RE: [flexcoders] Issues with Dynamic vs. Embedded Font Leading

2007-12-01 Thread Peter Farland
Are you using Flex and are you relying on MXMLC to do the embedding? Or
are you using Flash to first to do the embedding?

If it's Flex, what version of Flex and how are you embedding them? Are
you using a CSS @font-face rule? Are you using local() or url() as the
source of the font definition? Can you show me the font-manager section
of your flex-config.xml file?

Pete 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jon Bradley
Sent: Thursday, November 29, 2007 8:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Issues with Dynamic vs. Embedded Font Leading

This might've been brought up before, but I can't find reference to it.

I'm working on an application that is rendering text fields (multiline,
print resolution) on the client end that will be rendered on the server,
currently using GDI+ (but other options are open).

Photoshop, InDesign and Quark are my baselines. They all handle and deal
with font leading identically for all fonts that I've tested, barring
any slight shifts due to antialiasing.

Flash on the other hand yikes. By using some simple trickery, font
leading on device fonts can mimic identically, to the pixel almost, any
leading in the above 3 stated applications.

Embedded fonts, on the other hand, incorrectly render leading, always. I
say incorrectly because it's not how any other desktop print application
does it, so far as I can tell. Maybe it's an issue with the way saffron
was designed .. how is Flash calculating this?

Flash is definitely not rendering line spacing/leading correctly, but I
cannot figure out what it is doing to calculate this. If I can get that
taken care of, I have the rest of the situation solved (tracking,
margins, etc.), matching photoshop as my baseline.

Anyone in the know about this?

thanks in advance,

- jon


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





RE: [flexcoders] Web Service Enumerations...Is this a bug?...need help!

2007-11-30 Thread Peter Farland
Hotfix is a misnomer as applied to the WebService feature - Flex 2.0.1
HF2 coincided with LCDS 2.5 and a new stricter, E4X based implementation
of WebService was developed during the LCDS 2.5 release. Many more
schema situations were supported and more fixes have been made since,
but the effort today is directed to the Flex 3 release.
 
To get the latest nightly builds of the pre-release version of Flex 3
SDK, see Adobe Labs:
 
http://labs.adobe.com/technologies/flex/sdk/flex3sdk.html
 
If you could try a later SDK out and let us know if any bugs remain
(best way is to log a bug at http://bugs.adobe.com/flex/ by providing a
snippet of code, the wsdl, and an XML capture of the response if it's a
decoding issue) that'd be really helpful.
 
Note, when you say the enumeration behavior is not working as expected,
are values missing in the encoded or decoded output, or were you hoping
for validation? Right now we do not validate the content but simply use
the schema to encode and decode content.
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin
Sent: Friday, November 30, 2007 2:06 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Web Service  Enumerations...Is this a
bug?...need help!


I am wondering if this is related to the problem I am having: 

https://bugs.adobe.com/jira/browse/FB-9521

Is there a way to see what was changed in the HotFix?  My web services
are not behaving as expected and I am wondering if this is a bug.  I
would love to hear from anyone else who has experience with using web
services regularly.

- Kevin


On Nov 30, 2007, at 12:47 PM, Kevin wrote:




Has anyone been successful accessing web services (with the 
WebService classes) that include an enumeration in them. I
cannot 
get it to work properly and no one seems to have an answer (even
the 
support people at the web service company...). Take a look at
this 
WSDL to see the structure of the webservice I am trying to
access.

http://ws.strikeiron.com/USAddressVerification4_0?WSDL
http://ws.strikeiron.com/USAddressVerification4_0?WSDL 

Thanks for the help... I am getting desperate.

- Kevin





 


RE: [flexcoders] Re: Actionscript: Copy an Object or Dictionary

2007-11-30 Thread Peter Farland
mx.utils.ObjectUtil.copy() won't work for Dictionary or Class as these
types are not supported by AMF. (I logged bug SDK-13787 to track this).

(Also, I think it doesn't make sense to copy a Class instance in AS3 as
there is only one definition per application domain).

Pete


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of polestar11
Sent: Friday, November 30, 2007 10:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Actionscript: Copy an Object or Dictionary

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

  it only copies over object values, not exact values.
 
 Huh?
 
 

@Tom
How would one bind the keys to the new dictionary children?
var newDict:Dictionary = new Dictionary(); var item:Class for each(item
in myDictionary) { newDict[?] = item; }

@ben
If I have an object containing types (in my case a collection of Class
types referenced by a key string). Using the ObjectProxy.copy(), the new
object will contain child objects with the same keys as the original,
but the child types are Object types, not Class types.





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





RE: [flexcoders] Registering flashvar variables properly?

2007-11-30 Thread Peter Farland
Right, HTTPService.url isn't marked [Bindable]. Programmatically
updating it as needed should work, as Tracy mentioned.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Friday, November 30, 2007 6:13 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Registering flashvar variables properly?


 I had to finally resort to giving the HTTPService object an id
 
The HTTPService object already had id=contactform.
 
 and adjusting that object's ID inside of the initialize block. 
 
Do you mean adjusting the HTTPService's 'url' property?
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lex
Sent: Friday, November 30, 2007 2:26 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Registering flashvar variables properly?



Whatever I tried, it just wouldn't work.
 
I had to finally resort to giving the HTTPService object an id, and
adjusting that object's ID inside of the initialize block.  Doing that,
worked.  Setting the HTTPService url to the bindable var inside of the
XML markup, was a no-go.
 
 
 
 

- Original Message - 
From: Tracy Spratt mailto:[EMAIL PROTECTED]  
To: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com  
Sent: Friday, November 30, 2007 5:23 PM
Subject: RE: [flexcoders] Registering flashvar variables
properly?




Oops, missed that, but of course, otherwise this[i] = would
have errored, since Application is not dynamic.



Thanks' for the correction, Gordon, and never-mind, Alex.



So, Alex, this: url= {scrmurl}xmlrpc/request.php  should
work.  How about when you do your send(), you verify scrmurl has the
string in it?



You might also try a different style of binding/assignment:

url= {scrmurl + 'xmlrpc/request.php'}



Tracy









From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith
Sent: Friday, November 30, 2007 4:40 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Registering flashvar variables
properly?



scrmurl isn't a dynamic property.. it's declared at compile time
as a public var, and should be bindable. 



- Gordon







From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt
Sent: Friday, November 30, 2007 12:23 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Registering flashvar variables
properly?

You won't be able to {bind} to dynamically created properties
easily.  There may be a way to set up a binding using AS, not sure.  

You could just set the url directly in initApp().

Tracy






From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of flexnubslice
Sent: Friday, November 30, 2007 2:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Registering flashvar variables properly?

Hi,

   I'm busting my head against the wall on this one, I have to
say that Flex is pretty frustrating when you otherwise code C++ or Java
by trade.

   Poking around, I have found how to pass variables into Flex
apps using flashvars.  If I check the Application.application.parameters
value, they are all there.  So far so good.

   What I need to do, is pass a proxy URL from HTML, into Flex,
that will be used as a url parameter for an HTTPService.

I have for example:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute height=380 width=450 alpha=1.0
initialize=initApp();

mx:Script
![CDATA[

[Bindable]
public var scrmurl:String;

private function initApp():void{
var elements:Array = [ scrmurl ]; // there's
quite a few of these..

for( var i:String in elements ){
if( Application.application.parameters[i] )

this[i] =
Application.application.parameters[i];
}
}
]]
/mx:Script

mx:HTTPService
contentType=application/x-www-form-urlencoded
id=contactform
method=POST
resultFormat=e4x
showBusyCursor=true
url= {scrmurl}xmlrpc/request.php
useProxy=false
fault=handleFault( event )

RE: [flexcoders] Re: 2032 Stream error, only in IE6.

2007-11-29 Thread Peter Farland
Are you using HTTPS by any chance? Richard's suggestion is attempting to
get around the known issue of no-cache headers which cause problems in
MSIE in certain scenarios, particularly when SSL is used. I've also seen
issues with this header and when chunked encoding is used along with
gzip.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Abyss Knight
Sent: Thursday, November 29, 2007 10:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: 2032 Stream error, only in IE6.

Also, running ServiceCapture, strangely fixes the issue as it is
proxying the requests.

Very, very weird runtime error.

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

 I moved the SWF to the same server as the data source, and it is still

 erroring. Also, I pass a cache buster and have the following cache 
 control headers in the PHP scripts:
 
 Header('Cache-Control: no-cache');
 Header('Pragma: no-cache');
 
 Still no dice. 
 
 Thanks for the response, I appreciate it. :)
 
 -- William
 
 --- In flexcoders@yahoogroups.com, Richard Rodseth rrodseth@
wrote:
 
  Could be the cache issue. Try PHP equivalent of:
  
  response.setHeader(Cache-Control, max-age=0,
 must-revalidate);
  
  On Nov 29, 2007 7:29 AM, Abyss Knight briggins@ wrote:
  
 I'm getting a 2032 Stream error in IE6, and only in IE6. It
works in
   IE7, FF2, and even Safari but not in IE6. I have a crossdomain
file on
   the target server, and I have done a Security.allowDomain('*') as 
   well. Anyone have any idea why this would be happening? Somehow 
   this past QA, so I need to get it fixed pretty quick. ;) I'm sure 
   you all know how that goes. Anyways, here's the error details:
  
   (mx.messaging.messages::ErrorMessage)#0
   body = (Object)#1
   clientId = DirectHTTPChannel0
   correlationId = 86375043-9D26-EB56-F2BD-8BF26D5633AC
   destination = 
   extendedData = (null)
   faultCode = Server.Error.Request
   faultDetail = Error: [IOErrorEvent type=ioError bubbles=false 
   cancelable=false eventPhase=2 text=Error #2032: Stream Error.
URL:
   http://myurl.com/myfile.php?var=;]. URL:
 http://myurl.com/myfile.php;
   faultString = HTTP request error
   headers = (Object)#2
   messageId = 5956F03D-F7C2-81A0-4E32-8BF26E70038B
   rootCause = (flash.events::IOErrorEvent)#3 bubbles = false 
   cancelable = false currentTarget = (flash.net::URLLoader)#4 
   bytesLoaded = 0 bytesTotal = 0 data = (null) dataFormat = text
   eventPhase = 2
   target = (flash.net::URLLoader)#4
   text = Error #2032: Stream Error. URL:
   http://myurl.com/myfile.php?var=;
   type = ioError
   timestamp = 0
   timeToLive = 0
   [object HTTPService]
  

  
 





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





RE: [flexcoders] JBoss Basic Authentication and Web Services

2007-11-29 Thread Peter Farland

Note setCredentials() is only for when you're contacting LCDS
destinations.

If you want to avoid the Basic Auth dialog, can you try form based
authentication, say using HTTPService?

Pete


 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of triggersoftware
Sent: Thursday, November 29, 2007 9:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] JBoss Basic Authentication and Web Services

My backend developer wants to secure with Basic Authentication the web
services he is going to produce.  Will this work properly with Flex?

I've seen .setCredentials(), but I've seen posts saying that this
doesn't work (http://taylorbarstow.com/tags/air/) and also that when you
*do* manage to subvert Flex to work with Basic Authentication, if the
authentication fails the browser takes over, offering its own popup
login - yuk!

Has anyone had experience in doing this or can point me at tutorials I
seem to have missed?

Cheers,

David.



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





RE: [flexcoders] Tracing HTTPService Data?

2007-11-28 Thread Peter Farland
Please log an enhancement request for tooling to do this inside of Flex
Builder.
 
http://bugs.adobe.com/flex/
 
For now, I'd suggest using an HTTP sniffer. I've found Paros Proxy to
work well as a client side proxy, making it possible to debug HTTPS
requets too.
 
Pete



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lex
Sent: Wednesday, November 28, 2007 2:42 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Tracing HTTPService Data?


Thanks for the response.
 
So there's no built-in debugging service available?  Seems odd that we
have no means to capture HTTP request responses inside of Flex.
 


RE: [flexcoders] Re: Tracing HTTPService Data?

2007-11-28 Thread Peter Farland
You typically add mx:TraceTarget in your top level application MXML
file. While this will show you the body of the request and the
responses, which is generally useful, it does not show you things like
raw HTTP request or response headers (the latter case is why a sniffer
is needed).
 
Pete
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lex
Sent: Wednesday, November 28, 2007 5:50 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Tracing HTTPService Data?


Hi Simon,
 
This info seems to contradict what others have offered in this same
thread.  Where precisely would I add this directive?
 
Thanks.
Alex
 
 

- Original Message - 
From: simonjpalmer mailto:[EMAIL PROTECTED]  
To: flexcoders@yahoogroups.com 
Sent: Wednesday, November 28, 2007 2:42 PM
Subject: [flexcoders] Re: Tracing HTTPService Data?


You can get at the contents of the messages using
mx:TraceTarget on
the client, which will spit a whole load of stuff to your
console in
debug mode. 

I don't use an http service, but I know that on the server you
can
alter the level of logging by adjusting the contents of the
logging
tag in services-config.xml.

hth
Simon 

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

 Hi there,
 
 Thanks in advance for your help. I'm a newcomer to Flex, but
am
 definitely not new to Eclipse being a Java programmer by
trade.
 
 I've set up a basic HTTPService as introductory project, and
quickly
 found that I can add breakpoints into fault and result events.
What I
 cannot find though, is how to trace the data that the HTTP
portal is
 feeding the Flex app. Is there a means to debug the actual
request
data?
 
 Thanks.
 Alex




 


RE: [flexcoders] Confused by context.root, services-config.xml and remoting-config.xml...

2007-11-19 Thread Peter Farland

If you host your SWF inside the same WAR that hosts the remoting
service, then you should be able to programmatically create a ChannelSet
of Channels that is based on the URL that was used to load the SWF (at
runtime you could look at the value of
mx.core.Application.application.url). Did you create a ChannelSet and
add your AMFChannel to that and then set that on your RemoteObject?

 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lawriegallardo
Sent: Monday, November 19, 2007 10:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Confused by context.root, services-config.xml and
remoting-config.xml...

Hi,

I've got an application that uses LCDS RemoteObjects and this worked
fine as a development build - I used the Ant mxmlc task and configured
the services and compiler.context-root properties to point at my
development LCDS web-app and everything was dandy.

However, when I tried to rename my web-app it stopped working... After
some googling I discovered that using {context.root} in your
services-config.xml and building with Flex Builder or mxmlc effectively
hard-codes the endpoint urls for your services into your swf file.

This is an issue for me because I need to be able to do is compile my
app once, but then be able to be able copy this app for different
clients (i.e. each client will have a separate copy of the application
- Client1 will access the app via www.mycomp.com/myapp/client1,
Client2 will access the app via www.mycomp.com/myapp/client2, etc).

I've tried creating an AMFChannel in my client code and setting this as
the channel for my mx:RemoteObjects, but this doesn't seem to work.
I'm guessing I might also need to amend my services-config-xml file to
get this to work???

If anyone can shed any light on this it would be greatly appreciated.

Thanks,

Lawrie



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





RE: [flexcoders] Re: Confused by context.root, services-config.xml and remoting-config.xml...

2007-11-19 Thread Peter Farland
If you're programmatically creating a ChannelSet then I wouldn't use the
endpoint attribute as that might override what you're doing. Also, if
you're only using RPC services like RemoteObject and you're creating
ChannelSets, then you don't need to compile against a
services-config.xml.

Other than that, I'd modify your code to look to see whether the URL was
HTTPS or not so that you'd create a SecureAMFChannel instead of an
AMFChannel.



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lawriegallardo
Sent: Monday, November 19, 2007 11:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Confused by context.root, services-config.xml
and remoting-config.xml...

Hi Peter,

Thanks for your reply. The answer is yes to all your questions.

This is the code I used:

public function init():void {
  var amfChannel:AMFChannel
  = new AMFChannel(my-amf, getContextRootUrl()
  + /messagebroker/amf);
  amfChannel.pollingEnabled = false;
  var myChannelSet:ChannelSet = new ChannelSet();
  myChannelSet.addChannel(amfChannel);
  myService.channelSet = myChannelSet;
}

private function getContextRootUrl():String {
  var i:int = Application.application.url.lastIndexOf(/);
  var contextRootUrl:String
  = Application.application.url.substring(0, i);
  return contextRootUrl;
}

...

mx:RemoteObject
  id=myService
  destination=MyService
  endpoint={getEndpointUrl()}/messagebroker/amf
  showBusyCursor=true
  result=event.token.resultHandler( event )
  fault=event.token.faultHandler( event )
  requestTimeout=30/


Can you see any possible issues?

I'm still using the same services and compiler.context-root properties
for mxmlc, and I haven't amended my services-config.xml, so it still has
the following channel definition:

channel-definition id=my-amf
  class=mx.messaging.channels.AMFChannel
  endpoint
url=http://{server.name}:{server.port}/{context.root}/messagebroker/amf

class=flex.messaging.endpoints.AMFEndpoint/
  properties
polling-enabledfalse/polling-enabled
  /properties
/channel-definition
 
Do I need to change any of this?

Cheers,

Lawrie

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

 
 If you host your SWF inside the same WAR that hosts the remoting 
 service, then you should be able to programmatically create a 
 ChannelSet of Channels that is based on the URL that was used to load 
 the SWF (at runtime you could look at the value of 
 mx.core.Application.application.url). Did you create a ChannelSet and 
 add your AMFChannel to that and then set that on your RemoteObject?
 
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of lawriegallardo
 Sent: Monday, November 19, 2007 10:46 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Confused by context.root, services-config.xml 
 and remoting-config.xml...
 
 Hi,
 
 I've got an application that uses LCDS RemoteObjects and this worked 
 fine as a development build - I used the Ant mxmlc task and configured

 the services and compiler.context-root properties to point at my 
 development LCDS web-app and everything was dandy.
 
 However, when I tried to rename my web-app it stopped working... After

 some googling I discovered that using {context.root} in your 
 services-config.xml and building with Flex Builder or mxmlc 
 effectively hard-codes the endpoint urls for your services into your
swf file.
 
 This is an issue for me because I need to be able to do is compile my 
 app once, but then be able to be able copy this app for different 
 clients (i.e. each client will have a separate copy of the application
 - Client1 will access the app via www.mycomp.com/myapp/client1,
 Client2 will access the app via www.mycomp.com/myapp/client2, etc).
 
 I've tried creating an AMFChannel in my client code and setting this 
 as the channel for my mx:RemoteObjects, but this doesn't seem to work.
 I'm guessing I might also need to amend my services-config-xml file to

 get this to work???
 
 If anyone can shed any light on this it would be greatly appreciated.
 
 Thanks,
 
 Lawrie
 
 
 
 --
 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





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





RE: [flexcoders] Re: Confused by context.root, services-config.xml and remoting-config.xml...

2007-11-19 Thread Peter Farland
For the MXML RemoteObject API, it's true there is an endpoint property
and what steve writes about it automatically selecting the right channel
based on HTTP(S) URLs is correct, but it is not marked bindable and I've
not seen it used with MXML binding statements. So, I am suggesting that
while you're trying to get this to work - just use the programmatic
approach you're using with ChannelSet exclusively for now.

Pete

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lawriegallardo
Sent: Monday, November 19, 2007 1:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Confused by context.root, services-config.xml
and remoting-config.xml...

No, we're not at crossed purposes at all - that's really useful thanks!

Do I still need to worry about the services-config.xml and
remote-config.xml files? If not, how do the destinations and their
properties (i.e. the source property that specifies which Java service
gets called) get set up?

Cheers,

Lawrie

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

  Thanks for your help - Apologies if I'm being a bit thick , but I'm 
  a not quite sure what you mean when you say that you set the 
  endpoint property of the RemoteObject to point at whatever AMF 
  endpoint url you want. Could you clarify this a bit, please?
 
 Hi,
 RemoteObject defines an endpoint property which allows you to 
 programatically set the AMF endpoint used by that instance.  So:
 
 var ro:RemoteObject = new RemoteObject(...); ro.endpoint = 
 Application.application.parameters[gatewayUrl]
 
 and you're ready to go, the RemoteObject will use either a secure AMF 
 channel or a regular AMF channel depending on whether or not the url
you 
 provide it is https or not. 
 
 You can probably (and I've not checked) set it in mxml using data
binding:
 mx:RemoteObject ... 
 endpoint={Application.application.parameters['gatewayUrl']} ...
 
 or somesuch.  We set gatewayUrl from FlashVars in the containing ASP
page, 
 so the server decides which endpoint a given application talks to. 
 
 Apologies if we're at crossed purposes here! 
 
 Stephen





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





RE: [flexcoders] Re: Confused by context.root, services-config.xml and remoting-config.xml...

2007-11-19 Thread Peter Farland
But you're still assigning the mService.channelSet property with your
programmatically created ChannelSet, right?

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lawriegallardo
Sent: Monday, November 19, 2007 3:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Confused by context.root, services-config.xml
and remoting-config.xml...

As suggested, I removed the endpoint property from my mx:RemoteObject
tag, removed the services property from my mxmlc Ant task and did a
clean, build, deploy.

  mx:RemoteObject 
 id=mService 
 destination=MyService
 showBusyCursor=true
 result=event.token.resultHandler( event )
 fault=event.token.faultHandler( event )
 requestTimeout=30 /

Now when I run the app I get a Destination 'MyService' has no channels
defined and the application does not define any default channels.

Any thoughts?

Cheers,

Lawrie


RE: [flexcoders] Re: Streaming bytes through a web service

2007-11-07 Thread Peter Farland
a) I'd use an HTTP sniffer to watch the HTTP traffic and look for the
response. A free tool is Paros Proxy which can be easily configured to
be used by IE as a proxy to show all HTTP traffic going through the
browser.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jeremyfstewart
Sent: Wednesday, November 07, 2007 2:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Streaming bytes through a web service


Actually I did a little more research into my issue, and so I wanted to
add a further description:

The web service is returning the image as an attachment, but when the
flex application receives the response it says that it is invalid XML.
The error reads:

RPC Fault faultString=Error #1085: The element type
053118D593A126E55F0D77CE1332B758 must be terminated by the matching
end-tag /053118D593A126E55F0D77CE1332B758.
faultCode=DecodingError faultDetail=null

I have not been able to yet get the response to display so that I can
actually see what is being returned by the web service, but I do know
that we have a JSP application that is able to handle this web service
and the attachment that is sent. I have seen that there are some bugs in
the Flex Bug and Issue Management System around these areas, so I am not
sure if I have hit a bug or something else has occurred.

If anybody has any thoughts on:
a) How I can d! ebug this issue? (For example, getting the response to
show. I have tried using a ResultEvent and then the following
expression: event.message.toString(), which will only show me a result
once a web service without an attachment is called.)
b) Is there a work around that I can do for this error?


Thank you in advance,

Jeremy


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

 Hello,
 
 I am very new to Flex and Flash for that matter (only a day or two
 working with it), so I do not even know if what I am asking is
 possible. But I am hitting a web service that is returning byte array
 of an image that I want my flex application to stream and then
 display. Is this possible, and if so how?
 
 Just for clarification, we are trying to do a proof of concept and the
 reason that the content needs to stream for this test is that we! are
 trying to show how we can send content via the we! b servic e to
multiple
 applications without each of the applications having to log into the
 host application (the web service does this for us). So in short,
 we do not have access to an URL for the content only the bytes that
 stream to us.
 
 I hope that was clear.
 
 Thank you for your help,
 
 Jeremy

 


[flexcoders] Re: Q: Issues generating AS proxy classes from WSDL

2007-11-02 Thread Peter Farland

Forgetting about Flex for a moment, I first tried loading your WSDL
using Eclipse WTP 1.5.5 (based on Eclipse 3.2.2)'s Web Service
Explorer and it reported 100s of errors and warnings. I'd
independently try to use Axis's WSDL2Java tool first to see if that
can generate Java proxy stubs for this WSDL and see what errors you
get there.




[flexcoders] Re: HotFix 2 breaks web service results of type xsd:anyType

2007-11-01 Thread Peter Farland
The WSDL says that the response part should be in an element called 
executeReturn not executeResponse, and it should be qualified in the 
targetNamespace http://fimsadmro4.fmr.com:12600/bd/suntrust/BPMProdu
ctTierWeb/services/BPMXtracService.

The following response.xml works:

?xml version=1.0 encoding=utf-8?
soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
soapenv:Body
executeReturn 
xmlns=http://fimsadmro4.fmr.com:12600/bd/suntrust/BPMProductTierWeb/
services/BPMXtracService
LoginResponseCookie/Cookie/LoginResponse
/executeReturn
/soapenv:Body
/soapenv:Envelope




RE: [flexcoders] rtmps keystore location

2007-08-29 Thread Peter Farland


Custom tokens like the ones you mentioned are an enhancement we'd like
to add in the next version (bug 173161). We're aware of the situation
you describe as a reason for such an enhancement (bug 93750). For now, I
believe the only options you have are to either use a full path as you
are doing... or place the keystore under /WEB-INF using:

keystore-file{context-root}/WEB-INF/security/dsl.keystore/keystore-fi
le

(The latter, of which, is not ideal).



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of simonjpalmer
Sent: Wednesday, August 29, 2007 10:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] rtmps keystore location

can anyone advise on how I set the keystore-file tag on a secure rtmp
destination to be a relative path on the server.  It seems crazy that I
have to put in a file path, especially as my entire application is
deployed as a war file and I already have a valid keystore for https.

I have tried...
keystore-file${jboss.server.home.dir}/conf/dsl.keystore/keystore-file


a combination of relative path modifiers like this
keystore-file../../../conf/dsl.keystore/keystore-file

and the only one which works is
keystore-filec:\hopefully-secure-folder\dsl.keystore/keystore-file

what I want to do is refer to the server home directory like I can in
the rest of my configuration.

Any ideas?

Simon



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





RE: [flexcoders] How to use IExternalizable for Web services?

2007-08-29 Thread Peter Farland
Nope, IExternaliable is only for ActionScript serialization via AMF.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of vikram
Sent: Wednesday, August 29, 2007 11:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to use IExternalizable for Web services?

Hi,

Can I use IExternalizable to change the behaviour of XML serialization
while communicating with a web service? I want to hide some of the
public properties from getting serialized.

I have a .Net based web service and flex client. I tried to use
IExternalizable by implementing the methods of the interface. But it
doesnt seem to be working. Despite not sending a public property, I am
getting it on the server side.

Thanks
Vikram



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





RE: [flexcoders] Re: How to use IExternalizable for Web services?

2007-08-29 Thread Peter Farland

Can you show us the XML Schema definition of the relevant complexType
from your WSDL? Also, can you show us a snippet of ActionScript code
that shows the properties that you have for this complexType and which
ones you don't want to send?

Pete
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of vikram
Sent: Wednesday, August 29, 2007 11:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to use IExternalizable for Web services?

Hi Peter,

Thanks again for the reply. I had made a related post in #85277. Now,
after finding out that IExternali... doesnt work with web service, my
question comes back again - how will I hide few public members?

you mentioned about changing the XML schema or something like that. 
If you can throw more light on that, it would be very helpful for me.

Thanks again
Vikram

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

 Nope, IExternaliable is only for ActionScript serialization via AMF.
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
 Behalf Of vikram
 Sent: Wednesday, August 29, 2007 11:12 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How to use IExternalizable for Web services?
 
 Hi,
 
 Can I use IExternalizable to change the behaviour of XML
serialization
 while communicating with a web service? I want to hide some of the 
 public properties from getting serialized.
 
 I have a .Net based web service and flex client. I tried to use 
 IExternalizable by implementing the methods of the interface. But it 
 doesnt seem to be working. Despite not sending a public property, I
am
 getting it on the server side.
 
 Thanks
 Vikram
 
 
 
 --
 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





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





RE: [flexcoders] Re: How to use IExternalizable for Web services?

2007-08-29 Thread Peter Farland
The Schema explicitly defines the property:

s:element minOccurs=1 maxOccurs=1 name=ObjectExternalSeqId 
nillable=true type=s:int / 

and it says that it must be present (minOccurs=1) so it will be
included. If you don't want it to be sent, then try making it optional
in your .NET WebService.

Pete
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of vikram
Sent: Wednesday, August 29, 2007 11:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to use IExternalizable for Web services?

Sure. Here is the action script code for the class which I am sending to
.Net web service:


public class ObjectDetailsVONew implements IValueObject
{
private var objectName: String; 
private var objectInternalSeqId: int;
private var objectExternalSeqId: int;

public function get ObjectInternalSeqId() : int
{
return objectInternalSeqId;
}
public function set ObjectInternalSeqId
(paramObjectName: int) : void
{
objectInternalSeqId = paramObjectName;
}

public function get ObjectExternalSeqId() : int
{
return objectExternalSeqId;
}
public function set ObjectExternalSeqId
(paramObjectName: int) : void
{
objectExternalSeqId = paramObjectName;
}

public function get ObjectName() : String
{
return objectName;
}   
public function set ObjectName(paramObjectName: 
String) : void
{
objectName = paramObjectName;
}

}

I want ObjectInternalSeqId to remain with in teh client and not go to 
the web service.

Here is the complex type defn from the WSDL:

- wsdl:types
- s:schema elementFormDefault=qualified 
targetNamespace=http://tempuri.org/;
- s:element name=ReceiveObjDetailsBin
- s:complexType
- s:sequence
  s:element minOccurs=0 maxOccurs=1 name=aeBin 
type=tns:AEObjectDetailsBin / 
  /s:sequence
  /s:complexType
  /s:element
- s:complexType name=AEObjectDetailsBin abstract=true
- s:sequence
  s:element minOccurs=0 maxOccurs=1 name=ObjectName 
type=s:string / 
  s:element minOccurs=1 maxOccurs=1 name=ObjectExternalSeqId 
nillable=true type=s:int / 
  /s:sequence
  /s:complexType
- s:element name=ReceiveObjDetailsBinResponse
  s:complexType / 
  /s:element
  /s:schema
  /wsdl:types

Please let me know if you need anything more from my side.

Much thanks for all your help.
Vikram

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

 
 Can you show us the XML Schema definition of the relevant 
complexType
 from your WSDL? Also, can you show us a snippet of ActionScript code
 that shows the properties that you have for this complexType and 
which
 ones you don't want to send?
 
 Pete
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of vikram
 Sent: Wednesday, August 29, 2007 11:33 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: How to use IExternalizable for Web 
services?
 
 Hi Peter,
 
 Thanks again for the reply. I had made a related post in #85277. 
Now,
 after finding out that IExternali... doesnt work with web service, 
my
 question comes back again - how will I hide few public members?
 
 you mentioned about changing the XML schema or something like that. 
 If you can throw more light on that, it would be very helpful for 
me.
 
 Thanks again
 Vikram
 
 --- In flexcoders@yahoogroups.com, Peter Farland pfarland@
 wrote:
 
  Nope, IExternaliable is only for ActionScript serialization via 
AMF.
  
  
  -Original Message-
  From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
  Behalf Of vikram
  Sent: Wednesday, August 29, 2007 11:12 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] How to use IExternalizable for Web services?
  
  Hi,
  
  Can I use IExternalizable to change the behaviour of XML
 serialization
  while communicating with a web service? I want to hide some of 
the 
  public properties from getting serialized.
  
  I have a .Net based web service and flex client. I tried to use 
  IExternalizable by implementing the methods of the interface. But 
it 
  doesnt seem to be working. Despite not sending a public property, 
I
 am
  getting it on the server side.
  
  Thanks
  Vikram
  
  
  
  --
  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
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files

RE: [flexcoders] crossdomain file on an app server

2007-08-28 Thread Peter Farland

Note you can alternatively deploy a crossdomain.xml file in your WAR
using a non-default context and then get your SWF to load the policy
file from this custom location (instead of relying on the default
location of the webroot). 

http://livedocs.adobe.com/flex/2/langref/flash/system/Security.html#load
PolicyFile()

Otherwise, you'll need a WAR file deployed with the default context of
the empty string in order to get a URL of /context-root. Many web
application servers have a mechanism of doing this.

Pete


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brent Smith
Sent: Tuesday, August 28, 2007 9:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] crossdomain file on an app server

Hello,

I have been having issues with an HTTPService I'm trying to use to hit a
java servlet running on websphere. When I use GETs everything seems to
function, but when I use a POST I get a 2032 ERROR. I've heard that
sometimes a POST will need a crossdomain file where a GET may not.

We are deploying the swf as part of the EAR file and no matter where we
seem to put the crossdomain.xml it seems to return the same error. 
I know that you put it in the web root of a web server but I can't seem
to find where.

It is of course possible that there is simply something wrong with the
way I'm constructing my POST, here is an example:

Service Definition:

mx:HTTPService id=setService
url=http://server.com:7000/AeGui/AeGuiServlet;
result=event.token.resultHandler( event );
fault=event.token.faultHandler( event );
method=POST
useProxy=false 
/mx:HTTPService

In my Delegate:

this._service =
ServiceLocator.getInstance().getHTTPService( setService ) as
HTTPService; this._responder = responder;

var sendData:Object = {id: String(_data.ID), description: 
_data.description, action: _data.action, screen:notables};

var token : AsyncToken = _service.send(sendData); token.resultHandler =
_responder.result; token.faultHandler = _responder.fault;

Any help would be greatly appreciated.

Thanks,

Brent


 



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





RE: [flexcoders] Re: Ignoring a public member during serialization

2007-08-28 Thread Peter Farland
Can you change the XML Schema to omit this element and thus it shouldn't
be encoded? Otherwise you could encode the XML yourself... but I'm
interested in the use case surrounding wanting to omit a value. Is the
WebService including something unexpected? Is there something in the
Schema that isn't being followed? If so, can you log a bug at
http://bugs.adobe.com/flex/?

When logging WebService bugs, ideally you'd provide the WSDL (and any
imported schemas), a snippet showing how you're calling the WebService
and a capture of the SOAP response XML.

Thanks!
Pete



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of vikram
Sent: Tuesday, August 28, 2007 1:47 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Ignoring a public member during serialization

Hi,

It works only for Remoting. I tried it with web service, but it didnt
work :(

Please let me know if there is any other option.

Thanks
Vikram

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

 Hi,
 
 check out the [Transient] metadata tag.
 
 regards,
 Christophe
 
 --- In flexcoders@yahoogroups.com, vikram vikramrkin@ wrote:
 
  Hi,
  
  I am using .Net web services to communicate with the server in my
Flex 
  application.
  
  In action script, is there a way to prevent serialization of some
of 
  the public variables during a web service request? In .Net, there
is am 
  attribute called [XmlIgnore] which will make a variable not to 
  serialize. I am looking for something similar in AS3.
  
  Thanks
  Vikram
 





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





RE: [flexcoders] Re: Getting the SDK should be much easier...

2007-08-28 Thread Peter Farland
Hi Ben, 

WebServices in this release represent more than a hotfix - they are LCDS
2.5's reimplementation of this feature to target Basic Profile 1.0
support for WS-I. This will be the WebService implementation going
forward for Flex 3 too so we want to iron these bugs out before Flex 3
is final.

We have fixed many issues since HF2 for Flex 3 thanks to many useful
bugs and reproducible cases that have been logged by the community.

If you are experiencing changes, bugs, etc... then the most productive
thing to do is to spend a few minutes to log them so that we can take a
look and fix them.

http://bugs.adobe.com/flex/

Thanks,
Pete



RE: [flexcoders] Re: Getting the SDK should be much easier...

2007-08-28 Thread Peter Farland

One more thing, it'd be great if you could try out a nightly build of
the Flex 2 SDK before logging a WebService bug against Flex 2... these
nightly builds represent the latest version of the code, including
rpc.swc, which is post HF3.

http://labs.adobe.com/technologies/flex/sdk/flex2sdk.html
 



RE: [flexcoders] Remote Objects - a reflective way to determine class?

2007-08-27 Thread Peter Farland
See: flash.utils.getQualifiedClassName()

http://livedocs.adobe.com/flex/2/langref/flash/utils/package.html#getQua
lifiedClassName()
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Libby
Sent: Monday, August 27, 2007 8:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Remote Objects - a reflective way to determine
class?

Does anyone know of a technique to determine the true class of an object
returned via remoting when Flex only knows it as an Object? I have tried
if(Object is ClassName) and if(Object instanceOf
ClassName) and also tried various casting combinations but so far I
cannot determine what my returned Object is without parsing it to look
for a specific field - not very object-oriented : (

Thanks,
Libby



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





RE: [flexcoders] Re: DataGrid with labelfunction + POJO

2007-08-27 Thread Peter Farland
Make sure that you have registered a class alias for your ActionScript 
representation of the Formasi class. You can do so like this:
 
 
package bkn.pojo
{
 
[RemoteClass[(alias=bkn.pojo.Formasi)]
public class Formasi
{
 
...
 
}
}
 
You also need to make sure you have a reference to the Formasi class in your 
ActionScript code so that it is linked into the SWF at compile time. There are 
several ways to do this. The usual way is to import it and then declare a 
private static variable of the type you want to create a dependency. Another 
way would be to ensure you're using it in your code somewhere such as a casting 
statement or as a type of a function argument etc...
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jon 
Santos
Sent: Monday, August 27, 2007 4:33 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: DataGrid with labelfunction + POJO


Hi again.
 
I have tried to make like you told me before :
 
import bkn.pojo.Formasi;

public function getInstansiNama(item:Object, column:DataGridColumn):String

{ 

var myPOJOFormasi:Formasi = Formasi(item);

Alert.show(Instansi :  + myPOJOFormasi.instansi);

return PPP; 

}

 

The value of the instansi : NULL

 

Here i send to you the source of the function where i get the Formasi List, 
because i use that function in dataProvider of my DataGrid:

 

public Formasi[] getFormasi( String pTahun ) 

throws ClassNotFoundException, SQLException

{

Formasi[] myFormasi = null ;

try

{

Configuration cfg = new Configuration ();

cfg.configure(); 

SessionFactory sessions = cfg.buildSessionFactory();

Session session = sessions.openSession();

Criteria crit = session.createCriteria(Formasi.class);

Integer iTahun = Integer.valueOf(pTahun);

crit.add( Restrictions.eq(tahun, iTahun));

crit.setMaxResults(10);

java.util.List formasis = crit.list();

myFormasi = new Formasi [formasis.size()];

formasis.toArray(myFormasi);

 

//Here the result never is NULL, always have the correct data

System.out.println(+++ Despues de load:  + 
myFormasi[0].getInstansi().getNama());

 

return myFormasi;

}

catch (Exception ex)

{

System.out.println(Exception  + ex.getMessage());

}

finally

{

return myFormasi;

}

}

 
Thanks in advance
 

 
- Original Message 
From: simonjpalmer [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, August 26, 2007 10:11:05 AM
Subject: [flexcoders] Re: DataGrid with labelfunction + POJO



what happens if you cast item to a FormasiFlex, e.g.

FormasiFlex( item).istansi;

--- In [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com , Jon 
Santos [EMAIL PROTECTED] wrote:

 If i put one Alert to display ITEM, the value is : item : [object
FormasiFlex]
 
 This is the code i have using to see the value of the ITEM object:
 
 public function myInstansiNama( item:Object,
column:DataGridColu mn):String
 { 
 Alert.show( item :  + item.toString( )); 
 return item.toString( );
 }
 
 In the attached file i send to you one screenshot, you will see my
problem.
 
 If someone can help me...thaks in advance.
 
 
 
 
 - Original Message 
 From: Jon Santos [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com 
 Sent: Thursday, August 23, 2007 8:13:04 PM
 Subject: Re: [flexcoders] Re: DataGrid with labelfunction + POJO
 
 My MXML file is like that :
 
 ?xml version=1.0 encoding=utf- 8?
 mx:Application xmlns:mx=http://www.adobe. http://www.adobe./  com/2006/ 
 mxml
layout=absolute xmlns:ns1=war. pruebas. * creationComplete=
ActivateEvents( )
 mx:Script
 ![CDATA[
 import bkn.pojo.InstansiPe merintah;
 import mx.core.IDataRender er;
 import mx.events.FlexEvent ;
 import mx.core.Container;
 import mx.controls. Alert;
 import mx.collections. ArrayCollection;
 import mx.containers. *;
 import mx.validators. NumberValidator;
 /* [Bindable]
 [RemoteClass( alias=bkn. pojo.JenisFormas i)]
 public class JenisFormasi
 {
 public var kode:String;
 public var deskripsi:String;
 } */
 private var AddOrEdit:String;
 private var DosActivated: Boolean = false;
 private function lihatTahun() :void
 {
 this.srv.getFormasi (this.txtTahun. text) ;
 }
 private function ActivateEvents( ):void
 {
 this.dos.addEventLi sten er(FlexEvent. CREATION_ COMPLETE, setValues) ;
 }
 private function setValues(e: FlexEvent) :void
 {
 this.AddEdit( );
 } 
 private function ActionAdd(): void
 {
 this.AddOrEdit = Add;
 this.vs.selectedChi ld = dos;
 if (this.DosActivated)
 {
 this.AddEdit( );
 }
 }
 private function InsertFormasi ():void
 {
 }
 private function ActionEdit() :void
 {
 this.AddOrEdit = Edit;
 this.vs.selectedChi ld = dos; 
 if (this.DosActivated)
 {
 this.AddEdit( );
 }
 }
 public function AddEdit():void
 {
 if (this.AddOrEdit != Edit) {
 this.myFormasi. tahun. text = ;
 this.myFormasi. jumlah. text = ;
 this.myFormasi. tanggalM enpan.text = ;
 this.myFormasi. Instansi Nama.text = ; 
 }
 else {
 this.myFormasi. tahun. text = this.dg.selectedIte 

RE: [flexcoders] Re: Remote Objects - a reflective way to determine class?

2007-08-27 Thread Peter Farland
Assuming that a typed object was returned via AMF, this means that the
Flash Player did not find the class definition for the alias reported in
the typed object in the AMF response.

Ensure that the alias registered for your remote object is correct and
that it is imported and a dependency exists on the type somewhere in
your code so that it is linked into the SWF.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Libby
Sent: Monday, August 27, 2007 12:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Remote Objects - a reflective way to determine
class?

Yeah, I tried that - it returns Object.

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

 See: flash.utils.getQualifiedClassName()
 
 http://livedocs.adobe.com/flex/2/langref/flash/utils/package.html#getQ
 ua
 lifiedClassName()


RE: [flexcoders] WebService Basic Authentication over HTTPS?

2007-08-27 Thread Peter Farland

Despite what the ASDoc say, WebService.setCredentials() is only for
authenticating with LCDS (nee FDS) itself when making use of a
destination registered with the Proxy Service.
WebService.setRemoteCredentials() is only for LCDS too, it's what is
used by the Proxy Service to handle any HTTP Basic Authentication
challenges while contacting the 3rd party endpoint.

If you're not using LCDS, then you'll need to setup a way to
authenticate directly with the WebService. In .NET a common solution is
to make use of SOAP headers.

Pete



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of chuyler1
Sent: Monday, August 27, 2007 2:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] WebService Basic Authentication over HTTPS?

I need to connect to a .NET WebService over SSL which uses Basic
Authentication.  I have tried the setCredentials function but it doesn't
work.

Are there plans to support this feature?  Is there a work-around? I
would prefer to get the credentials from the user through a login view
in Flex and then check them under the covers without the browser popping
up any messages.

I have searched the internet and various mailing lists and forums but I
have yet to find an answer.



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





RE: [flexcoders] Re: WebService Basic Authentication over HTTPS?

2007-08-27 Thread Peter Farland
I'd guess that if you lock down a WebService's soap address location URL
to cause an HTTP Basic Authentication challenge then it won't matter
what SOAP headers a particular operation is capable of processing as the
POST won't get far enough to be able to see the SOAP data.

While it is technically possible to pre-authenticate by sending the
right HTTP headers from Flash, it's not a viable solution if the wrong
credentials are ever sent as you will then receive a challenge dialog no
matter what.

I'd do some research to see what most .NET people are doing for
authentication and WebServices.



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of chuyler1
Sent: Monday, August 27, 2007 3:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: WebService Basic Authentication over HTTPS?

Will the method of using SOAP headers still allow for basic session
management by the .NET WebService?

The server-side guys are really pushing the use of Basic Authentication
but it sounds like this approach will mean coding specific
authentication functions within the WebService, correct?



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





RE: [flexcoders] Flex + SOAP + AXIS support?

2007-08-25 Thread Peter Farland
Right, Flex WebServices are focused on SOAP 1.1 support and this will
not change in Flex 3.
 
A new implementation of Flex WebServices was introduced in Flex 2.0.1
HF2 to coincide with LCDS 2.5 (though there are a few gaps and will be
more complete in Flex 3). This implementation is focused on supporting
the majority of the WS-I Basic Profile Version 1.0 (but not things like
UDDI) while also retaining support for legacy features such as
rpc-encoded style, soap encoded types such as Array and a few of the
custom Axis types such as Map. SOAP 1.2 support will not be in Flex 3.
 
I suggest using literal style where possible going forward with
WebServices.
 
Please log any WebService bugs against Flex 3 as soon as you find them: 
 
http://bugs.adobe.com/flex/
 
... but remember to try out the nightly builds of Flex 3 SDK first
rather than using Beta 1.
 
http://labs.adobe.com/technologies/flex/sdk/flex3sdk.html
 
Thanks!
Pete
 
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Connolly
Sent: Friday, August 24, 2007 9:09 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex + SOAP + AXIS support?


The Flex Developer's Guide (p. 1401) states that WSDL 1.1 is supported
and, by implication, SOAP 1.1 support is a requirement of WSDL 1.1
http://www.w3.org/TR/wsdl .



On 8/24/07, bobsandywalls [EMAIL PROTECTED] wrote: 

I know that Flex supports SOAP, however what version of SOAP
does it
support and by proxy what version of AXIS is capable of
providing?

I looked online for such a requirements list, but could not find
it.
Thanks for the assistance






 


RE: Dee Copy...Re: [flexcoders] Re: How to clone object?

2007-06-15 Thread Peter Farland
We've addressed this on flexcoders a few times before in the past.
 
You simply use ByteArray to clone an object or array.
 
var array:Array = [1, 2, 3];
var ba:ByteArray = new ByteArray();
ba.writeObject(array);
ba.position = 0;
var cloned:Array = ba.readObject() as Array;
 
You always use writeObject/readObject no matter what type you a writing.
These are the only two methods that use AMF to serialize/deserialize the
AS3 type.
 
Note that if you want to clone a strongly typed objects then you must
have registered a class alias for the type (or if you're using Flex to
compile your application you can use the [RemoteClass(alias=...)]
metadata).
 
package something
{
 
[RemoteClass(alias=something.Foo)]
public class Foo
{
public function Foo()
{
}
}
}
 
 
import something.Foo;
 
var foo:Foo = new Foo();
var ba:ByteArray = new ByteArray();
ba.writeObject(foo);
ba.position = 0;
var clonedFoo:Foo = ba.readObject() as Foo;
 


RE: [flexcoders] Flex Remoting and complex objects

2007-06-15 Thread Peter Farland
AS3 doesn't have the concept of generics, so yes, all collections should
be instances of mx.collections.ArrayCollection by default. Types like
mx.collections.ArrayCollection can only really be sent and received
properly by AMF3, so any remoting endpoint would have to understand this
version of the AMF protocol. Any remoting solution working with Flex 2's
RemoteObject should be aware of the messaging infrastructure that is
used to send messages for any remote service request and response. If
Fluorine isn't sending back the result wrapped in a typed instance of
flex.messaging.messages.AcknowledgeMessage (or an error wrapped in an
mx.messaging.messages.ErrorMessage) with a correct correlationId
property to match the request mx.messaging.remoting.RemotingMessage's
messageId - then it won't work.
 
.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of khmerang
Sent: Friday, June 15, 2007 2:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Remoting and complex objects



Hi all,
I'm beginner with Flex, but have quite a lot experience with .Net. We
have been testing to move some complicated UI to Flex using Fluorine
as the remoting host. Almost everything seems to be working fine, but
sending complex objects from Flex seems to have some serious issues.

We have value objects that contain nested lists, for example:

Project
+ Sections : ListProjectSection 

ProjectSection
+ Assets : ListAsset

Asset
+ AvailableColors : ListColor

These objects are received by Flex (all generic lists are converted to
ArrayCollections) just fine, but I am getting an error when trying to
send the object back to the host:

TypeError: Error #1034: Type Coercion failed: cannot convert
[EMAIL PROTECTED] to mx.messaging.messages.IMessage.

As a breakpoint inside Fluorine service will not trigger, I am
expecting that the problem happens inside Flex. Has anybody experience
with objects like this? We are using Cairngorm in Flex, could that be
an issue? Or do you think the problem would be with Fluorine (haven't
tested with WebOrb)?

Any ideas appreciated,
Miika



 


RE: [flexcoders] Flex 3 Beta is now available!

2007-06-14 Thread Peter Farland
Gunnar, although I've not tried this yet, I think that you may be able to 
pre-authenticate with BASIC auth if you set the Authorization header on 
HTTPService. I recently discovered that the Authorization header is not one 
of the request headers disallowed by flash.net.URLRequest (which is ultimately 
used by by HTTPService to prepare a request to send over HTTP) so this approach 
should be technically possible. Note that you will need to Base64 encode the 
credentials from the String username:password into an encoded form.
 
myHTTPService.headers.Authorization = Basic  + base64EncodedCredentials;

Note that there is an undocumented mx.utils.Base64Encoder class in Flex that we 
plan to formally document in Flex 3.0. 

Pete




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gunnar 
André Reinseth
Sent: Tuesday, June 12, 2007 6:26 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 3 Beta is now available!



Hi,

This new release Flex is really great! The new AdvancedDataGrid has probably 
saved us months of work :)

But there is one thing I'm wondering about: Has there been any changes to 
HTTPService? Does it support BASIC authentication? If not - is this an issue 
that the Flex team will address in the future? 

Best,
Gunnar A. Reinseth


On 6/11/07, Tom Chiverton [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  
wrote: 

On Monday 11 Jun 2007, Matt Chotin wrote:
 Charts and ADG only ship in FB for now, we're not building a separate 
 charting installer.

I'm not bothered about an installer, I just didn't want to have to 
download
all of FlexBuilder to get at one SWC inside it.

On first tests, it seems Flex3 runs existing code fine (apart from the 
known 
Caringorm issue) which is good news, and my pet charting bug has even 
been
addressed.

--
Tom Chiverton
Helping to autoschediastically seize best-of-breed interfaces
on: http://thefalken.livejournal.com 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 
http://www.halliwells.com .



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






 


RE: [flexcoders] for RemoteObject lastResult return NULL in function

2007-06-14 Thread Peter Farland
The lastResult property won't be populated until a result comes back
some time later (and definitely after the onLoad() function exits
because remote requests are made by the player in an asynchronous manner
after the current frame script execution finishes).
 
Pete



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Evgeniy Strokin
Sent: Thursday, June 14, 2007 4:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] for RemoteObject lastResult return NULL in
function



Hello, I have a problem. If I'm getting null from
myRo.getGetMyObj.lastResult in function onLoad(),.. but it returns value
in here:
mx:TextInput id=txt2 text={myRo.getGetMyObj.lastResult.otherProp}/
But when I'm sending the object back to the server everything is fine.
This works fine, I'm getting right values in server from Java Object:
myRo.setGetMyObj(mm);
But the same Java Object cannot be cast to the MyTestObject.as
In other words: I'm able to submit from my MyTestObject.as to
MyTestObject.java, but not vice verse. But i'm getting result from
MyTestObject.java though, but only here: mx:TextInput id=txt2
text={myRo.getGetMyObj.lastResult.otherProp}/, this doesn't work
(returns null always): mm1=MyTestObject(myRo.getGetMyObj.lastResult);
Does somebody kno! w why? Maybe it shouldn't work at all this way?

Thank you

PS: here is mxml I use:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  xmlns=*
creationComplete=onLoad();
MyTestObject id=mm myProp={txt1.text}
otherProp={Number(txt2.text)}/
mx:Script
![CDATA[
import mx.controls.Alert;
[Bindable]
private var mm1:MyTestObject;

! private function onLoad():void{
myRo.getGetMyObj();
mm1=MyTestObject(myRo.getGetMyObj.lastResult);
}

private function clickHandler():void {
 myRo.setGetMyObj(mm);
}
]]
/mx:Script
mx:RemoteObject id=myRo destination=myObject
showBusyCursor=true/
mx:Form id=frm defaultButton={sbmt}
! nbsp;   mx:FormItem label=Data 1
mx:TextArea id=txt1 text={mm1.myProp}/
/mx:FormItem
mx:FormItem label=Data 2
mx:TextInput id=txt2
text={myRo.getGetMyObj.lastResult.otherProp}/
/mx:FormItem
mx:FormItem
mx:Button id=sbmt label=Button click=clickHandler();
width=100% height=100%/
/mx:FormItem
/mx:Form
/mx:Application



 


RE: [flexcoders] http://www.adobe.com/2006/mxml is down!!

2007-06-09 Thread Peter Farland
It's just an arbitrary URI that qualifies the MXML namespace, it does
not have to represent a valid URL.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gambit_755
Sent: Friday, June 08, 2007 12:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] http://www.adobe.com/2006/mxml; is down!!



What the heck all flex apps are downhttp://www.adobe.com/2006/mxml
downhttp://www.adobe.com/2006/mxml  
is missing.

how can we prevent this is the future



 


  1   2   3   4   5   6   >