RE: [flexcoders] How to manage 2 applications with different output folders in one project?

2007-04-16 Thread Stembert Olivier (BIL)
In FB, I think it's not possible.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sergey Kovalyov
Sent: Monday, April 16, 2007 10:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to manage 2 applications with different output
folders in one project?



Hi All!
 
I have two applications: client and administrator area. They have a lot
of common classes, therefore I have created two Flex Projects
(MyApplication and MyApplicationAdmin) and one Flex Library Project
(MyApplicationFlexLibrary) and placed all the classes they use together
into the MyApplicationFlexLibrary. Actually, I consider this method is
not easy to manage when working in a team, because each class added to
the library should be registered within it and developers usually forget
about it, so that I'd prefer to have only 1 project instead of 3 with 2
mxml applications - index.mxml and indexAdmin.mxml, but I want
index.mxml to be published to http://localhost/myApplication/index.html
  and indexAdmin.mxml to
http://localhost/myApplication/admin/index.html
 . Is there any way to
make it possible?
 
Thank you in advance.
 
Sergey.

 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] User authentication

2007-04-05 Thread Stembert Olivier (BIL)
You can secure your destination and send the credentials to your remote objects 
(j2ee security model).



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of André 
Rodrigues Pena
Sent: Thursday, April 05, 2007 3:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] User authentication



Hi all,

I'd like to know whats the pattern regarding user authentication in
Flex application.
In my case. I need my HTTPService to send login information (user name
and password). How can I encrypt it? How is the process?

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in writing and 
duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Role based UI

2007-04-05 Thread Stembert Olivier \(BIL\)
Where do you store the permissions i.e. role1 has rights to view panel1?


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Thursday, April 05, 2007 12:40 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Role based UI

On Thursday 05 Apr 2007, Stembert Olivier (BIL) wrote:
> What I don't like is the fact that the method is intrusive. Do you 
> know a more elegant way to achieve that?

What we do is use visible/includeInLayout, bound to the role name in the
model to hide/show GUI elements, or whole tabs in navigators etc.

--
Tom Chiverton
Helping to dramatically improve compelling data
on: http://thefalken.livejournal.com



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

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at St James's Court Brown Street Manchester M2 2JF.  A list
of members is available for inspection at the registered office. Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

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

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



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




-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in
writing and duly signed.
-


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



[flexcoders] Role based UI

2007-04-05 Thread Stembert Olivier (BIL)
Hi,

I'd like to design a flex app based on the user role.

The user role would be obtained from passing back via an RPC call to a remote 
object and would be available on the Model.

I'd like to design my screens depending on the role.
As an example, a button would be enabled/disabled depending on the role.

I have a small prototype working fine with mx:states. It's very easy to define 
one state per role. Like that, I can customise my screen in a very flexible way.

What I don't like is the fact that the method is intrusive. Do you know a more 
elegant way to achieve that?

> - Olivier Stembert - 
> DEXIA - Banque Internationale à Luxembourg
IT Architecture & Integration
> *(+352) 4590 2749 - Fax 6749 / * SBC +059
* [EMAIL PROTECTED] 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Re: Module Interface Problems

2007-04-05 Thread Stembert Olivier \(BIL\)
Mike,
 
I experienced exactly the same problem.
I think it's a bug.
 
Olivier



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Ritchie
Sent: Wednesday, April 04, 2007 9:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Module Interface Problems



In my context, a module loading another module using ModuleLoader. 
The reference to the child of the ModuleLoader is always null. I have
even set up a timer event that keeps checking back to see if the child
is not null. Is there something specific about what I am trying to
do that would cause the child to be null?

- Mike

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> ModuleLoader is a convenience container. It loads in the module via
> ModuleManager and when READY, it starts to create the children. If you
> listen to READY you may see it before moduleloader had a chance to see
> it and create the child.
> 
> -Alex
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Michael Ritchie
> Sent: Tuesday, April 03, 2007 1:04 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: Module Interface Problems
> 
> 
> 
> I ruled out the timing issue, but your post has some great information
> how to handle this. I think I have isolated the specific module
> loading issue to one factor. I have a module that loads another
> module using a  and I am trying to access the second
> ModuleLoader child through the interface. I can't seem get a
> reference to the child of the second ModuleLoader, it always reports
> null. I have a successfully loaded a module and talked using the
> interface, but if move this within the context of another module, I
> get the null reference. 
> 
> --- In flexcoders@yahoogroups.com


> , "- FI / Jonas Eliasson +"
>  wrote:
> >
> > That sounds like a still existing Flash issue if you try to load a
> swf that
> > has a shared library attached to it. Then you will get a loaded
> callback
> > before it's actually loaded. So in Flash you can check on the loaded
> event
> > if current frame == 0. In that case you can't access any properties
> and no
> > code will be executed yet. But you can still write to the object. In
> our
> > scenario we have attached a callback event method. So when the swf
> is really
> > loaded it will check if the callback exist and then execute it.
> Which will
> > tell the loader that it's ready to be initiated. Something similar
> should be
> > easy to implement on the module but not with a check for a frame
> number :-)
> > . Should be a better solution for this. I don't want to go back to
> old Flash
> > hacks hehe. 
> > 
> > 
> > 
> > //as2 example 
> > 
> > private function onLibraryLoaded(libraryClip:MovieClip,
> cb:CallBack):Void {
> > 
> > var me:SharedLibraryLoader = getInstance(); 
> > 
> > if(libraryClip._currentframe == 0){
> > 
> > libraryClip.onComplete = new CallBack(me,
> me.onLibraryInitiated,
> > null, cb);
> > 
> > }else
> > 
> > onLibraryInitiated(libraryClip, cb);
> > 
> > }
> > 
> > _ 
> > 
> > From: flexcoders@yahoogroups.com


> [mailto:flexcoders@yahoogroups.com


> ] On
> > Behalf Of Michael Ritchie
> > Sent: den 3 april 2007 11:24
> > To: flexcoders@yahoogroups.com 
 
> > Subject: [flexcoders] Re: Module Interface Problems
> > 
> > 
> > 
> > From my experience there is a definite timing issue when loading
> > modules. The ModuleLoader ready event is fired before the Module is
> > fully loaded and you have the ability to talk to it through a common
> > interface (hence the error reporting access to a null value). 
> > 
> > I would term this one as a "bug" that is not yet documented by
Adobe.
> > This could be because some modules take longer than expected to
load,
> > I have no idea, just the observed problem with talking with modules
> > within the "ready". I also attempted to use an interface to talk
with
> > a module when the the progress event had reached 100%, but still no
> > luck. 
> > 
> > A possible workaround would be to fire some event from inside the
> > loaded module that tells the outside world that it is indeed loaded.

