[Flashcoders] remoting with java

2005-10-19 Thread PR Durand

Hi list!

I need in my application to access java webservices, but I need also the 
server to send data to the clients without client request...
So is it possible to communicate in both directions client-server with 
remoting (currently openamf but will be turned on MM Flash Remoting) as 
we do with flashcomm server and the sharedObjects or do I need to 
install Remoting AND flashcom ?


thanx a lot

Pierre-Rémi


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] remoting with java

2005-10-19 Thread PR Durand

Ho thanks a lot Jester! that seems to be what I'm looking for!
But I don't think that I understant all the details. I thought that 
using a remote shared object was the only way to communicate with clients.

have you got tutorials urls about XML-socket server and/or Remoting please?
Thanx once more
PR

JesterXL a écrit :

Remoting is request/response only.  If you want push, you can use Flashcom, 
as you have been, or XMLSocket.  A great combo is using Flashcom to do 1 
Remoting call, and then utilizing Remote Shared Objects to propagate the 
data.  This prevents thousands of clients from making a remoting call, and 
syncs all that new data amongst said clients in real-time.


- Original Message - 
From: PR Durand [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 19, 2005 11:17 AM
Subject: [Flashcoders] remoting with java


Hi list!

I need in my application to access java webservices, but I need also the
server to send data to the clients without client request...
So is it possible to communicate in both directions client-server with
remoting (currently openamf but will be turned on MM Flash Remoting) as
we do with flashcomm server and the sharedObjects or do I need to
install Remoting AND flashcom ?

thanx a lot

Pierre-Rémi


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] remoting with java

2005-10-20 Thread PR Durand
I've read that Flashcomm was able to communicate with serverside 
applications.

something's still wrong in my mind...
I got sending data between my .swf and may .class using openamf but it's 
webservices, only pull.

I got sending data from the server to my .swf (push) using flashcom
but I still don't see the missing piece to communicate between flashcomm 
and the java application = to push data from the java to the swf via 
flashcomm...

please light my way, I'm lost!

thanks a lot
PR



JesterXL a écrit :

A Remote Shared Object is only available with Flash Communication 
Server (aka Flashcom), and it allows clients to receive pushed data 
from the server, and for them to make changes to the objects as well, 
and have that data synced among both the server and the client.


Flash Remoting allows Flex/Flash clients to send data to middle-tiers 
and allow the integration to be smoother.  Rather than parsing XML or 
URL encoded variables like you do with LoadVariables/ (GET/POST), 
you're data can have meaning on the client and server; sharing via 
ValueObjects that match in their respective language (Flash sends a 
Person object in ActionScript which gets translated to a Java POJO 
for example).


Tom Muck has some good Remoting resources:
http://www.flash-remoting.com/examples/

XMLSocket stuff is old, and should be all over the web; here's a start.
http://www.flashmove.com/forum/showthread.php?t=10573


- Original Message - From: PR Durand 
[EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 19, 2005 11:58 AM
Subject: Re: [Flashcoders] remoting with java


Ho thanks a lot Jester! that seems to be what I'm looking for!
But I don't think that I understant all the details. I thought that
using a remote shared object was the only way to communicate with 
clients.
have you got tutorials urls about XML-socket server and/or Remoting 
please?

Thanx once more
PR

JesterXL a écrit :

 

Remoting is request/response only.  If you want push, you can use 
Flashcom,
as you have been, or XMLSocket.  A great combo is using Flashcom to 
do 1
Remoting call, and then utilizing Remote Shared Objects to propagate 
the
data.  This prevents thousands of clients from making a remoting 
call, and

syncs all that new data amongst said clients in real-time.

- Original Message - From: PR Durand 
[EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 19, 2005 11:17 AM
Subject: [Flashcoders] remoting with java


Hi list!

I need in my application to access java webservices, but I need also 
the

server to send data to the clients without client request...
So is it possible to communicate in both directions client-server with
remoting (currently openamf but will be turned on MM Flash Remoting) as
we do with flashcomm server and the sharedObjects or do I need to
install Remoting AND flashcom ?

thanx a lot

Pierre-Rémi


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




  



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] certificates

2005-11-04 Thread PR Durand

Hi Fruber and Grant,
thanx a lot for answers.

Fruber : How can you get execute Java command from a flash component? I 
knew only Flashstudiopro (now Zinc) to execute VBScript or such langages 
within an exe but no idea on executing java from an online swf


Grant : your idea seems to be good too. I don't know if it's sufficient 
for me, but I have to work with the Java developper this afternoon, so 
we'll look for a solution using your ideas and I'll post again after this.


Thanks once more

PR


Fruber Malcome a écrit :


Without putting too much thought into it - sounds like you could build a
component that executes a java command and then stops, and the java shell
that received the command would make a call back into the flash component
for the result. Same theory applies to C#.NET.

So doing a google on verifying certificates using Java will go a long way as
well.

Thanks - Fruber


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of PR Durand
Sent: Thursday, November 03, 2005 6:41 AM
To: Flashcoders mailing list
Subject: [Flashcoders] certificates

Hi list!
is everyone ok? (don't answer all, I just hope so ;)

I have to verify from flash if a specified certificate is activated (I
don't know the exact term cause I don't know certificates and it will be
made by someone else, but I mean that before the website is launched, a
condition has been verified and the certificate is correct, activated,
created...etc).
so I'd like to know if it's possible to acces the certificates from Flash
and what is the way for this.

Any ideas, links about certificates functioning in general are welcome too.

thanks a lot!

PR
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Load file from local path to swf which is on web

2005-11-04 Thread PR Durand

Hi;
Are your sure wether the

mc.loadMovie(file://c:\test.swf)

targets YOUR local drive or the SERVER local drive?

PR



franto a écrit :


Hi,

I've problem with loading swf from local path to swf on net.
Example:
you can swf on net somewhere and code inside is:

mc = this.createEmptyMovieClip(content,100)
mc.loadMovie(file://c:\test.swf)

on local there si test.swf with code:

System.security.allowDomain(*)


This wirks in Flash7, but not in Flash 8. I was searching bit, and
find such things:

- http://www.macromedia.com/devnet/flash/articles/fplayer8_security.html

Quotation from page:
---
New Restrictions
# Loading restrictions: SWF and HTML content from non-local URLs may
no longer load any content (SWF, HTML, PNG, and so on) from local
paths.

- there is some security manager for flash 8 content
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager02.html

i allow localhost, but it doesnt helps..

And I need to work this with manual allowing localhost (It's kiosk
system, players can not set security settings for Flash player)


Does anyone have working solution for this?
Thanks many times...

-
Franto

http://blog.franto.com
http://www.flashcoders.sk
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Duplicate an object, a Date

2005-11-17 Thread PR Durand

Ok !!!
thanks a lot Scott
I tried with a simple clone:Date = new Date(orig) and received a type 
error, so I thought there were nothing else

thanks once more Scott
++
PR

Scott Hyndman a écrit :


var orig:Date = new Date(2001, 04, 21);
var clone:Date = new Date(orig.getTime());

Scott


-Original Message-
From:   [EMAIL PROTECTED] on behalf of PR Durand
Sent:   Thu 11/17/2005 4:46 AM
To: Flashcoders mailing list
Cc: 
Subject:[Flashcoders] Duplicate an object, a Date
Hi List!
Is there a way to duplicate a Date object, to have another object that I 
can modify independently,without creating new Date and duplicating all 
properties?

thanks a lot

PR
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] private/public troubles

2005-12-14 Thread PR Durand

Thanx a lot Grant,
I think you pointed right. 'will test it.
Why on _root? because the project is a full external code, and this 
class is the core of the application, so why not putting it on _level0 
(so mainSwf._root) ?

Is it better to make a CoreComponent and drag it to the scene?
PR


[EMAIL PROTECTED] a écrit :


did you type your instance of oCore on root ?

if your data is not typed the iDE will not enforce access modifiers.

e.g

var core:Core = new Core()
trace (core.oParam); /// should not compile

var anotherCore = new Core()
trace (anotherCore .oParam); /// should compile as anotherCore is not typed.

because you are declaring it on root is probably not typed.  Why put it on root 
?

Grant.

- Original Message -
From: PR Durand [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: 12/14/05 9:54 AM
Subject: [Flashcoders] private/public troubles

 


Hi List!

This is not really a problem, but rather a question cause it seems 
strange...


I've got a Core.as class containing
private var oParam:ParamMngr;
and
this.oParam = new ParamMngr();

in the ParamMngr class, we can see
private var mcGround:MovieClip;
and theuse of it.

into flash, on main stage, I've put the following:
import com.domain.Core;
_root.oCore = new Core();

and then tried
trace(_root.oCore.oParam.mcGround);
-- it worked !!!

why? each variable is private... so how can it run?

thx,

PR

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] component class path limited to 64 chars ???

2005-12-21 Thread PR Durand

Hi list!
I wanted to associate a class to a flash component, as ever, and so went 
to my library after copying my class path and name in Se|py
And what for a surprise : a Windows' ding! to notify that the name 
doesn't fit the textfield... Is that a joke?
It must have a solution, MM couldn't prevent us from linking this kind 
of class:
i.e. 
com.customerdomainname.entity.service.web.project.subproject.eshop.shoppingcart.SCManager

but I can't find it. Is there an import field or something like that?
Help please !

PR

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] can somebody answer my component name limit question please?

2005-12-21 Thread PR Durand

Hi there,

I've asked about the limit of a package+class name in the class link 
textfield within the component definition in the library... But nobody 
answered and I really need help!
So, the package name is limited to 64 bytes, so we can't write more than 
64 characters, and then this doesn't work:

com.customerdomainname.entity.web.project.eshop.shoppingcart.SCManager
I can't change the class path or name. What is the other way please?
Thanx for answers.

PR
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] can somebody answer my component name limitquestionplease?

2005-12-22 Thread PR Durand

Thanks, Jester and Steven
That's right, it's better to keep short path, and it's usefull to reuse 
common classes. That's what I generally do.
The problem here, is that we make a big project for a biug company, wich 
has many flash projects, and all the classes have to be in the same main 
directory, with a compulsory main pathname. That's the first problem : 
already about 30 chars used.
The second problem is that all my common classes, like shoppingcart, 
movieclip extenders, etc... are in my com.nodule.* path (while nodule is 
my company name)
so if I want to use it in my project, I've got to copy all those et 
modify all names...


Thanks for your answers, I finally grouped all my project classes in a 
single category under mainpath, and reorganise every class, wich took me 
nearly 2 hours last night... :(


++

PR



Steven Sacks a écrit :


com.customerdomainname.entity.web.project.eshop.shoppingcart.SCManager
   



 


find  replace all customerdomainname to cdn.
   



I'm going to assume customerdomainname actually varies here.

Sometimes, people really go overkill with this type of organization. You
really don't need to make that many levels.  I mean, you're convoluting it
by making it so deep, and you're not taking advantage of what OOP can really
do.

There have to be common methods to all the shopping carts, right?  Make a
shopping cart class that is independent of whoever the customer is, and if
you need custom methods for specific customers, just extend the methods of
the generic shopping cart class.

shoppingcart
customerdomain.shoppingcart extends shoppingcart

I find no compelling reason to organize my classes to such extents.  I'd
rather not have to dig down through 6 folders to find a class if I don't
have to.  Yes, a certain amount of organization is good.

inc/ui
inc/shoppingcart
inc/data

etc.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] flash bug or please help!

2006-01-05 Thread PR Durand

Hi list...
It starts to make me mad...
I encountered problem to load a very simple XML, like those we use all 
days since years...

So I made a very simple class only to read my xml...
Then flash started to talk to me about a class conflict error I 
have only one class with this name on the whole server... It's 200% sure 
that there is no conflict
I put things out one by one, til I got no more error... I got my class 
totally empty, except its name and an empty constructor, and the 
conflict error still was there.
I tried to change the class name, class path, package, the error was 
always here.
I let my Computer alone 1 or 2 minutes, then come back and only hit 
ctr-enter, the error has disappeared !!
So I rewrite all my ParseXML class, and got no error the first time... 
cool !! nope the 2nd time, without any change, the error came back. 
I wait a while, try again, error got away
I try to delete the import mx.utils.Delegate line in my class, 
generate the swf (and got the logical Delegate.create unknown error), 
then rewrite the line and generate once more, the conflict error came 
back !!


The only way I found not to have this error was to leave my package 
(wich is hold on a file server) and let the class in the same directory 
as the calling fla. In this case I can modify my class without error.


Maybe it's a server problem, as I often saw that Flash is the software I 
use that has the more problems with server (i.e. : let photoshop opened 
on a server located psd, and flash on a server loc. fla, reboot the 
server and there's no pb for photoshop, but flash can't write anymore on 
the file)


It really don't understand what happens, but as I got an error on an 
empty class, or got only sometimes the error on the same class, it lets 
me think about a flash bug... what do you think about it please?


Thanks,

PR

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] class conflicts

