[flexcoders] Re: soap and cookies with webservice

2009-09-09 Thread guy.tomer
Not sure what you mean by standalone player. to the best of my knowledge 
flash uses the http connection of the browser so cookies behave the same as in 
the browser. HOWEVER, if you are trying to add headers manually to the 
outgoing SOAP requests - that's problematic, from our experience using the flex 
3 SOAP it is not possible, as far as I know it's not possible with flash over 
HTTP POST requests at all.



[flexcoders] Re: soap and cookies with webservice

2009-09-09 Thread guy.tomer
In a standard browser flash application in a web page, if the server sets a 
cookie on any http requests, the cookie will be sent back just fine. However 
you're talking about a desktop app which you probably mean an AIR application 
so I am not sure, although I guess it should work. The test should be easy - 
make any http call from one of the air applications to a server that sets a 
cookie and see if it is sent back.
We'll be happy to hear the results...



[flexcoders] The logic of Stage.fullScreenSourceRect property

2009-09-06 Thread guy.tomer
I wonder if someone can explain me the logic of this property. I understand it 
marks the rect for scaling in full screen but why is it related to HW scaling? 
I mean isn't it one property doing two tasks? 

When you chose the whole stage rectangle, is it supposed to behave the same as 
if you did not use this property at all just with the graphic card doing the 
work instead of software? The reason I am asking is because we put overlays on 
video and when this property is used our overlays get scaled as well, when it's 
not used they don't and I don't really understand why - shouldn't this problem 
appear anyway whoever does the scaling?

Thanks in advance for explanations...
GT



[flexcoders] Re: Any suggestion for server (java) side run-time styling solution?

2009-08-03 Thread guy.tomer
Read the documentation here:
http://livedocs.adobe.com/flex/3/html/help.html?content=styles_10.html

End of first section: You cannot load an uncompiled CSS file into your Flex 
application at run time. You must compile it into a SWF file before loading it

Obviously we can load the CSS and programatically set the style where needed 
but this is not a generic solution.

--- In flexcoders@yahoogroups.com, Tim Rowe tim.r...@... wrote:

 I'm a bit puzzled that you mention the need to compile in changes.  Surely a 
 SWF can load in an external css file?  If so, could the swf not typically be 
 made to access a CSS file (via whatever method) specifically for that user 
 via their credentials, or via a token?
 
 This would allow run-time loading, and the ability to store, modify and 
 retrieve it however you like on the server-side.
 
 Tim Rowe
 Software Engineer
 carsales.com Ltd
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of guy.tomer
 Sent: Saturday, 1 August 2009 6:39 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Any suggestion for server (java) side run-time styling 
 solution?
 
 
 
 Hi,
 
 We read the documentation about loading styles from out side but 
 unfortunately they all discuss loading swf compiled files.
 
 While it is possible to let an editor edit the style on the server and then 
 run the compiler on the server to generate a swf file, it looks like 
 redundant complexity. The server is a cluster and it'll require additional 
 set-up for every server.
 
 Does anyone have a different solution?
 
 Just to clarify - the requirement is to have the client load the style in 
 run-time. This style should be manageable on a management interface running 
 on a java server.
 
 Thanks,
 Guy
 
 
 
 
 __
 Notice: This email and attachments (if any) is for the exclusive use of the 
 addressee and may contain information that is privileged and confidential. 
 Any unauthorised use of the contents of the email and/or attachments is 
 expressly prohibited. If you are not the addressee of this email, please 
 notify me immediately by email and then immediately destroy any electronic or 
 paper copy of this email and/or attachments. Carsales.com Ltd and its related 
 companies do not accept responsibility for the views expressed in the email 
 or for the consequences of any computer viruses that may be transmitted with 
 this email. This email is subject to copyright. No part of it should be 
 reproduced, adapted or transmitted without the written consent of the 
 copyright owner.





[flexcoders] Any suggestion for server (java) side run-time styling solution?

2009-07-31 Thread guy.tomer
Hi,

We read the documentation about loading styles from out side but unfortunately 
they all discuss loading swf compiled files.

While it is possible to let an editor edit the style on the server and then run 
the compiler on the server to generate a swf file, it looks like redundant 
complexity. The server is a cluster and it'll require additional set-up for 
every server.

Does anyone have a different solution?

Just to clarify - the requirement is to have the client load the style in 
run-time. This style should be manageable on a management interface running on 
a java server.

Thanks,
Guy



[flexcoders] Re: images inside text htmltext as in IM application

