Re: [flexcoders] FileIO.browse() fails when called with filters

2005-10-26 Thread Laurent Cornelis
Are we the only ones with this problem ?

What platform are you running on ? I'm on Windows XP SP2

Benoit Hediard a écrit :
 Yes I've also encountered this problem.
 Impossible to use the fileIO.browse() with filters.
 When filters are passed, the browse window doesn't appear anymore.
 
 Benoit Hediard
 
 PS: Anyway, now we won't have to use the fileIO hack in Flex2 + Flash
 Player8.5... ;) 
 
 -Message d'origine-
 De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
 part de Laurent Cornelis
 Envoyé : vendredi 21 octobre 2005 15:10
 À : flexcoders@yahoogroups.com
 Objet : [flexcoders] FileIO.browse() fails when called with filters
 
 I have a problem with the FileIO.browse(filters) method.
 
 If I just try fileIO.browse() without argument, the file chooser is
 displayed and it works fine.
 
 If I try
 
 fileIO.browse([{description: Images, extension: *.jpg;*.gif;*.png},
 {description: Flash Movies, extension: *.swf}, {description: 
 Documents, extension: *.doc;*.pdf}]);
 
 or
 
 var filters:Array = new Array();
 filters.push({description:Image files ( .jpg, .gif, .png),
 extension:*.jpg;*.gif;*.png, macType:JPEG;jp2_;GIFF});
 filters.push({description:Flash Movies, extension:*.swf, 
 macType:SWFL}); 
 
 fileIO.browse(filters);
 
 the file chooser is not opened and browse returns false ...
 
 Anyone have the same issue ? Do you know what can cause it ?
 
 
 
  Yahoo! Groups Sponsor ~-- Fair
 play? Video games influencing politics. Click and talk back!
 http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
 ~- 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 
  
 
 
 
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 
 




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] Flash Player 8 and the trace() function

2005-10-21 Thread Laurent Cornelis
Hi,

I've installed Flash Player 8 to use the file upload feature in Flex 1.5 
but there is a problem : The Flash Player 8 don't have the debugging 
enabled and then the trace() function don't work anymore.

Do you know how I can workaround it ?

Regards,

Laurent Cornélis



 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] FileIO.browse() fails when called with filters

2005-10-21 Thread Laurent Cornelis
I have a problem with the FileIO.browse(filters) method.

If I just try fileIO.browse() without argument, the file chooser is 
displayed and it works fine.

If I try

fileIO.browse([{description: Images, extension: *.jpg;*.gif;*.png}, 
{description: Flash Movies, extension: *.swf}, {description: 
Documents, extension: *.doc;*.pdf}]);

or

var filters:Array = new Array();
filters.push({description:Image files ( .jpg, .gif, .png), 
extension:*.jpg;*.gif;*.png, macType:JPEG;jp2_;GIFF});
filters.push({description:Flash Movies, extension:*.swf, 
macType:SWFL});   

fileIO.browse(filters);

the file chooser is not opened and browse returns false ...

Anyone have the same issue ? Do you know what can cause it ?



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] Register a ChangeEvent listener on a static property

2005-05-25 Thread Laurent Cornelis
Hello,

I have a question: is there a way to register a changeEvent listener on 
a static property ?

For example :

class ModelLocator
{
  [ChangeEvent(userChanged)]
  public static var user : User;
}


class AnotherClass
{

   public function AnotherClass() {
 ModelLocator.user.addEventListener(userChanged, this);
   }

   ...

}

But here, I have this error : There is no method with the name 
'addEventListener'.

Regards,

Laurent Cornelis


 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] prevent Double click

2005-03-30 Thread Laurent Cornelis

If you use Cairngorm, use a ViewHelper to change the button state. This 
way you can change the state from anywhere.

Regards,

Laurent Cornélis

[EMAIL PROTECTED] a écrit :
 thanks Gordon, but i'm using our framework for receive data 
 (ServiceLocator etc)
 and our function are called in other piece of code in our project, and 
 the id or name of button are not the same, and i think to put in our 
 delgate all id button it's not a good idea, (in our case)
 Devis
 
 
 
 Gordon Smith ha scritto:
 
 
Disable the button in your click handler when you call your RemoteObject
method. Re-enable it when your result handler is called.

- Gordon


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 29, 2005 11:53 PM
To: Flex Coders
Subject: [flexcoders] prevent Double click



Hi,
have some suggestion from prevent double click on the button? for 
example my button throw some functions on back-end,
i wish to disable button until the function are end.
It's possible?
Devis





Yahoo! Groups Links










Yahoo! Groups Links






 

 
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 
 
 



 
Yahoo! Groups Links

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

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

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