2006-01-06 Thread PR Durand

Hi List
Nobody answered me yesterday but I need to konw what happens please...
When I generate my movie, I sometimes get a class name conflict error... 
but there are 3 problems in this error:
- if I wait 2 or 3 minutes wihtout using flash before compiling, I don't 
have this error anymore and my project works perfectly... so it doesn't 
seem to come from my coding
- It's a very little project with 5 classes, and only one level in the 
package, I can't see how it can be possible to be in conflict... no way
- I've read in the help that a conflict is between a classpath that 
contains a compiled class name or path, so an A.B.C class creates a 
conflict with the A.B compiled class, but I don't have any compiled 
class, and the error message says 2 times the same name A.B.C and 
A.B.C, so I have a conflict between a class and itself ?!!??!
I can had that the package is a part of my main classpath, with all 
other projects I've made, and wich work well.
I've tried everythings, changing name of the class, of the path, etc... 
but the only way to avoid this error each time is to let all .as files 
in the same directory as the fla one... not very nice...


Does anyone have an idea on what happens please??

PR
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] class conflicts

2006-01-06 Thread PR Durand

Thanks a lot all of you to have given an answer.
I thought about server problems, class cache, etc but and I didn't knew 
this delete ASO and all things about synchronising times, etc...


And for the server problems, flash never like to work on server files, I 
always encounter problems... but I think we'll soon use that softwares 
usefull for making versions, work with a local copy of a file, etc...


Thanks a lot once more !

PR

Merrill, Jason a écrit :


The
other workaround is to install the ASO Commands available via the
Macromedia (Adobe?) Flash-Website
 



If you have Flash 8, Delete ASO Files is also an option built into the
Control drop-down menu.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com





NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] https and webservices

2006-01-11 Thread PR Durand

Hi List,

My Application is located on a domain, and my java server on another one.
I call a webservice (with the Webservice class)  from flash through 
https, on a specific port, and nothing comes back, also no Fault or Log
The same configuration works with an http method, but as soon as I turn 
it into https, no more result.

Can anyone send me a link or explain how I can make it run, please?

many thanks,

PR
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] https and webservices

2006-01-11 Thread PR Durand

Thanks David, for your answer,
but if you mind by complete path, that I've got to enter the whole 
url, then it's already what I do:

var sURI:String = https://domain:port/path/service?WSDL;;

new data in my tests :
With the same script, I can reach another https webservice on another 
domain. so the problem can be others.

to resume what can work:
- connecting my https java webservice from the browser and calling a 
method (so the java service works)
- connecting an https or http (both work) aspx webservice from flash and 
calling a method (so my flash script works)


what I cannot do:
- connecting the https java webservice from flash.

++
PR



Brunswick, David a écrit :

You need to define the complete path 


David Brunswick
Training Specialist II
Education Services
[EMAIL PROTECTED]
Direct: 912.527.4110


222 W. Oglethorpe Ave
Savannah, GA 31419


A fish out of water thinks out of the bowl!
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of PR
Durand
Sent: Wednesday, January 11, 2006 10:57 AM
To: Flashcoders mailing list
Subject: [Flashcoders] https and webservices

Hi List,

My Application is located on a domain, and my java server on another
one.
I call a webservice (with the Webservice class)  from flash through 
https, on a specific port, and nothing comes back, also no Fault or Log
The same configuration works with an http method, but as soon as I turn 
it into https, no more result.

Can anyone send me a link or explain how I can make it run, please?

many thanks,

PR
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] https and webservices - additional information

2006-01-11 Thread PR Durand

Yes, as we can acces the service within the browser.
I think the problem comes from the port, as it works on 443, but not on 
8443. We can't change the server port and flash doesn't seem to enjoy 
this connection.
Is it also normal, that trying to view the service methods in the 
Webservice panel in the flash IDE doesn't work with an https?


maybe is there a different way to tell flash that we use https, a 
particular port, etc??


PR


Brunswick, David a écrit :


Have you checked permissions on the server and folder structure?

David Brunswick
Training Specialist II
Education Services
[EMAIL PROTECTED]
Direct: 912.527.4110


222 W. Oglethorpe Ave
Savannah, GA 31419


A fish out of water thinks out of the bowl!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of PR Durand
Sent: Wednesday, January 11, 2006 11:15 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] https and webservices - additional information

I've just seen that if I try to acces my working https aspx webservice 
through the 8443 port instead of 443, it doesn't work anymore

Error opening URL etc etc
PR.


PR Durand a écrit :

 


Thanks David, for your answer,
but if you mind by complete path, that I've got to enter the whole 
url, then it's already what I do:

var sURI:String = https://domain:port/path/service?WSDL;;

new data in my tests :
With the same script, I can reach another https webservice on another 
domain. so the problem can be others.

to resume what can work:
- connecting my https java webservice from the browser and calling a 
method (so the java service works)
- connecting an https or http (both work) aspx webservice from flash 
and calling a method (so my flash script works)


what I cannot do:
- connecting the https java webservice from flash.

++
PR



Brunswick, David a écrit :

   


You need to define the complete path
David Brunswick
Training Specialist II
Education Services
[EMAIL PROTECTED]
Direct: 912.527.4110


222 W. Oglethorpe Ave
Savannah, GA 31419


A fish out of water thinks out of the bowl!
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of PR
Durand
Sent: Wednesday, January 11, 2006 10:57 AM
To: Flashcoders mailing list
Subject: [Flashcoders] https and webservices

Hi List,

My Application is located on a domain, and my java server on another
one.
I call a webservice (with the Webservice class)  from flash through 
https, on a specific port, and nothing comes back, also no Fault or Log
The same configuration works with an http method, but as soon as I 
turn it into https, no more result.

Can anyone send me a link or explain how I can make it run, please?

many thanks,

PR
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


   



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] https and webservices - additional information

2006-01-11 Thread PR Durand

Hi Danny,
thanks for your answer,
I would like this, Danny, but I don't think so cause:
My script works with another webservice
The service wich doesn't work in flash with the same script works well 
in the browser, and I copied-pasted the url

PR

Danny Kodicek a écrit :

Just a quick thought as this has caught me out a few times: have you 
checked that everything is in the right case? Linu-based servers are 
usually case-sensitive and I wouldn't be surprised if you've got an 
erroneous capital letter in there somewhere.


Danny