> > The other option is to set a timer interval and keep checking if the
> > module is loaded (meaning not reporting NULL in the ready event
> > handler). Unless someone else as a viable solution? Adobe? Anyone?
> > 
> > - mr
> > 
> > --- In [EMAIL PROTECTED] 
> ups.com,
> > "kristian_wright2002"
> 

RE: [flexcoders] Filtering/Sorting data from Flex Data Services

2007-04-05 Thread Stembert Olivier (BIL)
It's not possible to sort and filter the whole dataset on the client.
You have to sort and filter it on the server side first.
 
Rgds,
 
Olivier



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of VVV
Sent: Wednesday, April 04, 2007 11:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Filtering/Sorting data from Flex Data Services



I am using flex data services for accessing lot of records ( more than 
1 records). Page size is set to 500 records. Data returned as array 
collection is bound to datagrid. Is it possible to sort/filter the 
whole data set on the client side. How does sorting/filtering work on 
an array collection returned when using Data Services compared to 
sorting/filtering an array collection.

VVV



 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Compilation, library-path and configuration file

2007-03-16 Thread Stembert Olivier \(BIL\)
Any ideas???



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stembert Olivier (BIL)
Sent: Wednesday, March 14, 2007 11:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Compilation, library-path and configuration file



Hi flexcoders,

I try to compile my project with a configuration file which contains the
following library-path tag:



C:\LOCALAPP\workspace\Merlin\bin\Merlin.swc


Other compilation options in the config file are taken into account
during compilation but the library-path tag is not.
Only the library path set in the Options panel (FB) is considered for
compilation.

The same is true for the flex libraries. If I remove all the libraries
(playerglobal.swc,...) from the Options panel and add them in the config
file, the compiler complains about classes missing.

Olivier

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in
writing and duly signed.
-



 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Cairngorm FrontController

2007-03-15 Thread Stembert Olivier (BIL)
I think when Shannon is talking about components he's talking about
modules in fact.

In that case, each module has its own controller. In that scenario, if
you dispatch an event and that event (same event type) is registered in
two different modules, the two commands in different modules will be
fired.

Personally, what I did as a workaround, is:
-define an id for each module.
-when an event is registered, the event type is prefixed with the module
id ==> the event type is unique.
-when you dispatch the event, my custom dispatcher adds automatically
the prefix to the event and redispatch it.
-finally the right command in the right module is executed.

To go further, my custom dispatcher may check if the event type is
registered in the module controller. If not, it may dispatch the event
to the application i.e. other modules... the beginning of inter-module
communication...

Rgds,

Olivier

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of John Mark Hawley
Sent: Friday, March 16, 2007 12:37 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cairngorm FrontController

You're doing something very weird, but I can't figure out exactly what
since you've mucked with Cairngorm.

The point of the Front Controller is that there's only one. If you have
two components in your app, and they both are set to fire the same event
when a certain action occurs, the same action is supposed to happen each
time. That's the point -- events are tied to user gestures. The same
event always calls the same command. If you want different things to
happen when different actions occur, you have two choices:

1) put some data into the event you dispatch, and have your Command
class do different things depending on that data

2) fire different events.

It sounds like you have the concept of the CairngormEventDispatcher a
little off as well. It's probably best to state what you're trying to do
with an example instead of code.

-Mark Hawley

