[flexcoders] Re: Security error accessing url

2007-03-21 Thread Paul Barbieux
Hi;

The discussion about the security access on a web service contains a
lot of responses and solutions.

But I don't find any explanations about the question number 1: why we
have no access problem when we test our application in the Flex
Builder environment, and then we receive a lot of security access
problem when the application run on clients ?

So, what is the difference between the Flash application running in
Flex Builder and this Flash running out of this environment ?

Is that means that in Flex Builder the Flash application doesn't
access the famous crossdomain.xml ?!

I think that this diffrence between the development and the client
environment is a great problem for Flex devloppers ! It means that if
our application runs on our computer, we have no garanty that it's ok
for clients !



[flexcoders] How to count lines of a DataGrid inside a Repeater ?

2007-02-23 Thread Paul Barbieux
Hi;

I have a DataGrid inside a Repeater:
I try to adjust the height of my DataGrid depending on the number of
lines provided by my DataProvider  (bijslagLines is a XMLList).
How can I count the number of elements provided by my DataProvider in
this case ? I wrote this code, but sometimes it send errors ("Error:
Repeater is not executing.at mx.core::Repeater/get currentIndex()
...").



   
   
  
 
 
 ...
  
   



Here is the content of bijslagLines:


   
 
 3/3
 3/3
   
   
 Basiskinderbijslag - tarief 01
 77,05
 77,05
   


   
 
 3/3
 3/3
   
   
 Basiskinderbijslag - tarief 02
 142,58
 142,58
   
   
 Basiskinderbijslag - tarief 01
 
 
   




[flexcoders] Re: DG.dataProvider.length returns 0 at creationComplete time

2007-02-12 Thread Paul Barbieux
Thank you Steve: it works !
In fact the solution was very simple !...

Paul

--- In flexcoders@yahoogroups.com, "Steve Cox" <[EMAIL PROTECTED]> wrote:
>
> At your time of creationComplete the dataprovider probably isn't
> populated. Thus you want the rowcount to change when the dataprovider
> length changes.
>  
> Try binding the rowCount property of the dataprovider to the
> dataprovider like:
>  
>  rowCount="{myDataProvider.length}" />
>  
>  
>  
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Paul Barbieux
> Sent: 12 February 2007 14:30
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] DG.dataProvider.length returns 0 at
> creationComplete time
>  
> Hello;
> 
> I would like that the number of lines in my dataGrid is equal to the
> number of data from my dataProvider.
> 
> I have found a part of solution by searching in this forum, and the code
> is simple:
> 
> DG.rowCount = DG.dataProvider.length;
> 
> So, I have written this code like this:
> 
>  creationComplete="DG.rowCount=DG.dataProvider.length">
> 
> But it doesn't work: DG.dataProvider.length return 0.
> 
> I have tried with the callLater:
> 
> private function resizeDG():void {
>var dataLength:String = DG.dataProvider.length;
>DG.rowCount = DG.dataProvider.length;
> }
>  creationComplete="callLater(resizeDG);"
> 
> The problem remains...
> 
> I have placed the resizeDG function in the creationComplete of the main
> component... and the problem remains...
> 
> But, if I create a button that calls the resizeDG, yes!, my dataGrid
> grows to the correct number of lines !
> 
> Thus, my problem is: how to invoke my function when the dataGrid is
> displayed ?
> Why the creationComplete doesn't work ?...
> 
> Thank's
> 
> Paul
>




[flexcoders] DG.dataProvider.length returns 0 at creationComplete time

2007-02-12 Thread Paul Barbieux
Hello;

I would like that the number of lines in my dataGrid is equal to the
number of data from my dataProvider.

I have found a part of solution by searching in this forum, and the code
is simple:

DG.rowCount = DG.dataProvider.length;

So, I have written this code like this:



But it doesn't work: DG.dataProvider.length return 0.

I have tried with the callLater:

private function resizeDG():void {
var dataLength:String = DG.dataProvider.length;
DG.rowCount = DG.dataProvider.length;
}


[flexcoders] Re: Flex applications look like Fisher-Price toys

2007-01-30 Thread Paul Barbieux
Thank you Mike.
It's the first time that someone reply me with details about this
problem (your solution about buttons works, but I have not tried to
rewrite classes).

Your response helps me about one important point: with Flex 2.0 it's
possible to change padding, gap, height... but it's very difficult and
constraining. Width and height are not defined by styles, padding and
gaps must be "forced", some classes must be rewritten, ...

So, I hope that the next version of Flex will propose more controls on
the design...

Paul



[flexcoders] Re: Flex applications look like Fisher-Price toys

2007-01-29 Thread Paul Barbieux
Thank you everybody.
The examples are nice, but my problem remains: these sites use same size
for components like input fields, combobox, buttons and text.

So, I posted images at this address: www.flickr.com/photos/[EMAIL PROTECTED]/

Now, you can see what worries me!




[flexcoders] Flex applications look like Fisher-Price toys

2007-01-28 Thread Paul Barbieux
Hi;

I'm a developper but also a web designer.
And I'm a beginner with Flex...
But I am frustrated with the possibilities of design of Flex.
All Flex applications I saw have same look: great buttons and input
fields, great gap between lines. Every elements are great: these
applications look like Fisher-price toys ! (you know ? Toys for children)

Yes, the http://www.scalenine.com/ shows beautiful themes. But all
components have same size !

A have made a click-model for an application in HTML, and now I must
write it with Flex: I loose 1/3 of my page because I can't reduce gab
between lines, I can't reduce padding between the label and the border
of the buttons, ... (oh yes I can reduce all elements: but labels and
texts become trucanted !)

- Does a solution exist?
- Can someone show me a Flex site where there is a real work of design?
- Can I expect improvements with Flex 3.0 ?

Thank's