- Original Message - From: PR Durand [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, January 11, 2006 4:14 PM
Subject: Re: [Flashcoders] https and webservices - additional information


I've just seen that if I try to acces my working https aspx webservice
through the 8443 port instead of 443, it doesn't work anymore
Error opening URL etc etc
PR.


PR Durand a écrit :


Thanks David, for your answer,
but if you mind by complete path, that I've got to enter the whole 
url, then it's already what I do:

var sURI:String = https://domain:port/path/service?WSDL;;

new data in my tests :
With the same script, I can reach another https webservice on another 
domain. so the problem can be others.

to resume what can work:
- connecting my https java webservice from the browser and calling a 
method (so the java service works)
- connecting an https or http (both work) aspx webservice from flash 
and calling a method (so my flash script works)


what I cannot do:
- connecting the https java webservice from flash.

++
PR



Brunswick, David a écrit :


You need to define the complete path
David Brunswick
Training Specialist II
Education Services
[EMAIL PROTECTED]
Direct: 912.527.4110


222 W. Oglethorpe Ave
Savannah, GA 31419


A fish out of water thinks out of the bowl!
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of PR
Durand
Sent: Wednesday, January 11, 2006 10:57 AM
To: Flashcoders mailing list
Subject: [Flashcoders] https and webservices

Hi List,

My Application is located on a domain, and my java server on another
one.
I call a webservice (with the Webservice class)  from flash through 
https, on a specific port, and nothing comes back, also no Fault or Log
The same configuration works with an http method, but as soon as I 
turn it into https, no more result.

Can anyone send me a link or explain how I can make it run, please?

many thanks,

PR
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] https and webservices - additional information

2006-01-11 Thread PR Durand

Thanks Dave,
As I can't change anything on the java server, wich is located by the 
customer, I tryied on my test server.

And the https://testdomain:1234/ doesn't work more than the 8443
It seems that as soon as I write a port, it fails.
when I let my server listening to the 443 port, and don't specify any 
port in my flash script, everything works, but when I write those : I 
receive an error...

PR

Dave Watts a écrit :


Yes, as we can acces the service within the browser.
I think the problem comes from the port, as it works on 443, 
but not on 8443. We can't change the server port and flash 
doesn't seem to enjoy this connection.
Is it also normal, that trying to view the service methods in 
the Webservice panel in the flash IDE doesn't work with an https?


maybe is there a different way to tell flash that we use 
https, a particular port, etc??
   



I don't know if this is the cause of your problem, but I think that Breeze
will use port 8443 as an alternative connection port for Breeze Meeting.
Perhaps there's something built into the Flash player that's preventing you
from using it for HTTPS because of this?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] https and webservices - additional information

2006-01-11 Thread PR Durand

Nope... I tryied to excplicitly write the :443 in my uri and it worked...
8443 and 1234 did not
is there a port restiction list?
PR

PR Durand a écrit :


Thanks Dave,
As I can't change anything on the java server, wich is located by the 
customer, I tryied on my test server.

And the https://testdomain:1234/ doesn't work more than the 8443
It seems that as soon as I write a port, it fails.
when I let my server listening to the 443 port, and don't specify any 
port in my flash script, everything works, but when I write those : 
I receive an error...

PR

Dave Watts a écrit :


Yes, as we can acces the service within the browser.
I think the problem comes from the port, as it works on 443, but not 
on 8443. We can't change the server port and flash doesn't seem to 
enjoy this connection.
Is it also normal, that trying to view the service methods in the 
Webservice panel in the flash IDE doesn't work with an https?


maybe is there a different way to tell flash that we use https, a 
particular port, etc??
  



I don't know if this is the cause of your problem, but I think that 
Breeze

will use port 8443 as an alternative connection port for Breeze Meeting.
Perhaps there's something built into the Flash player that's 
preventing you

from using it for HTTPS because of this?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] certificate

2006-01-11 Thread PR Durand

Hi List
It seems that I found antoher point to explain my difficulties to obtain 
a result in connecting my WS.
The server has a Double-side certificate. I installed the certificate on 
firefox, so I can call correctly the https webservice via the browser, 
on the 8448 port without any problem,

but maybe flash can't communicate correctly?
I thought that the browser holding the swf was the only concerned by the 
certificate, as flash isn't seen by the servers, but only the webpage 
holding it... am I wrong? Can Flash have problems with the certificate?

thanks a lot
PR

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: SV: [Flashcoders] certificate

2006-01-12 Thread PR Durand

Thanks a lot for all your answers, Martin, Grant and Campbell,
So I got a additional step: I have a domain problem now...
the response.setHeader didn't change anything at the beginning, but may 
help to go further. the proxy, we tried to build one yesterday, but not 
enough time...so thanks for the link
I got my service working on the 8443 port by uploading the swf on the 
same server where the service is located.
Why isn't it possible to reach it from another domain? I put the 
crossdomain.xml on the server, is there another security rule?


PR



Martin Baltzer a écrit :

Yes flash in Internet Explorer has serious problems with self signed or 3. party ssl certificates. If the certificate is a valid one (by Verisign) there are no issues. 

The problem is actually that when flash makes the request through IE the browser thinks the https page is already expired when it receives it and therefore it won't return it to flash. 


This is only an issue in Internet Explorer but it can be fixed if proper cache 
headers are being set on the serverside.

In JAVA/JSP the following extra cache headers solved the problem for me :)

response.setHeader(Cache-Control, no-store); 
response.setHeader(Pragma, no-store);   



Hope that works
Martin


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af [EMAIL PROTECTED]
Sendt: 11. januar 2006 21:38
Til: flashcoders@chattyfig.figleaf.com
Emne: Re: [Flashcoders] certificate

I have had some issue's with certificates and flash. 


I use charles which is an http proxy to intercept the requests between the 
browser and the server to figure out what the issue was.  1st test is really to 
create an html page and call your webservice using a form post and make sure 
the certificates are working within the browser and the webserver BEFORE you 
try and use the service from flash.

There is cheap http proxy thats better than charles but I forget who created it.

ah, here is the link http://kevinlangdon.com/serviceCapture/

Grant.

- Original Message -
From: PR Durand [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: 1/11/06 3:08 PM
Subject: [Flashcoders] certificate

 


Hi List
It seems that I found antoher point to explain my difficulties to obtain 
a result in connecting my WS.
The server has a Double-side certificate. I installed the certificate on 
firefox, so I can call correctly the https webservice via the browser, 
on the 8448 port without any problem,

but maybe flash can't communicate correctly?
I thought that the browser holding the swf was the only concerned by the 
certificate, as flash isn't seen by the servers, but only the webpage 
holding it... am I wrong? Can Flash have problems with the certificate?

thanks a lot
PR

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: SV: SV: [Flashcoders] certificate

2006-01-12 Thread PR Durand

Thanks a lot, Martin!
I don't call a swf from antoher, I will have a project on a http:1024 
server and will call webservices on another server, on https:8443. The 
next version will have a Flash Media Server between the 2 others.
We've finally found the problem !! it works now but there's still 
something not very clear.
There were 2 problems : the developper by the customer had told me that 
he had put the crossdomain.xml in the root folder, but he did in the 
project root folder, not the server one... 2 days to find this out ... 
argh !!
The ohter thing is the strange one : to make it run, my html page 
holding the calling swf has to be also on a https:8443 server also !! 
Even if it's antoher server, ohter domain, etc... if I change the port 
or let it without https, I doesn't work why?


PR

Martin Baltzer a écrit :


Oh yes and it is actually a bit har d to tell you where exactly things may fall 
apart:)

1. make sure that the crossdomain file responds on both http and https. Makes 
sure that the secure attribute is set to false
allow-access-from domain=domainA secure=false /

2. If you have a swf on http loading in a swf or service on https you must 
declare System.security.allowInsecureDomain() inside the http swf ewven though 
its on the same domain (flash does not treat http://domain.com and 
https://domain.com equally)

3. Did you install your self signed certicate in the browser? If you hit any https page on the server do you get an alert the first time in the session? If so flash don't like that and you need to install the certificate first if possible. Another solution is to hit any https page on the server before launching your flash app because the alert only happens the first time in the session. 


/Martin

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af PR Durand
Sendt: 12. januar 2006 10:11
Til: Flashcoders mailing list
Emne: Re: SV: [Flashcoders] certificate

Thanks a lot for all your answers, Martin, Grant and Campbell,
So I got a additional step: I have a domain problem now...
the response.setHeader didn't change anything at the beginning, but may 
help to go further. the proxy, we tried to build one yesterday, but not 
enough time...so thanks for the link
I got my service working on the 8443 port by uploading the swf on the 
same server where the service is located.
Why isn't it possible to reach it from another domain? I put the 
crossdomain.xml on the server, is there another security rule?


PR



Martin Baltzer a écrit :

 

Yes flash in Internet Explorer has serious problems with self signed or 3. party ssl certificates. If the certificate is a valid one (by Verisign) there are no issues. 

The problem is actually that when flash makes the request through IE the browser thinks the https page is already expired when it receives it and therefore it won't return it to flash. 


This is only an issue in Internet Explorer but it can be fixed if proper cache 
headers are being set on the serverside.

In JAVA/JSP the following extra cache headers solved the problem for me :)

response.setHeader(Cache-Control, no-store); 
response.setHeader(Pragma, no-store);   



Hope that works
Martin


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af [EMAIL PROTECTED]
Sendt: 11. januar 2006 21:38
Til: flashcoders@chattyfig.figleaf.com
Emne: Re: [Flashcoders] certificate

I have had some issue's with certificates and flash. 


I use charles which is an http proxy to intercept the requests between the 
browser and the server to figure out what the issue was.  1st test is really to 
create an html page and call your webservice using a form post and make sure 
the certificates are working within the browser and the webserver BEFORE you 
try and use the service from flash.

There is cheap http proxy thats better than charles but I forget who created it.