> 
> From: "Shannon" <[EMAIL PROTECTED]>
> Date: 2007/03/15 Thu PM 04:42:01 CST
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Cairngorm FrontController
> 
> I am new to Cairngorm and Flex (I'm All About Flash) so bear with me.
> 
> I am creating a component and I want it to use Cairngorm. I also want 
> to be sure that some events fired from the component are only heard by

> the Cairngorm of the single component instance. Component namespaces 
> won't help because I use multiple instances of the same event, I could

> probably filter by instance, but I am trying not to hack (you'll 
> probably see the irony after the next sentence...
> 
> If I use Cairngorm as is... ...and I utilize the Singleton 
> CairngormEventDispatcher, as soon as I put two instances of a 
> component on stage, the events from one instance cause the front 
> controller on the second instance to fire those events
> 
> Sadly this is probably operator error.
> 
> Though I am guessing that someone has had this problem before and 
> surely there is a best practice solution to this already, I thought I 
> would spend a little time to explore the issue further and find my own

> solution.
> 
> I decided to try to handle this by using separate instances of the 
> CairngormEventDispatcher (MyViewHelper.dispatcher) for each instance 
> of my component. Then I could inject that dispatcher into 
> MyFrontController when it is instantiated so that it knows which 
> dispatcher to call.
> 
> Just when I think I am on to something, I had to override addCommand 
> so that it would add an event listener to that instance instead of the

> Singleton CairngormEventDispatcher. This is great but it required two 
> modifications (minor, yet still modifications) to the Cairngorm 
> FrontController class in order to compile my creation. (see snippets
> below) Basically I took two private things and made them protected.
> 
> Of course this might effect other pieces I have yet to build, but my 
> level of mastery coerces me into believing I have found a solid 
> answer.  If those iteration two guys were really geniuses 
> they would have made these protected in the first place.
> 
> Ha, ha, ha, just kidding, (I crack myself up)
> 
> So I can either use my own FrontController impl or I can ask the
> question: Is this a bug in Cairngorm? Or am I correct in beleiving I 
> must be doing something wrong...
> 
> Some code samples:
> 
> //
> // myViewHelper Snippet:
> //
> public function MyViewHelper(view:Object) { dispatcher = new 
> CairngormEventDispatcher(); controller = new 
> MyFrontController(dispatcher); ...
> }
> 
> //
> // myFrontController Snippet:
> //
> public class MyFrontController extends FrontController {
> 
> private var dispatcher:CairngormEventDispatcher;
> 
> public function MyFrontController(dispatcher:CairngormEventDispatcher)
> {
>   super();
>   this.dispatcher = dispatcher
>   ...
> }
> 
> public override function addCommand( commandName : String, commandRef 
> : Clas

RE: [flexcoders] Cairngorm: When / why override clone in Events

2007-03-15 Thread Stembert Olivier (BIL)
Sean,

You can read in the Flex doc:

There are two utility methods in the Event class. The clone() method
allows you to create copies of an event object. The toString() method
allows you to generate a string representation of the properties of an
event object along with their values. Both of these methods are used
internally by the event model system, but are exposed to developers for
general use. For advanced developers creating subclasses of the Event
class, you must override and implement versions of both utility methods
to ensure that the event subclass will work properly.

Nothing to do with Cairngorm.

Rgds,

Olivier




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sean Sell
Sent: Wednesday, March 14, 2007 8:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm: When / why override clone in Events



In one of the Cairngorm examples I learned Cairngorm from each event had
defined an override for the clone method (of Flash.Event). Does anyone
understand haw and when you should do this? Does Cairngorm clone the
events behind the scenes somewhere that requires this be done?

--Sean




Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo!
Games.   

 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



[flexcoders] Compilation, library-path and configuration file

2007-03-14 Thread Stembert Olivier \(BIL\)
Hi flexcoders,

I try to compile my project with a configuration file which contains the
following library-path tag:



C:\LOCALAPP\workspace\Merlin\bin\Merlin.swc


Other compilation options in the config file are taken into account
during compilation but the library-path tag is not.
Only the library path set in the Options panel (FB) is considered for
compilation.

The same is true for the flex libraries. If I remove all the libraries
(playerglobal.swc,...) from the Options panel and add them in the config
file, the compiler complains about classes missing.


Olivier


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



[flexcoders] Cairngorm, front controller and modulat apps

2007-02-15 Thread Stembert Olivier (BIL)
Hi all,

I am in the process of integrating Cairngorm in a modular application.
The modular app is composed of one shell and several modules.

I would like that one module can send a message to another module via
the shell.

How to do that?
1. In each module, I define a front controller which will treat the
events relative to the module.
Ex:
In module A: event types: A1,A2,A3
In module B: event types: B1,B2,B3
In module C...
2. In the shell, I define a front controller which will treat the events
relative to the inter-module communication.
Ex:
In shell: event types: A.A1,B.B2
i.e. the event A1 from module A can be dispatched from outside module A
(module B or module C can dispatch the event  A.A1)
i.e. the event B2 from module B can be dispatched from outside module B
(module A or module C can dispatch the event  B.B2)
Since A2,A3,B1 and B3 are not initialised in the shell controller, they
cannot be dispatched from outside their own module.
3. When the event A1 is dispatched from module A, the front controller
of module A will do the job; that's the usual case.
4. When the event A.A1 is dispatched from module B, the shell controller
will do the job; there is an unique command in the shell controller
(ShellCommand) which dispatch a new event with type A1. Then, the front
controller of module A will do the job.

The problem is I have no idea how I can prevent module B to dispatch
directly A1 (instead of A.A1) i.e. it will bypass the shell controller.
What I don't like is that Command objects have a global scope. If you
dispatch an event from whatever module, the event will be catched by the
command even if it's not part of the same module. 
How can I restrict the scope of the commands in a module context?

Rgds,

Olivier

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] duplicate function definition

2007-02-12 Thread Stembert Olivier \(BIL\)
Hi Mayur,
 
When you define a member variable, a setter method is internally
created.
 
You have to rename your variable vbox and define it as private.
 
private var _vbox:VBox;
 
public function set vbox(val:VBox):void
{
_vbox = val;
}
 
Rgds,
 
Olivier



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of learner
Sent: Tuesday, February 13, 2007 7:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] duplicate function definition



Hello all,
When I am doing this :
 
 public var vbox:VBox;

 public function set vbox(val):void{ 
   vbox = val
   }

 
Why am i getting a error like Duplicate function definition when i am
defining my set vbox function.
 
Regards
Mayur

 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Re: FlexAntTasks and tokens

2007-02-12 Thread Stembert Olivier \(BIL\)
Thanks Chris!
 
But now my question is how I can pass the property to the mxmlc tag (the
compiler) so that I can use the property in my flex-config.xml compiler
configuration file.
 
Olivier



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Chris Luebcke
Sent: Monday, February 12, 2007 11:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: FlexAntTasks and tokens



Hi Olivier,

There are two ways I know of to define properties, and one consistent
syntax for using them.

To define properties in your build.xml file itself, you use the
 tag. Example:



A common pattern is to define properties which may vary between
developer machines or between dev/qa/production builds in a seperate
.properties file, and then reference that file into your build.xml.
For example, I have a file called local.properties, which contains
(among other things) this line:

top=C:\/dev/app

(Yeah, now that I look at it I'm not sure exactly how I arrived at
that particular combination of back and forward slashes, but it works
so I'm disinclined to monkey with it.)

I include this file in my build.xml file with the following line:



And after doing so, I can reference the top property with the curly
brace syntax, a la ${top}. You'll note that I've done just that in the
first example, where ${flash.dir} gets the value "${top}/bin", which
resolves to "C:\/dev/app".

You use the same ${} format to use tokens in your
 tag.

Last thing I'll note is that I've had better luck defining Windows
paths, especially those containing spaces, in an external properties
file--doing so directly in a  tag seems to cause problems.
That could just be ignorance on my part of how to properly escape
paths within the build.xml file, though.

Hope that's what you were looking for,
Chris

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Stembert Olivier \(BIL\)"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I'd like to use tokens with FlexAntTasks. I don't see how I can pass
the
> token to the mxmlc tag.
> 
> To know what is a token, one can red in the doc:
> "You can pass custom token values to the compiler using the following
> syntax: +token_name=value In the configuration file, you reference
that
> value using the following syntax: ${token_name} You can use the
@Context
> token in your configuration files to represent the context root of the
> application. You can also use the ${flexlib} token to represent the
> frameworks directory. This is useful if you set up your own
> configuration and are not using the default library-path settings. The
> default value of the ${flexlib} token is application_home\frameworks."
> 
> Rgds,
> 
> Olivier
> 
> -
> An electronic message is not binding on its sender.
> Any message referring to a binding engagement must be confirmed in
writing and duly signed.
> -
>



 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



[flexcoders] FlexAntTasks and tokens

2007-02-12 Thread Stembert Olivier \(BIL\)
Hi,

I'd like to use tokens with FlexAntTasks. I don't see how I can pass the
token to the mxmlc tag.

To know what is a token, one can red in the doc:
"You can pass custom token values to the compiler using the following
syntax: +token_name=value In the configuration file, you reference that
value using the following syntax: ${token_name} You can use the @Context
token in your configuration files to represent the context root of the
application. You can also use the ${flexlib} token to represent the
frameworks directory. This is useful if you set up your own
configuration and are not using the default library-path settings. The
default value of the ${flexlib} token is application_home\frameworks."

Rgds,

Olivier

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Re: Project structure

2007-02-05 Thread Stembert Olivier (BIL)
You organize your applications in a package hierarchy. What I'd like is
to organize them in a folder hierarchy like in the samples webapp.
 
Rgds,
 
Olivier



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sgrosven2
Sent: Monday, February 05, 2007 3:10 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Project structure



The solution to that I've been using is to have a "skeletal" 
mx:application file in the root directory. that skeletal file does 
something like this:




the MyAppMain.mxml is a component living in 
the "com.mycompany.yadayada" path that contains the real application. 
Since its a component it can be bundled easily with other "main" 
screens if I wanted to do so.



 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



[flexcoders] Flex books

2007-02-04 Thread Stembert Olivier (BIL)
Hi flexcoders,

Is it worth buying these books???

Programming Flex2
ActionScript 3.0 Cookbook

Did you read and recomment them?

Rgds,

Olivier

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Project structure

2007-02-04 Thread Stembert Olivier \(BIL\)
Yes I'd like to create multiple mxml apps like in the samples project
for example.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Beverly Guillermo
Sent: Friday, February 02, 2007 9:25 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Project structure



Do you mean creating multiple mxml files that have  tag?
I didn't think that was allowed?

I know that if I have components that I build using .mxml files I could
just use a package structure which allows me to put them in sub-folders
and access those components... 



On 2/2/07, Stembert Olivier (BIL) <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote: 



In other words, why do we have to put mxml applications in the
main flex folder?
I don't understand why such a limitation?
 
Rgds,
 
Olivier :)



From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com <http://yahoogroups.com> ] On Behalf
Of Stembert Olivier (BIL)
Sent: Thursday, February 01, 2007 7:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Project structure




Hi flexcoders,

I'd like to put many mxml applications in only one eclipse
project.
The problem is that I can only put my applications in the main
flex
folder. I don't like it because I want to structure my project
and put
my applications in subfolders.
Is there a workaround using Flex Builder? I know I can use Flex
Ant
tasks.

Rgds,

Olivier

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed
in writing and duly signed.
-



-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed
in writing and duly signed.

-

 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed
in writing and duly signed.

-

 






 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Integerating Flex and Java using

2007-02-04 Thread Stembert Olivier (BIL)
Hi,
 
Did you compile your app with the -services compiler option to specify
where is your services configuration file???
 
Rgds,
 
Olivier



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mukesh
Sent: Friday, February 02, 2007 9:00 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Integerating Flex and Java using 



Hi There,
I was trying "Daniel Harfleet's" sample example , where he is showing
how to integrate Java and Flex using a simple RPC example. I followed
the steps, but I am getting an error on the Server console.
My Flex application is deployed on JBoss server 4.0.5.
I've made sure that the java class is compiled and is in placed in the
WEB-INF/classes directory of my Flex application.

This is how the remoteobject tag looks in my sample.mxml file





This is how the entry in the remote-config.xml looks







fdsweb.EchoService
application



==

So, when I try to access the application deployed in the JBoss, it
throws the following error on the console.

22:59:59,484 INFO [STDOUT] [Flex] [ERROR] Exception when invoking
service: remo
ting-service
with message: Flex Message (flex.messaging.messages.RemotingMessage)
operation = echo
clientId = 4A82830C-BC09-C972-DEFB-361367B86F0E
destination = echoService
messageId = C4DFD400-5B97-AB88-DFD7-80D2BD155FFC
timestamp = 1170392399484
timeToLive = 1170392399484
body = null
hdr(DSEndpoint) = my-amf
exception: flex.messaging.MessageException: No destination
'echoService' exist
s in service flex.messaging.services.RemotingService
22:59:59,500 INFO [STDOUT] [Flex] [ERROR] Error handling message:
flex.messagin
g.MessageException: No destination 'echoService' exists in service
flex.messagin
g.services.RemotingService
incomingMessage: Flex Message (flex.messaging.messages.RemotingMessage)
operation = echo
clientId = 4A82830C-BC09-C972-DEFB-361367B86F0E
destination = echoService
messageId = C4DFD400-5B97-AB88-DFD7-80D2BD155FFC
timestamp = 1170392399484
timeToLive = 1170392399484
body = null
hdr(DSEndpoint) = my-amf
errorReply: Flex Message (flex.messaging.messages.ErrorMessage)
clientId = null
correlationId = C4DFD400-5B97-AB88-DFD7-80D2BD155FFC
destination = echoService
messageId = 4A828333-CC08-81C5-E391-08512AA44718
timestamp = 1170392399500
timeToLive = 0
body = null
code = Server.Processing
message = No destination 'echoService' exists in service
flex.messaging.ser
vices.RemotingService
details = null
rootCause = null
body = null
extendedData = null

Could someone , please let me know as to what I am missing.
-Regards



 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] AS variables at the top level of a package

2007-02-02 Thread Stembert Olivier (BIL)
Okay I understand.

So, I can never declare my method as public at the package level, right?

But what do you understand when reading the doc???

"If you do declare
variables, functions, or namespaces at the top level of a package, the
only attributes available
at that level are public and internal, and only one package-level
declaration per file can use
the public attribute, whether that declaration is a class, variable,
function, or namespace." 


Rgds,

Olivier :)



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Friday, February 02, 2007 12:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] AS variables at the top level of a package

