RE: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL with PHP

2011-09-06 Thread Cor
Thanks Glen!

This is what I was looking for.
I use URLVariables in many occasions, but that is always like 1 record.

The (multi-records)part in php is really my problem.
I think I can work-out your example!

Thanks again!

Best regards,
Cor van Dooren

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Glen Pike
Sent: dinsdag 6 september 2011 22:35
To: Flash Coders List
Subject: Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL
with PHP

Hi,

 You can post multidimensional arrays to PHP for example in an HTML
form, this is better than GET which may have a lower limit on the number of
characters that can be sent in a request (as I found out with some JQuery
stuff)...

 http://php.net/manual/en/reserved.variables.post.php
 http://www.php.net/manual/en/reserved.variables.post.php#96902

 You can do:



 So in Flash you could do the same by setting the appropriate variables
in a URLVariables, but note, you probably have to call your variables
something like this:

 var data:URLVariables = new URLVariables();

 data["myArray[0][id]"] = 123;

 So you could loop through your datagrid and submit the values that way
- you would need to add a "count" variable which tells PHP how many objects
are in your array, then you could do:



 Alternatively - and less data-intensively, you could save the values
every time someone changes a field and then it loses focus.  You would have
to save each variable separately so you would need a form processor that
handles some kind of id, a variable name and a value that you then add /
update in the database (if there is no id field, you could be inserting
data).

 You could use Sephiroth's serialiazer system:

 http://www.sephiroth.it/test/unserializer/

 Or some other way of dealing with the data like AMF, etc.

 There used to be some good stuff on Flash DB http://www.flash-db.com/,
but it appears to be down now, so maybe it has gone the way of many
websites...

 I think there are lots of libraries that do a lot of the crappy grunt
work for you with Flash -> Database stuff so whilst it's good to learn the
principles, you would possibly benefit from finding something like these in
the long run, especially where security is concerned:

 http://www.php.net/manual/en/security.database.php

 Hope this helps you a little.

 If only you could assign an object to URLVariables and have it post
properly

 Glen