ah, here is the link http://kevinlangdon.com/serviceCapture/

Grant.

- Original Message -
From: PR Durand [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: 1/11/06 3:08 PM
Subject: [Flashcoders] certificate



   


Hi List
It seems that I found antoher point to explain my difficulties to obtain 
a result in connecting my WS.
The server has a Double-side certificate. I installed the certificate on 
firefox, so I can call correctly the https webservice via the browser, 
on the 8448 port without any problem,

but maybe flash can't communicate correctly?
I thought that the browser holding the swf was the only concerned by the 
certificate, as flash isn't seen by the servers, but only the webpage 
holding it... am I wrong? Can Flash have problems with the certificate?

thanks a lot
PR

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: SV: SV: SV: [Flashcoders] certificate

2006-01-12 Thread PR Durand

Ok, thank you very much Martin Baltzer
We will have first to connect the application to the webservices as ths 
ws calls run, and after this we'll try your method.
I just didn't understand why you set the allow-access-from tag to 
false? it concerns the caller? Will this false value allow the 
secured domain to accept requests from unsecured ones?

Thx once more,
PR


Martin Baltzer a écrit :


Because changing protocol, port or server makes flash thinks its crossing 
domains :)

So you still have a crossdomain issue and need to be aware of possible 
inSecuredomain issues!

1.Go back and try http to http on different servers! If it works crossdomain 
issues should be ok

2. If step 1 works then try to switch vack to load from https and see what 
happens.

/Martin


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af PR Durand
Sendt: 12. januar 2006 14:05
Til: Flashcoders mailing list
Emne: Re: SV: SV: [Flashcoders] certificate

Thanks a lot, Martin!
I don't call a swf from antoher, I will have a project on a http:1024 
server and will call webservices on another server, on https:8443. The 
next version will have a Flash Media Server between the 2 others.
We've finally found the problem !! it works now but there's still 
something not very clear.
There were 2 problems : the developper by the customer had told me that 
he had put the crossdomain.xml in the root folder, but he did in the 
project root folder, not the server one... 2 days to find this out ... 
argh !!
The ohter thing is the strange one : to make it run, my html page 
holding the calling swf has to be also on a https:8443 server also !! 
Even if it's antoher server, ohter domain, etc... if I change the port 
or let it without https, I doesn't work why?


PR

Martin Baltzer a écrit :

 


Oh yes and it is actually a bit har d to tell you where exactly things may fall 
apart:)

1. make sure that the crossdomain file responds on both http and https. Makes 
sure that the secure attribute is set to false
allow-access-from domain=domainA secure=false /

2. If you have a swf on http loading in a swf or service on https you must 
declare System.security.allowInsecureDomain() inside the http swf ewven though 
its on the same domain (flash does not treat http://domain.com and 
https://domain.com equally)

3. Did you install your self signed certicate in the browser? If you hit any https page on the server do you get an alert the first time in the session? If so flash don't like that and you need to install the certificate first if possible. Another solution is to hit any https page on the server before launching your flash app because the alert only happens the first time in the session. 


/Martin

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af PR Durand
Sendt: 12. januar 2006 10:11
Til: Flashcoders mailing list
Emne: Re: SV: [Flashcoders] certificate

Thanks a lot for all your answers, Martin, Grant and Campbell,
So I got a additional step: I have a domain problem now...
the response.setHeader didn't change anything at the beginning, but may 
help to go further. the proxy, we tried to build one yesterday, but not 
enough time...so thanks for the link
I got my service working on the 8443 port by uploading the swf on the 
same server where the service is located.
Why isn't it possible to reach it from another domain? I put the 
crossdomain.xml on the server, is there another security rule?


PR



Martin Baltzer a écrit :



   

Yes flash in Internet Explorer has serious problems with self signed or 3. party ssl certificates. If the certificate is a valid one (by Verisign) there are no issues. 

The problem is actually that when flash makes the request through IE the browser thinks the https page is already expired when it receives it and therefore it won't return it to flash. 


This is only an issue in Internet Explorer but it can be fixed if proper cache 
headers are being set on the serverside.

In JAVA/JSP the following extra cache headers solved the problem for me :)

response.setHeader(Cache-Control, no-store); 
response.setHeader(Pragma, no-store);   



Hope that works
Martin


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af [EMAIL PROTECTED]
Sendt: 11. januar 2006 21:38
Til: flashcoders@chattyfig.figleaf.com
Emne: Re: [Flashcoders] certificate

I have had some issue's with certificates and flash. 


I use charles which is an http proxy to intercept the requests between the 
browser and the server to figure out what the issue was.  1st test is really to 
create an html page and call your webservice using a form post and make sure 
the certificates are working within the browser and the webserver BEFORE you 
try and use the service from flash.

There is cheap http proxy thats better than charles but I forget who created it.

ah, here is the link http://kevinlangdon.com/serviceCapture/

Grant

Re: SV: SV: SV: SV: [Flashcoders] certificate

2006-01-12 Thread PR Durand

Superb!
I thank all of you for your help!


Martin Baltzer a écrit :


Yes exactly

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af PR Durand
Sendt: 12. januar 2006 14:25
Til: Flashcoders mailing list
Emne: Re: SV: SV: SV: [Flashcoders] certificate

Ok, thank you very much Martin Baltzer
We will have first to connect the application to the webservices as ths 
ws calls run, and after this we'll try your method.
I just didn't understand why you set the allow-access-from tag to 
false? it concerns the caller? Will this false value allow the 
secured domain to accept requests from unsecured ones?

Thx once more,
PR


Martin Baltzer a écrit :

 


Because changing protocol, port or server makes flash thinks its crossing 
domains :)

So you still have a crossdomain issue and need to be aware of possible 
inSecuredomain issues!

1.Go back and try http to http on different servers! If it works crossdomain 
issues should be ok

2. If step 1 works then try to switch vack to load from https and see what 
happens.

/Martin


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af PR Durand
Sendt: 12. januar 2006 14:05
Til: Flashcoders mailing list
Emne: Re: SV: SV: [Flashcoders] certificate

Thanks a lot, Martin!
I don't call a swf from antoher, I will have a project on a http:1024 
server and will call webservices on another server, on https:8443. The 
next version will have a Flash Media Server between the 2 others.
We've finally found the problem !! it works now but there's still 
something not very clear.
There were 2 problems : the developper by the customer had told me that 
he had put the crossdomain.xml in the root folder, but he did in the 
project root folder, not the server one... 2 days to find this out ... 
argh !!
The ohter thing is the strange one : to make it run, my html page 
holding the calling swf has to be also on a https:8443 server also !! 
Even if it's antoher server, ohter domain, etc... if I change the port 
or let it without https, I doesn't work why?


PR

Martin Baltzer a écrit :



   


Oh yes and it is actually a bit har d to tell you where exactly things may fall 
apart:)

1. make sure that the crossdomain file responds on both http and https. Makes 
sure that the secure attribute is set to false
allow-access-from domain=domainA secure=false /

2. If you have a swf on http loading in a swf or service on https you must 
declare System.security.allowInsecureDomain() inside the http swf ewven though 
its on the same domain (flash does not treat http://domain.com and 
https://domain.com equally)

3. Did you install your self signed certicate in the browser? If you hit any https page on the server do you get an alert the first time in the session? If so flash don't like that and you need to install the certificate first if possible. Another solution is to hit any https page on the server before launching your flash app because the alert only happens the first time in the session. 


/Martin

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af PR Durand
Sendt: 12. januar 2006 10:11
Til: Flashcoders mailing list
Emne: Re: SV: [Flashcoders] certificate

Thanks a lot for all your answers, Martin, Grant and Campbell,
So I got a additional step: I have a domain problem now...
the response.setHeader didn't change anything at the beginning, but may 
help to go further. the proxy, we tried to build one yesterday, but not 
enough time...so thanks for the link
I got my service working on the 8443 port by uploading the swf on the 
same server where the service is located.
Why isn't it possible to reach it from another domain? I put the 
crossdomain.xml on the server, is there another security rule?


PR



Martin Baltzer a écrit :



  

 

Yes flash in Internet Explorer has serious problems with self signed or 3. party ssl certificates. If the certificate is a valid one (by Verisign) there are no issues. 

The problem is actually that when flash makes the request through IE the browser thinks the https page is already expired when it receives it and therefore it won't return it to flash. 


This is only an issue in Internet Explorer but it can be fixed if proper cache 
headers are being set on the serverside.

In JAVA/JSP the following extra cache headers solved the problem for me :)

response.setHeader(Cache-Control, no-store); 
response.setHeader(Pragma, no-store);   



Hope that works
Martin


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af [EMAIL PROTECTED]
Sendt: 11. januar 2006 21:38
Til: flashcoders@chattyfig.figleaf.com
Emne: Re: [Flashcoders] certificate

I have had some issue's with certificates and flash. 


I use charles which is an http proxy to intercept the requests between the 
browser and the server to figure out what the issue was.  1st test is really to 
create an html page and call your

Re: SV: [Flashcoders] certificate

2006-01-12 Thread PR Durand

Thanx, Grant
The problem is now resolved, I've posted the explaination a little bit 
earlier...
The crossdomain file was not in the real root folder, and there was a 
port problem.

Many thanks for your help
PR

[EMAIL PROTECTED] a écrit :


Did you make sure the cross domain file is in the root folder ?

Grant.