2009-07-24 Thread guy.tomer
Thanks, we'll wait with this feature.

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 In my experience, it doesn't always work right.  If you're not shipping soon, 
 get Flex 4 beta and try using the TLF functionality
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of guy.tomer
 Sent: Wednesday, July 22, 2009 10:21 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] images inside text htmltext as in IM application
 
 
 
 Hi,
 
 We're trying to build something which behaves like an IM application in that 
 icons/emoticons can be embedded inside text.
 
 Using the htmlText property we only manage to get the images aligned to the 
 sides of the text but not as integral part of it.
 
 We did read Adobe documentation but can't figure out whether this is a known 
 limitation of the component, does anyone know?
 
 Thanks
 Guy





[flexcoders] images inside text htmltext as in IM application

2009-07-22 Thread guy.tomer
Hi,

We're trying to build something which behaves like an IM application in that 
icons/emoticons can be embedded inside text. 

Using the htmlText property we only manage to get the images aligned to the 
sides of the text but not as integral part of it.

We did read Adobe documentation but can't figure out whether this is a known 
limitation of the component, does anyone know?

Thanks
Guy



[flexcoders] shared object domain in sub application

2009-07-19 Thread guy.tomer
Hi,

Is there a way to have the shared object in a sub-application use the domain of 
the loaded sub-application and not the one of the loading application?

The scenario is application A is loaded from A.com app B is loaded from B.com
Both A and B load sub application SWF C from C.com
However, we want C to have access to the same shared object whether loaded from 
A or from B.

So far we see that it always use the domain of the loading app.

Tnx



[flexcoders] Is there a good log application?

2009-06-27 Thread guy.tomer
Hi,

I was wondering if anyone can point me to an easy to use logging application? 
Looks like Flex used to have one called MiniDebug but it's deprecated.

My problem is that my testers have many difficulties configuring the flash 
debugger and the flashlog.txt (permissions on vista and other issues), I think 
something that uses LocalConnection or some JavaScript Target could do the job. 
Note - I need something that is supported on multiple environments not just 
firebug on firefox.

Tnx
Guy



[flexcoders] Re: Is there a good log application?

2009-06-27 Thread guy.tomer
That doesn't help unfortunately. I requires either Firebug or using the 
flashlog.txt which has been the problem in the first place

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

 Try Thunderbolt maybe suits your needs...
 
 C
 
 
 
 
 
 From: guy.tomer guy.to...@...
 To: flexcoders@yahoogroups.com
 Sent: Saturday, June 27, 2009 9:24:35 PM
 Subject: [flexcoders] Is there a good log application?
 
 
 
 
 
 Hi,
 
 I was wondering if anyone can point me to an easy to use logging application? 
 Looks like Flex used to have one called MiniDebug but it's deprecated.
 
 My problem is that my testers have many difficulties configuring the flash 
 debugger and the flashlog.txt (permissions on vista and other issues), I 
 think something that uses LocalConnection or some JavaScript Target could do 
 the job. Note - I need something that is supported on multiple environments 
 not just firebug on firefox.
 
 Tnx
 Guy





[flexcoders] Localization problem compiling .properties resource into swf

2009-04-30 Thread guy.tomer
Hello,

I have a .properties file put under src/locale/en_US

I changed the compiler arguments to:
-locale=en_US -allow-source-path-overlap=true -source-path=locale/en_US

Now the strange thing - I have 2 applications in this project. One specifically 
for testing the localization, the other is the application itself. 

When I run the test mxml everything works fine, when I run the other one the 
ResourceBundle isn't loaded.

Any ideas?

Thanks!
Guy



[flexcoders] Re: Resource bundles and Modules

2009-04-30 Thread guy.tomer
--- In flexcoders@yahoogroups.com, Todd tpreka...@... wrote:

 Hello All,
   I have some Modules (Cairngorm-based if that matters), that I want to have 
 their own resource.property files that are compiled into the module.
   I can't seem to get it working. 
   Should I be looking down the path of manually adding my resource strings to 
 the ResourceManger when my Module loads?  Or, is there something more 
 built-in to Flex that I'm missing.  (When I try searching on this topic, I'm 
 mostly only finding how to bundle your resources in seperate 
 module.swfs...which isn't what I'm looking for.  I just want to have the the 
 Module's resources compiled within it.)
 
 Thanks,
 Todd


Basically you need to compile the properties file into your swf, 
you can do it by adding to the compiler arguments in flex builder.
The arguments I found relevant are -locale=en_US 
-allow-source-path-overlap=true -source-path=locale/en_US 
(the source path is the path under src you have to create these folders).