On 06/09/2011 04:04, Cor wrote:
> Thanks Karl,
>
> Yes, I know.
> My problem is how to fetch my $_POST['VALUES'], which is the 
> multi-dimensional  array:
>
> myArray[0["id"]
>   myArray[0]["name"]
>   myArray[0]["description"]
>
> myArray[1["id"]
>   myArray[1]["name"]
>   myArray[1]["description"]
>
> myArray[2["id"]
>   myArray[2]["name"]
>   myArray[2]["description"]
>
> etc.
>
> Best regards,
> Cor van Dooren
>
>
> -Original Message-
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Karl 
> DeSaulniers
> Sent: dinsdag 6 september 2011 3:54
> To: Flash Coders List
> Subject: Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash to 
> mySQL with PHP
>
> Hi Cor,
> Assuming you know enough php to set up the file for connecting to your 
> database, you can insert into your database with the following example.
>
> function addDescription($id, $name, $description) {
>   //Escape any data being inserted
>   $id = mysql_real_escape_string($id);
>   $name = mysql_real_escape_string($name);
>   $description = mysql_real_escape_string($description);
>
>   $query = "INSERT INTO YOUR_TABLE_NAME_HERE VALUES ('".$id."','".
> $name."','".description."')";
>   $_POST['VALUES'];
>
>   $result = mysql_query($query, YOUR_CONNECTION) or
die(mysql_error());
>   return $result; //Returns true or false if error }
>
> HTH,
> Best,
>
> Karl
>
>
> On Sep 5, 2011, at 2:04 PM, Cor wrote:
>
>> I have a editable datagrid which I fill from mySQL with PHP.
>> So far works good.
>>
>> But when items are changed (edit, added, deleted), I want them to 
>> save the data in my mySQL database.
>> My values are in this multi-dimensional indexed array, which elements 
>> all contain a associative array:
>>
>> myArray[i]["id"]
>> myArray[i]["name"]
>> myArray[i]["description"]
>>
>> So, can anyone tell/show me a apropriate w

Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL with PHP

2011-09-06 Thread Glen Pike

Hi,

You can post multidimensional arrays to PHP for example in an HTML 
form, this is better than GET which may have a lower limit on the number 
of characters that can be sent in a request (as I found out with some 
JQuery stuff)...


http://php.net/manual/en/reserved.variables.post.php
http://www.php.net/manual/en/reserved.variables.post.php#96902

You can do:



So in Flash you could do the same by setting the appropriate 
variables in a URLVariables, but note, you probably have to call your 
variables something like this:


var data:URLVariables = new URLVariables();

data["myArray[0][id]"] = 123;

So you could loop through your datagrid and submit the values that 
way - you would need to add a "count" variable which tells PHP how many 
objects are in your array, then you could do:


$num_items = isset($_POST['num_items']) ? 
(int)$_POST['num_items'] : 0;

for($i = 0; $i < $num_items;$i++) {
$id = $_POST["myArray"][$i]["id"];
//...
}
?>

Alternatively - and less data-intensively, you could save the 
values every time someone changes a field and then it loses focus.  You 
would have to save each variable separately so you would need a form 
processor that handles some kind of id, a variable name and a value that 
you then add / update in the database (if there is no id field, you 
could be inserting data).


You could use Sephiroth's serialiazer system:

http://www.sephiroth.it/test/unserializer/

Or some other way of dealing with the data like AMF, etc.

There used to be some good stuff on Flash DB 
http://www.flash-db.com/, but it appears to be down now, so maybe it has 
gone the way of many websites...


I think there are lots of libraries that do a lot of the crappy 
grunt work for you with Flash -> Database stuff so whilst it's good to 
learn the principles, you would possibly benefit from finding something 
like these in the long run, especially where security is concerned:


http://www.php.net/manual/en/security.database.php

Hope this helps you a little.

If only you could assign an object to URLVariables and have it post 
properly


Glen




On 06/09/2011 04:04, Cor wrote:

Thanks Karl,

Yes, I know.
My problem is how to fetch my $_POST['VALUES'], which is the
multi-dimensional  array:

myArray[0["id"]
  myArray[0]["name"]
  myArray[0]["description"]

myArray[1["id"]
  myArray[1]["name"]
  myArray[1]["description"]

myArray[2["id"]
  myArray[2]["name"]
  myArray[2]["description"]

etc.

Best regards,
Cor van Dooren


-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: dinsdag 6 september 2011 3:54
To: Flash Coders List
Subject: Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL
with PHP

Hi Cor,
Assuming you know enough php to set up the file for connecting to your
database, you can insert into your database with the following example.

function addDescription($id, $name, $description) {
//Escape any data being inserted
$id = mysql_real_escape_string($id);
$name = mysql_real_escape_string($name);
$description = mysql_real_escape_string($description);

$query = "INSERT INTO YOUR_TABLE_NAME_HERE VALUES ('".$id."','".
$name."','".description."')";
$_POST['VALUES'];

$result = mysql_query($query, YOUR_CONNECTION) or
die(mysql_error());
return $result; //Returns true or false if error }

HTH,
Best,

Karl


On Sep 5, 2011, at 2:04 PM, Cor wrote:


I have a editable datagrid which I fill from mySQL with PHP.
So far works good.

But when items are changed (edit, added, deleted), I want them to save
the data in my mySQL database.
My values are in this multi-dimensional indexed array, which elements
all contain a associative array:

myArray[i]["id"]
myArray[i]["name"]
myArray[i]["description"]

So, can anyone tell/show me a apropriate way to pass this to PHP and
in the php-file how to INSERT or UPDATE this to mySQL?

TIA!
Best regards,
Cor van Dooren


___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL with PHP

2011-09-05 Thread Cor
Hi Karl,

The Flash part is no problem.
But in PHP I am a novice!

So far I learned that I should think of sending Strings to PHP instead of a
complete multi-dim array.
I don't know how to set up PHP to open it once. Do all your sending and
inserting, then close once I am done?
Do you have some examples of your construction with the different
files/classes?

Best regards,
Cor van Dooren

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: dinsdag 6 september 2011 6:24
To: Flash Coders List
Subject: Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL
with PHP

Correction...

_parent.status = this.status;
}
};
mylv.sendAndLoad("http://yourwebsite.com/process.php";, myreply,
"POST");
_parent.status = "sending now ...";
//end while loop here
}

Best,
Karl

On Sep 5, 2011, at 11:20 PM, Karl DeSaulniers wrote:

> Hey Cor,
> This is how I have it set up in as2, you may be able to port easier 
> than I.
>
> send_btn.onRelease = function() {
>   //Creates a LoadVars and get values from the form
>   mylv = new LoadVars();
>   myreply = new LoadVars();
>   mylv.formTrue = "1"; //Verify were on our form
>   //could put a while loop here mylv.id = myArray[i]['id'];
>   mylv.id = id.text;
>   mylv.name = name_txt.text;
>   mylv.description = description.text;
>   //Show success or fails message
>   myreply.onLoad = function() {
>   if(this.status === "Mail sent!") { //Success!
>   newStatus = this.status + " - Thank you for
your response. We will 
> get in touch with you at "+email_txt.text+".- Company";
>   gotoAndPlay("send_off");
>   } else if(this.status === "Mail Failed!"){//Mail
Failed with error
>   _parent.status = this.status + "Sorry
there was a problem 
> sending your message. Please try again or try again at a later time.
> We apologize for any inconvenience.";
>   } else {
>   _parent.status = this.status;
>   }
>   //end while loop here
>   };
>   mylv.sendAndLoad("http://yourwebsite.com/process.php";, myreply, 
> "POST");
>   _parent.status = "sending now ...";
> }
>
> Obviously this is for a mail form and needs to be seasoned to taste, 
> but..
> HTH,
>
> Best,
> Karl
>
> On Sep 5, 2011, at 11:07 PM, Karl DeSaulniers wrote:
>
>> I think you may be able to use the php split() or explode() on a 
>> array of data sent.
>> but probably easier to split it up when gathering the info in flash.
>> multiple small queries instead of a bulky single query?
>>
>> Karl
>>
>>
>> On Sep 5, 2011, at 10:34 PM, Cor wrote:
>>
>>> Do you mean that is it not possible to send an array from Flash to 
>>> PHP in this way:
>>>
>>> private function validateAndSend(e:MouseEvent):void {
>>> form_variables = new URLVariables();
>>> form_varSend=new URLRequest(Main.PHP_URL+"control.php");
>>> form_varSend.method=URLRequestMethod.POST;
>>> form_varSend.data=form_variables;
>>> form_varLoader=new URLLoader  ;
>>> form_varLoader.dataFormat=URLLoaderDataFormat.VARIABLES;
>>> form_variables.sendRequest = "registreer_materiaal";
>>> form_variables.VALUES = myMultiDimArray;
>>> form_varLoader.addEventListener(Event.COMPLETE,
>>> completeLoadHandler);   
>>> form_varLoader.load(form_varSend);
>>> }
>>>
>>>
>>> -Original Message-
>>> From: [email protected]
>>> [mailto:[email protected]] On Behalf Of Dave 
>>> Watts
>>> Sent: dinsdag 6 september 2011 5:27
>>> To: Flash Coders List
>>> Subject: Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash 
>>> to mySQL with PHP
>>>
>>>> My problem is how to fetch my $_POST['VALUES'], which is the 
>>>> multi-dimensional  array:
>>>>
>>>> myArray[0["id"]
>>>> myArray[0]["name"]
>>>> myArray[0]["description"]
>>>>
>>>&g

Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL with PHP

2011-09-05 Thread Karl DeSaulniers

Correction...

_parent.status = this.status;
}
};
	mylv.sendAndLoad("http://yourwebsite.com/process.php";, myreply,  
"POST");

_parent.status = "sending now ...";
//end while loop here
}

Best,
Karl

On Sep 5, 2011, at 11:20 PM, Karl DeSaulniers wrote:


Hey Cor,
This is how I have it set up in as2, you may be able to port easier  
than I.


send_btn.onRelease = function() {
//Creates a LoadVars and get values from the form
mylv = new LoadVars();
myreply = new LoadVars();
mylv.formTrue = "1"; //Verify were on our form
//could put a while loop here mylv.id = myArray[i]['id'];
mylv.id = id.text;
mylv.name = name_txt.text;
mylv.description = description.text;
//Show success or fails message
myreply.onLoad = function() {
if(this.status === "Mail sent!") { //Success!
newStatus = this.status + " - Thank you for your response. We  
will get in touch with you at "+email_txt.text+".- Company";

gotoAndPlay("send_off");
} else if(this.status === "Mail Failed!"){//Mail Failed 
with error
_parent.status = this.status + "Sorry there was a problem  
sending your message. Please try again or try again at a later time.  
We apologize for any inconvenience.";

} else {
_parent.status = this.status;
}
//end while loop here
};
	mylv.sendAndLoad("http://yourwebsite.com/process.php";, myreply,  
"POST");

_parent.status = "sending now ...";
}

Obviously this is for a mail form and needs to be seasoned to taste,  
but..

HTH,

Best,
Karl

On Sep 5, 2011, at 11:07 PM, Karl DeSaulniers wrote:

I think you may be able to use the php split() or explode() on a  
array of data sent.

but probably easier to split it up when gathering the info in flash.
multiple small queries instead of a bulky single query?

Karl


On Sep 5, 2011, at 10:34 PM, Cor wrote:

Do you mean that is it not possible to send an array from Flash to  
PHP in

this way:

private function validateAndSend(e:MouseEvent):void {
form_variables = new URLVariables();
form_varSend=new URLRequest(Main.PHP_URL+"control.php");
form_varSend.method=URLRequestMethod.POST;
form_varSend.data=form_variables;
form_varLoader=new URLLoader  ;
form_varLoader.dataFormat=URLLoaderDataFormat.VARIABLES;
form_variables.sendRequest = "registreer_materiaal";
form_variables.VALUES = myMultiDimArray;
form_varLoader.addEventListener(Event.COMPLETE,
completeLoadHandler);   
form_varLoader.load(form_varSend);
}


-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of  
Dave Watts

Sent: dinsdag 6 september 2011 5:27
To: Flash Coders List
Subject: Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash  
to mySQL

with PHP


My problem is how to fetch my $_POST['VALUES'], which is the
multi-dimensional  array:

myArray[0["id"]
myArray[0]["name"]
myArray[0]["description"]

...

etc.


I'm not a PHP expert, but in general you can't really submit an  
array as
form data directly to a CGI program. You have to post name-value  
pairs - if
you have a set of array values, they'd simply end up having the  
same name
and different values (like a checkbox array in HTML, for example).  
In your

case, things are a bit more complicated because you have an array of
structs, basically, so you'll need to convert those to a bunch of  
individual

name-value pairs in order to submit them to a CGI program.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA  
Schedule,
and provides the highest caliber vendor-authorized instruction at  
our

training centers, online, or onsite.

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http:

Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL with PHP

2011-09-05 Thread Karl DeSaulniers

Hi Cor,

On Sep 5, 2011, at 11:14 PM, Cor wrote:


Karl,

Thank you very much!!

But this would create a lot of network traffic, open connection and
database, do mysql_query and close db conn??


You only need to open it once. Do all your sending and inserting, then  
close once your done.




You wrote in the previous mail:
I should mention that I use this stuff inside php classes. so $this- 
> has

already been defined as the class your currently in.
Like the database class, $database->addDescription(); is called  
outside the

class. if it was called inside the database class file, it would be
$this->addDescription();. Also, the php file name thats called from  
flash is

database.php. etc, etc. FYI.

- a process.php, this retrieves your variables from flash, makes  
sure its

not a bot, any verify codes checked here, etc
- then send it to your sessions.php for validation and set your  
errors here

to send back with.
- then send to your database.php for stripping, manipulation and  
insertion.


This is what I am looking for (to learn) and where my knowledge of PHP
stops...


This is the best way in my opinion. I learned off of finding a php  
login example.




You can address me directly if you like: codo AT chello DOT nl


I am available if you need. My email is above.



Best regards,
Cor van Dooren


-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: dinsdag 6 september 2011 6:07
To: Flash Coders List
Subject: Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash  
to mySQL

with PHP

I think you may be able to use the php split() or explode() on a  
array of

data sent.
but probably easier to split it up when gathering the info in flash.
multiple small queries instead of a bulky single query?

Karl


On Sep 5, 2011, at 10:34 PM, Cor wrote:

Do you mean that is it not possible to send an array from Flash to  
PHP

in this way:

private function validateAndSend(e:MouseEvent):void {
form_variables = new URLVariables();
form_varSend=new URLRequest(Main.PHP_URL+"control.php");
form_varSend.method=URLRequestMethod.POST;
form_varSend.data=form_variables;
form_varLoader=new URLLoader  ;
form_varLoader.dataFormat=URLLoaderDataFormat.VARIABLES;
form_variables.sendRequest = "registreer_materiaal";
form_variables.VALUES = myMultiDimArray;
form_varLoader.addEventListener(Event.COMPLETE,
completeLoadHandler);   
form_varLoader.load(form_varSend);
}


-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Dave
Watts
Sent: dinsdag 6 september 2011 5:27
To: Flash Coders List
Subject: Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash to
mySQL with PHP


My problem is how to fetch my $_POST['VALUES'], which is the
multi-dimensional  array:

myArray[0["id"]
myArray[0]["name"]
myArray[0]["description"]

...

etc.


I'm not a PHP expert, but in general you can't really submit an array
as form data directly to a CGI program. You have to post name-value
pairs - if you have a set of array values, they'd simply end up  
having
the same name and different values (like a checkbox array in HTML,  
for

example).
In your
case, things are a bit more complicated because you have an array of
structs, basically, so you'll need to convert those to a bunch of
individual name-value pairs in order to submit them to a CGI program.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA
Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL with PHP

2011-09-05 Thread Karl DeSaulniers

Hey Cor,
This is how I have it set up in as2, you may be able to port easier  
than I.


send_btn.onRelease = function() {
//Creates a LoadVars and get values from the form
mylv = new LoadVars();
myreply = new LoadVars();
mylv.formTrue = "1"; //Verify were on our form
//could put a while loop here mylv.id = myArray[i]['id'];
mylv.id = id.text;
mylv.name = name_txt.text;
mylv.description = description.text;
//Show success or fails message
myreply.onLoad = function() {
if(this.status === "Mail sent!") { //Success!
newStatus = this.status + " - Thank you for your response. We will  
get in touch with you at "+email_txt.text+".- Company";

gotoAndPlay("send_off");
} else if(this.status === "Mail Failed!"){//Mail Failed 
with error
_parent.status = this.status + "Sorry there was a problem  
sending your message. Please try again or try again at a later time.  
We apologize for any inconvenience.";

} else {
_parent.status = this.status;
}
//end while loop here
};
	mylv.sendAndLoad("http://yourwebsite.com/process.php";, myreply,  
"POST");

_parent.status = "sending now ...";
}

Obviously this is for a mail form and needs to be seasoned to taste,  
but..

HTH,

Best,
Karl

On Sep 5, 2011, at 11:07 PM, Karl DeSaulniers wrote:

I think you may be able to use the php split() or explode() on a  
array of data sent.

but probably easier to split it up when gathering the info in flash.
multiple small queries instead of a bulky single query?

Karl


On Sep 5, 2011, at 10:34 PM, Cor wrote:

Do you mean that is it not possible to send an array from Flash to  
PHP in

this way:

private function validateAndSend(e:MouseEvent):void {
form_variables = new URLVariables();
form_varSend=new URLRequest(Main.PHP_URL+"control.php");
form_varSend.method=URLRequestMethod.POST;
form_varSend.data=form_variables;
form_varLoader=new URLLoader  ;
form_varLoader.dataFormat=URLLoaderDataFormat.VARIABLES;
form_variables.sendRequest = "registreer_materiaal";
form_variables.VALUES = myMultiDimArray;
form_varLoader.addEventListener(Event.COMPLETE,
completeLoadHandler);   
form_varLoader.load(form_varSend);
}


-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of  
Dave Watts

Sent: dinsdag 6 september 2011 5:27
To: Flash Coders List
Subject: Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash  
to mySQL

with PHP


My problem is how to fetch my $_POST['VALUES'], which is the
multi-dimensional  array:

myArray[0["id"]
myArray[0]["name"]
myArray[0]["description"]

...

etc.


I'm not a PHP expert, but in general you can't really submit an  
array as
form data directly to a CGI program. You have to post name-value  
pairs - if
you have a set of array values, they'd simply end up having the  
same name
and different values (like a checkbox array in HTML, for example).  
In your

case, things are a bit more complicated because you have an array of
structs, basically, so you'll need to convert those to a bunch of  
individual

name-value pairs in order to submit them to a CGI program.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA  
Schedule,

and provides the highest caliber vendor-authorized instruction at our
training centers, online, or onsite.

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL with PHP

2011-09-05 Thread Cor
Thanks David,

OK, HTTP -> String... that clears a lot!
Can you give a little example of how to do you typically have to serialize
your data to send via HTTP, then deserialize the sent data to use it as an
object that's not a string.

Best regards,
Cor van Dooren


-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Dave Watts
Sent: dinsdag 6 september 2011 6:08
To: Flash Coders List
Subject: Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL
with PHP

> Do you mean that is it not possible to send an array from Flash to PHP 
> in this way:
>
>        private function validateAndSend(e:MouseEvent):void {
>                form_variables = new URLVariables();
>...
>                form_variables.VALUES = myMultiDimArray;
>                form_varLoader.addEventListener(Event.COMPLETE,
> completeLoadHandler);
>                form_varLoader.load(form_varSend);
>        }

That would send a single form field, VALUES, with a single value containing
something that's not a string. But sending data via HTTP requires that you
use strings. In the simplest case, you'd at least have to convert the array
to a string to store it within the single form field. This kind of thing is
a fairly common problem with web applications - you typically have to
serialize your data to send via HTTP, then deserialize the sent data to use
it as an object that's not a string.

Normally, as an occasional Flex guy, I end up using AMF which includes
serialization/deserialization functionality to handle this for you.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule,
and provides the highest caliber vendor-authorized instruction at our
training centers, online, or onsite.

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL with PHP

2011-09-05 Thread Cor
Karl,

Thank you very much!!

But this would create a lot of network traffic, open connection and
database, do mysql_query and close db conn??

You wrote in the previous mail:
I should mention that I use this stuff inside php classes. so $this-> has
already been defined as the class your currently in.
Like the database class, $database->addDescription(); is called outside the
class. if it was called inside the database class file, it would be
$this->addDescription();. Also, the php file name thats called from flash is
database.php. etc, etc. FYI.

- a process.php, this retrieves your variables from flash, makes sure its
not a bot, any verify codes checked here, etc
- then send it to your sessions.php for validation and set your errors here
to send back with.
- then send to your database.php for stripping, manipulation and insertion.

This is what I am looking for (to learn) and where my knowledge of PHP
stops...

You can address me directly if you like: codo AT chello DOT nl

Best regards,
Cor van Dooren


-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: dinsdag 6 september 2011 6:07
To: Flash Coders List
Subject: Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL
with PHP

I think you may be able to use the php split() or explode() on a array of
data sent.
but probably easier to split it up when gathering the info in flash.
multiple small queries instead of a bulky single query?

Karl


On Sep 5, 2011, at 10:34 PM, Cor wrote:

> Do you mean that is it not possible to send an array from Flash to PHP 
> in this way:
>
>   private function validateAndSend(e:MouseEvent):void {
>   form_variables = new URLVariables();
>   form_varSend=new URLRequest(Main.PHP_URL+"control.php");
>   form_varSend.method=URLRequestMethod.POST;
>   form_varSend.data=form_variables;
>   form_varLoader=new URLLoader  ;
>   form_varLoader.dataFormat=URLLoaderDataFormat.VARIABLES;
>   form_variables.sendRequest = "registreer_materiaal";
>   form_variables.VALUES = myMultiDimArray;
>   form_varLoader.addEventListener(Event.COMPLETE,
> completeLoadHandler); 
>   form_varLoader.load(form_varSend);
>   }
>
>
> -Original Message-
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Dave 
> Watts
> Sent: dinsdag 6 september 2011 5:27
> To: Flash Coders List
> Subject: Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash to 
> mySQL with PHP
>
>> My problem is how to fetch my $_POST['VALUES'], which is the 
>> multi-dimensional  array:
>>
>> myArray[0["id"]
>>  myArray[0]["name"]
>>  myArray[0]["description"]
>>
>> ...
>>
>> etc.
>
> I'm not a PHP expert, but in general you can't really submit an array 
> as form data directly to a CGI program. You have to post name-value 
> pairs - if you have a set of array values, they'd simply end up having 
> the same name and different values (like a checkbox array in HTML, for 
> example).
> In your
> case, things are a bit more complicated because you have an array of 
> structs, basically, so you'll need to convert those to a bunch of 
> individual name-value pairs in order to submit them to a CGI program.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> http://training.figleaf.com/
>
> Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA 
> Schedule, and provides the highest caliber vendor-authorized 
> instruction at our training centers, online, or onsite.
>
> ___
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
> ___
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL with PHP

2011-09-05 Thread Dave Watts
> Do you mean that is it not possible to send an array from Flash to PHP in
> this way:
>
>        private function validateAndSend(e:MouseEvent):void {
>                form_variables = new URLVariables();
>...
>                form_variables.VALUES = myMultiDimArray;
>                form_varLoader.addEventListener(Event.COMPLETE,
> completeLoadHandler);
>                form_varLoader.load(form_varSend);
>        }

That would send a single form field, VALUES, with a single value
containing something that's not a string. But sending data via HTTP
requires that you use strings. In the simplest case, you'd at least
have to convert the array to a string to store it within the single
form field. This kind of thing is a fairly common problem with web
applications - you typically have to serialize your data to send via
HTTP, then deserialize the sent data to use it as an object that's not
a string.

Normally, as an occasional Flex guy, I end up using AMF which includes
serialization/deserialization functionality to handle this for you.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL with PHP

2011-09-05 Thread Karl DeSaulniers
I think you may be able to use the php split() or explode() on a array  
of data sent.

but probably easier to split it up when gathering the info in flash.
multiple small queries instead of a bulky single query?

Karl


On Sep 5, 2011, at 10:34 PM, Cor wrote:

Do you mean that is it not possible to send an array from Flash to  
PHP in

this way:

private function validateAndSend(e:MouseEvent):void {
form_variables = new URLVariables();
form_varSend=new URLRequest(Main.PHP_URL+"control.php");
form_varSend.method=URLRequestMethod.POST;
form_varSend.data=form_variables;
form_varLoader=new URLLoader  ;
form_varLoader.dataFormat=URLLoaderDataFormat.VARIABLES;
form_variables.sendRequest = "registreer_materiaal";
form_variables.VALUES = myMultiDimArray;
form_varLoader.addEventListener(Event.COMPLETE,
completeLoadHandler);   
form_varLoader.load(form_varSend);
}


-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Dave  
Watts

Sent: dinsdag 6 september 2011 5:27
To: Flash Coders List
Subject: Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash  
to mySQL

with PHP


My problem is how to fetch my $_POST['VALUES'], which is the
multi-dimensional  array:

myArray[0["id"]
 myArray[0]["name"]
 myArray[0]["description"]

...

etc.


I'm not a PHP expert, but in general you can't really submit an  
array as
form data directly to a CGI program. You have to post name-value  
pairs - if
you have a set of array values, they'd simply end up having the same  
name
and different values (like a checkbox array in HTML, for example).  
In your

case, things are a bit more complicated because you have an array of
structs, basically, so you'll need to convert those to a bunch of  
individual

name-value pairs in order to submit them to a CGI program.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA  
Schedule,

and provides the highest caliber vendor-authorized instruction at our
training centers, online, or onsite.

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL with PHP

2011-09-05 Thread Karl DeSaulniers

Hi Cor,
Have you ever made a mail form in flash?

I am assuming you have. Pretty much same scenario.
Just break down myArray[i] into individual vars and send the variables  
to the php file.

So with a while or for loop, gather all your variables and send away.

Opt 1.
for each set - myArray[0]
- send this set
return to for loop - myArray[1]
- send next set

... etc

Opt 2.
or gather all the individual variables and send all at once. if this  
is your wish.
you will have to set something up on the php side to differentiate  
between myArray[0]['id'] and myArray[1]['id'], etc.


3.
or you can send the array and break it up on the php side with a while  
or for loop


var $ID_Array = array();
for () {
$ID_Array[i] = array();
$this->$ID_Array[i][0] = $_POST[id][0];
(This is not tested, FYI. just the basic gist)

When you use POST in flash, php will automatically fill $_POS[''] with  
the flash form var.

then you just get your var out and put it in that function.

$post_id = $_POST['id'];
$post_name = $_POST['name'];
$post_description = $_POST['description'];

$database_query = $database->addDescription($post_id, $post_name,  
$post_description);


if($database_query){ //True ? False
Success / fail code
other ...
}

I should mention that I use this stuff inside php classes. so $this->  
has already been defined as the class your currently in.
Like the database class, $database->addDescription(); is called  
outside the class. if it was called inside the database class file,
it would be $this->addDescription();. Also, the php file name thats  
called from flash is database.php. etc, etc. FYI.


I would recommend setting up separate php files
- a process.php, this retrieves your variables from flash, makes sure  
its not a bot, any verify codes checked here, etc
- then send it to your sessions.php for validation and set your errors  
here to send back with.
- then send to your database.php for stripping, manipulation and  
insertion.


to send back to flash, use die('Error example') for errors and use a  
status listener in flash

to send results, use the return($result);

A search for php sessions example or php login example would get you a  
workable sample code.


HTH,
Best,
Karl


On Sep 5, 2011, at 10:04 PM, Cor wrote:


Thanks Karl,

Yes, I know.
My problem is how to fetch my $_POST['VALUES'], which is the
multi-dimensional  array:

myArray[0["id"]
myArray[0]["name"]
myArray[0]["description"]

myArray[1["id"]
myArray[1]["name"]
myArray[1]["description"]

myArray[2["id"]
myArray[2]["name"]
myArray[2]["description"]

etc.

Best regards,
Cor van Dooren


-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: dinsdag 6 september 2011 3:54
To: Flash Coders List
Subject: Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash  
to mySQL

with PHP

Hi Cor,
Assuming you know enough php to set up the file for connecting to your
database, you can insert into your database with the following  
example.


function addDescription($id, $name, $description) {
//Escape any data being inserted
$id = mysql_real_escape_string($id);
$name = mysql_real_escape_string($name);
$description = mysql_real_escape_string($description);

$query = "INSERT INTO YOUR_TABLE_NAME_HERE VALUES ('".$id."','".
$name."','".description."')";
$_POST['VALUES'];

$result = mysql_query($query, YOUR_CONNECTION) or
die(mysql_error());
return $result; //Returns true or false if error }

HTH,
Best,

Karl


On Sep 5, 2011, at 2:04 PM, Cor wrote:


I have a editable datagrid which I fill from mySQL with PHP.
So far works good.

But when items are changed (edit, added, deleted), I want them to  
save

the data in my mySQL database.
My values are in this multi-dimensional indexed array, which elements
all contain a associative array:

myArray[i]["id"]
myArray[i]["name"]
myArray[i]["description"]

So, can anyone tell/show me a apropriate way to pass this to PHP and
in the php-file how to INSERT or UPDATE this to mySQL?

TIA!
Best regards,
Cor van Dooren


___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL with PHP

2011-09-05 Thread Cor
Do you mean that is it not possible to send an array from Flash to PHP in
this way:

private function validateAndSend(e:MouseEvent):void {
form_variables = new URLVariables();
form_varSend=new URLRequest(Main.PHP_URL+"control.php");
form_varSend.method=URLRequestMethod.POST;
form_varSend.data=form_variables;
form_varLoader=new URLLoader  ;
form_varLoader.dataFormat=URLLoaderDataFormat.VARIABLES;
form_variables.sendRequest = "registreer_materiaal";
form_variables.VALUES = myMultiDimArray;
form_varLoader.addEventListener(Event.COMPLETE,
completeLoadHandler);   
form_varLoader.load(form_varSend);
}


-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Dave Watts
Sent: dinsdag 6 september 2011 5:27
To: Flash Coders List
Subject: Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL
with PHP

> My problem is how to fetch my $_POST['VALUES'], which is the 
> multi-dimensional  array:
>
> myArray[0["id"]
>  myArray[0]["name"]
>  myArray[0]["description"]
>
> ...
>
> etc.

I'm not a PHP expert, but in general you can't really submit an array as
form data directly to a CGI program. You have to post name-value pairs - if
you have a set of array values, they'd simply end up having the same name
and different values (like a checkbox array in HTML, for example). In your
case, things are a bit more complicated because you have an array of
structs, basically, so you'll need to convert those to a bunch of individual
name-value pairs in order to submit them to a CGI program.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule,
and provides the highest caliber vendor-authorized instruction at our
training centers, online, or onsite.

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL with PHP

2011-09-05 Thread Dave Watts
> My problem is how to fetch my $_POST['VALUES'], which is the
> multi-dimensional  array:
>
> myArray[0["id"]
>  myArray[0]["name"]
>  myArray[0]["description"]
>
> ...
>
> etc.

I'm not a PHP expert, but in general you can't really submit an array
as form data directly to a CGI program. You have to post name-value
pairs - if you have a set of array values, they'd simply end up having
the same name and different values (like a checkbox array in HTML, for
example). In your case, things are a bit more complicated because you
have an array of structs, basically, so you'll need to convert those
to a bunch of individual name-value pairs in order to submit them to a
CGI program.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL with PHP

2011-09-05 Thread Cor
Thanks Karl,

Yes, I know.
My problem is how to fetch my $_POST['VALUES'], which is the
multi-dimensional  array:

myArray[0["id"]
 myArray[0]["name"]
 myArray[0]["description"]

myArray[1["id"]
 myArray[1]["name"]
 myArray[1]["description"]

myArray[2["id"]
 myArray[2]["name"]
 myArray[2]["description"]

etc.

Best regards,
Cor van Dooren


-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: dinsdag 6 september 2011 3:54
To: Flash Coders List
Subject: Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL
with PHP

Hi Cor,
Assuming you know enough php to set up the file for connecting to your
database, you can insert into your database with the following example.

function addDescription($id, $name, $description) {
//Escape any data being inserted
$id = mysql_real_escape_string($id);
$name = mysql_real_escape_string($name);
$description = mysql_real_escape_string($description);

$query = "INSERT INTO YOUR_TABLE_NAME_HERE VALUES ('".$id."','". 
$name."','".description."')";
$_POST['VALUES'];

$result = mysql_query($query, YOUR_CONNECTION) or
die(mysql_error());
return $result; //Returns true or false if error }

HTH,
Best,

Karl


On Sep 5, 2011, at 2:04 PM, Cor wrote:

> I have a editable datagrid which I fill from mySQL with PHP.
> So far works good.
>
> But when items are changed (edit, added, deleted), I want them to save 
> the data in my mySQL database.
> My values are in this multi-dimensional indexed array, which elements 
> all contain a associative array:
>
> myArray[i]["id"]
> myArray[i]["name"]
> myArray[i]["description"]
>
> So, can anyone tell/show me a apropriate way to pass this to PHP and 
> in the php-file how to INSERT or UPDATE this to mySQL?
>
> TIA!
> Best regards,
> Cor van Dooren
>
>
> ___
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL with PHP

2011-09-05 Thread Karl DeSaulniers

Hi Cor,
Assuming you know enough php to set up the file for connecting to your  
database,

you can insert into your database with the following example.

function addDescription($id, $name, $description) {
//Escape any data being inserted
$id = mysql_real_escape_string($id);
$name = mysql_real_escape_string($name);
$description = mysql_real_escape_string($description);

	$query = "INSERT INTO YOUR_TABLE_NAME_HERE VALUES ('".$id."','". 
$name."','".description."')";

$_POST['VALUES'];

$result = mysql_query($query, YOUR_CONNECTION) or die(mysql_error());
return $result; //Returns true or false if error
}

HTH,
Best,

Karl


On Sep 5, 2011, at 2:04 PM, Cor wrote:


I have a editable datagrid which I fill from mySQL with PHP.
So far works good.

But when items are changed (edit, added, deleted), I want them to  
save the

data in my mySQL database.
My values are in this multi-dimensional indexed array, which  
elements all

contain a associative array:

myArray[i]["id"]
myArray[i]["name"]
myArray[i]["description"]

So, can anyone tell/show me a apropriate way to pass this to PHP and  
in the

php-file how to INSERT or UPDATE this to mySQL?

TIA!
Best regards,
Cor van Dooren


___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] DataGrid: Expanding vertical Thumb width

2011-09-05 Thread Glen Pike

Hi,

I remember having to hack this in Flash for a list component, you 
should be able to set the style, but you need to use GrantSkinners 
workaround http://gskinner.com/blog/archives/2007/05/variable_scroll.html


Edit your skin, then include Grant's fl.controls.List or whatever - 
that includes Scrollbar code.


Set your width using the setStyle props.

_list.setStyle("scrollBarWidth",40);
_list.setStyle("scrollArrowHeight", 40);

HTH

Glen

On 04/09/2011 21:24, [email protected] wrote:

What is the approach to expand a DataGrid vertical scrollbar's
width (from the standard 15 pixels, to 44 or so, for touchscreens)
in pure AS3 / Flash CS 5?

It looks easy in Flex now
http://www.switchonthecode.com/tutorials/flex-fun-advanced-datagrid-topics


But in Flash/AS3,
directly editing
library>  Component Assets>  ScrollBarSkins>  Scrolltrack_skin
as recommended at
http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d118a9c65b32-7f4a.html
to change its color and width
does change the color and the width in the library,
but only the color -- not the width at runtime.


Widening scrollThumb_upSkin, et al in the library does show them altered when 
run,
but cut off at the stock 16 pixel width of DataGrid scrolltrack.

Any thoughts?

thanks


// basically straight from livedocs...

import fl.controls.DataGrid;
import fl.controls.dataGridClasses.DataGridColumn;
import fl.data.DataProvider;
import fl.events.DataGridEvent;

function setup ():void
{
 var aDg:DataGrid = new DataGrid();
 addChild(aDg);
 aDg.verticalScrollPolicy="on";

 var nameDGC:DataGridColumn = new DataGridColumn("name");
 nameDGC.sortOptions = Array.CASEINSENSITIVE;
 var scoreDGC:DataGridColumn = new DataGridColumn("score");
 scoreDGC.sortOptions = Array.NUMERIC;
 aDg.addColumn(nameDGC);
 aDg.addColumn(scoreDGC);
 var aDP_array:Array = new Array({name:"clark", score:3135},
{name:"Bill", score:803}, {name:"fc", score:03}, {name:"Bruce",
score:403}, {name:"Peter", score:25})
 aDg.dataProvider = new DataProvider(aDP_array);

 aDg.rowCount = aDg.length - 2;
 aDg.width = 200;

 // also does nothing
 aDg.verticalScrollBar.width = 60;
}
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Datagrid problem after resize page

2010-09-04 Thread Karl DeSaulniers

Glad I could help on a somewhat molecular level. :)
GL

Karl


On Sep 4, 2010, at 3:36 AM, Cor wrote:


Indeed, I will created my own.

A: I have no image in my grid.

Thanks very much Karl, you have been a great help!!

Regards
Cor

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: zaterdag 4 september 2010 10:26
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

Correct. So my theory is.. put your grid inside a scale9'd MC. :)

My only other suggestion is to switch grid components or roll your
own if pos.
That link I sent you had some source example you could look at.
I tried resizing the demo on my computer and it looked ok.

Question: Is any part of this grid and image? More specifically a
loaded image?
If it is, then I would set up different resolutions of those images
based on the resolution of the window.
Sort of a small med and large of the image that gets associated with
800x600  1020x1224  1440x960  and so on.

Best,

Karl




Nine section scaling does not cascade. It only applies to shapes
directly in the container.
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Interne Virusdatabase is verouderd.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.851 / Virusdatabase: 271.1.1/3099 - datum van uitgifte:
08/28/10
08:34:00

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Interne Virusdatabase is verouderd.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.851 / Virusdatabase: 271.1.1/3099 - datum van uitgifte:  
08/28/10

08:34:00

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Datagrid problem after resize page

2010-09-04 Thread Cor
Indeed, I will created my own.

A: I have no image in my grid.

Thanks very much Karl, you have been a great help!!

Regards
Cor

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: zaterdag 4 september 2010 10:26
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

Correct. So my theory is.. put your grid inside a scale9'd MC. :)

My only other suggestion is to switch grid components or roll your  
own if pos.
That link I sent you had some source example you could look at.
I tried resizing the demo on my computer and it looked ok.

Question: Is any part of this grid and image? More specifically a  
loaded image?
If it is, then I would set up different resolutions of those images  
based on the resolution of the window.
Sort of a small med and large of the image that gets associated with  
800x600  1020x1224  1440x960  and so on.

Best,

Karl


>
> Nine section scaling does not cascade. It only applies to shapes
> directly in the container.
> ___
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> Interne Virusdatabase is verouderd.
> Gecontroleerd door AVG - www.avg.com
> Versie: 9.0.851 / Virusdatabase: 271.1.1/3099 - datum van uitgifte:  
> 08/28/10
> 08:34:00
>
> ___
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Interne Virusdatabase is verouderd.
Gecontroleerd door AVG - www.avg.com 
Versie: 9.0.851 / Virusdatabase: 271.1.1/3099 - datum van uitgifte: 08/28/10
08:34:00

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Datagrid problem after resize page

2010-09-04 Thread Karl DeSaulniers

Correct. So my theory is.. put your grid inside a scale9'd MC. :)

My only other suggestion is to switch grid components or roll your  
own if pos.

That link I sent you had some source example you could look at.
I tried resizing the demo on my computer and it looked ok.

Question: Is any part of this grid and image? More specifically a  
loaded image?
If it is, then I would set up different resolutions of those images  
based on the resolution of the window.
Sort of a small med and large of the image that gets associated with  
800x600  1020x1224  1440x960  and so on.


Best,

Karl




Nine section scaling does not cascade. It only applies to shapes
directly in the container.
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Interne Virusdatabase is verouderd.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.851 / Virusdatabase: 271.1.1/3099 - datum van uitgifte:  
08/28/10

08:34:00

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Datagrid problem after resize page

2010-09-04 Thread Cor
Yes, you are right.
Do you perhaps have another solution to my problem?

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Henrik
Andersson
Sent: vrijdag 3 september 2010 23:21
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

Karl DeSaulniers skriver:
> Yeah. Try creating an empty moviclip and set the scale9 property in the
> library. Then put your grid in it and see if it scales the way you want.
> Sort of a hack, but might work for what your wanting.

Nine section scaling does not cascade. It only applies to shapes 
directly in the container.
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Interne Virusdatabase is verouderd.
Gecontroleerd door AVG - www.avg.com 
Versie: 9.0.851 / Virusdatabase: 271.1.1/3099 - datum van uitgifte: 08/28/10
08:34:00

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Datagrid problem after resize page

2010-09-03 Thread Henrik Andersson

Karl DeSaulniers skriver:

Yeah. Try creating an empty moviclip and set the scale9 property in the
library. Then put your grid in it and see if it scales the way you want.
Sort of a hack, but might work for what your wanting.


Nine section scaling does not cascade. It only applies to shapes 
directly in the container.

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Datagrid problem after resize page

2010-09-03 Thread Karl DeSaulniers
Yeah. Try creating an empty moviclip and set the scale9 property in  
the library. Then put your grid in it and see if it scales the way you  
want. Sort of a hack, but might work for what your wanting.


BOL

Karl

Sent from losPhone

On Sep 3, 2010, at 6:29 AM, "Cor"  wrote:


Hi Karl,

Sorry I react so late, but I was away for my work for 5 days (and  
nights).


I also try to use anything else but components, but in this case the  
client

wanted it that way.
The scale9, I will try this.
I don't use any styling.

Thanks for all the support!!!

Kind regards
Cor


-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: dinsdag 31 augustus 2010 0:32
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

Hey Cor,
Its a long shot, but can you load the grid into a mc that has the
scale9 on it?
Also, how are you styling the text? In css? or a textbox with a font
assigned to it?
Sorry haven't worked with grids too much.
Seems to me that if your using css, the line hight of your font stays
at the set pt but the text doesn't when it is sized up.
thus it is actually there, but because the scale is not set to an
whole number or non decimal number,
you get that cutoff of the bottom of your text for whatever reason, I
don't know, I think its a bug personally..
If your using css, maybe set the line height to be inherited or
absolute or a pt larger than it is currently set?
Or make your grid scale in whole numbers?
Well, I'm all reached out.
GL

Karl


On Aug 30, 2010, at 5:14 PM, Cor wrote:


No, unfortunatly not...

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: maandag 30 augustus 2010 21:11
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

That do the trick?

Karl

Sent from losPhone

On Aug 30, 2010, at 1:43 PM, "Cor"  wrote:


Thanks Karl

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: maandag 30 augustus 2010 2:45
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

Redemption. :)

http://www.rareviewblog.com/2009/01/21/flash-as3-grid-sorting/

Best,

Karl


On Aug 29, 2010, at 7:40 PM, Karl DeSaulniers wrote:


I do apologize, I just realized that was a silverlight forum.

NM

Karl


On Aug 29, 2010, at 7:29 PM, Karl DeSaulniers wrote:


Got one more.
Have you looked into the events SizeChagned and LayoutUpdated?
I found someone talking about it here.

http://forums.silverlight.net/forums/p/19987/275301.aspx

Very last comment on the post has some code that it is used in.
They are trying to autosize columns,
but you may be able to translate these events to help with your
problem.
JAT

Best,

Karl


On Aug 29, 2010, at 6:52 AM, Cor wrote:


Thanks again, Karl,

But I can't seem to find something like columnStretch but instead
for
columns I  need it for rows.

Regards
Cor

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of
Karl
DeSaulniers
Sent: zaterdag 28 augustus 2010 23:40
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

This might help.

http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/fl/
controls/DataGrid.html

But I am thinking you have already seen this.
Sorry I am not much more help. Just had some time to google for
ya. :)
Best,

Karl

On Aug 28, 2010, at 4:33 PM, Karl DeSaulniers wrote:


Ah.. did not see this email.

Karl

On Aug 28, 2010, at 8:14 AM, Cor wrote:


I have looked at this:

http://www.adobe.com/devnet/flash/quickstart/datagrid_pt1/
#section1

but there is nothing about my issue.

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of
Karl
DeSaulniers
Sent: zaterdag 28 augustus 2010 12:37
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

Is this what you are looking for?

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/ 
flash/

display/DisplayObject.html#scale9Grid

Best,

Karl


On Aug 28, 2010, at 5:29 AM, Cor wrote:


Hi List,

I have used a datagrid which looks OK when the page is viewed
in its
original dimensions.
But if a user has a bigger resolution I scale my flash to that
size.
And then my datagrid looks bad:

http://www.codobyte.com/!problem/datagrid.gif

I want to keep the scaling part, so how can I adjust the text
in the
datagrid after the app is resized?

Any help is appreciated!

TIA, regards
Cor

___
Flashcoders mailing list
[email protected]
http://chattyf

RE: [Flashcoders] Datagrid problem after resize page

2010-09-03 Thread Cor
Hi Karl,

Sorry I react so late, but I was away for my work for 5 days (and nights).

I also try to use anything else but components, but in this case the client
wanted it that way.
The scale9, I will try this.
I don't use any styling.

Thanks for all the support!!!

Kind regards
Cor


-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: dinsdag 31 augustus 2010 0:32
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

Hey Cor,
Its a long shot, but can you load the grid into a mc that has the  
scale9 on it?
Also, how are you styling the text? In css? or a textbox with a font  
assigned to it?
Sorry haven't worked with grids too much.
Seems to me that if your using css, the line hight of your font stays  
at the set pt but the text doesn't when it is sized up.
thus it is actually there, but because the scale is not set to an  
whole number or non decimal number,
you get that cutoff of the bottom of your text for whatever reason, I  
don't know, I think its a bug personally..
If your using css, maybe set the line height to be inherited or  
absolute or a pt larger than it is currently set?
Or make your grid scale in whole numbers?
Well, I'm all reached out.
GL

Karl


On Aug 30, 2010, at 5:14 PM, Cor wrote:

> No, unfortunatly not...
>
> -Original Message-
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Karl
> DeSaulniers
> Sent: maandag 30 augustus 2010 21:11
> To: Flash Coders List
> Subject: Re: [Flashcoders] Datagrid problem after resize page
>
> That do the trick?
>
> Karl
>
> Sent from losPhone
>
> On Aug 30, 2010, at 1:43 PM, "Cor"  wrote:
>
>> Thanks Karl
>>
>> -Original Message-
>> From: [email protected]
>> [mailto:[email protected]] On Behalf Of Karl
>> DeSaulniers
>> Sent: maandag 30 augustus 2010 2:45
>> To: Flash Coders List
>> Subject: Re: [Flashcoders] Datagrid problem after resize page
>>
>> Redemption. :)
>>
>> http://www.rareviewblog.com/2009/01/21/flash-as3-grid-sorting/
>>
>> Best,
>>
>> Karl
>>
>>
>> On Aug 29, 2010, at 7:40 PM, Karl DeSaulniers wrote:
>>
>>> I do apologize, I just realized that was a silverlight forum.
>>>
>>> NM
>>>
>>> Karl
>>>
>>>
>>> On Aug 29, 2010, at 7:29 PM, Karl DeSaulniers wrote:
>>>
>>>> Got one more.
>>>> Have you looked into the events SizeChagned and LayoutUpdated?
>>>> I found someone talking about it here.
>>>>
>>>> http://forums.silverlight.net/forums/p/19987/275301.aspx
>>>>
>>>> Very last comment on the post has some code that it is used in.
>>>> They are trying to autosize columns,
>>>> but you may be able to translate these events to help with your
>>>> problem.
>>>> JAT
>>>>
>>>> Best,
>>>>
>>>> Karl
>>>>
>>>>
>>>> On Aug 29, 2010, at 6:52 AM, Cor wrote:
>>>>
>>>>> Thanks again, Karl,
>>>>>
>>>>> But I can't seem to find something like columnStretch but instead
>>>>> for
>>>>> columns I  need it for rows.
>>>>>
>>>>> Regards
>>>>> Cor
>>>>>
>>>>> -Original Message-
>>>>> From: [email protected]
>>>>> [mailto:[email protected]] On Behalf Of
>>>>> Karl
>>>>> DeSaulniers
>>>>> Sent: zaterdag 28 augustus 2010 23:40
>>>>> To: Flash Coders List
>>>>> Subject: Re: [Flashcoders] Datagrid problem after resize page
>>>>>
>>>>> This might help.
>>>>>
>>>>> http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/fl/
>>>>> controls/DataGrid.html
>>>>>
>>>>> But I am thinking you have already seen this.
>>>>> Sorry I am not much more help. Just had some time to google for
>>>>> ya. :)
>>>>> Best,
>>>>>
>>>>> Karl
>>>>>
>>>>> On Aug 28, 2010, at 4:33 PM, Karl DeSaulniers wrote:
>>>>>
>>>>>> Ah.. did not see this email.
>>>>>>
>>>>>> Karl
>>>>>>
>>

Re: [Flashcoders] Datagrid problem after resize page

2010-08-30 Thread Karl DeSaulniers

Hey Cor,
Its a long shot, but can you load the grid into a mc that has the  
scale9 on it?
Also, how are you styling the text? In css? or a textbox with a font  
assigned to it?

Sorry haven't worked with grids too much.
Seems to me that if your using css, the line hight of your font stays  
at the set pt but the text doesn't when it is sized up.
thus it is actually there, but because the scale is not set to an  
whole number or non decimal number,
you get that cutoff of the bottom of your text for whatever reason, I  
don't know, I think its a bug personally..
If your using css, maybe set the line height to be inherited or  
absolute or a pt larger than it is currently set?

Or make your grid scale in whole numbers?
Well, I'm all reached out.
GL

Karl


On Aug 30, 2010, at 5:14 PM, Cor wrote:


No, unfortunatly not...

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: maandag 30 augustus 2010 21:11
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

That do the trick?

Karl

Sent from losPhone

On Aug 30, 2010, at 1:43 PM, "Cor"  wrote:


Thanks Karl

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: maandag 30 augustus 2010 2:45
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

Redemption. :)

http://www.rareviewblog.com/2009/01/21/flash-as3-grid-sorting/

Best,

Karl


On Aug 29, 2010, at 7:40 PM, Karl DeSaulniers wrote:


I do apologize, I just realized that was a silverlight forum.

NM

Karl


On Aug 29, 2010, at 7:29 PM, Karl DeSaulniers wrote:


Got one more.
Have you looked into the events SizeChagned and LayoutUpdated?
I found someone talking about it here.

http://forums.silverlight.net/forums/p/19987/275301.aspx

Very last comment on the post has some code that it is used in.
They are trying to autosize columns,
but you may be able to translate these events to help with your
problem.
JAT

Best,

Karl


On Aug 29, 2010, at 6:52 AM, Cor wrote:


Thanks again, Karl,

But I can't seem to find something like columnStretch but instead
for
columns I  need it for rows.

Regards
Cor

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of
Karl
DeSaulniers
Sent: zaterdag 28 augustus 2010 23:40
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

This might help.

http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/fl/
controls/DataGrid.html

But I am thinking you have already seen this.
Sorry I am not much more help. Just had some time to google for
ya. :)
Best,

Karl

On Aug 28, 2010, at 4:33 PM, Karl DeSaulniers wrote:


Ah.. did not see this email.

Karl

On Aug 28, 2010, at 8:14 AM, Cor wrote:


I have looked at this:

http://www.adobe.com/devnet/flash/quickstart/datagrid_pt1/
#section1

but there is nothing about my issue.

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of
Karl
DeSaulniers
Sent: zaterdag 28 augustus 2010 12:37
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

Is this what you are looking for?

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/
display/DisplayObject.html#scale9Grid

Best,

Karl


On Aug 28, 2010, at 5:29 AM, Cor wrote:


Hi List,

I have used a datagrid which looks OK when the page is viewed
in its
original dimensions.
But if a user has a bigger resolution I scale my flash to that
size.
And then my datagrid looks bad:

http://www.codobyte.com/!problem/datagrid.gif

I want to keep the scaling part, so how can I adjust the text
in the
datagrid after the app is resized?

Any help is appreciated!

TIA, regards
Cor

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van
uitgifte: 08/26/10
20:34:00

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers

RE: [Flashcoders] Datagrid problem after resize page

2010-08-30 Thread Cor
No, unfortunatly not...

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: maandag 30 augustus 2010 21:11
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

That do the trick?

Karl

Sent from losPhone

On Aug 30, 2010, at 1:43 PM, "Cor"  wrote:

> Thanks Karl
>
> -Original Message-
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Karl
> DeSaulniers
> Sent: maandag 30 augustus 2010 2:45
> To: Flash Coders List
> Subject: Re: [Flashcoders] Datagrid problem after resize page
>
> Redemption. :)
>
> http://www.rareviewblog.com/2009/01/21/flash-as3-grid-sorting/
>
> Best,
>
> Karl
>
>
> On Aug 29, 2010, at 7:40 PM, Karl DeSaulniers wrote:
>
>> I do apologize, I just realized that was a silverlight forum.
>>
>> NM
>>
>> Karl
>>
>>
>> On Aug 29, 2010, at 7:29 PM, Karl DeSaulniers wrote:
>>
>>> Got one more.
>>> Have you looked into the events SizeChagned and LayoutUpdated?
>>> I found someone talking about it here.
>>>
>>> http://forums.silverlight.net/forums/p/19987/275301.aspx
>>>
>>> Very last comment on the post has some code that it is used in.
>>> They are trying to autosize columns,
>>> but you may be able to translate these events to help with your
>>> problem.
>>> JAT
>>>
>>> Best,
>>>
>>> Karl
>>>
>>>
>>> On Aug 29, 2010, at 6:52 AM, Cor wrote:
>>>
>>>> Thanks again, Karl,
>>>>
>>>> But I can't seem to find something like columnStretch but instead
>>>> for
>>>> columns I  need it for rows.
>>>>
>>>> Regards
>>>> Cor
>>>>
>>>> -Original Message-
>>>> From: [email protected]
>>>> [mailto:[email protected]] On Behalf Of  
>>>> Karl
>>>> DeSaulniers
>>>> Sent: zaterdag 28 augustus 2010 23:40
>>>> To: Flash Coders List
>>>> Subject: Re: [Flashcoders] Datagrid problem after resize page
>>>>
>>>> This might help.
>>>>
>>>> http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/fl/
>>>> controls/DataGrid.html
>>>>
>>>> But I am thinking you have already seen this.
>>>> Sorry I am not much more help. Just had some time to google for
>>>> ya. :)
>>>> Best,
>>>>
>>>> Karl
>>>>
>>>> On Aug 28, 2010, at 4:33 PM, Karl DeSaulniers wrote:
>>>>
>>>>> Ah.. did not see this email.
>>>>>
>>>>> Karl
>>>>>
>>>>> On Aug 28, 2010, at 8:14 AM, Cor wrote:
>>>>>
>>>>>> I have looked at this:
>>>>>>
>>>>>> http://www.adobe.com/devnet/flash/quickstart/datagrid_pt1/
>>>>>> #section1
>>>>>>
>>>>>> but there is nothing about my issue.
>>>>>>
>>>>>> -Original Message-
>>>>>> From: [email protected]
>>>>>> [mailto:[email protected]] On Behalf Of
>>>>>> Karl
>>>>>> DeSaulniers
>>>>>> Sent: zaterdag 28 augustus 2010 12:37
>>>>>> To: Flash Coders List
>>>>>> Subject: Re: [Flashcoders] Datagrid problem after resize page
>>>>>>
>>>>>> Is this what you are looking for?
>>>>>>
>>>>>> http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/
>>>>>> display/DisplayObject.html#scale9Grid
>>>>>>
>>>>>> Best,
>>>>>>
>>>>>> Karl
>>>>>>
>>>>>>
>>>>>> On Aug 28, 2010, at 5:29 AM, Cor wrote:
>>>>>>
>>>>>>> Hi List,
>>>>>>>
>>>>>>> I have used a datagrid which looks OK when the page is viewed
>>>>>>> in its
>>>>>>> original dimensions.
>>>>>>> But if a user has a bigger resolution I scale my flash to that
>>>>>>> size.
>>>>>>> And then my datagrid looks bad:
>>>

Re: [Flashcoders] Datagrid problem after resize page

2010-08-30 Thread Karl DeSaulniers

That do the trick?

Karl

Sent from losPhone

On Aug 30, 2010, at 1:43 PM, "Cor"  wrote:


Thanks Karl

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: maandag 30 augustus 2010 2:45
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

Redemption. :)

http://www.rareviewblog.com/2009/01/21/flash-as3-grid-sorting/

Best,

Karl


On Aug 29, 2010, at 7:40 PM, Karl DeSaulniers wrote:


I do apologize, I just realized that was a silverlight forum.

NM

Karl


On Aug 29, 2010, at 7:29 PM, Karl DeSaulniers wrote:


Got one more.
Have you looked into the events SizeChagned and LayoutUpdated?
I found someone talking about it here.

http://forums.silverlight.net/forums/p/19987/275301.aspx

Very last comment on the post has some code that it is used in.
They are trying to autosize columns,
but you may be able to translate these events to help with your
problem.
JAT

Best,

Karl


On Aug 29, 2010, at 6:52 AM, Cor wrote:


Thanks again, Karl,

But I can't seem to find something like columnStretch but instead
for
columns I  need it for rows.

Regards
Cor

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of  
Karl

DeSaulniers
Sent: zaterdag 28 augustus 2010 23:40
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

This might help.

http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/fl/
controls/DataGrid.html

But I am thinking you have already seen this.
Sorry I am not much more help. Just had some time to google for
ya. :)
Best,

Karl

On Aug 28, 2010, at 4:33 PM, Karl DeSaulniers wrote:


Ah.. did not see this email.

Karl

On Aug 28, 2010, at 8:14 AM, Cor wrote:


I have looked at this:

http://www.adobe.com/devnet/flash/quickstart/datagrid_pt1/
#section1

but there is nothing about my issue.

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of
Karl
DeSaulniers
Sent: zaterdag 28 augustus 2010 12:37
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

Is this what you are looking for?

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/
display/DisplayObject.html#scale9Grid

Best,

Karl


On Aug 28, 2010, at 5:29 AM, Cor wrote:


Hi List,

I have used a datagrid which looks OK when the page is viewed
in its
original dimensions.
But if a user has a bigger resolution I scale my flash to that
size.
And then my datagrid looks bad:

http://www.codobyte.com/!problem/datagrid.gif

I want to keep the scaling part, so how can I adjust the text
in the
datagrid after the app is resized?

Any help is appreciated!

TIA, regards
Cor

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van
uitgifte: 08/26/10
20:34:00

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van
uitgifte: 08/26/10
20:34:00

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]

RE: [Flashcoders] Datagrid problem after resize page

2010-08-30 Thread Cor
Thanks Karl

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: maandag 30 augustus 2010 2:45
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

Redemption. :)

http://www.rareviewblog.com/2009/01/21/flash-as3-grid-sorting/

Best,

Karl


On Aug 29, 2010, at 7:40 PM, Karl DeSaulniers wrote:

> I do apologize, I just realized that was a silverlight forum.
>
> NM
>
> Karl
>
>
> On Aug 29, 2010, at 7:29 PM, Karl DeSaulniers wrote:
>
>> Got one more.
>> Have you looked into the events SizeChagned and LayoutUpdated?
>> I found someone talking about it here.
>>
>> http://forums.silverlight.net/forums/p/19987/275301.aspx
>>
>> Very last comment on the post has some code that it is used in.  
>> They are trying to autosize columns,
>> but you may be able to translate these events to help with your  
>> problem.
>> JAT
>>
>> Best,
>>
>> Karl
>>
>>
>> On Aug 29, 2010, at 6:52 AM, Cor wrote:
>>
>>> Thanks again, Karl,
>>>
>>> But I can't seem to find something like columnStretch but instead  
>>> for
>>> columns I  need it for rows.
>>>
>>> Regards
>>> Cor
>>>
>>> -Original Message-
>>> From: [email protected]
>>> [mailto:[email protected]] On Behalf Of Karl
>>> DeSaulniers
>>> Sent: zaterdag 28 augustus 2010 23:40
>>> To: Flash Coders List
>>> Subject: Re: [Flashcoders] Datagrid problem after resize page
>>>
>>> This might help.
>>>
>>> http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/fl/
>>> controls/DataGrid.html
>>>
>>> But I am thinking you have already seen this.
>>> Sorry I am not much more help. Just had some time to google for  
>>> ya. :)
>>> Best,
>>>
>>> Karl
>>>
>>> On Aug 28, 2010, at 4:33 PM, Karl DeSaulniers wrote:
>>>
>>>> Ah.. did not see this email.
>>>>
>>>> Karl
>>>>
>>>> On Aug 28, 2010, at 8:14 AM, Cor wrote:
>>>>
>>>>> I have looked at this:
>>>>>
>>>>> http://www.adobe.com/devnet/flash/quickstart/datagrid_pt1/ 
>>>>> #section1
>>>>>
>>>>> but there is nothing about my issue.
>>>>>
>>>>> -Original Message-
>>>>> From: [email protected]
>>>>> [mailto:[email protected]] On Behalf Of  
>>>>> Karl
>>>>> DeSaulniers
>>>>> Sent: zaterdag 28 augustus 2010 12:37
>>>>> To: Flash Coders List
>>>>> Subject: Re: [Flashcoders] Datagrid problem after resize page
>>>>>
>>>>> Is this what you are looking for?
>>>>>
>>>>> http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/
>>>>> display/DisplayObject.html#scale9Grid
>>>>>
>>>>> Best,
>>>>>
>>>>> Karl
>>>>>
>>>>>
>>>>> On Aug 28, 2010, at 5:29 AM, Cor wrote:
>>>>>
>>>>>> Hi List,
>>>>>>
>>>>>> I have used a datagrid which looks OK when the page is viewed  
>>>>>> in its
>>>>>> original dimensions.
>>>>>> But if a user has a bigger resolution I scale my flash to that  
>>>>>> size.
>>>>>> And then my datagrid looks bad:
>>>>>>
>>>>>> http://www.codobyte.com/!problem/datagrid.gif
>>>>>>
>>>>>> I want to keep the scaling part, so how can I adjust the text  
>>>>>> in the
>>>>>> datagrid after the app is resized?
>>>>>>
>>>>>> Any help is appreciated!
>>>>>>
>>>>>> TIA, regards
>>>>>> Cor
>>>>>>
>>>>>> ___
>>>>>> Flashcoders mailing list
>>>>>> [email protected]
>>>>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>>>
>>>>> Karl DeSaulniers
>>>>> Design Drumm
>>>>> http://designdrumm.com
>>>>&g

Re: [Flashcoders] Datagrid problem after resize page

2010-08-29 Thread Karl DeSaulniers

Redemption. :)

http://www.rareviewblog.com/2009/01/21/flash-as3-grid-sorting/

Best,

Karl


On Aug 29, 2010, at 7:40 PM, Karl DeSaulniers wrote:


I do apologize, I just realized that was a silverlight forum.

NM

Karl


On Aug 29, 2010, at 7:29 PM, Karl DeSaulniers wrote:


Got one more.
Have you looked into the events SizeChagned and LayoutUpdated?
I found someone talking about it here.

http://forums.silverlight.net/forums/p/19987/275301.aspx

Very last comment on the post has some code that it is used in.  
They are trying to autosize columns,
but you may be able to translate these events to help with your  
problem.

JAT

Best,

Karl


On Aug 29, 2010, at 6:52 AM, Cor wrote:


Thanks again, Karl,

But I can't seem to find something like columnStretch but instead  
for

columns I  need it for rows.

Regards
Cor

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: zaterdag 28 augustus 2010 23:40
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

This might help.

http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/fl/
controls/DataGrid.html

But I am thinking you have already seen this.
Sorry I am not much more help. Just had some time to google for  
ya. :)

Best,

Karl

On Aug 28, 2010, at 4:33 PM, Karl DeSaulniers wrote:


Ah.. did not see this email.

Karl

On Aug 28, 2010, at 8:14 AM, Cor wrote:


I have looked at this:

http://www.adobe.com/devnet/flash/quickstart/datagrid_pt1/ 
#section1


but there is nothing about my issue.

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of  
Karl

DeSaulniers
Sent: zaterdag 28 augustus 2010 12:37
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

Is this what you are looking for?

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/
display/DisplayObject.html#scale9Grid

Best,

Karl


On Aug 28, 2010, at 5:29 AM, Cor wrote:


Hi List,

I have used a datagrid which looks OK when the page is viewed  
in its

original dimensions.
But if a user has a bigger resolution I scale my flash to that  
size.

And then my datagrid looks bad:

http://www.codobyte.com/!problem/datagrid.gif

I want to keep the scaling part, so how can I adjust the text  
in the

datagrid after the app is resized?

Any help is appreciated!

TIA, regards
Cor

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van
uitgifte: 08/26/10
20:34:00

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van  
uitgifte: 08/26/10

20:34:00

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Datagrid problem after resize page

2010-08-29 Thread Karl DeSaulniers

I do apologize, I just realized that was a silverlight forum.

NM

Karl


On Aug 29, 2010, at 7:29 PM, Karl DeSaulniers wrote:


Got one more.
Have you looked into the events SizeChagned and LayoutUpdated?
I found someone talking about it here.

http://forums.silverlight.net/forums/p/19987/275301.aspx

Very last comment on the post has some code that it is used in.  
They are trying to autosize columns,
but you may be able to translate these events to help with your  
problem.

JAT

Best,

Karl


On Aug 29, 2010, at 6:52 AM, Cor wrote:


Thanks again, Karl,

But I can't seem to find something like columnStretch but instead for
columns I  need it for rows.

Regards
Cor

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: zaterdag 28 augustus 2010 23:40
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

This might help.

http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/fl/
controls/DataGrid.html

But I am thinking you have already seen this.
Sorry I am not much more help. Just had some time to google for  
ya. :)

Best,

Karl

On Aug 28, 2010, at 4:33 PM, Karl DeSaulniers wrote:


Ah.. did not see this email.

Karl

On Aug 28, 2010, at 8:14 AM, Cor wrote:


I have looked at this:

http://www.adobe.com/devnet/flash/quickstart/datagrid_pt1/#section1

but there is nothing about my issue.

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of  
Karl

DeSaulniers
Sent: zaterdag 28 augustus 2010 12:37
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

Is this what you are looking for?

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/
display/DisplayObject.html#scale9Grid

Best,

Karl


On Aug 28, 2010, at 5:29 AM, Cor wrote:


Hi List,

I have used a datagrid which looks OK when the page is viewed  
in its

original dimensions.
But if a user has a bigger resolution I scale my flash to that  
size.

And then my datagrid looks bad:

http://www.codobyte.com/!problem/datagrid.gif

I want to keep the scaling part, so how can I adjust the text  
in the

datagrid after the app is resized?

Any help is appreciated!

TIA, regards
Cor

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van
uitgifte: 08/26/10
20:34:00

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van  
uitgifte: 08/26/10

20:34:00

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Datagrid problem after resize page

2010-08-29 Thread Karl DeSaulniers

Got one more.
Have you looked into the events SizeChagned and LayoutUpdated?
I found someone talking about it here.

http://forums.silverlight.net/forums/p/19987/275301.aspx

Very last comment on the post has some code that it is used in. They  
are trying to autosize columns,

but you may be able to translate these events to help with your problem.
JAT

Best,

Karl


On Aug 29, 2010, at 6:52 AM, Cor wrote:


Thanks again, Karl,

But I can't seem to find something like columnStretch but instead for
columns I  need it for rows.

Regards
Cor

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: zaterdag 28 augustus 2010 23:40
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

This might help.

http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/fl/
controls/DataGrid.html

But I am thinking you have already seen this.
Sorry I am not much more help. Just had some time to google for ya. :)
Best,