- Original Message -
From: PR Durand [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: 1/12/06 4:37 AM
Subject: Re: SV: [Flashcoders] certificate

 


Thanks a lot for all your answers, Martin, Grant and Campbell,
So I got a additional step: I have a domain problem now...
the response.setHeader didn't change anything at the beginning, but may 
help to go further. the proxy, we tried to build one yesterday, but not 
enough time...so thanks for the link
I got my service working on the 8443 port by uploading the swf on the 
same server where the service is located.
Why isn't it possible to reach it from another domain? I put the 
crossdomain.xml on the server, is there another security rule?


PR



Martin Baltzer a écrit :

   

Yes flash in Internet Explorer has serious problems with self signed or 3. party ssl certificates. If the certificate is a valid one (by Verisign) there are no issues. 

The problem is actually that when flash makes the request through IE the browser thinks the https page is already expired when it receives it and therefore it won't return it to flash. 


This is only an issue in Internet Explorer but it can be fixed if proper cache 
headers are being set on the serverside.

In JAVA/JSP the following extra cache headers solved the problem for me :)

response.setHeader(Cache-Control, no-store); 
response.setHeader(Pragma, no-store);   



Hope that works
Martin


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af [EMAIL PROTECTED]
Sendt: 11. januar 2006 21:38
Til: flashcoders@chattyfig.figleaf.com
Emne: Re: [Flashcoders] certificate

I have had some issue's with certificates and flash. 


I use charles which is an http proxy to intercept the requests between the 
browser and the server to figure out what the issue was.  1st test is really to 
create an html page and call your webservice using a form post and make sure 
the certificates are working within the browser and the webserver BEFORE you 
try and use the service from flash.

There is cheap http proxy thats better than charles but I forget who created it.

ah, here is the link http://kevinlangdon.com/serviceCapture/

Grant.

- Original Message -
From: PR Durand [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: 1/11/06 3:08 PM
Subject: [Flashcoders] certificate



 


Hi List
It seems that I found antoher point to explain my difficulties to obtain 
a result in connecting my WS.
The server has a Double-side certificate. I installed the certificate on 
firefox, so I can call correctly the https webservice via the browser, 
on the 8448 port without any problem,

but maybe flash can't communicate correctly?
I thought that the browser holding the swf was the only concerned by the 
certificate, as flash isn't seen by the servers, but only the webpage 
holding it... am I wrong? Can Flash have problems with the certificate?

thanks a lot
PR

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] private - public

2006-01-12 Thread PR Durand

Hi list
I've already posted this problem, and you have answered me, but the 
problem is back, and I did what you told me.


I've got my core class : Core.as containing this

import myProjetPath.proxy.CommandManager;
class Core
{
private var oCM:CommandManager
   [...]
   function Core()
   {
  this.oCM = new CommandManager(this);
   }
}

so You've seen that CommandManager is linked by the private var oCM

in my fla, in the root timeline, I've written:
import myProjectPath.Core;
var oCore:Core = new Core();

and I tried to call a public method AddEvent in the CommandManager 
like this:

_root.oCore.oCM.AddEvent(oParams);
and it worked, even if oCM is private !!! It should not accept this line!
why does it work please?
You've told me that my oCore prop wasn't typed because it was formerly 
_root.oCore = new Core(), but now I've typed it...


PR
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] [ANN] FlashDevelop beta8 release

2006-01-13 Thread PR Durand

What for a really good release!!
First glance : seems to be THE AS2coding IDE... the autocompletion is 
perfectly done !

hope it will keep on satisfying in the next days...

PR



Philippe a écrit :


The only thing I miss comparing to PrimalScript (that I've been using before
I've got known FlashDevelop ) is creating project from existing directory.
   



It is actually possible to do that:
just create an empty project in an existing directory.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] webservice help needed : object not decoded

2006-01-16 Thread PR Durand

Hi list,
I encounter troubles with using webservices from java.
When I call a method that returns a simple Object (flash native or self 
defined class object), there are no problem
but as soon as I call a method that returns an array of self defined 
object I receive an undefined value for the result param in the 
onResult method.
the service works well in the browser, and when I trace the response 
propertie, I can see the xml object with the correct returns.
but undefined in the result value, nothing but the xml properties in 
the getOutputParameters...

please help!

PR
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] java array to flash - please help!

2006-01-16 Thread PR Durand

Hi

I really don't understand what happens.
in a java webservice call, each time I have to receive an array, flash 
can't convert it and the result param equals undefined.
the same WS written in .NET works and flash receives an array of object, 
but when I look at the soap response, I only see a normal xml, without 
SOAP term anywhere.
The Java SOAP response has more complex soap reponse, and the type of 
the object that should be an array is described as 
getVisitorByPrefixeReturn

What should I do to receive correctly this array please?

The other languages have automically generated type class from the wsdl 
to the expected language. What about flash?


Please answer me I really can't find any solution, and find no link on 
google, maybe my search terms aren't good, but I don't know what to 
search exactly for.


PR
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] java array to flash - please help!

2006-01-16 Thread PR Durand

Hi Adam
thanks for your answer, but the webservice has been developped in Java.
maybe is there an equivalent in java?
If it can help, I tried to acces the webservice via the webservice 
connector component class, as it can preload all wsdl and generate 
complex typing, but the answer is once more undefined for all method 
that replies Arrays of complex Objects.
The java developpers team manager ensures me that his soap enveloppe is 
totally standard. I don't know what to do.

thank you once more.
PR

Adam Nemitoff a écrit :


I have found that the SOAP response from the web service method needs to be
formatted as SoapRPC.  If your web service has been developed in .NET, just
as the [SoapRpcService()] attribute to your web service class.

-Adam Nemitoff
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of PR Durand
Sent: Monday, January 16, 2006 1:51 PM
To: Flashcoders mailing list
Subject: [Flashcoders] java array to flash - please help!

Hi

I really don't understand what happens.
in a java webservice call, each time I have to receive an array, flash 
can't convert it and the result param equals undefined.
the same WS written in .NET works and flash receives an array of object, 
but when I look at the soap response, I only see a normal xml, without 
SOAP term anywhere.
The Java SOAP response has more complex soap reponse, and the type of 
the object that should be an array is described as 
getVisitorByPrefixeReturn

What should I do to receive correctly this array please?

The other languages have automically generated type class from the wsdl 
to the expected language. What about flash?


Please answer me I really can't find any solution, and find no link on 
google, maybe my search terms aren't good, but I don't know what to 
search exactly for.


PR
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Class Error Message

2006-01-16 Thread PR Durand

Hi Chris

At the end of your code you have this now = new Date(); outside any method
so flash doesn't know what to make with.
Those 2 lines
   now = new Date();
   trace (The Time is  + formatTime(now));
seem to be here to test your formatTime method, but it has to be in 
flash, not in the class, if you keep this format.

Or you can also integrate it to your constructor:
   public function Hello(target:MovieClip) {
   container_mc = target.createEmptyMovieClip(blah, 1);
   placeGreeting();
   var now:Date = new Date();
   trace (The Time is  + this.formatTime(now));
   }

Regards,

PR




Chris Kennon a écrit :


Hi All,

In the following code my attempt at formatting the date returns this  
to the output window:

//
**Error**  
BushidoDeep:Users:chris:Desktop:hello:com:bushidodeep:Hello.as: Line  
55: This statement is not permitted in a class definition.

 now = new Date();

**Error**  
BushidoDeep:Users:chris:Desktop:hello:com:bushidodeep:Hello.as: Line  
56: This statement is not permitted in a class definition.

 trace (The Time is  + formatTime(now));

**Error**  
BushidoDeep:Users:chris:Desktop:hello:com:bushidodeep:Hello.as: Line  
61: ActionScript 2.0 class scripts may only define class or interface  
constructs.

 }

Total ActionScript Errors: 3  Reported Errors: 3
//
/**
A Simple hello class
that assigns a custom
message to a text field
based upon time of day.
**/
class com.bushidodeep.Hello {
private var width:Number;
private var height:Number;
private var stageHeight:Number = 300;
private var stageWidth:Number = 300;
private var theDate:String;
private var now:Date;
private static var textFieldDepth:Number = 0;
private var messageFormat:TextFormat;
public var messageDisplay:Function = displayGreeting;
public var message:String = ;

// Movie clip that will contain visual
// elements of the hello.
private var container_mc:MovieClip;
//
public function Hello(target:MovieClip) {
container_mc = target.createEmptyMovieClip(blah, 1);
placeGreeting();
}
private function placeGreeting() {
messageFormat = new TextFormat();
messageFormat.font = Verdana;
messageFormat.color = 0xff;
messageFormat.bold = true;
container_mc.createTextField(messageText, textFieldDepth, 
75,  100, 150, 25);

container_mc.messageText.text = messageDisplay();
container_mc.messageText.border = false;
container_mc.messageText.setTextFormat(messageFormat);
}
//for testing only will use am/pm passed from formatTime() to 
output  message

private function displayGreeting() {
if (now == afternoon) {
message = Disco Rules;
} else {
message = Samba Rules;
}
return message;
}
private function formatTime(theDate){
var hour=theDate.getHours();
var minute=theDate.getMinutes()9 ? theDate.getMinutes() : 0 
+  theDate.getMinutes();

if (hour  12){
var timeString = (hour-12) + : + minute + PM;
}else{
var timeString = hour + : + minute + AM;
}
return timeString;
}
now = new Date();
trace (The Time is  + formatTime(now));

   
   
}

}




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XML Data Limit in IE?

2006-01-17 Thread PR Durand

Hi Jeff
I sometimes had to use very long XML files, but never encountered any 
problem in IE with any XML flash had problems before IE.
But I thought one time that there were one because I had a format error 
at the line about 30.000 , so very too far to think about an error... 
but finally the accent error was repaired and the full XML was nearly 
50.000 lines long, and the only problem was to parse it with flash.

PR


Jeff Fox a écrit :


Thinking about my previous post regarding XML data not loading in IE, I was
wondering if anyone had encountered a data limit with XML in IE, similar to
the 255 byte limit of getURL in IE6. This is just a wild theory, but since
there is an odd bug for one, maybe there is for the other here as well.
ANyone run into something that would support this? If so, how do we solve
it?