Having said all that this is working inconsistently for me, 
you can see my question from a bit earlier today... 
I'll be happy to hear how this works for you.



[flexcoders] Re: Resource bundles and Modules

2009-04-30 Thread guy.tomer
--- In flexcoders@yahoogroups.com, Todd tpreka...@... wrote:
Oops, mine as well, i put it only in one mxml

 Mine was actually pretty simple to solve.  I had apparently just forget to 
 use the [ResourceBundle] attribute so that the compiler would know to bring 
 in the appropriate resource files.
 
 --- In flexcoders@yahoogroups.com, guy.tomer guy.tomer@ wrote:
 
  --- In flexcoders@yahoogroups.com, Todd tprekaski@ wrote:
  
   Hello All,
 I have some Modules (Cairngorm-based if that matters), that I want to 
   have their own resource.property files that are compiled into the module.
 I can't seem to get it working. 
 Should I be looking down the path of manually adding my resource 
   strings to the ResourceManger when my Module loads?  Or, is there 
   something more built-in to Flex that I'm missing.  (When I try searching 
   on this topic, I'm mostly only finding how to bundle your resources in 
   seperate module.swfs...which isn't what I'm looking for.  I just want to 
   have the the Module's resources compiled within it.)
   
   Thanks,
   Todd
  
  
  Basically you need to compile the properties file into your swf, 
  you can do it by adding to the compiler arguments in flex builder.
  The arguments I found relevant are -locale=en_US 
  -allow-source-path-overlap=true -source-path=locale/en_US 
  (the source path is the path under src you have to create these folders).
  
  Having said all that this is working inconsistently for me, 
  you can see my question from a bit earlier today... 
  I'll be happy to hear how this works for you.
 





[flexcoders] Re: Localization problem compiling .properties resource into swf

2009-04-30 Thread guy.tomer
--- In flexcoders@yahoogroups.com, guy.tomer guy.to...@... wrote:
Ignore this post, I put the [ResourceBundle] only in one mxml

 Hello,
 
 I have a .properties file put under src/locale/en_US
 
 I changed the compiler arguments to:
 -locale=en_US -allow-source-path-overlap=true -source-path=locale/en_US
 
 Now the strange thing - I have 2 applications in this project. One 
 specifically for testing the localization, the other is the application 
 itself. 
 
 When I run the test mxml everything works fine, when I run the other one the 
 ResourceBundle isn't loaded.
 
 Any ideas?
 
 Thanks!
 Guy





[flexcoders] .properties actionscript parser

2009-04-02 Thread guy.tomer
Hello,

We're managing the configuration on the server (java) and those configurations 
are generated in runtime as .properties format (text or xml).

The flex client loads the configuration in runtime.

Does anyone know of a utility class in as3 to parse .properties format?

Alternatively (less preferred) does anyone know of an easy way to generate the 
swf file  from the .properties on the server so it could be loaded as a 
ResourceBundle?

Thanks,
Guy



[flexcoders] Re: .properties actionscript parser

2009-04-02 Thread guy.tomer
That would be great! thanks

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

 Guy,
 I have a piece of code, which reads, XML and can be used as resource bundle
 @ runtime, if u need then i can  mail u
 
 Two tpyes,
 - Static
 - Run time ( note - other than .properties file, a simple xml file )
 
 -- 
 Regards,
 Paresh M. More
 Senior Software Engineer
 
 Nashik/Pune, Maharashtra, India.
 Email - pareshm...@...
 
 On Thu, Apr 2, 2009 at 2:39 PM, guy.tomer guy.to...@... wrote:
 
Hello,
 
  We're managing the configuration on the server (java) and those
  configurations are generated in runtime as .properties format (text or xml).
 
  The flex client loads the configuration in runtime.
 
  Does anyone know of a utility class in as3 to parse .properties format?
 
  Alternatively (less preferred) does anyone know of an easy way to generate
  the swf file from the .properties on the server so it could be loaded as a
  ResourceBundle?
 
  Thanks,
  Guy
 
   
 





[flexcoders] Problem calling a web service - error 2032

2009-02-13 Thread guy.tomer
Hello,

I've been struggling half a day with this Error 2032 returning from 
one of the APIs in my webservice. This API already worked and somehow 
after regenerating the proxies it stopped! Finally I figured out the 
only difference between this API and the others that work is that this 
one gets no parameters... crazy as it sounds when I added a parameter 
to the API and regenerated the classes everything began to work...