Karl

On Aug 28, 2010, at 4:33 PM, Karl DeSaulniers wrote:


Ah.. did not see this email.

Karl

On Aug 28, 2010, at 8:14 AM, Cor wrote:


I have looked at this:

http://www.adobe.com/devnet/flash/quickstart/datagrid_pt1/#section1

but there is nothing about my issue.

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: zaterdag 28 augustus 2010 12:37
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

Is this what you are looking for?

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/
display/DisplayObject.html#scale9Grid

Best,

Karl


On Aug 28, 2010, at 5:29 AM, Cor wrote:


Hi List,

I have used a datagrid which looks OK when the page is viewed in  
its

original dimensions.
But if a user has a bigger resolution I scale my flash to that  
size.

And then my datagrid looks bad:

http://www.codobyte.com/!problem/datagrid.gif

I want to keep the scaling part, so how can I adjust the text in  
the

datagrid after the app is resized?

Any help is appreciated!

TIA, regards
Cor

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van
uitgifte: 08/26/10
20:34:00

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van uitgifte:  
08/26/10

20:34:00

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Datagrid problem after resize page

2010-08-29 Thread Cor
Thanks again, Karl,

But I can't seem to find something like columnStretch but instead for
columns I  need it for rows.

Regards
Cor

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: zaterdag 28 augustus 2010 23:40
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