On Friday 02 Feb 2007, Stembert Olivier (BIL) wrote:
> Sorry but it's 7AM here in Luxembourg and I don't see...

Okay, try it this way:
> > package
> > {
> > class Test
> > {
> > }
> > }

You have created an object called Test. You can only have one public
object in a package (even if your package has no name). Only public
objects can have public methods (because methods must belong to an
object, and if external classes can't see the object, they can't invoke
the method [what would they invoke it on ?]).

> > public function dummy():void{}

This public method is not part of an object, so it will break.

--
Tom Chiverton
Helping to proactively aggregate end-to-end interfaces



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

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at St James's Court Brown Street Manchester M2 2JF.  A list
of members is available for inspection at the registered office. Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

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

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



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




-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in
writing and duly signed.
-


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Project structure

2007-02-01 Thread Stembert Olivier (BIL)
In other words, why do we have to put mxml applications in the main flex
folder?
I don't understand why such a limitation?
 
Rgds,
 
Olivier :)



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stembert Olivier (BIL)
Sent: Thursday, February 01, 2007 7:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Project structure



Hi flexcoders,

I'd like to put many mxml applications in only one eclipse project.
The problem is that I can only put my applications in the main flex
folder. I don't like it because I want to structure my project and put
my applications in subfolders.
Is there a workaround using Flex Builder? I know I can use Flex Ant
tasks.