-Jeff
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] please help - exceptions and null format can't be interpreted in webservice

2006-01-23 Thread PR Durand

Hi list
I've asked on friday but nobody answered. I can't get finding 
explaination please help.
I use the Webservice classes to connect to a java webservice server, and 
now it works, but I still have 2 problems in interpreting the server 
response:
- the exceptions throwed by the server aren't translated in flash 
exceptions, so my catch commands aren't called. I only have a Unable 
to connect to endpoint Log Fault, as if the received xml contains the 
good information...
- when I want to send a null value, flash doesn't write the xsi:null 
value in the thrown xml, so the server receives an error. The java 
developper told me that this xsi:null is the only standard way to send a 
null via webservice and I don't know what to do, as I use the native 
Webservice class.


thx for helping me

PR
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] server sends a fault, flash receives an unable to connect to endpoint

2006-02-23 Thread PR Durand

Hi List
I still can't find any help neither solution and my client needs me to 
find it quickly...
In a webservice connected flash application, when the server sends an 
exception, (working, verified when fill the address directly in a 
browser), flash doesn't receive it, but throws a onFault event, with 
only an unable to connect to endpoint

pendingCall.response is empty
I have no way to receive the error code

please where does it come from, what should I do to catch the error key??

the received soap verified in a browser, but that flash doesn't read, is:

soapenv:Envelope
   soapenv:Body
   soapenv:Fault
   faultcodesoapenv:Server/faultcode
   faultstringhereTheErrorCodeAsANumber/faultstring
   faultactorAPI Web Service IHM PRO/faultactor
detail
   ns1:hostnameg-Host/ns1:hostname
   /detail
   /soapenv:Fault
   /soapenv:Body
/soapenv:Envelope



thanks

PiR
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] allowing slow animation

2006-04-04 Thread PR Durand

Hi List!
There's something that I really can't understand in Flash 8
Before ('till Flash 7), if you made a 100 pixels object animation in 10 
frames, flash knew how to display a 1/10 pixel and the animation was 
quite smooth.
That was sometimes a problem because when we wanted a aliased display, 
we had to enter entire coordinates for the object...
Now, by default, flash displays the object in animations only on entire 
pixels, but only for animation  so the choice doesn't seem to be 
really good... when we want a aliased text, we still have to enter 
manually entire coords, but in the animation we can't avoid those entire 
coords... it shall be the contrary, isn't it?


is there an option, checkbox or something else to be able again to have 
smoothed 100 pixels in 10 frames animation instead of a pixel each second?


thanks
PiR
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] allowing slow animation

2006-04-04 Thread PR Durand

Hi Ian,
thanks for your answer, but no, it doesn't solve the problem.
Its actually texts, but I tried with changing the aliasing properties 
without any result, and tried also with a vectorial shape and the 
problem still be the same...

Regards,
PiR

Ian Thomas a écrit :

Is this solely for text? In which case, is this something to do with
the new Anti-alias for Animation or Anti-alias for Readability
options in the properties dialog of the new IDE? Does switching that
solve your problem?

Cheers,
  Ian

On 4/4/06, PR Durand [EMAIL PROTECTED] wrote:
  

Hi List!
There's something that I really can't understand in Flash 8
Before ('till Flash 7), if you made a 100 pixels object animation in 10
frames, flash knew how to display a 1/10 pixel and the animation was
quite smooth.
That was sometimes a problem because when we wanted a aliased display,
we had to enter entire coordinates for the object...
Now, by default, flash displays the object in animations only on entire
pixels, but only for animation  so the choice doesn't seem to be
really good... when we want a aliased text, we still have to enter
manually entire coords, but in the animation we can't avoid those entire
coords... it shall be the contrary, isn't it?

is there an option, checkbox or something else to be able again to have
smoothed 100 pixels in 10 frames animation instead of a pixel each second?



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] allowing slow animation

2006-04-06 Thread PR Durand

Snap to pixel ???
Thanks for your answer but I thought it was just for the flash IDE, to 
place the object... however I can't see any difference in the animation 
with or without the pixel snaping enabled.
Till there, the only difference from the same .fla is the player 
version. f7 : smooth, f8 : broken


PiR

Mike Mountain a écrit :

I think you have snap to pixels enabled:

View/snapping/snap to pixels

M

  

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of PR Durand

Sent: 04 April 2006 14:30
To: Flashcoders mailing list
Subject: Re: [Flashcoders] allowing slow animation

thanks too for your answer, Zeh,
but we've talked about this case with Ian Thomas, so I've 
made tests with all different aliasig parameters, and also 
with a drawn shape instead of text. the problem remains the 
same I've made a html page holding 2 swf, one in flash 7 and 
the other in flash 8 in each swf, the content was the same:
3 100 pixel animations on _x in 10 frames, one with a flash 
ide motion tween, one with a onEnterFrame and the last one 
with the Tween class.
all 3 methods are still smoothed in the flash 7 animation, 
not in the 8 version...


PiR




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] XML Parsing

2006-05-05 Thread PR Durand

Hi Mars,

last time I had such a big xml to parse and got an error while the loop 
blocked the flash movie, I just changed my 'for' loop with an 
onEnterFrame based method.
this allowed me at same time to display a counter to inform the user 
about the progression of my parsing process.

maybe not the best technical solution, but it was smoother ;)
++
PiR


Mars Spider - Upgrade Multimediale Srl a écrit :

GregoryN wrote:

Mars,
The only (well) known solution is about editing SWF bytecode to change
256 limit of recursion. Broadly used, btw.
  

Any link or suggestion about this solution?

Mars Spider http://www.marsspider.net


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] catching errors by webservice

2006-07-25 Thread PR Durand
Hi List 

Has anyone any way to receive the exceptions thrown by a webservice 
server please?


as it's asynchronous, the classical try...catch can't work on the 
service method call.
but, as soon as the server throws an exception (the sent SOAP is a 
correct fault soap file if I call it from a browser), I only receive an 
event in my Log listener, saying unable to connect to endpoint...


How do you actually do to receive and interpret the server faults?

++
PiR
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] catching errors by webservice

2006-07-25 Thread PR Durand

thanks a lot, josh, I'll look at this.
but I was using the webservice and pendingcall classes. Is there a way 
with it or do I have to use the connector component?


thx
PiR


Josh Santangelo a écrit :

Check out the WebServiceConnector.status event.

-josh

On Jul 25, 2006, at 8:12a, PR Durand wrote:


Hi List
Has anyone any way to receive the exceptions thrown by a webservice 
server please?


as it's asynchronous, the classical try...catch can't work on the 
service method call.
but, as soon as the server throws an exception (the sent SOAP is a 
correct fault soap file if I call it from a browser), I only receive 
an event in my Log listener, saying unable to connect to endpoint...


How do you actually do to receive and interpret the server faults?

++
PiR
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] catching errors by webservice

2006-07-25 Thread PR Durand
I changed everything to work with the connector instead of the service 
class : same result
If I right understood, an exception thrown with server should give me a 
faultcode=Server and faultstring=[the exception message], isn't it?
here I got once more a Server.connection faultcode, with the unable 
to connect to endpoint : [url] string...

the service rocks with good values.
Last year, I worked with a remote Java server, now with a local .Net 
server... Developpers are really different, but the results are all the 
same : flash is unable to read the SOAP fault, and sends a connection 
error... :(

any idea please?

thx
PiR





Josh Santangelo a écrit :

Check out the WebServiceConnector.status event.

-josh

On Jul 25, 2006, at 8:12a, PR Durand wrote:


Hi List
Has anyone any way to receive the exceptions thrown by a webservice 
server please?


as it's asynchronous, the classical try...catch can't work on the 
service method call.
but, as soon as the server throws an exception (the sent SOAP is a 
correct fault soap file if I call it from a browser), I only receive 
an event in my Log listener, saying unable to connect to endpoint...


How do you actually do to receive and interpret the server faults?

++
PiR
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] catching errors by webservice

2006-07-26 Thread PR Durand

Hi Hans,
Yes it does, everythings works well, but the exceptions. It's a C# .net 
simple webservice (input: an Int id, output : a personal class object)

We tryied yesterday in the evening with a C# coder.
His code has a
throw new SOAPException(entry not found)

we made a local WS client in C# too, to test it, and we got the 
exception message entry not found.


In flash, I tryied with the webservice and pendingcall classes, and with 
the wsconnector component. I got the same result with both solutions :
When I call my service with a correct parameter, I receive the answer 
and can use it.
When I call it with a wrong parameter, the C# throws the exception, but 
flash got just a Server.Connection faultcode (Unable to connect to 
endpoint : [asmx url])



What I said, is that I already got that problem last year with a totally 
different configuration. The WS server was a Tomcat server, so services 
developped in java, and the results was the same, so I think it doesn't 
come from the service coding, but from flash. I called Macromedia in 
February, the personn I talked with told me that he never used the 
exception with webservices... I still stay at the same point


PiR



Hans Wichman a écrit :

Hi,
just to be clear on this, PendingCall.onFault is not working for you?

greetz
hans


On 7/25/06, PR Durand [EMAIL PROTECTED] wrote:


I changed everything to work with the connector instead of the service
class : same result
If I right understood, an exception thrown with server should give me a
faultcode=Server and faultstring=[the exception message], isn't it?
here I got once more a Server.connection faultcode, with the unable
to connect to endpoint : [url] string...
the service rocks with good values.
Last year, I worked with a remote Java server, now with a local .Net
server... Developpers are really different, but the results are all the
same : flash is unable to read the SOAP fault, and sends a connection
error... :(
any idea please?

thx
PiR





Josh Santangelo a écrit :
 Check out the WebServiceConnector.status event.

 -josh

 On Jul 25, 2006, at 8:12a, PR Durand wrote:

 Hi List
 Has anyone any way to receive the exceptions thrown by a webservice
 server please?

 as it's asynchronous, the classical try...catch can't work on the
 service method call.
 but, as soon as the server throws an exception (the sent SOAP is a
 correct fault soap file if I call it from a browser), I only receive
 an event in my Log listener, saying unable to connect to 
endpoint...


 How do you actually do to receive and interpret the server faults?

 ++
 PiR
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash 7 image upload and .NET

2006-07-26 Thread PR Durand

Hi Merrill
We've implemented the yamzbrowser (from www.yamago.net) with a .net 
application in F7 and it works perfectly. for me the best solution when 
you can't use F8!

sourceforge.net/projects/*yamzbrowser*/

++
PiR




Merrill, Jason a écrit :

Nevermind, I found some links.  Are there any other recommended methods?  
Thanks.

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 

  

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Wednesday, July 26, 2006 9:03 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Flash 7 image upload and .NET

Any links to examples?  Thanks.

Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions





  

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Pedro Furtado
Sent: Tuesday, July 25, 2006 7:01 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Flash 7 image upload and .NET

Javascript and an hidden form ;)
Old style file upload.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: terça-feira, 25 de Julho de 2006 23:53
To: Flashcoders mailing list
Subject: [Flashcoders] Flash 7 image upload and .NET

With a .NET MS SQL backend, and a Flash 7 player in IE front end, what are
some of my options for image uploading to the server by the user?
Can't use PHP, ColdFusion, etc. in this case.  Thanks,

Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] catching errors by webservice : solution

2006-07-27 Thread PR Durand

I finally found the solution... thanks to google and forums:
flash is not 100% soap compatible !!!
the 1.1 SOAP standard turns the exceptions in 500 header error, wich 
causes a lost of the connection in flash, instead of reading the 
faultString.

here's the link to Adobe's technote


 PendingCall.onFault cannot capture SOAP:FAULT responses:

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=3c6784bc

++
PiR



PR Durand a écrit :

Hi List
Has anyone any way to receive the exceptions thrown by a webservice 
server please?


as it's asynchronous, the classical try...catch can't work on the 
service method call.
but, as soon as the server throws an exception (the sent SOAP is a 
correct fault soap file if I call it from a browser), I only receive 
an event in my Log listener, saying unable to connect to endpoint...


How do you actually do to receive and interpret the server faults?

++
PiR
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] knowing the llinkage id of a movieclip

2006-09-02 Thread PR Durand

Hi List
Is there a way to know an MC affected export for actionscript linkage 
id via AS code?

thx
PiR

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] A Zinc horror story

2006-09-04 Thread PR Durand

Yop!

I also use it for a while and really enjoy it. But u're right, the docs 
are not complete or really reliable...
Someone (sorry for having forgotten your name, guy), has given a set of 
Intrinsic classes to be able to code in FlashDevelop with the mdm 
autocompletion... and I found sometimes that the doc says something for 
an answer type, the intrinsic classes says another one... so let's test 
to know how's right!


I experienced that between the mac and pc scripts, sometimes the types 
are not the same, so we have to make a

if (_isPC) response = mdm.[aPCCommand] // returns a Number
else response = Number(mdm.[theSameCommandButForMac])  // because 
returns a string


So I follow you, Andreas, let's ask loudly !! :p

PS : and another problem... the Dell PC's on wich it doesn't work at all 
if we don't publish as FP8 version... annoying when you make an offline 
version of a FP7 website   - delete/rebuild everything !! :(


++
PiR




Andreas Rønning a écrit :

Thought i'd share this. Found it amusing.

I've been using Zinc for a while and for the most part i have no 
complaints, since most i use it for is simply blocking alt+f4 and 
escape (kiosk apps). Recently however i had a requirement to play a 
high quality movie, so i thought cool, i get to use the MediaPlayer9 
functionality (which for the uninitiated basically drops an instance 
of windows media player 9 on top of the flash window and gives you 
callbacks for it).


So i need functionality for checking when playback has ended, and i 
find it in the event onWMP9ChangeState, which according to the docs is 
described as such:


usage-
mpInstance.onWMP9ChangeState:Function

parameters-
newState:Number

I hook up a listener, put a switch/case in it for newState and.. 
Nothing  happens. I read up the docs again and in the example, what 
the event actually passes is an object with a newState *parameter*. Ok 
cool, whatever, i change my switch conditional to accomodate this new 
fantastic knowledge, and... Still nothing.


At this point i'm a little stressed out, and i put an 
mdm.Dialogs.prompt(obj.newState) to see what happens, and indeed, the 
event does fire, the prompt looks like what i expected it to, but 
still the switch/case doesn't work properly.


So i'm tearing my hair out for a bit, until i somehow put 
typeof(obj.newState) in a prompt, and.. Yep. It's a string.


So here we have docs that describe the parameter passed from an event 
as a number, but in fact is an object, containing a parameter that is 
the number. As a string.


I'm not entirely sure what this means, but it actually made me laugh 
out loud. Putting a parseInt(obj.newState) solved my problem.


For the love of god MDM, if any of you guys are on this list, fix your 
docs. PLEASE.


For everyone else, you have been warned about the docs :P Consider 
them hints, not information.


- A
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] flash player bitmap data and mouse position bugs?

2006-09-07 Thread PR Durand

Hi list
does anyone knows if the flash player 8 bitmap data memory leak is 
corrected in flash player 9?

I encounter 2 strange things in my current app.
I'm making an online video mix table with an FMS2 connection for 
recording the audio comments. the flv sources are loaded from a VOD 
server, and the user data from an http server... The player player web 
plugin began to do strange things when I connected my app to all those 
different sources.


*The bitmapData sometimes stays on the the screen
*I've made a drag'n'drop component. It takes a picture of the original 
icon, attaches it on a _level0 draggedmovieclip, and removes it when 
dropped in a dropZone.
The onDropped method in the DraggedClipCopy.as class makes a 
this.myBD.dispose(), a delete this.myBD, and a this.removeMovieClip()
It works in flash IDE, worked in FF and IE, and when I changed the 
server pathes, the bitmapData began to remain on screen after the 
dispose and remove ... I've changed several things in my class 
organisation, and it changed behavior: my first BitmapData doesn't work 
at all in flash player plugin, all the other ones after this work 
fine... strange, isn't it?

Any idea? I have to give back my work at next midnight

*The movieClip hit zone isn't the same as the movieClip displayed zone:
*Another problem occuring only in the flash web plugin, after linking 
the project to several different servers (ie 2 stats server and 1 
webservice server):
I got some movieClip with onRelease events wich don't react exactly on 
the zone they display. As an exemple, a navigation button didn't worked 
on its left half, but only on its right half, and in the empty zone at 
the right of the button : as if the movieclip hitZone._y were setted to 
movieclip._y+(movieclip._width/2)
And in my current project, it makes a problem on my drag'n'drop 
component : the dropZones have to react on the onRollOver, and they now 
swith to over state when the mouse isn't physically located over the 
object...
My class works fine in a simple flash, and worked fine before I linked 
the app to external server.
I can't see the link between movieclip.onRollover and 
flvPlayback.contentPath nor netConnection.uri


Any help or info would be greatfull, I hope it comes from me and not 
from the flash player, so it could be corrected. but as I described the 
thing, you can see that it's strange...


PiR

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] flashplayer bitmap data bug or my coding wrong... PLEASE HELP

2006-09-07 Thread PR Durand

i've found where is exactly the problem:
http://www.adobe.com/go/7c90fec7 : a known bug saying that with flash 
playr 9, it's impossible to create a bitmapdata snapshot of an FLV 
streamed by FMS2.


it seems that the problem goes further... with images loaded from 
different domain


please take 2mn to copy/paste this code in flash... nothing ele needed
press ctrl-enter. in Flash it works.

http://www.foolarts.com/testBD3.html
here it works too because the swf and jpg domain is the same

http://test.nodule.com/makar/testBD3.html
but here it doesn't, while swf and jpg domains aren't the same... 
however the image is loaded in the moviecliploader... did I make 
something wrong or is it a player bug?


here's the source of the swf I linked, there's nothing else in the flash

import flash.display.BitmapData;

mcPicto = _root.createEmptyMovieClip(mcPicto,1);
mcPicto2 = _root.createEmptyMovieClip(mcPicto2,2);

displayPicto = function()
{
   var oBD:BitmapData = new 
BitmapData(mcPicto._width,mcPicto._height,true,0x00);

   mcPicto2._y = mcPicto._height + 10;
   mcPicto2.attachBitmap(oBD,1);
   oBD.draw(mcPicto);
}
  


var oMCL:MovieClipLoader = new MovieClipLoader();
var oL:Object = new Object();
oL.onLoadInit = mx.utils.Delegate.create(this,displayPicto);
oMCL.addListener(oL);
oMCL.loadClip(http://www.foolarts.com/crapaud.jpg,mcPicto);
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] LocalConnection breaks object types?

2006-11-14 Thread PR Durand

Hi there!

using localConnection seems to totally untype an object, right?

so I use in a sending swf:
var myObj:MyType = new MyType();
// then filling object with values

I send my object to another swf via localConnection
and in my receiving method in my receiving swf :

trace (myObj instanceOf MyType)  = returns false

all the values still are in the object, so I can acces all public vars, 
but all my get properties for private vars are unavailable, the object 
is totally untyped !


Even when trying to re-type it while sending to another method in the 
receiving swf:

this.displayContent(MyType(myObj));
the displayContent method can't read it as a MyType object