This might help.

http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/fl/ 
controls/DataGrid.html

But I am thinking you have already seen this.
Sorry I am not much more help. Just had some time to google for ya. :)
Best,

Karl

On Aug 28, 2010, at 4:33 PM, Karl DeSaulniers wrote:

> Ah.. did not see this email.
>
> Karl
>
> On Aug 28, 2010, at 8:14 AM, Cor wrote:
>
>> I have looked at this:
>>
>> http://www.adobe.com/devnet/flash/quickstart/datagrid_pt1/#section1
>>
>> but there is nothing about my issue.
>>
>> -Original Message-
>> From: [email protected]
>> [mailto:[email protected]] On Behalf Of Karl
>> DeSaulniers
>> Sent: zaterdag 28 augustus 2010 12:37
>> To: Flash Coders List
>> Subject: Re: [Flashcoders] Datagrid problem after resize page
>>
>> Is this what you are looking for?
>>
>> http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/
>> display/DisplayObject.html#scale9Grid
>>
>> Best,
>>
>> Karl
>>
>>
>> On Aug 28, 2010, at 5:29 AM, Cor wrote:
>>
>>> Hi List,
>>>
>>> I have used a datagrid which looks OK when the page is viewed in its
>>> original dimensions.
>>> But if a user has a bigger resolution I scale my flash to that size.
>>> And then my datagrid looks bad:
>>>
>>> http://www.codobyte.com/!problem/datagrid.gif
>>>
>>> I want to keep the scaling part, so how can I adjust the text in the
>>> datagrid after the app is resized?
>>>
>>> Any help is appreciated!
>>>
>>> TIA, regards
>>> Cor
>>>
>>> ___
>>> Flashcoders mailing list
>>> [email protected]
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Karl DeSaulniers
>> Design Drumm
>> http://designdrumm.com
>>
>> ___
>> Flashcoders mailing list
>> [email protected]
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>> Geen virus gevonden in het binnenkomende-bericht.
>> Gecontroleerd door AVG - www.avg.com
>> Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van  
>> uitgifte: 08/26/10
>> 20:34:00
>>
>> ___
>> Flashcoders mailing list
>> [email protected]
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.com
>
> ___
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com 
Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van uitgifte: 08/26/10
20:34:00

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Datagrid problem after resize page

2010-08-28 Thread Karl DeSaulniers

This might help.

http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/fl/ 
controls/DataGrid.html


But I am thinking you have already seen this.
Sorry I am not much more help. Just had some time to google for ya. :)
Best,

Karl

On Aug 28, 2010, at 4:33 PM, Karl DeSaulniers wrote:


Ah.. did not see this email.

Karl

On Aug 28, 2010, at 8:14 AM, Cor wrote:


I have looked at this:

http://www.adobe.com/devnet/flash/quickstart/datagrid_pt1/#section1

but there is nothing about my issue.

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: zaterdag 28 augustus 2010 12:37
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

Is this what you are looking for?

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/
display/DisplayObject.html#scale9Grid

Best,

Karl


On Aug 28, 2010, at 5:29 AM, Cor wrote:


Hi List,

I have used a datagrid which looks OK when the page is viewed in its
original dimensions.
But if a user has a bigger resolution I scale my flash to that size.
And then my datagrid looks bad:

http://www.codobyte.com/!problem/datagrid.gif

I want to keep the scaling part, so how can I adjust the text in the
datagrid after the app is resized?

Any help is appreciated!

TIA, regards
Cor

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van  
uitgifte: 08/26/10

20:34:00

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Datagrid problem after resize page

2010-08-28 Thread Karl DeSaulniers

Ah.. did not see this email.

Karl

On Aug 28, 2010, at 8:14 AM, Cor wrote:


I have looked at this:

http://www.adobe.com/devnet/flash/quickstart/datagrid_pt1/#section1

but there is nothing about my issue.

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: zaterdag 28 augustus 2010 12:37
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

Is this what you are looking for?

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/
display/DisplayObject.html#scale9Grid

Best,

Karl


On Aug 28, 2010, at 5:29 AM, Cor wrote:


Hi List,

I have used a datagrid which looks OK when the page is viewed in its
original dimensions.
But if a user has a bigger resolution I scale my flash to that size.
And then my datagrid looks bad:

http://www.codobyte.com/!problem/datagrid.gif

I want to keep the scaling part, so how can I adjust the text in the
datagrid after the app is resized?

Any help is appreciated!

TIA, regards
Cor

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van uitgifte:  
08/26/10

20:34:00

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Datagrid problem after resize page

2010-08-28 Thread Karl DeSaulniers

What datagrid component are you using?
What's the name? Or is it a component you made yourself?

Karl


On Aug 28, 2010, at 8:12 AM, Cor wrote:


Thanks Karl.

But that is not what I was looking for.
I use a Datagrid component which doesn't have a scale9Grid  
propertie or

method.

Regards
Cor

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: zaterdag 28 augustus 2010 12:37
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

Is this what you are looking for?

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/
display/DisplayObject.html#scale9Grid

Best,

Karl


On Aug 28, 2010, at 5:29 AM, Cor wrote:


Hi List,

I have used a datagrid which looks OK when the page is viewed in its
original dimensions.
But if a user has a bigger resolution I scale my flash to that size.
And then my datagrid looks bad:

http://www.codobyte.com/!problem/datagrid.gif

I want to keep the scaling part, so how can I adjust the text in the
datagrid after the app is resized?

Any help is appreciated!

TIA, regards
Cor

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van uitgifte:  
08/26/10

20:34:00

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Datagrid problem after resize page

2010-08-28 Thread Cor
I have looked at this:

http://www.adobe.com/devnet/flash/quickstart/datagrid_pt1/#section1

but there is nothing about my issue.

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: zaterdag 28 augustus 2010 12:37
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

Is this what you are looking for?

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/ 
display/DisplayObject.html#scale9Grid

Best,

Karl


On Aug 28, 2010, at 5:29 AM, Cor wrote:

> Hi List,
>
> I have used a datagrid which looks OK when the page is viewed in its
> original dimensions.
> But if a user has a bigger resolution I scale my flash to that size.
> And then my datagrid looks bad:
>
> http://www.codobyte.com/!problem/datagrid.gif
>
> I want to keep the scaling part, so how can I adjust the text in the
> datagrid after the app is resized?
>
> Any help is appreciated!
>
> TIA, regards
> Cor
>
> ___
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com 
Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van uitgifte: 08/26/10
20:34:00

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Datagrid problem after resize page

2010-08-28 Thread Cor
Thanks Karl.

But that is not what I was looking for.
I use a Datagrid component which doesn't have a scale9Grid propertie or
method.

Regards
Cor

-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Karl
DeSaulniers
Sent: zaterdag 28 augustus 2010 12:37
To: Flash Coders List
Subject: Re: [Flashcoders] Datagrid problem after resize page

Is this what you are looking for?

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/ 
display/DisplayObject.html#scale9Grid

Best,

Karl


On Aug 28, 2010, at 5:29 AM, Cor wrote:

> Hi List,
>
> I have used a datagrid which looks OK when the page is viewed in its
> original dimensions.
> But if a user has a bigger resolution I scale my flash to that size.
> And then my datagrid looks bad:
>
> http://www.codobyte.com/!problem/datagrid.gif
>
> I want to keep the scaling part, so how can I adjust the text in the
> datagrid after the app is resized?
>
> Any help is appreciated!
>
> TIA, regards
> Cor
>
> ___
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com 
Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van uitgifte: 08/26/10
20:34:00

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Datagrid problem after resize page

2010-08-28 Thread Karl DeSaulniers

Is this what you are looking for?

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/ 
display/DisplayObject.html#scale9Grid


Best,

Karl


On Aug 28, 2010, at 5:29 AM, Cor wrote:


Hi List,

I have used a datagrid which looks OK when the page is viewed in its
original dimensions.
But if a user has a bigger resolution I scale my flash to that size.
And then my datagrid looks bad:

http://www.codobyte.com/!problem/datagrid.gif

I want to keep the scaling part, so how can I adjust the text in the
datagrid after the app is resized?

Any help is appreciated!

TIA, regards
Cor

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] DataGrid - Height - Scrollbar

2010-03-11 Thread Jim Lafser
You are using setSize() right? That's how components figure out the space they 
have to 
work in.

--- On Thu, 3/11/10, Lehr, Theodore  wrote:


From: Lehr, Theodore 
Subject: [Flashcoders] DataGrid - Height - Scrollbar
To: "Flash Coders List" 
Date: Thursday, March 11, 2010, 1:36 PM


I can not seem to get a vertical scrollbar - my datagrid sets it's height to 
the content... I would like a height I set and have scrolling if neccessary... 
what am I doing wrong?

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



  
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] DataGrid not updating after DataProvider item changes

2009-10-27 Thread Mauro Martins
If i got it right he his using Flash not Flex, and so, there is no
ArrayCollection to be [Bindable] unless you can mimic in some way the
ArrayCollection Class on Flash.

2009/10/26 Dave Watts 

> > And the dataprovider is also set to a [Bindable] property right?
>
> This is almost certainly the problem, right here. Array isn't
> Bindable, ArrayCollection is.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
>
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
> ___
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Cumprimentos, Mauro Martins
-
www.imauro.com || www.imauro.com/blog/
Web Designer || Flash & Flex Developer