Rgds,

Olivier

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in
writing and duly signed.
-



 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] AS variables at the top level of a package

2007-02-01 Thread Stembert Olivier (BIL)
Hi Tom,

Sorry but it's 7AM here in Luxembourg and I don't see... 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Thursday, February 01, 2007 1:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] AS variables at the top level of a package

On Thursday 01 Feb 2007, Stembert Olivier (BIL) wrote:
> package
> {
>   class Test
>   {
>   }
> }
>
> var var1 : String;
>
> public function dummy():void{}
..
> I don't understand why I got the compilation error since I have only 
> one declaration with the public attribute.
> duly signed. -

Think about it - which object is your new public method a method on ?

--
Tom Chiverton
Helping to evangelistically synergize edge-of-your-seat models



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

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at St James's Court Brown Street Manchester M2 2JF.  A list
of members is available for inspection at the registered office. Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

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

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



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




-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in
writing and duly signed.
-


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] AS variables at the top level of a package

2007-01-31 Thread Stembert Olivier \(BIL\)
Sorry, I didn't understand "at the top level of a package"

This one compiled fine.

package
{
public class Test
{
}
}
var var1 : String;

Other examples:
1) compiles fine

package
{   
class Test
{
}
}

var var1 : String;

function dummy():void{}

2) got compilation error
1114: The public attribute can only be used inside a package.

package
{   
class Test
{
}
}

var var1 : String;

public function dummy():void{}

In the AS3.0 pdf page40, one can read:

"If you do declare
variables, functions, or namespaces at the top level of a package, the
only attributes available
at that level are public and internal, and only one package-level
declaration per file can use
the public attribute, whether that declaration is a class, variable,
function, or namespace."

I don't understand why I got the compilation error since I have only one
declaration with the public attribute.

I know it's not very funny...


Rgds,

Olivier



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stembert Olivier (BIL)
Sent: Thursday, February 01, 2007 8:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AS variables at the top level of a package



Hi again,

In the AS3.0 pdf page39, one can read:

"Many developers, especially those with Java programming backgrounds,
may choose to place only classes at the top level of a package.
ActionScript 3.0, however, supports not only classes at the top level of
a package, but also variables, functions, and even statements."

I tried to compile the following:

package
{
var var1 : String;

public class Test
{
}
}

But got the following error:

A file found in a source-path can not have more than one externally
visible definition. var1;Test

Any ideas?

Rgds,

Olivier

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in
writing and duly signed.
-



 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



[flexcoders] AS variables at the top level of a package

2007-01-31 Thread Stembert Olivier \(BIL\)
Hi again,

In the AS3.0 pdf page39, one can read:

"Many developers, especially those with Java programming backgrounds,
may choose to place only classes at the top level of a package.
ActionScript 3.0, however, supports not only classes at the top level of
a package, but also variables, functions, and even statements."

I tried to compile the following:

package
{
var var1 : String;

public class Test
{
}
}

But got the following error:

A file found in a source-path can not have more than one externally
visible definition. var1;Test


Any ideas?

Rgds,

Olivier

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



[flexcoders] Project structure

2007-01-31 Thread Stembert Olivier (BIL)
Hi flexcoders,

I'd like to put many mxml applications in only one eclipse project.
The problem is that I can only put my applications in the main flex
folder. I don't like it because I want to structure my project and put
my applications in subfolders.
Is there a workaround using Flex Builder? I know I can use Flex Ant
tasks.

Rgds,

Olivier

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] deploying a simple Flex app to WebSphere AppServer?

2007-01-29 Thread Stembert Olivier (BIL)
Check this
http://weblogs.macromedia.com/pmartin/archives/2006/11/deploying_flex.cf
m#more
 
Rgds,
 
Olivier



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of djbrown_rotonews
Sent: Thursday, January 25, 2007 4:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] deploying a simple Flex app to WebSphere
AppServer?



I'm trying to deploy a simple flex app to WAS6.1 after having it run 
under the included jrun4. What processes do I need to take, or is 
there a tutorial online that would step me thru the process?



 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



[flexcoders] Flash simple question

2007-01-27 Thread Stembert Olivier \(BIL\)
Hi all,

When a swf file is downloaded to my computer, where is it stored? I mean
where on the file system?

Thanks

Olivier

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



[flexcoders] Organize imports

2007-01-26 Thread Stembert Olivier (BIL)
Ho all,

Do you know how to organize imports in FlexBuilder?

Rgds,

Olivier

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Globally Define Custom validation Messages

2007-01-22 Thread Stembert Olivier (BIL)
Hi,
 
I don't like compiling againt the locale.
Check this alternative:
 
http://weblogs.macromedia.com/arayne/archives/2006/08/internationalis.cf
m#mo
 
Regards,
 
Olivier



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dirk Eismann
Sent: Friday, January 19, 2007 10:19 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Globally Define Custom validation Messages



All messages are externalized to .properties files and can be easily
localized. Check the Flex SDK install directory for the locale/en_US
folder. You'll have to create your localized / customized .properties
files and compile your application against the locale.

Dirk.

> -Original Message-
> From: flexcoders@yahoogroups.com 

> [mailto:flexcoders@yahoogroups.com
 ] On Behalf Of Juan Carlos M.
> Sent: Friday, January 19, 2007 9:17 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Globally Define Custom validation Messages
> 
> Hi. Is there a way to globally define custom validation 
> messages and properties instead of "per instance" definition?
> 
> (for example, define globally "my custom message" as default value
> for wrongYearError in All DateValidators of the application? )
> 
> 
> 
> 
> --
> 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
> 
> 
> 
> 


 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Remote list (data provider)

2007-01-21 Thread Stembert Olivier \(BIL\)
Hi,
 
Thanks for sharing your code.
 
Just want to say the paging mechanism is supported in Flex Data
Management Service only (not in RPC services).
 
Regards,
 
Olivier



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of roman_dolgov
Sent: Sunday, January 21, 2007 9:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Remote list (data provider)



FYI:

Just to share a sample implementation of IList that supports remote
paging and works well with DataGrid. (You don't need it if you are
using FDS, otherwise I could not find much info how to do it without
FDS)

I tried two approaches:
- using event notification
- using ItemPendingError

The second one seems to be the winner.
You can find code and some brief explanation here:

http://stackoverflowexception.blogspot.com/2007/01/new-version-of-remote
list-ilist.html
 

regards
RD



 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] FDS createItem - how to find ID of inserted record?

2007-01-21 Thread Stembert Olivier (BIL)
Hi,

You should set the id in your dao class.
Here is an example with a dao using Spring:

public void create(Dept dept) throws DataAccessException
{
String sql = ...
NamedParameterJdbcTemplate template = new
NamedParameterJdbcTemplate(this.getDataSource());
MapSqlParameterSource namedParameters = new MapSqlParameterSource();
...
template.update(sql, namedParameters);
int id = getJdbcTemplate().queryForInt("call identity()");
dept.setDeptId(id);

}

Regards,

Olivier




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sunilpatel_10
Sent: Saturday, January 20, 2007 2:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FDS createItem - how to find ID of inserted
record?



Hi,

I have a page where I capture DEPT and EMP data. On click of a button
I want to save DEPT record and all the EMP records with ID of newly
created DEPT as a parent. I use FDS, hibernate and db generated IDs.
The problem I am facing is how do I get the ID of DEPT record created
by createitem() and access it to assign this DEPT as a parent of EMP
records that I want to create? If I examine ID of dept object used in
createitem after FDS commit(), it is still 0. Appreciate your help.



 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Difference Between FDS and Flex SDK

2007-01-21 Thread Stembert Olivier (BIL)
Hi Sanjay,
 
You will find a lot of answers by searching a little bit in this forum.
 
And, by the way, here is the link to the doc:
http://www.adobe.com/support/documentation/en/flex/
 
Regards,
 
Olivier



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sanjaypmg
Sent: Monday, January 22, 2007 6:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Difference Between FDS and Flex SDK



Hi,

Can anyone tell me the main differences between Flex Data Services 
(FDS) and Flex SDK?

And I have one more question, Can I connect to Remote Object without 
FDS?

Please clearify my doubts.

Thanks,
Sanjay Sharma



 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Precompiling with active web-tier compiler

2007-01-17 Thread Stembert Olivier (BIL)
Hi Hara,
 
Specify the location of the services-config.xml file by using the
"services" compiler argument.
 
Regards,
 
Olivier



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of haravallabhan
Sent: Wednesday, January 17, 2007 2:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Precompiling with active web-tier compiler



Hi all..

I am trying to precompile the application which uses the FDS 2.0. 
Precompiling doest give me any errors. But the issue is Iam using 
RemoteObject in the client to access Java methods. So it need web-
tier compiler. 

So when I wrote a html wrapper with the src="MyApp.swf" I get the 
error "couldn't establish a connection to MyService" where MyService 
is the destination I referred to in the RemoteObject call.The 
destination poits to the service mentioned in the remote-config.xml.

But when I give src="MyApp.mxml" in the html wrapper the application 
works fine. Is it that it nullified the precompile I did?? Does it 
compile again when I specify MyApp.mxml iside the html wrapper 

If so is there a way out, without compromising the precompiling 
action? Can I deactivate the web-tier compiler? And which config I 
may use instead of remote-config.xml. Since when remote-config.xml is 
there then the web-tier compiler is activates as per the help doc.

Does anyone have an answer for me?

Thanks in advance
Regards
Hara

--- In flexcoders@yahoogroups.com 
, "haravallabhan" 
<[EMAIL PROTECTED]> wrote:
>
> Thanks gr8 work clint... thanks a lot... it worked... I was 
> searching for web-inf/flex/libs but it looks like it takes form the 
> sdk framework
> 
> thanks a lot clint.
> 
> cheers
> Hara
> 
> 
> 
> --- In flexcoders@yahoogroups.com
 , "Clint Modien"  wrote:
> >
> > Sounds like you're missing the fds.swc . It's not included in 
the 
> SDK.
> > 
> > You can get the express version of FDS here:
> > http://www.adobe.com/go/flex_trial
 
> > 
> > On 1/12/07, haravallabhan  wrote:
> > >
> > > Thanks Clint for the links.. Was useful.
> > >
> > > I have added ant tags to compile and build the Flex application
> > > manually with precompilation.But When I tried to complie the 
mxml
> > > file using the ant build file I get an error which I didnt get 
> when I
> > > compile normally. The error says Interface IManaged not found 
and 
> the
> > > ant says the build was Failed.
> > >
> > > Whats the error mean? I am using the exec tag to use the 
> mxmlc.exe in
> > > the fsdk2/bin in the Flex Builder installed directory.
> > >
> > > Thanks
> > > regards
> > > Hara
> > >
> > > --- In flexcoders@yahoogroups.com
   40yahoogroups.com>, "Clint
> > > Modien"  wrote:
> > > >
> > > > http://livedocs.flexsearch.org/index.shtml?
 
> cx=017079146949617508304%
 
> cx=017079146949617508304%25>
> > > 3Amv4wpsyofxu&cof=FORID%3A9&q=mxmlc#1126
> > > >
> > > > What you really want to do is setup ant to build it for you in
> > > flexbuilder
> > > > 2.
> > > > http://www.flex2ant.org/  
> > > >
> > > > Or setup ant from the command line.
> > > > http://webddj.sys-con.com/read/309503.htm
 
> > > > http://webddj.sys-con.com/read/310378.htm
 
> > > >
> > > >
> > > > On 1/10/07, haravallabhan  wrote:
> > > > >
> > > > > Hi Rob and Mod,
> > > > > Thanks for your itme guys. Rob I use FDS and there are no 
> images
> > > > > loaded initally. I directly call the application which 
> initially
> > > > > shows
> > > > > Vbox--
> > > > > Hbox-a Logo-/Hbox
> > > > > applictionControlBar-- /
> > > > > viewStack
> > > > > -- first tab(visible first time) - 3 viewstack each has a 
> chart
> > > > > and datagrid
> > > > > -- second tab - a tree, 2 data grid and a viewstack with a
> > > > > datagrid and a chart
> > > > > /viewstack
> > > > > /vbox
> > > > > Rob what do you mean by the controls in this context.
> > > > > Hi Mod where do I compile the files-- through FlexSDK 
> folder???
> > > > >
> > > > > Thanks
> > > > > regards
> > > > > Hara
> > > > >
> > > > > --- In flexcoders@yahoogroups.com
   40yahoogroups.com> > > 40yahoogroups.com>, "Clint