can't understand... any explaination please?

thx
PiR



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] LocalConnection breaks object types?

2006-11-14 Thread PR Durand

Hi Martin
thanks for your answer... No I didn't, cause I thought it was deprecated 
since we could use classes...

I'll try this.
Thanks once more...
PiR


Martin Wood-Mitrovski a écrit :

did you use Object.registerClass ?

you have to register your types for them to serialize / de-serialize 
with their type information intact.


PR Durand wrote:

Hi there!

using localConnection seems to totally untype an object, right?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] LocalConnection breaks object types?

2006-11-14 Thread PR Durand
Nope... it seems that object.registerClass remains a link between AS1 
class and a movieClip...

I can't get my object pass through the localConnection... :(
++
PiR


PR Durand a écrit :

Hi Martin
thanks for your answer... No I didn't, cause I thought it was 
deprecated since we could use classes...

I'll try this.
Thanks once more...
PiR


Martin Wood-Mitrovski a écrit :

did you use Object.registerClass ?

you have to register your types for them to serialize / de-serialize 
with their type information intact.


PR Durand wrote:

Hi there!

using localConnection seems to totally untype an object, right?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Player 8 fluidity

2007-01-30 Thread PR Durand

Hi list

Since player 8 is out, it seems to be impossible to make a fluent 
animation if there are more frames than pixels, i.e a simple 100 pix 
tween on _x in 50 frames

It's not really the player, but the compiler.
see example here, it's the same code, juste changed the export player 
version, and it's not related on the textField, as the result is the 
same with a vector or bitmap movieClip:

http://www.foolarts.com/lab/testAnimFP7.swf
http://www.foolarts.com/lab/testAnimFP8.swf

is there a way to have the FP7-like result, exporting in FP8 ?

thx
PiR




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Player 8 fluidity

2007-01-30 Thread PR Durand

hi Zeh
thx for answer, but at the end of my mail, I said that it isn't related 
to textfield, as the problem remains the same with a shape or bitmap 
inside a movieClip...

it seems that it's alaways moved on pixels...
++
PiR


Zeh Fernando a écrit :

 Since player 8 is out, it seems to be impossible to make a fluent
 animation if there are more frames than pixels, i.e a simple 100 pix
 tween on _x in 50 frames
 It's not really the player, but the compiler.
 see example here, it's the same code, juste changed the export player
 version, and it's not related on the textField, as the result is the
 same with a vector or bitmap movieClip:
 http://www.foolarts.com/lab/testAnimFP7.swf
 http://www.foolarts.com/lab/testAnimFP8.swf
 is there a way to have the FP7-like result, exporting in FP8 ?

This is because of the textfield rendering mode. You're probably using 
antialias for readability, which provides better visual rendering 
but which has a necessary snap to pixels. Switch to antialias for 
animation for this textfield, which is equivalent to Flash 7- text 
rendering and takes pixel fractions into account when rendering the 
text antialias.



Zeh
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] text length difference

2007-02-02 Thread PR Durand

Hi list!

I have a text in a value, the text length is 502, I fill my htmlText 
with it, the htmlText.length is 651.


Now I get the same text content from an xml file, within a CDATA node.
trace (myNode.nodeValue.length)   // outputs 502, ok

I pass it through a localConnection to another flash, then I trace it
trace (receivedText.length) // outputs 502, still ok

I fill my html enabled textfield with my content :
myTF.htmlText = receivedText;
trace (myTF.htmlText.textLength);  // Outputs 762 !!!


what are those 111 new caracters??? they don't appear, but make my 
scroller appear :(


any idea please?
++
PiR


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] text length difference

2007-02-02 Thread PR Durand

hi Jah
yes, this is the reason why I have 651 instead of 502 in the 1st case.
but I search the difference between 651 and 762, after passing trough an 
xml and a localConnection. I don't know wich one causes trouble

thx
PiR



Jah a écrit :

most likely it is the font face='someFont' and /font that are
making up the extra characters. if you were to trace the text, not
htmlText you'll see that.

On 2/2/07, PR Durand [EMAIL PROTECTED] wrote:

Hi list!

I have a text in a value, the text length is 502, I fill my htmlText
with it, the htmlText.length is 651.

Now I get the same text content from an xml file, within a CDATA node.
trace (myNode.nodeValue.length)   // outputs 502, ok

I pass it through a localConnection to another flash, then I trace it
trace (receivedText.length) // outputs 502, still ok

I fill my html enabled textfield with my content :
myTF.htmlText = receivedText;
trace (myTF.htmlText.textLength);  // Outputs 762 !!!


what are those 111 new caracters??? they don't appear, but make my
scroller appear :(

any idea please?
++
PiR


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] text length difference

2007-02-06 Thread PR Durand

hi joshua

thw for answer, but as I told Jah:
yes, this is the reason why I have 651 instead of 502 in the 1st case.
but I search the difference between 651 and 762, after passing trough an 
xml and a localConnection. I don't know wich one causes trouble 


I know this html tags add, but I find a second add after passing throug 
a localConnection. It seems to be a format problem, but i guess 
localConnection uses UTF-8, isn't it?

so where does it come from?

++
PiR



Joshua Sera a écrit :

When you enable html in a textfield, Flash adds a
bunch of formatting in HTML. If you trace the htmlText
property of the textbox in question, you'll get
something like:

TEXTFORMAT LEADING=2P ALIGN=CENTERFONT
FACE=Times New Roman SIZE=8 COLOR=#00
LETTERSPACING=0 KERNING=0BThis is a
test/B/FONT/P/TEXTFORMAT

If you trace the text property of that same textfield,
it won't count the HTML tags, so you'll get a number
less than what you'd expect from a string with HTML
formatting.

Lastly, when you enclose a string in the CDATA tag, it
converts things to HTML entities, which can confuse
things even more.

--- PR Durand [EMAIL PROTECTED] wrote:

  

Hi list!

I have a text in a value, the text length is 502, I
fill my htmlText 
with it, the htmlText.length is 651.


Now I get the same text content from an xml file,
within a CDATA node.
trace (myNode.nodeValue.length)   // outputs 502, ok

I pass it through a localConnection to another
flash, then I trace it
trace (receivedText.length) // outputs 502, still ok

I fill my html enabled textfield with my content :
myTF.htmlText = receivedText;
trace (myTF.htmlText.textLength);  // Outputs 762
!!!


what are those 111 new caracters??? they don't
appear, but make my 
scroller appear :(


any idea please?
++
PiR


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the
archive:



http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com






 


Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] text length difference

2007-02-06 Thread PR Durand

Hi Danny,

My scroller is a home-made scroller, based on a content movieclip and a 
mask movieclip.
It seems that the extra html added by flash to the text make the 
textfield becoming higher...
I manually add a FONT tag to my text for the format, and flash gets to 
add the  LETTERSPACING=0 KERNING=0 in my own tag, and P tag before 
and after the whole content.
but the strange thing is that he seems to add another P and FONT tag at 
the end of the text, so that it gives:
P ALIGN=LEFTFONT FACE=Standard_texte SIZE=12 COLOR=#7C7C7C 
LETTERSPACING=0 KERNING=0my 500 chars text/FONT/PP 
ALIGN=LEFTFONT FACE=Standard_texte SIZE=12 COLOR=#7C7C7C 
LETTERSPACING=0 KERNING=0/FONT/P


the face, size and color properties are my manually added props, the 
other one are added by flash and I don't why there are two times the 
FONT and P tags.

++
PiR


Danny Kodicek a écrit :
 
  

hi joshua

thw for answer, but as I told Jah:
yes, this is the reason why I have 651 instead of 502 in the 
1st case.
but I search the difference between 651 and 762, after 
passing trough an xml and a localConnection. I don't know 
wich one causes trouble 


I know this html tags add, but I find a second add after 
passing throug a localConnection. It seems to be a format 
problem, but i guess localConnection uses UTF-8, isn't it?

so where does it come from?



Flash HTML is a law to itself, but in your case I'm not sure why it matters.
You say 'it makes my scroller appear', but surely your scroller shouldn't
care how much html is in the field. It should only be based on the
difference between TextField._height and TextField.textHeight.

Danny

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] text length difference

2007-02-06 Thread PR Durand

I found where it came from...
Thanx for your help : while you asked for the ignoreWhite param, I was 
quite sure that I had it to true, but I looked for the empty lines. And 
the xml tag content finished with a new line, wich became 2 newlines 
in flash, then a new P tag in the xml, and so a new FONT tag and I 
earned about 60 chars...
I have to treat my file while writing the xml to close the CDATA tag 
just after the last point.


++
PiR

Danny Kodicek a écrit :

  Hi Danny,
  
My scroller is a home-made scroller, based on a content 
movieclip and a mask movieclip.



But doesn't the same principle apply? 

  
It seems that the extra html added by flash to the text make 
the textfield becoming higher...



Right - now I see the real issue at hand: you're getting an extra paragraph
added. Have you tried seeing if setting an ignoreWhiteSpace in your XML
object solves the problem? Also, have you made absolutely sure that the
extra line wasn't added at some other point (for example, by pressing enter
to input the line somewhere).

Alternatively, you could try pre-parsing the HTML using the XML object,
removing any empty tags (I've done this myself in the past) - of course, if
your text includes some empty p tags by design then this won't work.

Danny

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] text length difference

2007-02-07 Thread PR Durand
nope, cause the text is formatted... but later, when the text area to 
write the text will have a wysiwyg set, then we'll change the \r and \n 
by br and delete the extra lines.

thx for answering.
PiR


Steven Sacks | BLITZ a écrit :

You might also want to strip any non-html carriage returns, which will
not get picked up by ignoreWhiteSpace, as well.

myHtmlString.split(\n).join().split(\r).join();
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com