Twitter: @Mauredo || LinkedIn: www.linkedin/in/mauromartins
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] DataGrid not updating after DataProvider item changes

2009-10-26 Thread Dave Watts
> And the dataprovider is also set to a [Bindable] property right?

This is almost certainly the problem, right here. Array isn't
Bindable, ArrayCollection is.

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

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] DataGrid not updating after DataProvider item changes

2009-10-26 Thread Merrill, Jason
Have you tried myDataGrid.dataProvider.refresh();

And the dataprovider is also set to a [Bindable] property right?

Jason Merrill 

Bank of  America   Global Learning 
Learning & Performance Soluions

Monthly meetings on making the most of the Adobe Flash Platform -
presented by bank associates, Adobe engineers, and outside experts in
the broader multimedia community - join the Bank of America Flash
Platform Community  (note: this is for Bank of America employees only)




-Original Message-
From: [email protected]
[mailto:[email protected]] On Behalf Of Andrew
Sinning
Sent: Saturday, October 24, 2009 5:48 PM
To: Flash Coders
Subject: [Flashcoders] DataGrid not updating after DataProvider item
changes

Publishing for F9 with AS3, using Flash not Flex.

I have a simple DataGrid.  I've added 9 items to its DataProvider.  They

are simple objects of a type "Candidates" that doesn't extend any other 
class.

I have columns for 4 public properties of Candidate:  name, voteUnits, 
percentVote and rank.  The initial value all show up in the DataGrid as 
expected.

After changing several values in any of the items, there is no change 
registered in the DataGrid.

Do I need to send an event from the object to the DataProvider?

Everything in Flash is always passed by reference, right?

Thanks!
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] DataGrid not updating after DataProvider item changes

2009-10-24 Thread Karl DeSaulniers

Try this.

myDataGrid.dataProvider=myDataGrid.dataProvider;

I found it here: http://asji-lab.blogspot.com/2005/10/datagrid- 
refresh-contents.html

HTH

Karl


On Oct 24, 2009, at 5:11 PM, Andrew Sinning wrote:

I'm now listening for changes and then using  
dataProvider.invalidateItem(changedItem).  Works as it should.
Is there a class that I should be extending with my Candidate  
object in order to take advantage of some built-in events.



Karl DeSaulniers wrote:
Can you set up a function to listen for any changes to the data  
and refresh when a change happens?

J.A.T.

Karl


On Oct 24, 2009, at 4:48 PM, Andrew Sinning wrote:


Publishing for F9 with AS3, using Flash not Flex.

I have a simple DataGrid.  I've added 9 items to its  
DataProvider.  They are simple objects of a type "Candidates"  
that doesn't extend any other class.


I have columns for 4 public properties of Candidate:  name,  
voteUnits, percentVote and rank.  The initial value all show up  
in the DataGrid as expected.


After changing several values in any of the items, there is no  
change registered in the DataGrid.


Do I need to send an event from the object to the DataProvider?

Everything in Flash is always passed by reference, right?

Thanks!
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] DataGrid not updating after DataProvider item changes

2009-10-24 Thread Andrew Sinning
I'm now listening for changes and then using 
dataProvider.invalidateItem(changedItem).  Works as it should. 

Is there a class that I should be extending with my Candidate object in 
order to take advantage of some built-in events.



Karl DeSaulniers wrote:
Can you set up a function to listen for any changes to the data and 
refresh when a change happens?

J.A.T.

Karl


On Oct 24, 2009, at 4:48 PM, Andrew Sinning wrote:


Publishing for F9 with AS3, using Flash not Flex.

I have a simple DataGrid.  I've added 9 items to its DataProvider.  
They are simple objects of a type "Candidates" that doesn't extend 
any other class.


I have columns for 4 public properties of Candidate:  name, 
voteUnits, percentVote and rank.  The initial value all show up in 
the DataGrid as expected.


After changing several values in any of the items, there is no change 
registered in the DataGrid.


Do I need to send an event from the object to the DataProvider?

Everything in Flash is always passed by reference, right?

Thanks!
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] DataGrid not updating after DataProvider item changes

2009-10-24 Thread Karl DeSaulniers
Can you set up a function to listen for any changes to the data and  
refresh when a change happens?

J.A.T.

Karl


On Oct 24, 2009, at 4:48 PM, Andrew Sinning wrote:


Publishing for F9 with AS3, using Flash not Flex.

I have a simple DataGrid.  I've added 9 items to its DataProvider.   
They are simple objects of a type "Candidates" that doesn't extend  
any other class.


I have columns for 4 public properties of Candidate:  name,  
voteUnits, percentVote and rank.  The initial value all show up in  
the DataGrid as expected.


After changing several values in any of the items, there is no  
change registered in the DataGrid.


Do I need to send an event from the object to the DataProvider?

Everything in Flash is always passed by reference, right?

Thanks!
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] DataGrid and Button

2008-02-05 Thread Merrill, Jason
http://www.flash-db.com/Tutorials/cellrenderer/

http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp
.htm?context=LiveDocs_Parts&file=3131.html


Jason Merrill
Bank of America  
GT&O L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community



 

>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Lehr, Theodore M (N-SGIS)
>>Sent: Tuesday, February 05, 2008 8:22 AM
>>To: [email protected]
>>Subject: [Flashcoders] DataGrid and Button
>>
>>Anyone know of a good tutorial on how to incorporate a button 
>>into a datagrid?
>>
>> 
>>
>>Ted
>>
>>___
>>Flashcoders mailing list
>>[email protected]
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] DataGrid: Extra Row

2008-02-05 Thread Andy Herrman
You say your loop is going the correct amount of times, but have you
checked the array?  Try looping over the array and tracing all the
elements (along with the length of the array).  Does what you get
match what you expect?

  -Andy

On Feb 5, 2008 11:45 AM, Lehr, Theodore M (N-SGIS)
<[EMAIL PROTECTED]> wrote:
> I am populating a datagrid via:
>
>
>
>   data_array = new Array();
>
>   for (j=0; j
> var lessonTitle:String =
> this.firstChild.childNodes[j].childNodes[0].firstChild.nodeValue;
>
> var desc:String =
> this.firstChild.childNodes[j].childNodes[1].firstChild.nodeValue;
>
> data_array.push({AvailableLessons:lessonTitle,
> Description:desc});
>
>   }
>
>   dg.dataProvider = data_array;
>
>
>
> The loop is looping the correct amount of times but my grid is ending up
> with an extra empty row. Any ideas why?
>
>
>
> Ted
>
> ___
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] DataGrid and Button

2008-02-05 Thread Glen Pike

Look for CellRenderer tutorials.

Lehr, Theodore M (N-SGIS) wrote:

Anyone know of a good tutorial on how to incorporate a button into a
datagrid?

 


Ted

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


--

Glen Pike
01736 759321
www.glenpike.co.uk 
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Datagrid sorting

2007-03-16 Thread Merrill, Jason
>>You should add a listener to the DataGrid

Nah, when you change the dataProvider for a datagrid, the datagrid fires
an event anyway.  

All, I had posted I figured it out on my own, thanks anyway!  Much
appreciated. 

I used:

lobAdmins_dg.dataProvider.sortItemsBy("lob", "ASC");

Odd that there is a sortItemsBy for dataProvider, but a sortOn for
Arrays.  

Jason Merrill
Bank of America  
Global Technology & Operations
Learning & Leadership Development 
eTools & Multimedia Team


 

>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Bojil Vassilev
>>Sent: Thursday, March 15, 2007 4:50 PM
>>To: [email protected]
>>Subject: Re: [Flashcoders] Datagrid sorting
>>
>>You should add a listener to the DataGrid and then sort the 
>>dataprovider. Here is a quick example, also sorting both ways 
>>Asc<>Desc (keeping track if a column is sorted one way and 
>>sorting it the other way next time)
>>
>>myDataGrid.addColumn("Product");
>>myDataGrid.addColumn("Quality");
>>myDataGrid.addColumn("Quantity");
>>
>>var myDP:Array = [];
>>myDP.push({Product:"abc", Quality:145, Quantity:7}); 
>>myDP.push({Product:"bcd", Quality:79, Quantity:0}); 
>>myDP.push({Product:"def", Quality:300, Quantity:24}); 
>>myDP.push({Product:"efg", Quality:138, Quantity:10});
>>
>>myDataGrid.dataProvider = myDP;
>>
>>var productSorted:Boolean = true;
>>var qualitySorted:Boolean = true;
>>var quantitySorted:Boolean = true;
>>
>>// Create listener object for DataGrid.
>>var listener_obj:Object = new Object();
>>listener_obj.headerRelease = function(evt_obj:Object) {  
>>switch (evt_obj.target.columns[evt_obj.columnIndex].columnName)
>> {
>>case "Product" :
>>if(productSorted) myDP.sortOn("Product", Array.CASEINSENSITIVE);
>>else myDP.sortOn("Product", Array.DESCENDING | 
>>Array.CASEINSENSITIVE);
>>productSorted = !productSorted;
>>break;
>>case "Quality" :
>>if(qualitySorted) myDP.sortOn("Quality", Array.NUMERIC);
>>else myDP.sortOn("Quality", Array.DESCENDING | Array.NUMERIC);
>>qualitySorted = !qualitySorted;
>>break;
>>case "Quantity" :
>>if(quantitySorted) myDP.sortOn("Quantity", Array.NUMERIC);
>>else myDP.sortOn("Quantity", Array.DESCENDING | Array.NUMERIC);
>>quantitySorted = !quantitySorted;
>>break;
>> }
>>};
>>
>>// Add listener to DataGrid.
>>myDataGrid.addEventListener("headerRelease", listener_obj);
>>
>>
>>
>>Merrill, Jason wrote:
>>> Need some help on sorting a datagrid by a particular collumn. Right 
>>> now, it's sorting alphabetically by data in the second 
>>collumn instead 
>>> of the first.  I tried sorting the dataprovider first with 
>>the array 
>>> sort methods, but they didn't work and the help docs indicate those 
>>> array sorting methods don't work on associative arrays.
>>>
>>> I have tried:
>>>
>>> lobAdmins_dg.dataProvider.sortOn("lob", Array.DESCENDING);
>>>
>>> and also with the DataSetIterator:
>>>
>>> lobAdmins_dg.dataProvider.addSort("lobSort", "lob", 
>>> DataSetIterator.Descending);
>>>
>>> and:
>>>
>>> lobAdmins_dg.dataProvider.addSort("lobSort", ["lob"], 
>>> DataSetIterator.Descending);
>>>
>>> and then setting the dataprovider to the datagrid. (lob is 
>>the name of 
>>> the datagrid collumn and also the property/field in the 
>>dataprovider I 
>>> want to sort on alphabetically.
>>>  
>>> Also searched help docs, Adobe and Google but no luck.  Any ideas?
>>>
>>> Jason Merrill
>>> Bank of America
>>> Global Technology & Operations
>>> Learning & Leadership Development
>>> eTools & Multimedia Team
>>>
>>>
>>> ___
>>> [email protected]
>>> To change your subscription options or search the archive:
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>> Brought to you by Fig Leaf Software
>>> Premier Authorized Adobe Consulting and Training 
>>> http://www.figleaf.com http://training.figleaf.com
>>>
>>>   
>>
>>___
>>[email protected]
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training 
>>http://www.figleaf.com http://training.figleaf.com
>>
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Datagrid sorting

2007-03-15 Thread Bojil Vassilev
You should add a listener to the DataGrid and then sort the 
dataprovider. Here is a quick example, also sorting both ways Asc<>Desc 
(keeping track if a column is sorted one way and sorting it the other 
way next time)


myDataGrid.addColumn("Product");
myDataGrid.addColumn("Quality");
myDataGrid.addColumn("Quantity");

var myDP:Array = [];
myDP.push({Product:"abc", Quality:145, Quantity:7});
myDP.push({Product:"bcd", Quality:79, Quantity:0});
myDP.push({Product:"def", Quality:300, Quantity:24});
myDP.push({Product:"efg", Quality:138, Quantity:10});

myDataGrid.dataProvider = myDP;

var productSorted:Boolean = true;
var qualitySorted:Boolean = true;
var quantitySorted:Boolean = true;

// Create listener object for DataGrid.
var listener_obj:Object = new Object();
listener_obj.headerRelease = function(evt_obj:Object)
{
switch (evt_obj.target.columns[evt_obj.columnIndex].columnName)
{
   case "Product" :
   if(productSorted) myDP.sortOn("Product", Array.CASEINSENSITIVE);
   else myDP.sortOn("Product", Array.DESCENDING | Array.CASEINSENSITIVE);
   productSorted = !productSorted;
   break;
   case "Quality" :
   if(qualitySorted) myDP.sortOn("Quality", Array.NUMERIC);
   else myDP.sortOn("Quality", Array.DESCENDING | Array.NUMERIC);
   qualitySorted = !qualitySorted;
   break;
   case "Quantity" :
   if(quantitySorted) myDP.sortOn("Quantity", Array.NUMERIC);
   else myDP.sortOn("Quantity", Array.DESCENDING | Array.NUMERIC);
   quantitySorted = !quantitySorted;
   break;
}
};

// Add listener to DataGrid.
myDataGrid.addEventListener("headerRelease", listener_obj);



Merrill, Jason wrote:

Need some help on sorting a datagrid by a particular collumn. Right now,
it's sorting alphabetically by data in the second collumn instead of the
first.  I tried sorting the dataprovider first with the array sort
methods, but they didn't work and the help docs indicate those array
sorting methods don't work on associative arrays.  


I have tried:

lobAdmins_dg.dataProvider.sortOn("lob", Array.DESCENDING);

and also with the DataSetIterator:

lobAdmins_dg.dataProvider.addSort("lobSort", "lob",
DataSetIterator.Descending); 


and:

lobAdmins_dg.dataProvider.addSort("lobSort", ["lob"],
DataSetIterator.Descending); 


and then setting the dataprovider to the datagrid. (lob is the name of
the datagrid collumn and also the property/field in the dataprovider I
want to sort on alphabetically.  
 
Also searched help docs, Adobe and Google but no luck.  Any ideas?


Jason Merrill
Bank of America  
Global Technology & Operations
Learning & Leadership Development 
eTools & Multimedia Team



___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

  


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Datagrid sorting

2007-03-15 Thread Derek Lords
Can your DataProvider be xml?
I'm not sure the Array sort methods do what you want, they might,  but they're 
probably less efficient than an xml transformation anyway.
 
then you might try sorting the dataSource itself beforehand using  in 
an xsl template?  When you want to reverse the sort, just transform again.
 



Sincerely,

Derek Lords 
 


www.itsimmediate.com phone: 917-579-2367cell: 501-631-3817 [EMAIL PROTECTED] 

"It was a sometime paradox, but now time has given it proof." —Shakespeare

> Date: Thu, 15 Mar 2007 13:16:14 -0400> From: [EMAIL PROTECTED]> To: 
> [email protected]> Subject: [Flashcoders] Datagrid sorting> > 
> Need some help on sorting a datagrid by a particular collumn. Right now,> 
> it's sorting alphabetically by data in the second collumn instead of the> 
> first. I tried sorting the dataprovider first with the array sort> methods, 
> but they didn't work and the help docs indicate those array> sorting methods 
> don't work on associative arrays. > > I have tried:> > 
> lobAdmins_dg.dataProvider.sortOn("lob", Array.DESCENDING);> > and also with 
> the DataSetIterator:> > lobAdmins_dg.dataProvider.addSort("lobSort", "lob",> 
> DataSetIterator.Descending); > > and:> > 
> lobAdmins_dg.dataProvider.addSort("lobSort", ["lob"],> 
> DataSetIterator.Descending); > > and then setting the dataprovider to the 
> datagrid. (lob is the name of> the datagrid collumn and also the 
> property/field in the dataprovider I> want to sort on alphabetically. > > 
> Also searched help docs, Adobe and Google but no luck. Any ideas?> > Jason 
> Merrill> Bank of America > Global Technology & Operations> Learning & 
> Leadership Development > eTools & Multimedia Team> > > 
> ___> 
> [email protected]> To change your subscription options or 
> search the archive:> 
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders> > Brought to you 
> by Fig Leaf Software> Premier Authorized Adobe Consulting and Training> 
> http://www.figleaf.com> 
> http://training.figleaf.com___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Datagrid sorting

2007-03-15 Thread Pete Miller
Is dataProvider.sortOn a proper method?  Do you want
dataProvider.sortItemsBy instead?

P.

>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:flashcoders-
>> [EMAIL PROTECTED] On Behalf Of Merrill, Jason
>> Sent: Thursday, March 15, 2007 1:16 PM
>> To: [email protected]
>> Subject: [Flashcoders] Datagrid sorting
>> 
>> Need some help on sorting a datagrid by a particular collumn. Right
now,
>> it's sorting alphabetically by data in the second collumn instead of
the
>> first.  I tried sorting the dataprovider first with the array sort
>> methods, but they didn't work and the help docs indicate those array
>> sorting methods don't work on associative arrays.
>> 
>> I have tried:
>> 
>>  lobAdmins_dg.dataProvider.sortOn("lob", Array.DESCENDING);
>> 
>> and also with the DataSetIterator:
>> 
>>  lobAdmins_dg.dataProvider.addSort("lobSort", "lob",
>> DataSetIterator.Descending);
>> 
>> and:
>> 
>>  lobAdmins_dg.dataProvider.addSort("lobSort", ["lob"],
>> DataSetIterator.Descending);
>> 
>> and then setting the dataprovider to the datagrid. (lob is the name
of
>> the datagrid collumn and also the property/field in the dataprovider
I
>> want to sort on alphabetically.
>> 
>> Also searched help docs, Adobe and Google but no luck.  Any ideas?
>> 
>> Jason Merrill
>> Bank of America
>> Global Technology & Operations
>> Learning & Leadership Development
>> eTools & Multimedia Team
>> 
>> 
>> ___
>> [email protected]
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>> 
>> Brought to you by Fig Leaf Software
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] DataGrid Component not displaying all rows

2007-02-26 Thread Charlie Skinner
This strange quirk of the DataGrid Component has nothing to do with the
Flash Remoting RecordSet Class. It is in fact caused by the DataGrid
being exactly the right height to display 20 records. The solution is
simple, make it one pixel less high.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Charlie
Skinner
Sent: 13 February 2007 15:47
To: [email protected]
Subject: [Flashcoders] DataGrid Component not displaying all rows

 

I have a DataGrid Component that has it's dataProvider property set to a
RecordSet that has been returned from the server via Flash Remoting. All
goes well untill I try to display more than 20 results in the DataGrid,
when it will display all except for the last one. I've traced the length
of the dataProvider and the last item in the dataProvider and it all
looks ok. By using Service Capture I can see that the RecordSet that is
returned is not the same as what is displayed in the DataGrid.

 

I'm thinking this may have something to do with the pageable options of
a RecordSet. Or possibly some setting in Flash Remoting. But if anyone
has any other ideas what might cause this, then please let me know.

 

___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Datagrid keeps 1 empty row visible

2006-11-07 Thread Hans Wichman

99,9% of us know how you feel m8:)

On 11/7/06, Ben Smeets <[EMAIL PROTECTED]> wrote:


Banging head against wall.

Sorry guys, I managed to find a little line of code

"addItem('no items in list');"

Which did the damage. Nothing wrong with the DataGrid :)

Cheers,

Ben

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ben
Smeets
Sent: dinsdag 7 november 2006 10:46
To: Flashcoders mailing list
Subject: [Flashcoders] Datagrid keeps 1 empty row visible

Hi all,

Small problem with using the v2 datagrid component (which I try to avoid
as much as I can).

I have added a couple of rows which use CellRenderers to show per row a
button with which the user can delete a specific row. This all seems to
work fine, but the problem is that after deleting the last row, 1 row
keeps existing in the datagrid. It doesn't seem this row contains any
data (the label is cleared), but the components which existed in each
row still exist. How can I clear that row too? Or at least tell the
components in the cellrenderers that after a row is deleted and no other
rows exist, they should be invisible?

Fenks.

Ben
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Datagrid keeps 1 empty row visible

2006-11-07 Thread Ben Smeets
Banging head against wall.

Sorry guys, I managed to find a little line of code

"addItem('no items in list');"

Which did the damage. Nothing wrong with the DataGrid :)