> > > > > Modien"  wrote:
> > > > > >
> > > > > > Ya... precompiling would definitely help. While your 
> waiting for
> > > > > that
> > > > > > minute. 90% of that time is probably compilation.
> > > > > >
> > > > > > Precompiling is in the docs...
> > > > > >
> > > > > > http://livedocs.flexsearch.org/index.shtml?
 
> > > cx=017079146949617508304%
>  
> > > cx=01

RE: [flexcoders] [Flexunit] - How to test throwing errors?

2007-01-17 Thread Stembert Olivier (BIL)
Hi Christophe,
 
It seems logic the fail() statement is not executed since it follows the
new Account() statement which throws the exception.
I'm not sure I understand what you mean...
 
Regards,
 
Olivier



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of herrodius
Sent: Wednesday, January 17, 2007 11:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] [Flexunit] - How to test throwing errors?



Hi all,

sorry for this slightly OT message.

I was wondering what the best way is to test for a method throwing an
error. I have an Account class that takes a number:int and a
name:String as constructor params. If an Account is instantiated with
a null name, I want to throw an Error (IllegalArgumentException).

In my test, I instantiate a new Account with a null name inside a
try/catch and fail immediately after the instantiation. However this
does not seem to work. The fail never executes and the test passes. 
See example:

var errorMessage:String = "Account constructor should throw
IllegalArgumentException when passing 'null' name.";
try {
var a:Account = new Account(100, null);
fail(errorMessage);
}
catch (e:Error) {}

The only way I can get this to work, is to check if the errorMessage
in the catch block is the same as the error message in my test and
then call fail() again.

var errorMessage:String = "Account constructor should throw
IllegalArgumentException when passing 'null' name.";
try {
var a:Account = new Account(100, null);
fail(errorMessage);
}
catch(e:Error) {
if (e.message == errorMessage) {
fail(errorMessage);
}
}

Seems a bit weird. The fail() in the try block is catched by the catch
block. I thought this worked in AS2? Am I missing out on something or
doing something wrong here?

thx in advance.

regards,
Christophe



 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



[flexcoders] Arp framework

2007-01-17 Thread Stembert Olivier \(BIL\)
Hi,

I found the Arp framework (http://osflash.org/arp) on the net.

Does anyone use it? It seems very similar to Cairngorm.

Regards,

Olivier



-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Interface class for states?

2007-01-15 Thread Stembert Olivier \(BIL\)
Hans,

This is a sort of workaround...

In the super class:

1) declare and define the states
private function init(arr:Array) : void
{
var newState : State;
var i:int; for(i=0; imailto:[EMAIL PROTECTED] On
Behalf Of Van De Velde Hans
Sent: Monday, January 15, 2007 5:11 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] Interface class for states?



Thanks for your reply,
but this is not exactly what I need... :-}
 
What I need is an (exotic) way to force the presence of
certain states in a MXML component.
 
For example we're developing www.belgacom.tv 
in group and 
I want to make sure that everyone extending the "GeneralPortlet" class
implements has at least these states:
 
 
  
  
  
  
  
  
  
  
  

 
 
Can this be done?
 
 
wkr,
Hans.

 
 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Webdevotion
Sent: maandag 15 januari 2007 15:44
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Interface class for states?



Hey Hans,

Look at this blogpost: 
http://casario.blogs.com/mmworld/2006/08/implementing_in.html
 

succes ermee ; )


 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Re: How to have datagrids with different filterfunction for a single dataprovide

2007-01-15 Thread Stembert Olivier \(BIL\)
I think Daniel wants to filter the rows.
I don't see any solution except to duplicate the original one...
 
Olivier



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of phipzkillah
Sent: Monday, January 15, 2007 10:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to have datagrids with different
filterfunction for a single dataprovide



Daniel,

I believe it's possible to do this with one array collection.

Set up 3 datagrids with the dataprovider set to your array collection
variable.

For each datagrid specify the columns you want to be displayed:


  



That should to it...

Phil

--- In flexcoders@yahoogroups.com 
, "Dan" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I want to have 3 datagrids with the same dataprovider but show 
> different part of it according to the filterFunction? Is it possible? 
> Or i need to copy the arraycollection into three and each have to 
> update back the original one by the  tag by adobe??? Anyone 
> has any idea? Thanks
> 
> Daniel
>



 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Problem with viewstack in Flex 2.0 ActionScript not search element by id.

2007-01-14 Thread Stembert Olivier (BIL)
Jan,
 
By default, the View Stack control's children are not created until they
are selected.
Change the creationPolicy attribute of the View Stack to "all".
 
Regards,
 
Olivier



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of j_hora
Sent: Sunday, January 14, 2007 2:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem with viewstack in Flex 2.0 ActionScript
not search element by id.



Hallo,

i start with Flex2 and have this problem.
ActionScript not search Label by id in the second Canvas in ViewStack.
Application start with error TypeError: Error #1009: Cannot access a
property or method of a null object reference.
Id "labela" search OK, but "labelb" is for the function "invisible".
What's wrong? 
My application:


http://www.adobe.com/2006/mxml
 "
layout="absolute" creationComplete="start();">










 


 





Very thanks for help

Jan Hora



 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Cairngorm / MVC Best Practice

2007-01-12 Thread Stembert Olivier (BIL)
I don't know. Why is it still in the framework? 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Friday, January 12, 2007 10:16 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cairngorm / MVC Best Practice

On Friday 05 January 2007 16:07, Stembert Olivier (BIL) wrote:
> the view and the command are better decoupled with the ViewHelper 
> pattern, no?

ViewHelper isn't recommended anymore, is it ?

--
Tom Chiverton
Helping to competently compete 24/7 mindshares



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

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at St James's Court Brown Street Manchester M2 2JF.  A list
of members is available for inspection at the registered office. Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

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

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



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




-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in
writing and duly signed.
-


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Client logging

2007-01-11 Thread Stembert Olivier (BIL)
Thanks a lot
 
LocalConnection is new for me.
I'm going to try it.
 
Regards,
 
Olivier



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Van De Velde Hans
Sent: Wednesday, January 10, 2007 6:34 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] Client logging



No, you're wrong.
 
Check http://osflash.org/xray <http://osflash.org/xray> 
and there are also many runtime trace panels out there 
that dump messages to the panel via LocalConnection (for ActionScript 1,
2 & 3)
 
 
 
 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Stembert Olivier (BIL)
Sent: woensdag 10 januari 2007 9:39
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Client logging



Hi all,

Am I right if I say there's no way to log on the client (trace()
output
method) without the debugger version of the Flash Player?

Thanks

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed
in writing and duly signed.
-



 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Re: Paging with DataGrid??