Does anyone have an explanation? or do I have to leave this ugly dummy 
and mark it as another bug in the generated classes implementation...

Anyway - at least maybe this will save others the fight.

Guy



[flexcoders] Re: Problem calling a web service - error 2032

2009-02-13 Thread guy.tomer
Yep, this error doesn't give any info...

I took a look at the server side, apparently the server (Java xFire) 
was throwing an error There must be a method name element.. 

I'm stopping the digging here since I have a work around - adding a 
dummy parameter to the method and avoiding a web service method with 
no parameters works around this annoying bug. 

I must say that this together with other bugs I encountered with Flex 
webservices makes me wonder if this is a mature technology...

G
--- In flexcoders@yahoogroups.com, Adrian Resa Jones 
noregret...@... wrote:

 This is a very annoying error that appears to have a zillion 
different
 causes - all it means is that something went wrong when flex tried 
to
 execute your code - it could mean that the file was not found or it
 could mean that it bombed for some reason. 
 
 After hunting around on the web for endless hours, I figured out 
that
 the only way to resolve this error is to debug the webservice or
 function call by typing in the url directly.
 
 In my case, It turned out to be the simple fact that I copied over 
the
 wrong (buggy) file to my server thanks to the way that flexbuilder
 caches source code to my local host.  
 
 --- In flexcoders@yahoogroups.com, guy.tomer guy.tomer@ wrote:
 
  Hello,
  
  I've been struggling half a day with this Error 2032 returning 
from 
  one of the APIs in my webservice. This API already worked and 
somehow 
  after regenerating the proxies it stopped! Finally I figured out 
the 
  only difference between this API and the others that work is that 
this 
  one gets no parameters... crazy as it sounds when I added a 
parameter 
  to the API and regenerated the classes everything began to work...
  
  Does anyone have an explanation? or do I have to leave this ugly 
dummy 
  and mark it as another bug in the generated classes 
implementation...
  
  Anyway - at least maybe this will save others the fight.
  
  Guy
 






[flexcoders] Re: Adding custom request headers to soap

2009-02-03 Thread guy.tomer
--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 I have been trying to do this for a while myself (Specifically I 
have
 a requirement to send WS-Security headers for the Web Service I am
 trying to use.
 
 The only thing I have found so far is this blog post:
 
 http://www.svendens.com/?p=20
 
 I have not had a chance to try it yet but if you do, please let me
 know your results.
 
 
 HTH
 
 
 Steve
 
 
 --- In flexcoders@yahoogroups.com, guy.tomer guy.tomer@ wrote:
 
  --- In flexcoders@yahoogroups.com, guy.tomer guy.tomer@ wrote:
  
   Hello,
   
   Does anyone know a way to add headers to a soap request when:
   1. The headers are not defined in the wsdl
   2. We obviously don't want to change the generated flex builder 
   classes.
   
   Thanks!
   Guy
  
  
  Did some more digging. Very annoying! it seems like it's possible 
when 
  working with WebService in the mxml. However, when generating 
proxies 
  they wrap an AbstractWebService and then although one can get 
access 
  by calling getWebService()and then addHeader() things doesn't 
work.
  
  Can't find any formal note about it from Adobe. I'll still be glad 
to 
  any assistance.
 


Thanks but this blog explains how to do it with WebService and he says  
it doesn't work with generated proxies. I know that is possible, but 
we rather work with generated proxies which is much more convenient.

Guy



[flexcoders] Adding custom request headers to soap

2009-02-02 Thread guy.tomer
Hello,

Does anyone know a way to add headers to a soap request when:
1. The headers are not defined in the wsdl
2. We obviously don't want to change the generated flex builder 
classes.

Thanks!
Guy



[flexcoders] Re: Adding custom request headers to soap

2009-02-02 Thread guy.tomer
--- In flexcoders@yahoogroups.com, guy.tomer guy.to...@... wrote:

 Hello,
 
 Does anyone know a way to add headers to a soap request when:
 1. The headers are not defined in the wsdl
 2. We obviously don't want to change the generated flex builder 
 classes.
 
 Thanks!
 Guy


Did some more digging. Very annoying! it seems like it's possible when 
working with WebService in the mxml. However, when generating proxies 
they wrap an AbstractWebService and then although one can get access 
by calling getWebService()and then addHeader() things doesn't work.

Can't find any formal note about it from Adobe. I'll still be glad to 
any assistance.