Cheers,

Ben 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ben
Smeets
Sent: dinsdag 7 november 2006 10:46
To: Flashcoders mailing list
Subject: [Flashcoders] Datagrid keeps 1 empty row visible

Hi all,

Small problem with using the v2 datagrid component (which I try to avoid
as much as I can).

I have added a couple of rows which use CellRenderers to show per row a
button with which the user can delete a specific row. This all seems to
work fine, but the problem is that after deleting the last row, 1 row
keeps existing in the datagrid. It doesn't seem this row contains any
data (the label is cleared), but the components which existed in each
row still exist. How can I clear that row too? Or at least tell the
components in the cellrenderers that after a row is deleted and no other
rows exist, they should be invisible?

Fenks.

Ben
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] >> Datagrid

2006-09-25 Thread Nick Weekes
Check out the CellRenderer API in the Flash docs.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Laurent
CUCHET
Sent: 25 September 2006 11:09
To: Flashcoders mailing list
Subject: [Flashcoders] >> Datagrid

I try to put a button in a row of a datagrid for each line of it.

How can I do ??

Thank you
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] >> Datagrid and Image

2006-09-24 Thread eka

Hello :)

you can find examples to use Datagrid in this web site :
http://philflash.inway.fr/index.html

the tutorials are in french but you can understand the method to create a
custom CellRenderer, example :
http://philflash.inway.fr/dghtmlrd/dghtmlrd.html

EKA+ :)

2006/9/24, Laurent CUCHET <[EMAIL PROTECTED]>:


Im searching for datagrid exemples with images

Have you got links ??

Thanks
Laurent
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] DataGrid woes

2006-08-22 Thread Mike Mountain
I swear I saw a sortable datagrid on IFBIN - can't check at the mo' as
my work proxy won't allow access - but it is definetely dooable

M 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Chris Hill
> Sent: 19 August 2006 01:50
> To: 'Flashcoders mailing list'
> Subject: [Flashcoders] DataGrid woes
> 
> I'm in a real bind, with no real solution. I'm using the 
> DataGrid, which I've used before, but the problem is that 
> multiple selection and re-ordering seems to be unbelievably 
> broken. I've never used these features, and I've googled just 
> about every possibility to shed light on the subject and 
> found nothing. I guess that noone out there has created a 
> data grid and tried to make it sortable?
> 
> I've got a datagrid. Users ideally would be able to select 
> multiple rows a la shift-click. Then they click either 'move 
> down' or 'move up', which modifies the data provider, sets 
> the grid's data provider, then sets the selectedIndices to 
> what it was before. This results in terrible graphical 
> glitches, and its also reporting the wrong number of lines.
> 
> I'd preferably at this point either:
> 
> A: Find some magic fairy dust to fix the DataGrid
> B: Find some replacement component that does what the 
> DataGrid does, but does not suck.
> 
> If i don't do that then I have to:
> 
> C: Write my own DataGrid, which is fine, and I need to do it 
> anyway, but not right now if I can help it.
> 
> Thanks
> Chris
> ___
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
> 
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] DataGrid Scrollbar

2006-06-17 Thread ScriptJunkies
The drawHeaderBG function doesn't really relate to moving the scrollbar, 
i was just thinking, that function seems to be overwriting one in the 
datagrid, i thought it was possible that you could do a similar thing 
for the scrollbar position, it was just a possibility that ran through 
my head.


Thanks very much for the code, it's extremely helpful :)


Chris Hill wrote:
I'm confused as to how the drawHeaderBG function relates to moving a 
scrollbar. Regardless, this should move you in the right direction:



for (var i=0;i<20;i++){
foo.push({test:"blah"});
}
dg.dataProvider = foo;
onEnterFrame = function(){
dg.vSB._x = dg.width + 10;
dg.mask_mc._width = dg.width - 4;
}

This is a very bad hack that manually fudges over the scrollbar, and 
moves the mask so that it shows what was orginally hidden by the 
scrollbar. This isn't fully complete, since when you select a row you 
can see that it still is compensating for a scrollbar that isn't 
there. Still, this is in the general direction


C



ScriptJunkies wrote:

Hey,

I'm currently working on a flash app that uses a datagrid, I've come 
across a problem with customizing this component, Does anyone know if 
it's possible to change the scrollbar position?, i want there to be a 
gap between the datagrid and it's scrollbar, I've tried playing with 
the styles etc.. but can't find a way to do this.


I found the following example for changing the header color, would it 
be possible to do something like this?


mx.controls.DataGrid.prototype.drawHeaderBG = function(Void) {
var mc:MovieClip = this.header_mc;
mc.clear();
var clr:Number = this.getStyle("headerColor");
var o:Object = this.__viewMetrics;
var tot:Number = Math.max(this.totalWidth, this.displayWidth+3);
mc.moveTo(o.left, o.top);
mc.beginFill(clr, 100);
mc.lineStyle(0, 0x00, 0);
mc.lineTo(tot, o.top);
mc.lineTo(tot, this.__headerHeight+1);
mc.lineStyle(0, 0x00, 0);
mc.lineTo(o.left, this.__headerHeight+1);
mc.lineStyle(0, 0x00, 0);
mc.endFill();
};



Thanks, Dave
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] DataGrid Scrollbar

2006-06-17 Thread Chris Hill
I'm confused as to how the drawHeaderBG function relates to moving a 
scrollbar. Regardless, this should move you in the right direction:



for (var i=0;i<20;i++){
foo.push({test:"blah"});
}
dg.dataProvider = foo;
onEnterFrame = function(){
dg.vSB._x = dg.width + 10;
dg.mask_mc._width = dg.width - 4;
}

This is a very bad hack that manually fudges over the scrollbar, and 
moves the mask so that it shows what was orginally hidden by the 
scrollbar. This isn't fully complete, since when you select a row you 
can see that it still is compensating for a scrollbar that isn't there. 
Still, this is in the general direction


C



ScriptJunkies wrote:

Hey,

I'm currently working on a flash app that uses a datagrid, I've come 
across a problem with customizing this component, Does anyone know if 
it's possible to change the scrollbar position?, i want there to be a 
gap between the datagrid and it's scrollbar, I've tried playing with the 
styles etc.. but can't find a way to do this.


I found the following example for changing the header color, would it be 
possible to do something like this?


mx.controls.DataGrid.prototype.drawHeaderBG = function(Void) {
var mc:MovieClip = this.header_mc;
mc.clear();
var clr:Number = this.getStyle("headerColor");
var o:Object = this.__viewMetrics;
var tot:Number = Math.max(this.totalWidth, this.displayWidth+3);
mc.moveTo(o.left, o.top);
mc.beginFill(clr, 100);
mc.lineStyle(0, 0x00, 0);
mc.lineTo(tot, o.top);
mc.lineTo(tot, this.__headerHeight+1);
mc.lineStyle(0, 0x00, 0);
mc.lineTo(o.left, this.__headerHeight+1);
mc.lineStyle(0, 0x00, 0);
mc.endFill();
};



Thanks, Dave
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] dataGrid and editable text...

2006-05-22 Thread Matthew Simpson
Adding focusIn and focusOut listeners as shown below should help you
out...I found that even though I set a column to editable.false it would
open itself for data occasionally when going (clicking) from an editable
cell to an un-editable one...HTH  


// admin_dg cell focus in listener object var mfrAdmin_dgListener:Object
= new Object(); mfrAdmin_dgListener.cellFocusIn =
function(evt_obj:Object) {

var cell_str:String = "("+evt_obj.columnIndex+",
"+evt_obj.itemIndex+")";
//trace("The cell at "+cell_str+" has gained focus");

var Verified:String = new
String(evt.target.selectedItem.verified);
// Make DataGrid uneditable
mfrAdmin_dg.editable = false;

if (Verified == "true") {
// Make DataGrid uneditable
mfrAdmin_dg.editable = false;
submit_btn.enabled = false;
var notify = Alert.show("Credentials are verified:\n no
changes allowed.", Alert.OK, this);
notify.title = "MFR Credentials - Verified";
} else if (Verified == "false") {
// Make DataGrid editable
mfrAdmin_dg.editable = true;
// Make the UName column read-only
mfrAdmin_dg.getColumnAt(1).editable = true;
mfrAdmin_dg.getColumnAt(2).editable = true;
mfrAdmin_dg.getColumnAt(0).editable = false;
mfrAdmin_dg.getColumnAt(3).editable = false;
}
};
// Add listener
mfrAdmin_dg.addEventListener("cellFocusIn", mfrAdmin_dgListener);

// admin_dg cell focus out listener object var
mfrAdmin_dgListener:Object = new Object();
mfrAdmin_dgListener.cellFocusOut = function(evt_obj:Object) {

var cell_str:String = "("+evt_obj.columnIndex+",
"+evt_obj.itemIndex+")";
//trace("The cell at "+cell_str+" has lost focus");

var Verified:String = new
String(evt.target.selectedItem.verified);
// Make DataGrid uneditable
mfrAdmin_dg.editable = false;
mfrAdmin_dg.getColumnAt(0).editable = false;
mfrAdmin_dg.getColumnAt(1).editable = false;
mfrAdmin_dg.getColumnAt(2).editable = false;
mfrAdmin_dg.getColumnAt(3).editable = false;

submit_btn.enabled = true;

};
// Add listener
mfrAdmin_dg.addEventListener("cellFocusOut", mfrAdmin_dgListener); 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
grimmwerks
Sent: Monday, May 22, 2006 2:06 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] dataGrid and editable text...

You know, even if I SET the grid.editable = false, the first column is
ALWAY editable.

I've even flipped cellRenderers as tests -- this thing is driving me
bonkers.
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] dataGrid and editable text...

2006-05-22 Thread grimmwerks

You know, even if I SET the grid.editable = false, the first column is
ALWAY editable.

I've even flipped cellRenderers as tests -- this thing is driving me bonkers.
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] dataGrid and editable text...

2006-05-22 Thread grimmwerks

It seems to be always editable.

menuGrid.dataProvider = pMenu;

// setting editable stuff
menuGrid.editable = true;
menuGrid.getColumnAt(0).editable = false;
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] dataGrid and editable text...

2006-05-22 Thread Matthew Simpson
Let me guess...column 1 is un-editable if you try and edit it first, but
when you go from an editable column to column 1 sometimes it is editable
right? Or is it always editable?

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
grimmwerks
Sent: Monday, May 22, 2006 1:42 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] dataGrid and editable text...

Dammit - them beanz ain't cool enough...

hate to be more of a PITA than I already am -- but now I want to make
the first column NOT editable.

So I've set the db.editable = true -- that sets all them beanz editable.
Then I've dg.getColumnAt(0).editable = false -- and that bean is still
flipping into an editable textField.

I'm sure it's just the way I'm doing something idiotic...
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] dataGrid and editable text...

2006-05-22 Thread grimmwerks

Dammit - them beanz ain't cool enough...

hate to be more of a PITA than I already am -- but now I want to make
the first column NOT editable.

So I've set the db.editable = true -- that sets all them beanz editable.
Then I've dg.getColumnAt(0).editable = false -- and that bean is still
flipping into an editable textField.

I'm sure it's just the way I'm doing something idiotic...
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] dataGrid and editable text...

2006-05-22 Thread Matthew Simpson
Kool Beanz Grimm... 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
grimmwerks
Sent: Monday, May 22, 2006 1:27 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] dataGrid and editable text...

AH! Thanks Matthew -- though I didn't set the grid.editable to false
-- when I set it to TRUE, then it all worked.

So though the columns themselves are set to true, if the grid wasn't set
to true, it canceled it all out...

Thanks again.
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] dataGrid and editable text...

2006-05-22 Thread grimmwerks

AH! Thanks Matthew -- though I didn't set the grid.editable to false
-- when I set it to TRUE, then it all worked.

So though the columns themselves are set to true, if the grid wasn't
set to true, it canceled it all out...

Thanks again.
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] dataGrid and editable text...

2006-05-22 Thread Matthew Simpson
As long as the grid itself and the columns within are set to editable,
the grid through the IDE or programmatically and the columns
programmatically, you should not have any problems accessing a field
within...I'd have to look at the code...

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
grimmwerks
Sent: Monday, May 22, 2006 12:52 PM
To: Flashcoders mailing list
Subject: [Flashcoders] dataGrid and editable text...

Ok if I create a datagrid and assign a dataprovider, all the datagrid
components are fields, but only the first colun is editable -- I've
tried doing dg.getColumnAt(2).editable = true both before and after the
dataProvider set, but it's always just the first column that remains
editable...

what is it I'm missing?
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] datagrid inside an accordian

2006-05-17 Thread Rich Rodecker

heh...actually i got it to work fine.  turns out i was just doing
something wrong setting the DataGrid's dataProvider.

(turns out it really doesnt like it when you use an array of xmlnodes'
attribute objects for the dp, so I just copied the attribute objects
into a new object before adding it to the dp...just in case someone
else runs into that).



On 5/17/06, Randy Troppmann <[EMAIL PROTECTED]> wrote:

Whoa! Thats like taking a K-car and putting a Fiero in the trunk and
trying to turn on the Fiero's radio with the K-car controls.

If it were me I would build my own accordian.

Randy Troppmann

On 5/17/06, Rich Rodecker <[EMAIL PROTECTED]> wrote:
> I have an mc that i add to an accordian via accordian.createSegment();
>  the mc I attach has a datagrid inside of it, but there's two problems
> with it:
>
> 1. none of the items can be selected in the datagrid...no rollover events 
even.
>
> 2. the cell renderer I am using for one of the columns does not load.
>
>
> anyone have any pointers for either of these two issues?
> ___
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] datagrid inside an accordian

2006-05-17 Thread Randy Troppmann

Whoa! Thats like taking a K-car and putting a Fiero in the trunk and
trying to turn on the Fiero's radio with the K-car controls.

If it were me I would build my own accordian.

Randy Troppmann

On 5/17/06, Rich Rodecker <[EMAIL PROTECTED]> wrote:

I have an mc that i add to an accordian via accordian.createSegment();
 the mc I attach has a datagrid inside of it, but there's two problems
with it:

1. none of the items can be selected in the datagrid...no rollover events even.

2. the cell renderer I am using for one of the columns does not load.


anyone have any pointers for either of these two issues?
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] DataGrid text disappears when using Embed Fonts in Flash 8

2006-04-25 Thread Manuel Saint-Victor
Would I do that globally or for the DataGrid's headerText or what?



On 4/25/06, Tom Rhodes <[EMAIL PROTECTED]> wrote:
>
> i found that if you have the fields set to antialias for readability
> then they will disappear! setting as bitmap worked for me.
>
> pretty sure you shouldn't have to do this though
>
> Manuel Saint-Victor wrote:
> > I have a DataGrid in a Form Based Flash 8 App that when I set the global
> > Styles for embedFonts=true lost all of its  header text.  Has anyone had
> an
> > experience with this and is there a workaround?
> >
> > Thanks,
> >
> > Mani
> > ___
> > [email protected]
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> >
> >
>
>
> --
>
> __
>
> Tom Rhodes - Developer / Composer
> Wheelhouse Creative Ltd, 2 Albion Place,
> Hammersmith, London. W6 0QT
> Tel: 020 8748 4466  Fax: 020 8748 4850
> www.wheelhousecreative.co.uk
> __
>
> ___
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] DataGrid text disappears when using Embed Fonts in Flash 8

2006-04-25 Thread Tom Rhodes
i found that if you have the fields set to antialias for readability 
then they will disappear! setting as bitmap worked for me.


pretty sure you shouldn't have to do this though

Manuel Saint-Victor wrote:

I have a DataGrid in a Form Based Flash 8 App that when I set the global
Styles for embedFonts=true lost all of its  header text.  Has anyone had an
experience with this and is there a workaround?

Thanks,

Mani
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


  



--

__

Tom Rhodes - Developer / Composer
Wheelhouse Creative Ltd, 2 Albion Place,
Hammersmith, London. W6 0QT
Tel: 020 8748 4466  Fax: 020 8748 4850
www.wheelhousecreative.co.uk
__

___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] DataGrid Component Performance

2006-03-16 Thread André Goliath
Actually, you can define a  compare  function for the datGrid to use, then
check in your function if you are going to compare numbers or strings and go
from that on.
I did that some time ago, if anyone is interested int he code I´ll be glad
to share.

I´ve used the DataGrid on my example for the SQLite Connector at
http://www.Software-and-Solutions.de You might want to give it a try to see
how the DG performs. 
The DB that comes with tbe Example will produce you a very large result set
if you try that Query:

Select * from City Join Country Limit 1000;

Be sure to adopt the Limit to the number of rows you want, if you SELECT
without an limit you´ll get back millions of rows...

Hit the SELECT button to parse the data into the DG, or the QUERY button to
directly show the raw text data, thus allowing speed comparisons


hth

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Hyndman
Sent: Thursday, March 16, 2006 2:37 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] DataGrid Component Performance

>It might be interesting to try delegating sorting to the server and getting
a permutation vector back...but even then, it might give you trouble.

I rethought this. I imagine the issue surrounding the sort is related to the
calculations done by the grid, and probably not the sort itself.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Scott Hyndman
Sent:   Wed 3/15/2006 8:33 PM
To: Flashcoders mailing list
Cc: 
Subject:    RE: [Flashcoders] DataGrid Component Performance

Expand rows? Like a tree/table idea? No, it can't.

It is build to handle thousand of rows, but there a couple of issues.
Population of the datagrid is slow as molasses. You might be able to short
circuit your way into some better performance, but it's a crapshoot. Also,
don't even bother trying to sort. It might be interesting to try delegating
sorting to the server and getting a permutation vector back...but even then,
it might give you trouble.

Also, column sorting is limited to string sorts. When I needed more complex
sorting behaviour, I achieved it by subclassing DataGridColumn (might be
named differently, it's been awhile) and hooking into the header's press
handler.

Hope this helps,

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of varfoo
Sent:   Wed 3/15/2006 8:17 PM
To: Flashcoders Mailing List
Cc: 
Subject:[Flashcoders] DataGrid Component Performance

Anyone have a feel for how this component performs.  Can you expand rows?
Can it handle thousands of rows?
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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







___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] DataGrid Component Performance

2006-03-16 Thread Steve Webster
Also, don't even bother trying to sort. It might be interesting to  
try delegating sorting to the server and getting a permutation  
vector back...but even then, it might give you trouble.


Well, if you've got enough records to make population and sorting a  
performance issue, I'd suggest that fetching those same records  
again from the server whenever you needed to sort them would be  
even less desirable.


Never mind - I see now you weren't advocating getting all the rows  
back, just some magic information that helps you manually sort the  
array.


--
Steve Webster
Head of Development

Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] DataGrid Component Performance

2006-03-16 Thread Steve Webster

Scott,

It is build to handle thousand of rows, but there a couple of  
issues. Population of the datagrid is slow as molasses. You might  
be able to short circuit your way into some better performance, but  
it's a crapshoot.


I did some tests on this a while back and posted about it on my blog.  
Might be worth a read for anyone who needs to populate a datagrid  
with a lot of information.


http://dynamicflash.com/2006/01/efficiently-populating-a-datagrid- 
control/


Also, don't even bother trying to sort. It might be interesting to  
try delegating sorting to the server and getting a permutation  
vector back...but even then, it might give you trouble.


Well, if you've got enough records to make population and sorting a  
performance issue, I'd suggest that fetching those same records again  
from the server whenever you needed to sort them would be even less  
desirable.


Also, column sorting is limited to string sorts. When I needed more  
complex sorting behaviour, I achieved it by subclassing  
DataGridColumn (might be named differently, it's been awhile) and  
hooking into the header's press handler.


You could have set sortOnHeaderRelease to false and then responses to  
the headerRelease event to sort the data. At least that's what we're  
doing.


--
Steve Webster
Head of Development

Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] DataGrid Component Performance

2006-03-15 Thread Scott Hyndman
>It might be interesting to try delegating sorting to the server and getting a 
>permutation vector back...but even then, it might give you trouble.

I rethought this. I imagine the issue surrounding the sort is related to the 
calculations done by the grid, and probably not the sort itself.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Scott Hyndman
Sent:   Wed 3/15/2006 8:33 PM
To: Flashcoders mailing list
Cc: 
Subject:        RE: [Flashcoders] DataGrid Component Performance