[flexcoders] Custom security for RemoteObjects

2005-03-23 Thread Laurent Cornelis

Hi,

What are you using to protect your services ?

I want that the first time a user access one of the service 
(RemoteObjects in my case), he will be redirected to a custom login 
form. This form will send authentication data to a class that will 
validate these informations against our database.

I don't know how to do that :

- Basic authentication cannot be used because of the custom form and the 
custom authenticator
- Custom authentication can maybe be used. As I understand, for the 
custom form this is OK, but the authenticator validate against the 
server authentication mechanism (e.g. the tomcat-users.xml for Tomcat) 
and not my database. I saw some things about LoginCommand java interface 
but it is not clear.
- Use a totaly custom authentication mechanism with a server generated 
token returned to the client on login. After that, for each call the 
client send the token and the server revalidate it.

Have someone already implemented something similar ?


 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] RemoteObject : Convert Java Exception to ActionScript Fault

2005-03-23 Thread Laurent Cornelis

Thanks !

Where can we find the documentation for the Java part of Flex ? I 
searched about Exception on Macromedia and Google and didn't find this ...

Last thing, now I'm able to set the code, detail and faultstring but I 
can't find a way to set the type. If it is not possible, it's not 
catastrophic but it should be nice to be able to set it ;-)

Peter Farland a écrit :
 The AMF Gateway uses a RuntimeException called flashgateway.GatewayException 
 that has these properties. A thin façade could be built to map your exception 
 type to the gateway exception type.
 
 
 -Original Message-
 From: Laurent Cornelis [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 23, 2005 9:39 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] RemoteObject : Convert Java Exception to ActionScript 
 Fault
 
 
 
 Hi,
 
 I wonder how Java exceptions are mapped to ActionScript faults.
 
 I created a subclass of exception in Java that has the following 
 properties :
 - message (from superclass Exception)
 - detail
 - type (I set the classname)
 - faultcode
 - description
 
 When I throws this exception during a remote object call, the 
 event.fault has the following properties set :
 
 - detail = 
 - faultcode = Server.Processing
 - faultstring = test
 - type = 
 
 It means, only the faultstring is correct. The other properties are 
 ignored, and the faultcode is not the one I set.
 
 Is there a way to specify other properties than faultstring in a 
 ActionScript fault object ?
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 
 
 



 
Yahoo! Groups Links

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

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

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





[flexcoders] Cairngorm : commands to execute at startup

2005-03-21 Thread Laurent Cornelis

I have a command that I want to be executed at startup.

So in my cairngorm:CairngormApplication tag I set the initialize 
attribute : initialize=loadCatalog()

My loadCatalog function is defined like this :

public function loadCatalog() : Void
{
   alert(TEST);
   EventBroadcaster.getInstance().broadcastEvent( loadCatalog, null );
}

I also set a button that execute this same function :

mx:Button click=loadCatalog() label=test/

When the application starts up, the alert inside the loadCatalog() 
function is displayed but the loadCatalog command is not executed.

If I click on the button, the alert is displayed and the loadCatalog 
command is executed.

I have the impression that when initialize() calls loadCatalog(), the 
event system is not completely ready ...

Is it possible to execute a command at startup ? How should I do that ?


 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] Cairngorm : commands to execute at startup

2005-03-21 Thread Laurent Cornelis

I was sure to have tested with creationComplete() ... but apparently not 
because it works like a charm ;-)

Thanks a lot !

Next time, I'll check twice before posting :-p

Steven Webster a crit :
 try using creationComplete rather than initalize for
 your loadCatalog() method call..
 
 Timing is everything ;)
 
 Steven 
 
 
-Original Message-
From: Laurent Cornelis [mailto:[EMAIL PROTECTED] 
Sent: 21 March 2005 14:29
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm : commands to execute at startup


I have a command that I want to be executed at startup.

So in my cairngorm:CairngormApplication tag I set the 
initialize attribute : initialize=loadCatalog()

My loadCatalog function is defined like this :

public function loadCatalog() : Void
{
   alert(TEST);
   EventBroadcaster.getInstance().broadcastEvent( 
loadCatalog, null ); }

I also set a button that execute this same function :

mx:Button click=loadCatalog() label=test/

When the application starts up, the alert inside the 
loadCatalog() function is displayed but the loadCatalog 
command is not executed.

If I click on the button, the alert is displayed and the 
loadCatalog 
command is executed.

I have the impression that when initialize() calls 
loadCatalog(), the event system is not completely ready ...

Is it possible to execute a command at startup ? How should I 
do that ?


 
Yahoo! Groups Links



 


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 18/03/2005
 

 
 



 
Yahoo! Groups Links

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

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

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