2007-01-11 Thread Stembert Olivier \(BIL\)
No it's part of FDS2.
 
Here is the link to the doc:
 
http://livedocs.macromedia.com/flex/201/html/wwhelp/wwhimpl/js/html/wwhe
lp.htm?href=Part2_DevApps_048_1.html
 
Regards,
 
Olivier



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sanjaypmg
Sent: Thursday, January 11, 2007 11:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Paging with DataGrid??



Hi Stembert,

Thanks for responding... Please let me know, Flex Data Management 
Services are available in FDS2 or is it required to install/deploy 
it seperately?

Thanks,
Sanjay

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Stembert Olivier \(BIL\)" 
<[EMAIL PROTECTED]> wrote:
>
> Sanjay,
> 
> If you are using Data Management Services, you can specify the 
paging
> option on the network node.
> 
> 
> 
> 
> 
> 
> 
> ...
> 
> 
> 
> ...
> 
> 
> 
> 20
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>

[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of sanjaypmg
> Sent: Thursday, January 11, 2007 10:22 AM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Paging with DataGrid??
> 
> 
> 
> Hi,
> 
> Is there any way to put paging on datagrid?
> 
> Please let me know, if there is something like dis in flex or the 
way 
> to do it in flex.
> 
> Regards,
> Sanjay sharma
> 
> 
> 
> 
> 
> -
> 
> An electronic message is not binding on its sender.
> 
> Any message referring to a binding engagement must be confirmed in
> writing and duly signed.
> 
> -
> 
> 
> 
> 
> -
> An electronic message is not binding on its sender.
> Any message referring to a binding engagement must be confirmed in 
writing and duly signed.
> -
>



 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Paging with DataGrid??

2007-01-11 Thread Stembert Olivier \(BIL\)
Sanjay,

If you are using Data Management Services, you can specify the paging
option on the network node.







 ...



...



20


















From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sanjaypmg
Sent: Thursday, January 11, 2007 10:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Paging with DataGrid??



Hi,

Is there any way to put paging on datagrid?

Please let me know, if there is something like dis in flex or the way 
to do it in flex.

Regards,
Sanjay sharma



 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



[flexcoders] Client logging

2007-01-10 Thread Stembert Olivier \(BIL\)
Hi all,

Am I right if I say there's no way to log on the client (trace() output
method) without the debugger version of the Flash Player?

Thanks

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] DataGrid row

2007-01-10 Thread Stembert Olivier (BIL)
Thanks Tracy for your help
 
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Tuesday, January 09, 2007 6:39 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DataGrid row



That is because there is really no such thing.  The list controls are
windows into the data, and only the visible rows exist.  The visual
rendering elements are re-used when the data is scrolled or the
dataProvider is changed.

You cannot access the data through the control, but must work with the
dataProvider, in your case, something like:

myDataGrid.dataProvider.setItemAt();

The exact API you use depends on what the dataProvider is,
ArrayCollection, XMLList, XMLListCOllection are the main types.  If you
use the Collection api to modify the data, then the changes will
automatically be reflected in the control.

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stembert Olivier (BIL)
Sent: Tuesday, January 09, 2007 4:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid row

Hi,

How can I get a pointer to a row in a DataGrid?
i.e. myDataGrid.getRow(index).setSomething()
I know the DataGridColumn but there's nothing like a DataGridRow

Thanks

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in
writing and duly signed.
-

 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Event calling in Cairngorm 2.1 - Newbie question.

2007-01-10 Thread Stembert Olivier \(BIL\)
What's the description of the error?
Are you sure the controller has been instantiated?
 
Olivier



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin
Sent: Wednesday, January 10, 2007 12:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Event calling in Cairngorm 2.1 - Newbie question.



I am trying to follow the 2.1 store as a model to understand the
cairngorm structure and I am getting a constant error in trying to
dispatch an event.  I copied the example code almost exactly, but i get
seen to get the even to fire.  I don't know if the problem is in my
FrontController or my event.   

Any help you can offer is much appreciated.

Thank, Kevin 

---

I have this in my main.mxml file

  private function loadGroupList() : void
{
  CairngormEventDispatcher.getInstance().dispatchEvent( new
CairngormEvent( GetGroupListEvent.EVENT_GET_GROUP_LIST ) );
}



and then in my event file:

   import flash.events.Event;
import com.adobe.cairngorm.control.CairngormEvent;

public class GetGroupListEvent extends CairngormEvent
{
public static var EVENT_GET_GROUP_LIST : String = "getGroupList";

//public var position : int;




/**
* Constructor.
*/
public function GetGroupListEvent()
{
super( EVENT_GET_GROUP_LIST );
}

  


 /**
  * Override the inherited clone() method, but don't return any
state.
  */
override public function clone() : Event
{
return new GetGroupListEvent();
} 
}




and my controller:


import com.adobe.cairngorm.control.FrontController;
//import the command folder
import com.onefoot.dbocl.command.*
//import each event
import com.onefoot.dbocl.event.GetGroupListEvent;




/**
* @version $Revision: $
*/
public class DboclController extends FrontController
{
public function DboclController()
{
initialiseCommands();
}




public function initialiseCommands() : void
{
addCommand( GetGroupListEvent.EVENT_GET_GROUP_LIST, GetGroupListCommand
);  
} 
}






 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



[flexcoders] DataGrid row

2007-01-09 Thread Stembert Olivier (BIL)
Hi,

How can I get a pointer to a row in a DataGrid?
i.e. myDataGrid.getRow(index).setSomething()
I know the DataGridColumn but there's nothing like a DataGridRow

Thanks

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



RE: [flexcoders] Cairngorm / MVC Best Practice

2007-01-05 Thread Stembert Olivier (BIL)
the view and the command are better decoupled with the ViewHelper
pattern, no? 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Friday, January 05, 2007 4:42 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cairngorm / MVC Best Practice

On Friday 05 January 2007 14:51, Martin Wood-Mitrovski wrote:
> do these objects then implement some kind of interface to support the 
> 'onCommandName(result)' method or do you type it in some other way?

No, you could (should ?) write an interface class and import it though,
yes.
As long as we remember to make the function public rather than private
it works really well. We like it much better than the old ViewHelper way
of doing things as now your result handler code is right there with the
invocation code.

--
Tom Chiverton
Helping to competently harness back-end content



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

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at St James's Court Brown Street Manchester M2 2JF.  A list
of members is available for inspection at the registered office. Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

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

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



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




-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in
writing and duly signed.
-


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-