Expand rows? Like a tree/table idea? No, it can't.

It is build to handle thousand of rows, but there a couple of issues. 
Population of the datagrid is slow as molasses. You might be able to short 
circuit your way into some better performance, but it's a crapshoot. Also, 
don't even bother trying to sort. It might be interesting to try delegating 
sorting to the server and getting a permutation vector back...but even then, it 
might give you trouble.

Also, column sorting is limited to string sorts. When I needed more complex 
sorting behaviour, I achieved it by subclassing DataGridColumn (might be named 
differently, it's been awhile) and hooking into the header's press handler.

Hope this helps,

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of varfoo
Sent:   Wed 3/15/2006 8:17 PM
To: Flashcoders Mailing List
Cc: 
Subject:[Flashcoders] DataGrid Component Performance

Anyone have a feel for how this component performs.  Can you expand rows?  Can 
it handle thousands of rows?
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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






___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

RE: [Flashcoders] DataGrid Component Performance

2006-03-15 Thread Scott Hyndman
Expand rows? Like a tree/table idea? No, it can't.

It is build to handle thousand of rows, but there a couple of issues. 
Population of the datagrid is slow as molasses. You might be able to short 
circuit your way into some better performance, but it's a crapshoot. Also, 
don't even bother trying to sort. It might be interesting to try delegating 
sorting to the server and getting a permutation vector back...but even then, it 
might give you trouble.

Also, column sorting is limited to string sorts. When I needed more complex 
sorting behaviour, I achieved it by subclassing DataGridColumn (might be named 
differently, it's been awhile) and hooking into the header's press handler.

Hope this helps,

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of varfoo
Sent:   Wed 3/15/2006 8:17 PM
To: Flashcoders Mailing List
Cc: 
Subject:[Flashcoders] DataGrid Component Performance

Anyone have a feel for how this component performs.  Can you expand rows?  Can 
it handle thousands of rows?
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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



___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

Re: [Flashcoders] DataGrid Component Performance

2006-03-15 Thread Grant Cox
What do you mean by "expand rows"?  But I think the answer is no - all 
grid rows need to be the same height (this height is adjustable, but 
applies to all rows).


The datagrid component can handle many thousand rows, but becomes very 
unresponsive with a number of columns.  In an application which does 
display a lot of data we limit the grids to a maximum of 15 columns, and 
this can display 20,000 rows ok.  However, whenever the grid needs to do 
a full redraw (ie sorting a column, resizing a column) it can pause for 
a couple of seconds.  Also, intensive CellRenderers should be avoided, 
as should any kind of manual row highlighting (ie alternate row colours).


Regards,
Grant Cox


varfoo wrote:


Anyone have a feel for how this component performs.  Can you expand rows?  Can 
it handle thousands of rows?
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


 


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] DataGrid rows with unique background colours?

2006-03-10 Thread Rajat Paharia
Hi Adrian - the $5 datagrid extensions at
http://www.tufat.com/script5.htmwill let you do this.

best, - rajat

On 3/10/06, Adrian Park <[EMAIL PROTECTED]> wrote:
>
> I'm working on an app' that uses the Datagrid component. It would make my
> client very happy if I could apply unique colours to individual rows in
> the
> datagrid and it would enhance the user exeprience of the app' if it were
> possible. Looking through the documentation, I can't find any way of
> directly referencing a row or cell in the DataGrid so that's the first
> problem. If I could get that reference, the next problem is how to apply
> the
> colour to the background but I'm less worried about that as I'm sure I can
> figure that out.
>
> Anyone know how I might be able to do this?
> ___
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--
Rajat Paharia
[EMAIL PROTECTED]
http://www.bunchball.com
http://www.rootburn.com
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

Re: [Flashcoders] datagrid icon to delete a row.

2006-03-10 Thread Spike
Again, not sure how this would work in Flash, but in Flex you would
have a cell renderer for the button.

Inside the cell renderer you have a setValue() method that allows you
to determine something about the data for that row, so you can disable
the button or whatever else you need to do.

You also have a reference to the list itself through the listOwner
property, so when you get a click event on the button you can call
listOwner.dispatchEvent() and dispatch a custom event from the list.

Since you're creating the event you can easily put the data that
applies to that row in there. In the event handler for your custom
event you can loop over the dataProvider for the list and check which
row matches the data in the event. That will give you the row index.

There are lots of other ways to do it, but that's about the most
generic, so it should work for most scenarios.

Hopefully that makes some sort of sense.

Spike

On 3/10/06, Rodrigo Guerra <[EMAIL PROTECTED]> wrote:
> thanks spike, clint for the help.
>
> the dataProvider removeItemAt method works like a charm.
>
> i added the code below to get the grid row, but it's not working:
>
> var myListener = new Object();
> myListener.cellFocusIn = function(eventObject) {
> var cell = eventObject.itemIndex ;
> trace("The cell row is " + cell + " has gained focus");
> };
> myGrid.addEventListener("cellFocusIn", myListener);
>
> but it ONLY works if i have the property "dg.editable" set to true, and this
> property can't be true at this time.
> how can i get the dg row?
>
> regards,
> rodrigo
>
> - Original Message -----
> From: "Spike" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Friday, March 10, 2006 4:01 PM
> Subject: Re: [Flashcoders] datagrid icon to delete a row.
>
>
> Not sure if this applies to the datagrid component in Flash, but to to
> this in Flex 1.5 you would do:
>
> myDataGrid.dataProvider.removeItemAt(someIndex);
>
> Spike
>
> On 3/10/06, Rodrigo Guerra <[EMAIL PROTECTED]> wrote:
> > my grid dataprovider is a xml (created in flash).
> >
> > the only way i can think to refresh the datagrid is associate it (again)
> to
> > the xml source (updated). like delete the node then myDG.dataProvider =
> > myXml (updated)....
> >
> > is this correct?
> >
> >
> >
> >
> >
> > - Original Message -
> > From: "Clint Tredway" <[EMAIL PROTECTED]>
> > To: "Flashcoders mailing list" 
> > Sent: Friday, March 10, 2006 2:19 PM
> > Subject: RE: [Flashcoders] datagrid icon to delete a row.
> >
> >
> > Basically what you will need to do is get the id of that row and remove
> > it from the data populating the grid and then refresh the grid. (If I
> > remember correctly) ;)
> >
> > HTH
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Rodrigo
> > Guerra
> > Sent: Friday, March 10, 2006 11:07 AM
> > To: Flashcoders mailing list
> > Subject: [Flashcoders] datagrid icon to delete a row.
> >
> > hi all,
> >
> > i'm using this example from phil,
> > http://philflash.inway.fr/dgrenderer/dgiconrd.html to put a image inside
> > a datagrid colum. (any other you can share would be appreciated)
> >
> > what i want is click in the image and delete the row. i thought the
> > datagrid class would provide a easy method like "removeRow(index)".. but
> > there isn't.
> > what's the code to delete a row in the datagrid.
> >
> >
> > thanks!
> >
> >
> >
> >
> > ___
> > [email protected]
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> >
> > ___
> > [email protected]
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
>
>
> --
> 
> Stephen Milligan
> Do you do the Badger?
> http://www.y

RE: [Flashcoders] datagrid icon to delete a row.

2006-03-10 Thread Robert Chyko
If a DG row is highlighted it is just yourDg.selectedIndex


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rodrigo
Guerra
Sent: Friday, March 10, 2006 3:19 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] datagrid icon to delete a row.


thanks spike, clint for the help.

the dataProvider removeItemAt method works like a charm.

i added the code below to get the grid row, but it's not working:

var myListener = new Object();
myListener.cellFocusIn = function(eventObject) {
var cell = eventObject.itemIndex ;
trace("The cell row is " + cell + " has gained focus");
};
myGrid.addEventListener("cellFocusIn", myListener);

but it ONLY works if i have the property "dg.editable" set to true, and
this
property can't be true at this time.
how can i get the dg row?

regards,
rodrigo

- Original Message - 
From: "Spike" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Friday, March 10, 2006 4:01 PM
Subject: Re: [Flashcoders] datagrid icon to delete a row.


Not sure if this applies to the datagrid component in Flash, but to to
this in Flex 1.5 you would do:

myDataGrid.dataProvider.removeItemAt(someIndex);

Spike

On 3/10/06, Rodrigo Guerra <[EMAIL PROTECTED]> wrote:
> my grid dataprovider is a xml (created in flash).
>
> the only way i can think to refresh the datagrid is associate it
(again)
to
> the xml source (updated). like delete the node then myDG.dataProvider
=
> myXml (updated)
>
> is this correct?
>
>
>
>
>
> - Original Message -
> From: "Clint Tredway" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Friday, March 10, 2006 2:19 PM
> Subject: RE: [Flashcoders] datagrid icon to delete a row.
>
>
> Basically what you will need to do is get the id of that row and
remove
> it from the data populating the grid and then refresh the grid. (If I
> remember correctly) ;)
>
> HTH
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
Rodrigo
> Guerra
> Sent: Friday, March 10, 2006 11:07 AM
> To: Flashcoders mailing list
> Subject: [Flashcoders] datagrid icon to delete a row.
>
> hi all,
>
> i'm using this example from phil,
> http://philflash.inway.fr/dgrenderer/dgiconrd.html to put a image
inside
> a datagrid colum. (any other you can share would be appreciated)
>
> what i want is click in the image and delete the row. i thought the
> datagrid class would provide a easy method like "removeRow(index)"..
but
> there isn't.
> what's the code to delete a row in the datagrid.
>
>
> thanks!
>
>
>
>
> ___
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
> ___
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] datagrid icon to delete a row.

2006-03-10 Thread Rodrigo Guerra
thanks spike, clint for the help.

the dataProvider removeItemAt method works like a charm.

i added the code below to get the grid row, but it's not working:

var myListener = new Object();
myListener.cellFocusIn = function(eventObject) {
var cell = eventObject.itemIndex ;
trace("The cell row is " + cell + " has gained focus");
};
myGrid.addEventListener("cellFocusIn", myListener);

but it ONLY works if i have the property "dg.editable" set to true, and this
property can't be true at this time.
how can i get the dg row?

regards,
rodrigo

- Original Message - 
From: "Spike" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Friday, March 10, 2006 4:01 PM
Subject: Re: [Flashcoders] datagrid icon to delete a row.


Not sure if this applies to the datagrid component in Flash, but to to
this in Flex 1.5 you would do:

myDataGrid.dataProvider.removeItemAt(someIndex);

Spike

On 3/10/06, Rodrigo Guerra <[EMAIL PROTECTED]> wrote:
> my grid dataprovider is a xml (created in flash).
>
> the only way i can think to refresh the datagrid is associate it (again)
to
> the xml source (updated). like delete the node then myDG.dataProvider =
> myXml (updated)
>
> is this correct?
>
>
>
>
>
> - Original Message -
> From: "Clint Tredway" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Friday, March 10, 2006 2:19 PM
> Subject: RE: [Flashcoders] datagrid icon to delete a row.
>
>
> Basically what you will need to do is get the id of that row and remove
> it from the data populating the grid and then refresh the grid. (If I
> remember correctly) ;)
>
> HTH
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Rodrigo
> Guerra
> Sent: Friday, March 10, 2006 11:07 AM
> To: Flashcoders mailing list
> Subject: [Flashcoders] datagrid icon to delete a row.
>
> hi all,
>
> i'm using this example from phil,
> http://philflash.inway.fr/dgrenderer/dgiconrd.html to put a image inside
> a datagrid colum. (any other you can share would be appreciated)
>
> what i want is click in the image and delete the row. i thought the
> datagrid class would provide a easy method like "removeRow(index)".. but
> there isn't.
> what's the code to delete a row in the datagrid.
>
>
> thanks!
>
>
>
>
> ___
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
> ___
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] datagrid icon to delete a row.

2006-03-10 Thread Spike
Not sure if this applies to the datagrid component in Flash, but to to
this in Flex 1.5 you would do:

myDataGrid.dataProvider.removeItemAt(someIndex);

Spike

On 3/10/06, Rodrigo Guerra <[EMAIL PROTECTED]> wrote:
> my grid dataprovider is a xml (created in flash).
>
> the only way i can think to refresh the datagrid is associate it (again) to
> the xml source (updated). like delete the node then myDG.dataProvider =
> myXml (updated)
>
> is this correct?
>
>
>
>
>
> - Original Message -
> From: "Clint Tredway" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Friday, March 10, 2006 2:19 PM
> Subject: RE: [Flashcoders] datagrid icon to delete a row.
>
>
> Basically what you will need to do is get the id of that row and remove
> it from the data populating the grid and then refresh the grid. (If I
> remember correctly) ;)
>
> HTH
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Rodrigo
> Guerra
> Sent: Friday, March 10, 2006 11:07 AM
> To: Flashcoders mailing list
> Subject: [Flashcoders] datagrid icon to delete a row.
>
> hi all,
>
> i'm using this example from phil,
> http://philflash.inway.fr/dgrenderer/dgiconrd.html to put a image inside
> a datagrid colum. (any other you can share would be appreciated)
>
> what i want is click in the image and delete the row. i thought the
> datagrid class would provide a easy method like "removeRow(index)".. but
> there isn't.
> what's the code to delete a row in the datagrid.
>
>
> thanks!
>
>
>
>
> ___
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
> ___
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] datagrid icon to delete a row.

2006-03-10 Thread Clint Tredway
Yes, basically...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rodrigo
Guerra
Sent: Friday, March 10, 2006 11:32 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] datagrid icon to delete a row.

my grid dataprovider is a xml (created in flash).

the only way i can think to refresh the datagrid is associate it (again)
to
the xml source (updated). like delete the node then myDG.dataProvider =
myXml (updated)

is this correct?





- Original Message - 
From: "Clint Tredway" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Friday, March 10, 2006 2:19 PM
Subject: RE: [Flashcoders] datagrid icon to delete a row.


Basically what you will need to do is get the id of that row and remove
it from the data populating the grid and then refresh the grid. (If I
remember correctly) ;)

HTH

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rodrigo
Guerra
Sent: Friday, March 10, 2006 11:07 AM
To: Flashcoders mailing list
Subject: [Flashcoders] datagrid icon to delete a row.

hi all,

i'm using this example from phil,
http://philflash.inway.fr/dgrenderer/dgiconrd.html to put a image inside
a datagrid colum. (any other you can share would be appreciated)

what i want is click in the image and delete the row. i thought the
datagrid class would provide a easy method like "removeRow(index)".. but
there isn't.
what's the code to delete a row in the datagrid.


thanks!




___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] datagrid icon to delete a row.

2006-03-10 Thread Rodrigo Guerra
my grid dataprovider is a xml (created in flash).

the only way i can think to refresh the datagrid is associate it (again) to
the xml source (updated). like delete the node then myDG.dataProvider =
myXml (updated)

is this correct?





- Original Message - 
From: "Clint Tredway" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Friday, March 10, 2006 2:19 PM
Subject: RE: [Flashcoders] datagrid icon to delete a row.


Basically what you will need to do is get the id of that row and remove
it from the data populating the grid and then refresh the grid. (If I
remember correctly) ;)

HTH

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rodrigo
Guerra
Sent: Friday, March 10, 2006 11:07 AM
To: Flashcoders mailing list
Subject: [Flashcoders] datagrid icon to delete a row.

hi all,

i'm using this example from phil,
http://philflash.inway.fr/dgrenderer/dgiconrd.html to put a image inside
a datagrid colum. (any other you can share would be appreciated)

what i want is click in the image and delete the row. i thought the
datagrid class would provide a easy method like "removeRow(index)".. but
there isn't.
what's the code to delete a row in the datagrid.


thanks!




___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] datagrid icon to delete a row.

2006-03-10 Thread Clint Tredway
Basically what you will need to do is get the id of that row and remove
it from the data populating the grid and then refresh the grid. (If I
remember correctly) ;)

HTH

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rodrigo
Guerra
Sent: Friday, March 10, 2006 11:07 AM
To: Flashcoders mailing list
Subject: [Flashcoders] datagrid icon to delete a row.

hi all,

i'm using this example from phil,
http://philflash.inway.fr/dgrenderer/dgiconrd.html to put a image inside
a datagrid colum. (any other you can share would be appreciated)

what i want is click in the image and delete the row. i thought the
datagrid class would provide a easy method like "removeRow(index)".. but
there isn't.
what's the code to delete a row in the datagrid.


thanks!




___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] DataGrid rows with unique background colours?

2006-03-10 Thread Adrian Park
Thanks Derek - I realised I'd missed the List class just before I read your
reply. For various reasons I think something like...

my_datagrid.setPropertiesAt(rowNumber,{backgroundColor:0  xFF});

is going to work better for my purposes but I'll give your suggestion a go
if it doesn't work as I want it to.

A.


On 3/10/06, Derek Vadneau <[EMAIL PROTECTED]> wrote:
>
> Check the styles for superclasses of components as well:
> myDataGrid.setStyle('alternatingRowColors', [0xE0E0E0, 0xFF]);
>
> alternatingRowColors comes from List.
>
> Set an array with the colours you want.
>
>
> Derek Vadneau
>
> - Original Message -
> From: "Adrian Park" <[EMAIL PROTECTED]>
> To: 
> Sent: Friday, March 10, 2006 8:12 AM
> Subject: [Flashcoders] DataGrid rows with unique background colours?
>
>
> I'm working on an app' that uses the Datagrid component. It would make my
> client very happy if I could apply unique colours to individual rows in
> the
> datagrid and it would enhance the user exeprience of the app' if it were
> possible. Looking through the documentation, I can't find any way of
> directly referencing a row or cell in the DataGrid so that's the first
> problem. If I could get that reference, the next problem is how to apply
> the
> colour to the background but I'm less worried about that as I'm sure I can
> figure that out.
>
> Anyone know how I might be able to do this?
>
>
> ___
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] DataGrid rows with unique background colours?

2006-03-10 Thread Derek Vadneau
Check the styles for superclasses of components as well:
myDataGrid.setStyle('alternatingRowColors', [0xE0E0E0, 0xFF]);

alternatingRowColors comes from List.

Set an array with the colours you want.


Derek Vadneau

- Original Message - 
From: "Adrian Park" <[EMAIL PROTECTED]>
To: 
Sent: Friday, March 10, 2006 8:12 AM
Subject: [Flashcoders] DataGrid rows with unique background colours?


I'm working on an app' that uses the Datagrid component. It would make my
client very happy if I could apply unique colours to individual rows in 
the
datagrid and it would enhance the user exeprience of the app' if it were
possible. Looking through the documentation, I can't find any way of
directly referencing a row or cell in the DataGrid so that's the first
problem. If I could get that reference, the next problem is how to apply 
the
colour to the background but I'm less worried about that as I'm sure I can
figure that out.

Anyone know how I might be able to do this?


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] DataGrid Columns question

2006-02-22 Thread bryan.rice


On Feb 22, 2006, at 9:02 AM, Michael Stuhr wrote:

i'm in a somewhat similar situation right now, i guess you have to  
remove the Columns in your dataProvider and than set this data as  
your grid's dataProvider.


All you have to do is set the DataGrid.columnNames prop of the data  
grid.  For further customization you further have DataGrid.getColumnAt 
(index).headerText to create a human readable column name.


blue skies,
bryan
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] DataGrid Columns question

2006-02-22 Thread Judah
Hi Oleg,

Use the columnNames property before setting your dataprovider:

// only show column1 and column2
datagrid.columnNames = ["column1", "column2"]
datagrid.dataProvider = myDP; 
datagrid.columns[0].headerText = "Olegs Column"

Datagrid columnName:
http://livedocs.macromedia.com/flash/8/main/3271.html

Datagrid strategies:
http://livedocs.macromedia.com/flash/8/main/3253.html

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Oleg
Filipchuk
Sent: Wednesday, February 22, 2006 8:32 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] DataGrid Columns question

Thanks all,
I've found solution by setting up columns ahead of time:

private function createColumn( prop:String, label:String ):DataGridColumn {
var clmn:DataGridColumn = new DataGridColumn(prop);
clmn.headerText = label;
   return clmn;
}

dataGrid.addColumn(createColumn("nickname", "NickName"));
dataGrid.addColumn(createColumn("fullname", "Full name"));
dataGrid.addColumn(createColumn("tel", "Telephone"));
dataGrid.addColumn(createColumn("address", "Address"));

and after that I can asign data provider safely.

But there is the nasty quirk - if I call dataGrid.spaceColumnsEqually()  -
dataGrid shows no column at all, so I have to set up width of every column
individually.

Thanks all for help,
Oleg
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] DataGrid Columns question

2006-02-22 Thread Oleg Filipchuk
Thanks all,
I've found solution by setting up columns ahead of time:

private function createColumn( prop:String, label:String ):DataGridColumn {
var clmn:DataGridColumn = new DataGridColumn(prop);
clmn.headerText = label;
   return clmn;
}

dataGrid.addColumn(createColumn("nickname", "NickName"));
dataGrid.addColumn(createColumn("fullname", "Full name"));
dataGrid.addColumn(createColumn("tel", "Telephone"));
dataGrid.addColumn(createColumn("address", "Address"));

and after that I can asign data provider safely.

But there is the nasty quirk - if I call dataGrid.spaceColumnsEqually()  -
dataGrid shows no column at all, so I have to set up width of every column
individually.

Thanks all for help,
Oleg
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] DataGrid Columns question

2006-02-22 Thread eric dolecki
I believe you can set up your columns ahead of time, and name them to match
items in your DP, and if you don't include a column for userid, it won't be
displayed, but it will still be part of the row's data that you can
interogate.

-edolecki

On 2/22/06, Oleg Filipchuk <[EMAIL PROTECTED]> wrote:
>
> Hello list,
> I'm populating DataGrid component from DB. And I need to specify what
> columns have to be shown to user. I remember  that there is DataGrid
> column
> wizard, but unfortunately it doesn't work with Flash 8.
> This is the value object:
>
> class vo.User {
> var nickname:String;
> var fullname:String;
> var userid:Number;
> var tel:Number
> var address:String;
> }
>
> I want to show in DataGrid all the data except userid. Is there any simple
> way to od it?
>
> thanks,
> Oleg
> ___
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] DataGrid Columns question

2006-02-22 Thread Helen Triolo
Just set the columnNames property of the datagrid.  Example in middle of 
page here: http://flash-creations.com/notes/servercomm_database.php


Helen

--
http://flash-creations.com
http://i-technica.com



Michael Stuhr wrote:


Oleg Filipchuk schrieb:


Hello list,
I'm populating DataGrid component from DB. And I need to specify what
columns have to be shown to user. 


Normally i'd say: why do you pull them in anyway ? but i guess you 
need them internally :_)


i'm in a somewhat similar situation right now, i guess you have to 
remove the Columns in your dataProvider and than set this data as your 
grid's dataProvider.


if that doesn't work, you'll have to be more clearer of what you 
already have. (provide some code)


micha




___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] DataGrid Columns question

2006-02-22 Thread Michael Stuhr

Oleg Filipchuk schrieb:

Hello list,
I'm populating DataGrid component from DB. And I need to specify what
columns have to be shown to user. 
Normally i'd say: why do you pull them in anyway ? but i guess you need them 
internally :_)


i'm in a somewhat similar situation right now, i guess you have to remove the 
Columns in your dataProvider and than set this data as your grid's dataProvider.


if that doesn't work, you'll have to be more clearer of what you already have. 
(provide some code)


micha


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Datagrid with hyperlink column???

2006-02-20 Thread Manuel Saint-Victor
This one made it finally make sense

http://www.communitymx.com/content/article.cfm?page=2&cid=B4AED

M

On 2/20/06, Noyes, Jeff <[EMAIL PROTECTED]> wrote:
>
> Can anyone explain how to do this.  I've seen one example by Jesse
> Warden, but it was entirely Flash.
>
> Jeff
> ___
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Datagrid with hyperlink column???

2006-02-20 Thread Eric E. Dolecki

Google for cellRenderers.


On Feb 20, 2006, at 9:19 AM, Noyes, Jeff wrote:


Can anyone explain how to do this.  I've seen one example by Jesse
Warden, but it was entirely Flash.

Jeff
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] datagrid question

2006-01-31 Thread JesterXL
By default, if you do:

yourgrid.dataProvider = yourCFresult;

The DataGrid will go looking at the first object in the array, and use the 
property names of the object as column names.  By setting the array 
yourself, you force it to use what you had instead.  Both the column header 
text, and the actual field it looks for in the record will be that string.

Typically, if you throw Flash a struct from CF, it'll be an array of 
objects... forget what query is.

So, try like:

re.return[0].name

To see all, try like:

var i = re.return.length;
while(i--)
{
trace("name: " + re.return[i].name);
}

- Original Message - 
From: "Mark Wheeler" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Wednesday, February 01, 2006 2:17 AM
Subject: RE: [Flashcoders] datagrid question


But how can I get the columnNames eg, I thought to pull back one column
would be something like re.return.name, but does not seem to work.

-Original Message-
From: JesterXL [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 February 2006 2:06 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] datagrid question

I can answer #2; use columnNames.

my_dg.columnNames = ["columnName", "anotherColumnName"]

Only those columns will be shown.


- Original Message -
From: "Mark Wheeler" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, February 01, 2006 12:52 AM
Subject: [Flashcoders] datagrid question


Hi

I am in the process of developing a flash app that queries our Active
directory, I have created a cf component that queries the AD using
cfldap and returns the query of the AD as an array, I am able to grab
the array from flash (code for the application below) to populate a
datagrid, but what I want to do is be able firstly to filter the
datagrid using text boxes.  Department and name are displayed in the
datagrid and if user types in a text box (name or department) as user
types the datagrid is filtered, I can do this in cfform in coldfusion
but am unsure here.  secondly I can populate the datagrid using
staffListBox.dataProvider = re.result; and remove the unwanted column
with removeColumnAt() but how do I choose the colums that I want to push
into the datagrid, I thought something like re.result.name might work,
but to no avail. Lastly how do I pick up a value in the array returned
that will be passed into a nother query to display further information
about the selected item, to push out to other components, ie name,
email, these are all in the array but can't seem to retreive them, as
something of a newbie to flash, any help to one or all of these
questions would be greatly appreciated.

Regards
Mark Wheeler

Code:
//import the Flash RemotingClasses
import mx.remoting.Service;
import mx.services.Log;
import mx.rpc.RelayResponder;
import mx.rpc.FaultEvent;
import mx.rpc.ResultEvent;
import mx.remoting.PendingCall;
import mx.remoting.RecordSet;
import mx.remoting.DataGlue;
//Connect to the gateway
//Establish the service
var employeeService : Service = new Service(
   "http://127.0.0.1/flashservices/gateway
<http://127.0.0.1/flashservices/gateway> ",
   new Log (Log.DEBUG),
   "cfflash.employees",
   null,
   null);
//Test the connection
function getTestConn(){
//Create a pendingCall Object
 var testConn_pc:PendingCall = employeeService.getTestConn();
//Use the responder property to handle the success for failure
 testConn_pc.responder = new RelayResponder(this, "getTestConn_Result",
  "getTestConn_Fault");
}
//Handle the success
function getTestConn_Result(re:ResultEvent){
 //trace(re.result);
 staffPosition.text = re.result;
 //Call The Staff List method
 listStaff();
}
//Handle the failure
function getTestConn_Fault(re:FaultEvent){
 trace("error");
}
//Get the staff names
function listStaff(){
 var staff_pc:PendingCall = employeeService.listStaff();
 staff_pc.responder = new RelayResponder(this,"listStaff_Result",
   "listStaff_Fault");
}
function listStaff_Result (re : ResultEvent){

//display the results in a datagrid
 staffListBox.dataProvider = re.result;
 staffListBox.removeColumnAt(2);
}
function listStaff_Fault (fault:FaultEvent):Void{
 trace ("error");
}

//get the staff Details
function getStaffDetails(userId){
 var staffDetails_pc:PendingCall =
employeeService.listStaffQuery(userId);
 staffDetails_pc.responder = new RelayResponder(this,
"getStaffDetails_Result", "getStaffDetails_Fault");
}
//pass the staff details to other components when the user clicks in the
datagrid
function getStaffDetails_Result(re:ResultEvent){
 this.staffEmail.text = re.result.items[0].mail;
 this.staffDept.text = re.result.items[0].department;
}
function getStaffDetails_Fault(fault:FaultEvent):Void
{
 trace("error");
}

var listBoxListener : Object = new Object();
t

RE: [Flashcoders] datagrid question

2006-01-31 Thread Mark Wheeler
But how can I get the columnNames eg, I thought to pull back one column
would be something like re.return.name, but does not seem to work.

-Original Message-
From: JesterXL [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 1 February 2006 2:06 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] datagrid question

I can answer #2; use columnNames.

my_dg.columnNames = ["columnName", "anotherColumnName"]

Only those columns will be shown.


- Original Message -
From: "Mark Wheeler" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, February 01, 2006 12:52 AM
Subject: [Flashcoders] datagrid question


Hi
 
I am in the process of developing a flash app that queries our Active
directory, I have created a cf component that queries the AD using
cfldap and returns the query of the AD as an array, I am able to grab
the array from flash (code for the application below) to populate a
datagrid, but what I want to do is be able firstly to filter the
datagrid using text boxes.  Department and name are displayed in the
datagrid and if user types in a text box (name or department) as user
types the datagrid is filtered, I can do this in cfform in coldfusion
but am unsure here.  secondly I can populate the datagrid using
staffListBox.dataProvider = re.result; and remove the unwanted column
with removeColumnAt() but how do I choose the colums that I want to push
into the datagrid, I thought something like re.result.name might work,
but to no avail. Lastly how do I pick up a value in the array returned
that will be passed into a nother query to display further information
about the selected item, to push out to other components, ie name,
email, these are all in the array but can't seem to retreive them, as
something of a newbie to flash, any help to one or all of these
questions would be greatly appreciated.
 
Regards
Mark Wheeler
 
Code:
//import the Flash RemotingClasses
import mx.remoting.Service;
import mx.services.Log;
import mx.rpc.RelayResponder;
import mx.rpc.FaultEvent;
import mx.rpc.ResultEvent;
import mx.remoting.PendingCall;
import mx.remoting.RecordSet;
import mx.remoting.DataGlue;
//Connect to the gateway
//Establish the service
var employeeService : Service = new Service(
   "http://127.0.0.1/flashservices/gateway
<http://127.0.0.1/flashservices/gateway> ",
   new Log (Log.DEBUG),
   "cfflash.employees",
   null,
   null);
//Test the connection
function getTestConn(){
//Create a pendingCall Object
 var testConn_pc:PendingCall = employeeService.getTestConn();
//Use the responder property to handle the success for failure
 testConn_pc.responder = new RelayResponder(this, "getTestConn_Result", 
  "getTestConn_Fault");
}
//Handle the success
function getTestConn_Result(re:ResultEvent){
 //trace(re.result);
 staffPosition.text = re.result;
 //Call The Staff List method
 listStaff();
}
//Handle the failure
function getTestConn_Fault(re:FaultEvent){
 trace("error");
}
//Get the staff names
function listStaff(){
 var staff_pc:PendingCall = employeeService.listStaff();
 staff_pc.responder = new RelayResponder(this,"listStaff_Result",
   "listStaff_Fault");
}
function listStaff_Result (re : ResultEvent){

//display the results in a datagrid
 staffListBox.dataProvider = re.result;
 staffListBox.removeColumnAt(2);
}
function listStaff_Fault (fault:FaultEvent):Void{
 trace ("error");
}
 
//get the staff Details
function getStaffDetails(userId){
 var staffDetails_pc:PendingCall =
employeeService.listStaffQuery(userId);
 staffDetails_pc.responder = new RelayResponder(this,
"getStaffDetails_Result", "getStaffDetails_Fault");
}
//pass the staff details to other components when the user clicks in the
datagrid
function getStaffDetails_Result(re:ResultEvent){
 this.staffEmail.text = re.result.items[0].mail;
 this.staffDept.text = re.result.items[0].department;
}
function getStaffDetails_Fault(fault:FaultEvent):Void
{
 trace("error");
}
 
var listBoxListener : Object = new Object();
this.listBoxListener.change = function()
{
 var userId:String = staffListBox.selectedItem.data;
 getStaffDetails(userId);
}
this.staffListBox.addEventListener("change", listBoxListener);
 
//Start the application
getTestConn();
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] datagrid question

2006-01-31 Thread JesterXL
I can answer #2; use columnNames.

my_dg.columnNames = ["columnName", "anotherColumnName"]

Only those columns will be shown.


- Original Message - 
From: "Mark Wheeler" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, February 01, 2006 12:52 AM
Subject: [Flashcoders] datagrid question


Hi
 
I am in the process of developing a flash app that queries our Active
directory, I have created a cf component that queries the AD using
cfldap and returns the query of the AD as an array, I am able to grab
the array from flash (code for the application below) to populate a
datagrid, but what I want to do is be able firstly to filter the
datagrid using text boxes.  Department and name are displayed in the
datagrid and if user types in a text box (name or department) as user
types the datagrid is filtered, I can do this in cfform in coldfusion
but am unsure here.  secondly I can populate the datagrid using
staffListBox.dataProvider = re.result; and remove the unwanted column
with removeColumnAt() but how do I choose the colums that I want to push
into the datagrid, I thought something like re.result.name might work,
but to no avail. Lastly how do I pick up a value in the array returned
that will be passed into a nother query to display further information
about the selected item, to push out to other components, ie name,
email, these are all in the array but can't seem to retreive them, as
something of a newbie to flash, any help to one or all of these
questions would be greatly appreciated.
 
Regards
Mark Wheeler
 
Code:
//import the Flash RemotingClasses
import mx.remoting.Service;
import mx.services.Log;
import mx.rpc.RelayResponder;
import mx.rpc.FaultEvent;
import mx.rpc.ResultEvent;
import mx.remoting.PendingCall;
import mx.remoting.RecordSet;
import mx.remoting.DataGlue;
//Connect to the gateway
//Establish the service
var employeeService : Service = new Service(
   "http://127.0.0.1/flashservices/gateway
 ",
   new Log (Log.DEBUG),
   "cfflash.employees",
   null,
   null);
//Test the connection
function getTestConn(){
//Create a pendingCall Object
 var testConn_pc:PendingCall = employeeService.getTestConn();
//Use the responder property to handle the success for failure
 testConn_pc.responder = new RelayResponder(this, "getTestConn_Result", 
  "getTestConn_Fault");
}
//Handle the success
function getTestConn_Result(re:ResultEvent){
 //trace(re.result);
 staffPosition.text = re.result;
 //Call The Staff List method
 listStaff();
}
//Handle the failure
function getTestConn_Fault(re:FaultEvent){
 trace("error");
}
//Get the staff names
function listStaff(){
 var staff_pc:PendingCall = employeeService.listStaff();
 staff_pc.responder = new RelayResponder(this,"listStaff_Result",
   "listStaff_Fault");
}
function listStaff_Result (re : ResultEvent){

//display the results in a datagrid
 staffListBox.dataProvider = re.result;
 staffListBox.removeColumnAt(2);
}
function listStaff_Fault (fault:FaultEvent):Void{
 trace ("error");
}
 
//get the staff Details
function getStaffDetails(userId){
 var staffDetails_pc:PendingCall =
employeeService.listStaffQuery(userId);
 staffDetails_pc.responder = new RelayResponder(this,
"getStaffDetails_Result", "getStaffDetails_Fault");
}
//pass the staff details to other components when the user clicks in the
datagrid
function getStaffDetails_Result(re:ResultEvent){
 this.staffEmail.text = re.result.items[0].mail;
 this.staffDept.text = re.result.items[0].department;
}
function getStaffDetails_Fault(fault:FaultEvent):Void
{
 trace("error");
}
 
var listBoxListener : Object = new Object();
this.listBoxListener.change = function()
{
 var userId:String = staffListBox.selectedItem.data;
 getStaffDetails(userId);
}
this.staffListBox.addEventListener("change", listBoxListener);
 
//Start the application
getTestConn();
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] DataGrid scroll problem and Archive Access

2005-12-22 Thread Nick Appelmans
Thanks Bob for the quick reply. The first of the two fixes worked for me
publishing to flash player 7 from the IDE and running in Firefox with player
8.

 

Nick

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert Chyko
Sent: Thursday, December 22, 2005 12:16 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] DataGrid scroll problem and Archive Access

 

 

Ran into this in the past... Here are 2 workarounds we received from our
Macromedia (at the time) support rep.  These workarounds fixed the issue in
Flash Player 7, but I think they may have been broken by Player 8 - since
I've received bug reports about this again since Player 8 has come out -
just havent had time to test it properly with Player 8 yet.

Please let me know what you find:

 

Subject: Macromedia Product Support Ticket [8286652] Enhanced DataGrid
Render issue

 

I have a few cleaner solutions for you to try with the datagrid.

The sizing logic for the data grid is inaccurate with dimensions of the
datagrid when the datagrid is added to the stage dynamically resulting in
duplicate rows.

To work around this issue use one of the following lines:

.setSize(500, (.rowHeight * .rowCount)+.rowCount);

//or

.rowCount = (.height -
.headerHeight)/.rowHeight;

Let me know if that works out for you.

-Ken

Kenneth J. Toley

Flash Support Team Lead

Flash ActionScript/Application Architecture

 

 

Bob

 

 

-Original Message-

From: [EMAIL PROTECTED]

[mailto:[EMAIL PROTECTED] On Behalf Of Nick
Appelmans

Sent: Thursday, December 22, 2005 3:09 PM

To: 'Flashcoders mailing list'

Subject: [Flashcoders] DataGrid scroll problem and Archive Access

 

 

Hi List:

 

I tried searching archives but link from webpage is broken. I have a
datagrid that is bound to a dataset where both properties of the binding are
property = "dataprovider" when the datagrid displays the resource returned
from a MySQL query via amfphp it displays the rows properly until I use the
scroll bar of the datagrid. When scrolling, almost all of the rows are
replaced with a copy of one of the rows. This happens in Firefox and IE and
the Flash IDE when testing the movie. I am using Flash MX 2004 Pro ver

7.2

which I understand had fixed a datagrid dataset issue (Bug # 81829).

 

 

 

Thanks in advance of any leads or suggestions. Also, how can I search the
archives of Flashcoders?

 

 

 

Nick

 

___

Flashcoders mailing list

[email protected]

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

___

Flashcoders mailing list

[email protected]

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

 

 

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] DataGrid scroll problem and Archive Access

2005-12-22 Thread Robert Chyko
Ran into this in the past... Here are 2 workarounds we received from our
Macromedia (at the time) support rep.  These workarounds fixed the issue
in Flash Player 7, but I think they may have been broken by Player 8 -
since I've received bug reports about this again since Player 8 has come
out - just havent had time to test it properly with Player 8 yet.
Please let me know what you find:


Subject: Macromedia Product Support Ticket [8286652] Enhanced DataGrid
Render issue

I have a few cleaner solutions for you to try with the datagrid.
The sizing logic for the data grid is inaccurate with dimensions of the
datagrid when the datagrid is added to the stage dynamically resulting
in duplicate rows.
To work around this issue use one of the following lines:
.setSize(500, (.rowHeight * .rowCount)+.rowCount);
//or
.rowCount = (.height -
.headerHeight)/.rowHeight;
Let me know if that works out for you.
-Ken
Kenneth J. Toley
Flash Support Team Lead
Flash ActionScript/Application Architecture


Bob


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nick
Appelmans
Sent: Thursday, December 22, 2005 3:09 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] DataGrid scroll problem and Archive Access


Hi List:

I tried searching archives but link from webpage is broken. I have a
datagrid that is bound to a dataset where both properties of the binding
are
property = "dataprovider" when the datagrid displays the resource
returned
from a MySQL query via amfphp it displays the rows properly until I use
the
scroll bar of the datagrid. When scrolling, almost all of the rows are
replaced with a copy of one of the rows. This happens in Firefox and IE
and
the Flash IDE when testing the movie. I am using Flash MX 2004 Pro ver
7.2
which I understand had fixed a datagrid dataset issue (Bug # 81829).

 

Thanks in advance of any leads or suggestions. Also, how can I search
the
archives of Flashcoders?

 

Nick

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  1   2   >