[flexcoders] unsubscribe

2010-08-25 Thread Harald Dehn
 

 

Von: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] Im Auftrag 
von claudiu ursica
Gesendet: Mittwoch, 25. August 2010 14:29
An: flexcoders@yahoogroups.com
Betreff: Re: [flexcoders] retrieve row # from XMLList w/ Namespaces for combo 
selectedIndex?

 

  

Parse the xml into a custom class/collection, and upon insertion you can assign 
a custom id e.g. the number of the row.

C

 

  _  

From: MicC chigwel...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Wed, August 25, 2010 8:58:40 AM
Subject: [flexcoders] retrieve row # from XMLList w/ Namespaces for combo 
selectedIndex?

  

comboBox dataProvider named responseRows = XMLList with Namespace so row data 
looks like:


Central
/MEMBER_CAPTION
MEMBER_CAPTION xmlns=urn:schemas-microsoft-com:xml-analysis:rowset 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:ddl2=http://schemas.microsoft.com/analysisservices/2003/engine/2; 
xmlns:ddl2_2=http://schemas.microsoft.com/analysisservices/2003/engine/2/2; 
xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
Northwest
/MEMBER_CAPTION etc.

I need to set the combo to a default preference e.g. Northwest by searching 
its dataProvider for that value and then setting selectedIndex. The code

var msRS:Namespace= new Namespace( 
urn:schemas-microsoft-com:xml-analysis:rowset);
var temp1:Object = responseRows.(msRS::MEMBER_CAPTION == Northwest)

finds the Northwest row but I do not have the row number to use to set 
selectedIndex of combo. As always, TIA,

Mic

 





[flexcoders] Releasdate for flash player 10

2008-05-16 Thread Harald Dehn
is there allready a time shedule for the final release?

Harald


AW: [flexcoders] drag and drop a button?

2008-04-12 Thread Harald Dehn
Hi Winscot,

 

I found an alternative way to get a proxy image for the DragManager

 

 

   // FANCY:

// ---

// Add a proxy image here for drag manager to use if you
would like!

var proxy:UIComponent = UIComponent( event.currentTarget );



// Copy the contents of the control (a la bitmap data)

var bitmapData:BitmapData = new BitmapData( proxy.width,
proxy.height );

bitmapData.draw( proxy );



// Let the drag manager take care of the rest - with a
visual indicator of what its dragging...

DragManager.doDrag( dragChild, dragSource, event, new
BitmapAsset(bitmapData) );

 

 

Harald

 

Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von Rick Winscot
Gesendet: Samstag, 12. April 2008 03:05
An: flexcoders@yahoogroups.com
Betreff: RE: [flexcoders] drag and drop a button?

 

Take a look at this sample - BitmapData is used to create a proxy on the fly
of the object being dragged.  

 

http://www.quilix.com/node/3

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of grimmwerks
Sent: Friday, April 11, 2008 10:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] drag and drop a button?

 

Is there a simple tutorial for it? I don't really want to have an 
image proxy - I want to really drag a button somwhere else on the 
canvas. Simple.

 



Re: [flexcoders] Re: How to find a host name for a server

2008-02-29 Thread Harald Dehn

Hi you could use

trace( Apllication.application.url );

and there is a UrlUtils class, you could use to extract parts of the url

Harakd

Am 26.02.2008 um 23:36 schrieb Manjith:


ilder we used and availability of these commnads.

We use Flex 2.0.1 which doesn't coer most of these commnads. For
example mx.manager.IBrowser.

therefore is there any easy way for us to find url details within
Flex 2.0.1

Thanks

Manjith

--- In flexcoders@yahoogroups.com, Sujit Reddy [EMAIL PROTECTED]
wrote:

 check out the below URLs

http://livedocs.adobe.com/labs/flex3/html/deep_linking_7.html#251252

http://livedocs.adobe.com/labs/flex3/html/deep_linking_5.html#245869
 Hope this helps.

 Regards,
 Sujit Reddy G

 On Tue, Feb 26, 2008 at 9:46 AM, Manjith [EMAIL PROTECTED] wrote:

  Hi
 
  I am new to FLex 2.0.I want to find a host name within a flex
program.
 
  Also I would like to know any of you guys are using some
commandline
  parameters to passs to flash file.
 
  for example I want to find a parameter to falsh file and within
a flex
  code I should be able to get that parameter values.
 
  Thanks
 
  Manjith
 
 
 



 --
 Regards,
 Sujit Reddy. G








Re: [flexcoders] Re: How to find a host name for a server

2008-02-27 Thread Harald Dehn

Hi you could use

trace( Apllication.application.url );

and there is a UrlUtils class, you could use to extract parts of the url

Harakd

Am 26.02.2008 um 23:36 schrieb Manjith:


ilder we used and availability of these commnads.

We use Flex 2.0.1 which doesn't coer most of these commnads. For
example mx.manager.IBrowser.

therefore is there any easy way for us to find url details within
Flex 2.0.1

Thanks

Manjith

--- In flexcoders@yahoogroups.com, Sujit Reddy [EMAIL PROTECTED]
wrote:

 check out the below URLs

http://livedocs.adobe.com/labs/flex3/html/deep_linking_7.html#251252

http://livedocs.adobe.com/labs/flex3/html/deep_linking_5.html#245869
 Hope this helps.

 Regards,
 Sujit Reddy G

 On Tue, Feb 26, 2008 at 9:46 AM, Manjith [EMAIL PROTECTED] wrote:

  Hi
 
  I am new to FLex 2.0.I want to find a host name within a flex
program.
 
  Also I would like to know any of you guys are using some
commandline
  parameters to passs to flash file.
 
  for example I want to find a parameter to falsh file and within
a flex
  code I should be able to get that parameter values.
 
  Thanks
 
  Manjith
 
 
 



 --
 Regards,
 Sujit Reddy. G








AW: AW: [flexcoders] Rich Text Editor

2008-02-16 Thread Harald Dehn
Hi,

could you give me some hints how to extend the RTE or develop an improved
one?

Harakd

-Ursprüngliche Nachricht-
Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von Weyert de Boer
Gesendet: Freitag, 15. Februar 2008 19:54
An: flexcoders@yahoogroups.com
Betreff: Re: AW: [flexcoders] Rich Text Editor

Well, you can roll that your own I had the idea to write a series of 
articles about how to write custom components for Flex -- and after the 
smiley component I want to work on a RTE component. Only I haven't heard 
back from Adobe yet about this article idea. Maybe I should just put it 
on my blog :)

 Hi Gordon,

 yes but we don’t need the full functionality of buzzword, for example 
 we don’t need tables. Our problems with the RTE component are:

 - htmlText - we like to generate pdf-documents with the .net-backend.

 - missing image support

 - missing page view and a page counter

 Harald Dehn




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






AW: [flexcoders] Rich Text Editor

2008-02-15 Thread Harald Dehn
Hi Gordon,

 

yes but we don't need the full functionality of buzzword, for example we
don't need tables. Our problems with the RTE component are:

 

-  htmlText - we like to generate pdf-documents with the
.net-backend. 

-  missing image support

-  missing page view and a page counter

 

Harald Dehn

 

Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von Gordon Smith
Gesendet: Freitag, 15. Februar 2008 06:03
An: flexcoders@yahoogroups.com
Betreff: RE: [flexcoders] Rich Text Editor

 

 Do you the a chance to get a component from your buzzword-company in the
meantime

 

Are you asking Can we get Buzzword's editor as a Flex component?. That's a
different part of the company, and I'm not aware of any plans to make it
available in component form (either free or for money). I suspect that there
are business reasons to keep it as an Adobe-only application for awhile, but
I'm just an engineer and not involved in such decisions.

 

BTW, what does your CRM app need in a texteditor beyond what RichTextEditor
currently provides? RTL support or something else?

 

Gordon Smith

Adobe Flex SDK Team

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Harald Dehn
Sent: Thursday, February 14, 2008 12:18 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Rich Text Editor

Hi Gordon, 

 

this is a realy good news. Do you the a chance to get a component from your
buzzword-company in the meantime. We need a texteditor for a crm
application we developed in flex.

 

Regards,

Harald Dehn 

 

Am 14.02.2008 um 02:48 schrieb Gordon Smith:









 Why Adobe does not make something decent about this issue?

 

We're working on it! Flash Player 10 (Astro) and Flex 4 are likely to have
a new text engine that will support right-to-left text and other text
improvements.

 

Gordon Smith

! Adobe Fl ex SDK Team

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rafael Faria
Sent: Wednesday, February 13, 2008 4:47 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Rich Text Editor

I know this had been a big subject of discussion in the past but i
want to bring it up again.

Does anybody found a good solution to implement RTE in f! lex?

I tried the iframe solution but it seems that it has some problems
with rendering, someone work it out how to fix it?

I know there is some people from adobe here, so my question is
Why Adobe does not make something decent about this issue?
If adobe is trying to improve the flash player as much as they can,
why do not spend some time in a decent RTE component?

Any suggestion for any good RTE, even a paid one?

Thanks
Raf

 

 

 



AW: [flexcoders] Re: Rich Text Editor

2008-02-15 Thread Harald Dehn
Hi Gordon,

 

Do you have newer informations when a beta or the final release of astro
will be available?

 

Harald

 

 

Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von cmalartre
Gesendet: Freitag, 15. Februar 2008 17:28
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Re: Rich Text Editor

 

Hi Gordon Smith  all,

I thought that the Buzzword aquisition was directly related to Flash
Player code named Astro:

http://labs.adobe.com/wiki/index.php/Astro

Adobe is also developing a library of ActionScript-based text layout
components based on these new APIs to provide easy-to-integrate
features, such as multi-column layout of editable text that
automatically reflows, wrapping around inline images, and handling
tables. With this new architecture, text becomes an extensible part of
the platform -- new text layout features can be delivered without
requiring a new player release.

I hope this is true! I'm working mainly on text intensive application.
One is a text editor for math teachers and the second is a note taking
app.

I want multi-level bullets, tables and images!

Carl-Alexandre Malartre
Scolab

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
Suketu Vyas [EMAIL PROTECTED] wrote:

 I am running under similar kind of RTE problem. my scenario is more
complex.
 I am using FCKEditer which i have integrated with flex using Iframe and
 ExternalInterface API.
 I still have to work on browser compatibility part. but it works really
 well.
 
 ~ Suketu Vyas
 
 On Fri, Feb 15, 2008 at 9:34 AM, Harald Dehn [EMAIL PROTECTED] wrote:
 
  Hi Gordon,
 
 
 
  yes but we don't need the full functionality of buzzword, for
example we
  don't need tables. Our problems with the RTE component are:
 
 
 
  - htmlText - we like to generate pdf-documents with the
  .net-backend.
 
  - missing image support
 
  - missing page view and a page counter
 
 
 
  Harald Dehn
 
 
 
  *Von:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ]
*Im
  Auftrag von *Gordon Smith
  *Gesendet:* Freitag, 15. Februar 2008 06:03
  *An:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  *Betreff:* RE: [flexcoders] Rich Text Editor
 
 
 
   Do you the a chance to get a component from your
buzzword-company in
  the meantime
 
 
 
  Are you asking Can we get Buzzword's editor as a Flex
component?. That's
  a different part of the company, and I'm not aware of any plans to
make it
  available in component form (either free or for money). I suspect
that there
  are business reasons to keep it as an Adobe-only application for
awhile, but
  I'm just an engineer and not involved in such decisions.
 
 
 
  BTW, what does your CRM app need in a texteditor beyond what
  RichTextEditor currently provides? RTL support or something else?
 
 
 
  Gordon Smith
 
  Adobe Flex SDK Team
 
 
  --
 
  *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ]
*On
  Behalf Of *Harald Dehn
  *Sent:* Thursday, February 14, 2008 12:18 AM
  *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  *Subject:* Re: [flexcoders] Rich Text Editor
 
  Hi Gordon,
 
 
 
  this is a realy good news. Do you the a chance to get a component from
  your buzzword-company in the meantime. We need a texteditor for
a crm
  application we developed in flex.
 
 
 
  Regards,
 
  Harald Dehn
 
 
 
  Am 14.02.2008 um 02:48 schrieb Gordon Smith:
 
 
 
 
 
   Why Adobe does not make something decent about this issue?
 
 
 
  We're working on it! Flash Player 10 (Astro) and Flex 4 are
likely to
  have a new text engine that will support right-to-left text and
other text
  improvements.
 
 
 
  Gordon Smith
 
  ! Adobe Fl ex SDK Team
 
 
  --
 
  *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@ flexcoders@
  yahoogroups.com] *On Behalf Of *Rafael Faria
  *Sent:* Wednesday, February 13, 2008 4:47 PM
  *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  *Subject:* [flexcoders] Rich Text Editor
 
  I know this had been a big subject of discussion in the past but i
  want to bring it up again.
 
  Does anybody found a good solution to implement RTE in f! lex?
 
  I tried the iframe solution but it seems that it has some problems
  with rendering, someone work it out how to fix it?
 
  I know there is some people from adobe here, so my question is
  Why Adobe does not make something decent about this issue?
  If adobe is trying to improve the flash player as much as they can,
  why do not spend some time in a decent RTE component?
 
  Any suggestion for any good RTE, even a paid one?
 
  Thanks
  Raf
 
 
 
 
 
  
 


 



Re: [flexcoders] Rich Text Editor

2008-02-14 Thread Harald Dehn

Hi Gordon,

this is a realy good news. Do you the a chance to get a component from  
your buzzword-company in the meantime. We need a texteditor for a  
crm application we developed in flex.


Regards,
Harald Dehn

Am 14.02.2008 um 02:48 schrieb Gordon Smith:



 Why Adobe does not make something decent about this issue?

We're working on it! Flash Player 10 (Astro) and Flex 4 are likely  
to have a new text engine that will support right-to-left text and  
other text improvements.


Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]  
On Behalf Of Rafael Faria

Sent: Wednesday, February 13, 2008 4:47 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Rich Text Editor

I know this had been a big subject of discussion in the past but i
want to bring it up again.

Does anybody found a good solution to implement RTE in flex?

I tried the iframe solution but it seems that it has some problems
with rendering, someone work it out how to fix it?

I know there is some people from adobe here, so my question is
Why Adobe does not make something decent about this issue?
If adobe is trying to improve the flash player as much as they can,
why do not spend some time in a decent RTE component?

Any suggestion for any good RTE, even a paid one?

Thanks
Raf








RE: [flexcoders] Return a person's age

2007-10-03 Thread Harald Dehn
With this method you get will get wrong results( for example age =
11/20/1970 ). For date calculations, including ageInYears we use a DateUtils
class (see below).

Harald



package de.financetec.utils
{
import de.financetec.core.Error2;

/**
 * DateUtils ist eine statische Klasse die Funktionen zum Vergleich
und zur Manipulation 
 * von Date Variablen zur Verfügng stellt.
 * 
 * @author Harald Dehn
 * 
 */
public class DateUtils
{
/**
* Wochentag Montag.
*/
public static const MONDAY:int
= 1;
/**
* Wochentag Dienstag.
*/
public static const TUESDAY:int
= 2;
/**
* Wochentag Mittwoch.
*/
public static const WEDNESDAY:int
= 3;
/**
* Wochentag Donnerstag.
*/
public static const THURSDAY:int
= 4;
/**
* Wochentag Freitag.
*/
public static const FRIDAY:int
= 5;
/**
* Wochentag Samstag.
*/
public static const SATURDAY:int
= 6;
/**
* Wochentag Sonntag.
*/
public static const SUNDAY:int
= 0;

/**
* Zeitteil Sekunde.
*/
public static const DATEPART_SECOND:String
= s;
/**
* Zeitteil Minute.
*/
public static const DATEPART_MINUTE:String
= n;
/**
* Zeitteil Stunde.
*/
public static const DATEPART_HOUR:String
= h;
/**
* Datumsteil Tag.
*/
public static const DATEPART_DAY:String
= d;
/**
* Tag in der Woche.
*/
public static const DATEPART_DAY_OF_WEEK:String
= dw;  
/**
* Tag im Jahr (Anzahl der Tage seit Jahresbeginn).
*/  
public static const DATEPART_DAY_OF_YEAR:String
= dy;  
/**
* Kalenderwoche im Jahr.
*/
public static const DATEPART_WEEK:String
= w;
/**
* Datumsteil Monat.
*/
public static const DATEPART_MONTH:String
= m;
/**
* Datumsteil Quartal (Jan-Mär = 1 und Okt-Dez = 4,
entspricht 3 Monate bei dateAdd()).
*/
public static const DATEPART_QUARTAL:String
= q;
/**
* Datumsteil Jahr.
*/
public static const DATEPART_YEAR:String
= y;


private static const MILLISECONDS_PER_SECOND:Number =
1000;
private static const MILLISECONDS_PER_MINUTE:Number =
1000 * 60;
private static const MILLISECONDS_PER_HOUR:Number
= 1000 * 60 * 60;
private static const MILLISECONDS_PER_DAY:Number
= 1000 * 60 * 60 * 24;
private static const MILLISECONDS_PER_WEEK:Number
= 1000 * 60 * 60 * 24 * 7;

// Public Static


/**
 * Alter einer Person in Monaten.
 * 
 * @param pBirthdate Geburtdatum der Person.
 * @return Alter der Person in Monaten.
 * 
 */
public static function ageInMonth(pBirthdate:Date):Number 
{
var age:Number = getUTCMonthDiff(pBirthdate, new
Date());
return (age = 0) ? age : 0;
}

/**
 * Alter einer Person in Jahren.
 * 
 * @param pBirthdate Geburtsdatum der Person.
 * @return Alter der Person in Jahren.
 * 
 */
public static function ageInYears(pBirthdate:Date):Number 
{
return ageInMonth(pBirthdate) / 12;
}

/**
 * Teile eines Datums (z.B. Sekunden, Tage, Wochen,
Quartale, ...) addieren bzw. subtrahieren.
 * 
 * p
 * @param pDatePart Teil des Datums das verändert werden
soll (erlaubte Werte bsee also/b).
 * @param pValue Anzahl der Teile die addiert, bzw bei
negativen Werten subtrahiert werden.
 * @param pDate Anfangsdatum.
 * @return verändertes Datum.
 * 
 * @see #DATEPART_SECOND
 * @see #DATEPART_MINUTE
 * @see

RE: [flexcoders] PDF in Flex

2007-06-07 Thread Harald Dehn
Not all of our clients want to install the Apollo runtime. For the adobe
folks, it would be fantastic , when a future version of the flash-player
could directly render (with the help of an installed acrobat reader on the
client maschine) pdf-inside  a flash movie…

 

Harald

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dimitrios Gianninas
Sent: Dienstag, 5. Juni 2007 15:21
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] PDF in Flex

 

You should at Adobe Apollo for that (Flash Player for the desktop), it will
have that.

 

Dimitrios Gianninas

Developer

Optimal Payments Inc.

 

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Harald Dehn
Sent: Tuesday, June 05, 2007 4:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] PDF in Flex

Hi,

are there any plans to display PDF-documents directly in a future version of
the flash-player. It should be possible for the flash-player to detect an
installed acrobat reader on the client machine and use it for rendering. 

This would helps us a lot to improve the user experience of our application.

Thanks,

Harald 


AVIS IMPORTANT

WARNING


Ce message électronique et ses pièces jointes peuvent contenir des
renseignements confidentiels, exclusifs ou légalement privilégiés destinés
au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun
privilège ou à aucun autre droit si le présent message a été transmis
involontairement ou s'il est retransmis sans son autorisation. Si vous
n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu
par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi
que toutes ses pièces jointes, de votre système. La lecture, la
distribution, la copie ou tout autre usage du présent message ou de ses
pièces jointes par des personnes autres que le destinataire visé ne sont pas
autorisés et pourraient être illégaux. Si vous avez reçu ce courrier
électronique par erreur, veuillez en aviser l'expéditeur.

This electronic message and its attachments may contain confidential,
proprietary or legally privileged information, which is solely for the use
of the intended recipient. No privilege or other rights are waived by any
unintended transmission or unauthorized retransmission of this message. If
you are not the intended recipient of this message, or if you have received
it in error, you should immediately stop reading this message and delete it
and all attachments from your system. The reading, distribution, copying or
other use of this message or its attachments by unintended recipients is
unauthorized and may be unlawful. If you have received this e-mail in error,
please notify the sender.

 



[flexcoders] PDF in Flex

2007-06-05 Thread Harald Dehn
Hi,

 

are there any plans to display PDF-documents directly in a future version of
the flash-player. It should be possible for the flash-player to detect an
installed acrobat reader on the client machine and use it for rendering. 

 

This would helps us a lot to improve the user experience of our application.

 

Thanks,

Harald 

 

 



RE: [flexcoders] One Item Renderer Component for Multiple Columns in a DataGrid - How to find name of column being rendered?

2007-05-24 Thread Harald Dehn
You could although access the column information in the following way inside
your ItemRenderer

 

  var dg:DataGrid = (listData) ? DataGrid(listData.owner) : null;

  var column:DataGridColumn = (dg) ? dg.columns[listData.columnIndex] as
DataGridColumn : null;

 

Harald

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Flexing...
Sent: Donnerstag, 24. Mai 2007 08:03
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] One Item Renderer Component for Multiple Columns
in a DataGrid - How to find name of column being rendered?

 

As mentioned in my previous email, you can pass the column name as property
to the ItemRenderer

i.e.

 

1. Create a public var columnName in your ItemRenderer

2. Pass the column name as property to the ItemRenderer while creating it.

Here's the code you need to write

 

var colRendererFactory:ClassFactory = new ClassFactory
(com.lehman.smd.util.ValueRenderer);;

colRendererFactory.properties = {columnName:mycol2};

column.itemRenderer = colRendererFactory;

 

http://flex-apollo.blogspot.com/2007/05/single-itemrenderer-for-multiple.htm
l

 

 

On May 24, 2007, at 11:22 AM, Thind, Aman wrote:





 

Hi Flexing,

 

Thanks for the reply!

 

Yes I already set my itemrenderers in actionscript using:

 

column.itemRenderer = new ClassFactory
(com.lehman.smd.util.ValueRenderer);

 

for all my columns.

 

My problem is inside the itemRenderer component, I do not know the name of
the column that invoked it, so do not know which column value to pick and
render

 

Eg this is my renderer:

 



?xml version=1.0 encoding=utf-8?
mx:Text xmlns:mx= http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml; text={formatValue(data)}
color={signColor}
 mx:Script
  ![CDATA[
  
import mx.formatters.NumberFormatter;
  
   [Bindable]
   public var signColor:int;
   
   public function formatValue(data:Object):String
   {
var value:Number = Number(data.Do Not Know Which Column Name To Use As
Many Columns Render Using This  );

if(value  0)
{
 signColor = 0xff;
}
else
{
 signColor = 0x00;
}

return numFormat.format(value);
   }
   
  ]]
 /mx:Script
 
 mx:NumberFormatter id=numFormat rounding=nearest
useThousandsSeparator=true/ 
/mx:Text

--

 

where data = 

resultdetail

 col1

1234.5

/col1

col2

-5342

/col2

/resultdetail

 

Many Thanks,

Aman

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Flexing...
Sent: Thursday, May 24, 2007 2:24 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] One Item Renderer Component for Multiple Columns
in a DataGrid - How to find name of column being rendered?



You need to use Action-Script to set the column renders:

 

 

var colRendererFactory:ClassFactory = newClassFactory(columnRenderer);

colRendererFactory.properties = {columnName:mycol1};

column1.itemRenderer = colRendererFactory

 

var colRendererFactory2:ClassFactory = newClassFactory(columnRenderer);

colRendererFactory2.properties = {columnName:mycol2};

column2.itemRenderer = colRendererFactory2;

 

 

Hope this helps.

 

 

 

On May 24, 2007, at 10:40 AM, Thind, Aman wrote:





 

Hello,

 

I have many columns in my DataGrid that have similar values and I need to
render them in a similar manner.

 

So I wish to write just one itemRenderer component and set that as the
renderer of all these columns.

 

So I believe each column will invoke my renderer when my grid shows up.

 

However, the default data that is passed to the itemRenderer is just the XML
notation of one single row that is currently being renderered in the grid.

 

I do not have any information regarding which column actually invoked my
renderer so do not know which value to use.

 

Eg all my columns have the same component registered as their itemRenderer
and this is what I get in the data variable:

 

resultdetail

 col1

1234.5

/col1

col2

-5342

/col2

/resultdetail

Now in my renderer I want to format the number but I do not know which
column invoked it and so which value to pick.

Is there anything passed to the renderer that tells the header of the column
which is being currently rendered by the custom itemrenderer?

I do not want to write renderer_col1, renderer_col2 etc as the columns and
their dataprovider are dynamic.

Many Thanks,
Aman
LB | Tokyo


 


 


 


 


 


 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - This message is intended only for the personal and confidential
use of the designated recipient(s) named above. If you are not the intended
recipient of this message you are hereby notified that any review,
dissemination, distribution or copying of this message is strictly
prohibited. This communication is for information purposes only and should
not be regarded as an offer to sell 

[flexcoders] WG: Problems with scaleX and scaleY

2007-03-23 Thread Harald Dehn
Hi, 

 

Is there anybody out there who could help me?

 

Please excuse my English,

 

Harald

 

 

  _  

Von: Harald Dehn 
Gesendet: Mittwoch, 21. März 2007 23:36
An: flexcoders@yahoogroups.com
Betreff: Problems with scaleX and scaleY

 

I try to improve my flex application for visually impaired users. I changed
the scaleX and scaleY properties of the application:

 

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* 

minWidth=500 minHeight=400 layout=absolute 

scaleX=1.2 scaleY=1.2  

 

Everything works fine except DisplayObjects which are Using the PopUpManger.
For example: Tooltips are displayed at the wrong place and not scaled and
dropdowns form ComboBoxes  aren’t scaled.

 

Any ideas?

 

Harald



AW: [flexcoders] Re: using itemRenderer with List, how can I set the icon?

2007-03-20 Thread Harald Dehn
 

You could extend ListItemRenderer for your custom itemRenderer and override
updateDisplayList for your code to implement a custom background color. With
this approach the icon should be displayed.

 

Harald 



 


  _  


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Greg Morphis
Sent: Monday, March 19, 2007 4:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: using itemRenderer with List, how can I set the
icon?

Anyone know where I can go and actually maybe get a response from
someone? good grief..

On 3/19/07, Greg Morphis [EMAIL PROTECTED] mailto:gmorphis%40gmail.com 
wrote:
 Can anyone offer any help with this please?

 On 3/16/07, Greg Morphis [EMAIL PROTECTED] mailto:gmorphis%40gmail.com
 wrote:
  Normally List has a iconFunction, I'm using an itemRenderer to give
  the list items a custom background color.. When I do this the icon
  doesn't show.. is there anyway around this?
  Thanks
 


 



AW: [flexcoders] PDF Files

2007-03-09 Thread Harald Dehn
PDF rendering (when Acrobat Reader is installed on the client system) is a
fantastic idea! This would make things much easier.

 

Harald

 

 

  _  

Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von Ben Marchbanks
Gesendet: Freitag, 9. März 2007 12:43
An: flexcoders@yahoogroups.com
Betreff: Re: [flexcoders] PDF Files

 

We do quite a bit of PDF work for publishers and 
digital printing. The method we use for variable 
printing uses a Flex interface which gives the 
user authoring capability via an image rendering 
of the PDF page.

Flex manages all the PDF annotations as data and 
then applies these annotations using a PDF library 
on the server-side.

Would be nice one day if Adobe decide to enable 
Flex with PDF rendering capabilites treating it 
much like any other media object. Hope that's on 
their to to list !

Greg Hesla wrote:
 Hello, all.
 
 Would anyone like to share their experience with creating some sort 
 of web-based PDF-annotation app? I realize that this may not be 
 something that I can do in Flex, but if I can kick it off from within 
 my Flex app, that would work as well.
 
 Any pointers or links that would get me off in the right direction 
 would be much appreciated.
 
 Thanks,
 Greg
 
 

-- 
Ben Marchbanks

::: alQemy ::: transforming information into 
intelligence
http://www.alQemy. http://www.alQemy.com com

::: magazooms ::: digital magazines
http://www.magazoom http://www.magazooms.com s.com

Greenville, SC
864.284.9918

 



[flexcoders] Flex2 jobs in germany

2007-03-08 Thread Harald Dehn
Hi,

 

We are looking for a flex developer in germany. financeTec offers a standard
solution for independent financial advisors in the german market, which is
developed in as3, you could take a look at:

 

http://www.financetec.net http://www.financetec.net/ 

 

Vermittler  9

Mitarbeiter[EMAIL PROTECTED] 

Passwort  demo1212

 

You could get more in formations about the solution and our company on our
website http://www.financetec.de http://www.financetec.de/ .

 

Harald Dehn

 

 


financeTec AG
Hanauer Landstr. 291B
60314 Frankfurt am Main
T  +49 (69) 710475-120
F  +49 (69) 710475-205
M  +49 (151) 17887510
E  [EMAIL PROTECTED]
W   http://www.financetec.de/ www.financeTec.de 

Logo financeTec AG

Handelsregister: Frankfurt am Main, HRB 77546
Ust-IdNr.: DE250048807, Vorstand: Harald Dehn
Vorsitzender des Aufsichtsrats: Michael Müller 



 
WICHTIGER HINWEIS: Bitte senden Sie uns per E-Mail keine vertraulichen
Informationen. Mitarbeiter der financeTec AG sind nicht
einzelvertretungsberechtigt. Es ist es nicht gestattet, diese Nachricht
weiter zu verbreiten oder für eigene oder Zwecke Dritter zu verwenden. Der
Inhalt dieser Nachricht ist vertraulich; diese Nachricht darf nicht ohne
Zustimmung der financeTec AG an Dritte weitergeleitet werden. 

 

 

 

attachment: image001.jpg


AW: [flexcoders] Re: Not able to generate GUID

2007-03-05 Thread Harald Dehn
Hi,

 

there is a static function in the UIDUtil class called createUID(). Ot works
fine in my project.

 

Harald

 

 

Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von scott_flex
Gesendet: Dienstag, 6. März 2007 05:06
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Re: Not able to generate GUID

 


Thanks for the reply... i probably will look into writing my own 
implementation. Never really thought of it...

Generating GUIDs on server, while i can do that, just makes more 
sense if it's done in the flex app itself.

and yes... these IDs will be used as primary keys in my database... 
at least that's the current design i'm thinking about.

I'm generating an XML document in my flex app, where each 
node/element and its attributes represent a single row and child rows 
in a parent child/foreign key relationship.

When i call a web service, i get my xml document which contains pre-
existing primary keys but when i add elements that have not yet had 
been persisted to the database i don't want to both send up my xml 
data and then turn right around and pull it back down just so my new 
xml elements/nodes have the correct primary keys attached. That's 
especially important when i save/send up the xml a second and third 
time.

If i can assign my IDs earlier in the process, that solves that 
issue. I still have to check pre-existence on my server side when i 
actually commit my changes to either run an insert or update sql 
statement.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
Jim Cheng [EMAIL PROTECTED] wrote:

 scott_flex wrote:
  Is there no function or object to generate a GUID, a true 
globally 
  unique identifier?
 
 Just write your own--it's dirt simple. FYI, GUIDs and UUIDs aren't 
 actually guaranteed to be absolutely unique--however, given the 
number 
 of random bits involved, a repeat is statistically highly unlikely 
to 
 happen.
 
 They're essentially just concatenated random bits, although in 
some 
 cases a few bits are derived from MAC addresses (per version 1 
UUIDs, 
 which you won't have to access to) or hashes of a URL (version 3 
and 5 
 UUIDs).
 
 See:
 
 http://en.wikipedia.org/wiki/Globally_Unique_Identifier
 
 http://www.ietf.org/rfc/rfc4122.txt
 
 If you need it to play with a server and you're worried about 
repeats 
 enough to expend some developer cycles, a better use of your time 
is to 
 hash the GUIDs that you're given on the server-side and do a quick 
 search for a collision prior to creating a database entry. This 
tactic 
 also gets you around the possibility of malicious folk passing in 
faked 
 GUIDs that they know may result in a collision.
 
 Jim Cheng
 effectiveUI


 



AW: [flexcoders] Problem with List Item Renderer (and states)

2007-02-26 Thread Harald Dehn
Hi Neil,

 

the item renderer will be reused in a list after an item is outside the
visible area. You could save the state to the underlying data. In your
item renderer you could override the commitProperties method:

 

 

 private function buttonExpandedHandler(event:Event):void {

  // pressing the button

  data[ExpandedState] = (data[ExpandedState] != true ); 

 

 // Change state with effects

}

 

 //

 protected override function commitProperties():void {

  super.commitProperties();

 

  var expandedState:Boolean = ( data  data[ExpandedState] ) ;

  

  // Change state if necessary without effect

}

 

When an item renderer will be reused, the underlying item will be set by the
framework with the data property which calls invalidateProperty. The code is
not tested, but it should work. 

 

Please excuse my English,

Harald

 

 

Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von nwebb
Gesendet: Sonntag, 25. Februar 2007 14:04
An: flexcoders
Betreff: [flexcoders] Problem with List Item Renderer (and states)

 

Hi, 
I have a custom item renderer with two states (expanded and collapsed)
My items are displayed in a List component, and the data is currently coming
from an ArrayCollection.

You can see the page here (click on Gig Calender):
http://www.bathbands.co.uk/test2007/

Here is an example of the problem I'm facing:

1) Click the Read More button of the first item in the List - it will
expand. 
2) Scroll down and you can see that the third and last item have also
expanded.
3) Scroll back up and you will see that the first item is now in the
collapsed state again, but other items are now in the expanded state. 

I'm not sure what's causing the other items to open/close. I guess it has
something to do with Flex redrawing stuff as it goes off screen, and would
appreciate suggestions on how best to prevent this kind of thing from
happening. 

Cheers,
Neil 

 



AW: [flexcoders] Re: Problem with List Item Renderer (and states)

2007-02-26 Thread Harald Dehn
There is a better solution solution:

 

You could save the state to the underlying data. In your item renderer you
could override the commitProperties method:

 

 

 private function buttonExpandedHandler(event:Event):void {

  // pressing the button

  data[ExpandedState] = (data[ExpandedState] != true ); 

 

 // Change state with effects

}

 

 //

 protected override function commitProperties():void {

  super.commitProperties();

 

  var expandedState:Boolean = ( data  data[ExpandedState] ) ;

  

  // Change state if necessary without effect

}

 

 

Harald

 

 

Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von shuell2000
Gesendet: Sonntag, 25. Februar 2007 16:16
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Re: Problem with List Item Renderer (and states)

 

Your problems stem from the fact that Lists reposition and resize
children each time updateDisplayList is called. Which is whenever you
scroll or resize any of their children. List components extend
TileBase which has a method called makeRowsAndColumns which is the
method that is causing you frustration at the moment. Lists were not
meant to hold itemRenderers that can resize themselves. Instead Lists
have built in mouseOver and mouseDown handlers that recolor the
background behind the object causing the mouseEvent and they must have
thought that would be good enough. I recently had to rewrite the list
classes to allow a resize to work on mouseOver of its children. It
was an ugly hack but the project timeline did not allow me to do much
more at the moment. Basically I created my own Tilebase and ListBase
classes then changed the updateDisplayList method and the
makeRowsAndColumns method to leave alone any itemRenderer that was not
in its default state. Aside from a few issues caused by this, it
seems to have solved my issue but is hardly clean enough to post here.
Take a look at those methods I mentioned and see if you can't do
something in them to ignore anything that is transitioning to a new
state or in a new state.

Good Luck,

John Shuell

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
nwebb [EMAIL PROTECTED] wrote:

 Hi,
 I have a custom item renderer with two states (expanded and collapsed)
 My items are displayed in a List component, and the data is
currently coming
 from an ArrayCollection.
 
 You can see the page here (click on Gig Calender):
 http://www.bathbands.co.uk/test2007/
 
 Here is an example of the problem I'm facing:
 
 1) Click the Read More button of the first item in the List - it will
 expand.
 2) Scroll down and you can see that the third and last item have also
 expanded.
 3) Scroll back up and you will see that the first item is now in the
 collapsed state again, but other items are now in the expanded state.
 
 I'm not sure what's causing the other items to open/close. I guess
it has
 something to do with Flex redrawing stuff as it goes off screen, and
would
 appreciate suggestions on how best to prevent this kind of thing from
 happening.
 
 Cheers,
 Neil


 



AW: [flexcoders] Re: WebService base64Binary

2007-02-21 Thread Harald Dehn
We extended the ByteArray Class with a base64 decoder and encoder.

 

Harald

 

  _  

Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von Cato Paus
Gesendet: Mittwoch, 21. Februar 2007 17:11
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Re: WebService  base64Binary

 

Hi have you been on this page http://www.bytearra http://www.bytearray.org
y.org
they are talking about some Base64.as ...

hope it helps

Cato Paus

--- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com,
John Starfire [EMAIL PROTECTED] wrote:

 I don't really know how to deal with an image, encoded with
 base62Binary, that I receive from a webservice (e.g.
 http://www.webservi http://www.webservicex.net/barcode.asmx
cex.net/barcode.asmx).
 
 Is there a chance that I can decode it using Actionscript?
 
 Thanks for your help!
 //Jo


 



ByteArrayEx.as
Description: Binary data


AW: [flexcoders] Re: WebService base64Binary

2007-02-21 Thread Harald Dehn
Sorry I forgot an example:

 

function base64encode(text:String):String {

var ba:ByteArrayEx = new ByteArrayEx();

ba.writeUTFBytes(text);  // Fill ByteArray with
text

ba.base64encode();

ba.position = 0;

return ba.readUTFBytes(ba.length);

}

 

Harald

 

 

  _  

Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von Harald Dehn
Gesendet: Mittwoch, 21. Februar 2007 22:06
An: flexcoders@yahoogroups.com
Betreff: AW: [flexcoders] Re: WebService  base64Binary

 

We extended the ByteArray Class with a base64 decoder and encoder.

 

Harald

 

  _  

Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von Cato Paus
Gesendet: Mittwoch, 21. Februar 2007 17:11
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Re: WebService  base64Binary

 

Hi have you been on this page http://www.bytearra http://www.bytearray.org
y.org
they are talking about some Base64.as ...

hope it helps

Cato Paus

--- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com,
John Starfire [EMAIL PROTECTED] wrote:

 I don't really know how to deal with an image, encoded with
 base62Binary, that I receive from a webservice (e.g.
 http://www.webservi http://www.webservicex.net/barcode.asmx
cex.net/barcode.asmx).
 
 Is there a chance that I can decode it using Actionscript?
 
 Thanks for your help!
 //Jo


 



AW: [flexcoders] Re: Setting UIComponent.errorString creates a black border around the component

2007-01-23 Thread Harald Dehn
Hi,

 

There is a caching problem of the borderColor in the UIComponent class. I
found the following workaround:

 

myClass.validateProperties();

myClass.errorString = ;

 

If you call validateProperties before clearing the errorString property,
everything works fine in my application.

 

Harald

 

  _  

Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von harbaugj
Gesendet: Montag, 22. Januar 2007 21:15
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Re: Setting UIComponent.errorString creates a black
border around the component

 

I am having this same problem as well. Does anyone have the resolution 
to this?

--- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com,
brian_m_riley [EMAIL PROTECTED] 
wrote:

 I've been using the errorString property of UIComponent to remove
 errors associated with TextInput fields, but it seems to put a black
 border around the field instead of just removing the red error border
 and error string. 
 
 Thoughts?
 -riley


 



[flexcoders] HTTP Header with navigateToUrl

2007-01-09 Thread Harald Dehn
Hi, 

 

I am trying to submit a custom http-header with the navigateToUrl
function. Unfortunately my custom header SessionID will not transferred to
the iis. Where is my mistake?

 

Thanks for any help,

Harald

 

 

Code:

 

var urlReq:URLRequest = new URLRequest(Order.ashx?cmd=print);

 

  urlReq.method = URLRequestMethod.GET;

  urlReq.requestHeaders = [new URLRequestHeader(SessionID,
1234567)];

 

  navigateToURL(urlReq);

 

 

 

 

Http Request:

 

HTTP_CONNECTION:Keep-Alive

HTTP_ACCEPT:*/*

HTTP_ACCEPT_ENCODING:gzip, deflate

HTTP_ACCEPT_LANGUAGE:de

HTTP_HOST:www.project-fe.net

HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
1.1.4322; .NET CLR 2.0.50727)

HTTP_UA_CPU:x86

Connection: Keep-Alive

Accept: */*

Accept-Encoding: gzip, deflate

Accept-Language: de

Host: www.project-fe.net

User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
1.1.4322; .NET CLR 2.0.50727)



[flexcoders] unsubscribe

2006-07-28 Thread Harald Dehn
unsubscribe


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

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

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

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





AW: [flexcoders] ASDoc for AS3?

2006-07-11 Thread Harald Dehn





Hi Gordon,

are there any new informations about a releasing 
date?

- Harald


Von: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] Im Auftrag von Gordon 
SmithGesendet: Freitag, 19. Mai 2006 22:32An: 
flexcoders@yahoogroups.comBetreff: RE: [flexcoders] ASDoc for 
AS3?


We have an internal tool 
that we use to create the class documentation, but we're not ready to release it 
with Flex 2 because it isn't ready for prime time. It involves a bunch of steps, 
is tempermental, isn't documented, etc.. It also works only on AS, and not MXML, 
files. But we know the community needs documentation tools so we're looking into 
cleaning it up and releasing it somewhat later. 

- Gordon


-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Suzy 
LawsonSent: Friday, May 19, 2006 7:18 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] 
ASDoc for AS3?

Does anyone know of any libraries yet that can generate 
the Asdoc
(javadoc) for Actionscript 3 classes? Probably too early 
for this kind
of question.

The Adobe team obviously has a nice tool. Any chance 
they can share at
least a watered down version of it on one of their 
blogs!?! :-)





 Yahoo! Groups Sponsor 
~-- 
Everything you need is oneclick away. Make 
Yahoo! your home pagenow.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
~- 


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

Yahoo! Groups Links

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

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

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



__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



WG: [flexcoders] Re: Flash player is not a debugger?

2006-06-29 Thread Harald Dehn





I still have excact the the same problem! :-( 

... and no solution.


Von: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] Im Auftrag von Daniel 
TuppenyGesendet: Donnerstag, 29. Juni 2006 09:56An: 
flexcoders@yahoogroups.comBetreff: RE: [flexcoders] Re: Flash player 
is not a debugger?



I've tried that many times!

If I just install the debug player, FlexBuilder complains 
there's no FP9, so then I went an installed the release player from the Adobe 
site, and can run, but not debug.


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Maerz, 
ToreySent: 28 June 2006 15:51To: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Flash player 
is not a debugger?


I had 
this problem a couple days ago too.

Here 
is how I fixed it.

Use 
add remove programs to Uninstall all flash and shockwave 
players
Uninstall 
Flex builder
Reinstall 
flexbuilder select the option to install IE, Netscape and Firefox 
player.






From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sourcecoderiaSent: Wednesday, June 28, 2006 9:33 
AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Re: Flash player is 
not a debugger?




Regular 
mail not getting through.I'm having the same problem been working to 
solve it all day. No luck.Just can't seem to get a debug working in IE. 
Firefox works. I even went as far as to clean any and all flash related 
stuff from my post.Did not help a bit. Are you all on another local 
other then US, it may have something to do with it..Jason--- 
In [EMAIL PROTECTED]ups.com, 
"Jean-Luc ESSER" [EMAIL PROTECTED] wrote: Same issue 
here. Tried reverting to the beta 3 player, won't work either. 
Uninstalled everything and back on, same problem... Can't find a debug 
player anywhere...  JL  - Original Message 
-  From: Daniel Tuppeny  To: [EMAIL PROTECTED]ups.com 
 Sent: Wednesday, June 28, 2006 4:06 PM Subject: [flexcoders] 
Flash player is not a debugger?I upgraded my 
flash player to v9 this morning. Then later, I installed FlexBuilder 
(assuming it would replace the player, if needed).  Now, 
when I run in debug mode, I get a message saying the current version of my 
flash player is not a debugger. Can I fix this? I can't see my Trace 
statements or hit breakpoints as things are :-(  
 
The information contained in this e-mail and/or any attachments is 
confidential and intended only for the individual(s) to which it is 
addressed. If you are not named as an addressee you must not disclose, copy 
or take any action in reliance of this transmission. This e-mail and its 
attachments have been scanned for viruses by MessageLabs Ltd.  
   
__ 
This email has been scanned by the MessageLabs Email Security 
System. For more information please visit http://www.messagelabs.com/email 
 
__
[Inbound Mail Scanned by 
MessageLabs]__This 
email has been scanned by the MessageLabs Email Security System.For more 
information please visit http://www.messagelabs.com/email 
__

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Flex 2 final - Buf in tabChildren of a Panel

2006-06-29 Thread Harald Dehn





I need to temporay 
disable the tabChildren of a panel. If i set the tabChildren property to false 
and try to change the focus with the tab key, i get the following error 
message:


TypeError: Error #1009: Der Zugriff auf eine Eigenschaft oder eine Methode 
eines null-Objektverweises ist nicht möglich.
at 
mx.managers::FocusManager/mx.managers:FocusManager::isEnabledAndVisible()[C:\dev\GMC\sdk\frameworks\mx\managers\FocusManager.as:590]
at 
mx.managers::FocusManager/mx.managers:FocusManager::isValidFocusCandidate()[C:\dev\GMC\sdk\frameworks\mx\managers\FocusManager.as:818]
at 
mx.managers::FocusManager/mx.managers:FocusManager::getIndexOfNextObject()[C:\dev\GMC\sdk\frameworks\mx\managers\FocusManager.as:871]
at 
mx.managers::FocusManager/mx.managers:FocusManager::keyDownHandler()[C:\dev\GMC\sdk\frameworks\mx\managers\FocusManager.as:1249]
Sample 
code:

?xml version="1.0" 
encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
layout="absolute"mx:Script![CDATA[private 
function clickCheckBox():void {Panel1.tabChildren = 
Check1.selected;trace(Panel1.tabChildren);}]]/mx:Scriptmx:CheckBox 
id="Check1" x="21" y="21" label="TabChildren Panel 1" selected="true" 
tabEnabled="false" click="clickCheckBox()" 
/mx:Panel id="Panel1" x="21" y="73" width="258" height="176" 
layout="absolute"mx:TextInput x="10" 
y="10"/mx:TextInput x="10" 
y="40"/mx:TextInput x="10" 
y="70"//mx:Panel/mx:Application



Harald Dehn

Gutzkowstraße 
27
60594 
Frankfurt

Tel +49 (69) 
61002712
Fax +49 (69) 
15049656
Mobil +69 (151) 
17887510

__._,_.___





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








   



  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___

BEGIN:VCARD
VERSION:2.1
N:Dehn;Harald
FN:Harald Dehn ([EMAIL PROTECTED])
TEL;HOME;VOICE:+49 (69) 61002712
TEL;CELL;VOICE:+49 (151) 17887510
TEL;WORK;FAX:+49 (69) 15049656
ADR;WORK:;;Gutzkowstraße 27;Frankfurt;;60594;Deutschland
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Gutzkowstra=DFe 27=0D=0AFrankfurt 60594=0D=0ADeutschland
ADR;HOME:;;Gutzkowstraße 27;Frankfurt;;60594;Deutschland
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Gutzkowstra=DFe 27=0D=0AFrankfurt 60594=0D=0ADeutschland
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20060302T091719Z
END:VCARD


AW: [flexcoders] Re: Flash player is not a debugger?

2006-06-28 Thread Harald Dehn





me neither... :-(


Von: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] Im Auftrag von Daniel 
TuppenyGesendet: Mittwoch, 28. Juni 2006 17:31An: 
flexcoders@yahoogroups.comBetreff: RE: [flexcoders] Re: Flash player 
is not a debugger?



That didn't work for me :(



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Jean-Luc 
ESSERSent: 28 June 2006 16:10To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Flash player 
is not a debugger?

I just got it to work :

Download uninstaller from adobe site : http://www.adobe.com/shockwave/download/alternates/
Then launch both activeX and normal version 
installers from program files  flex  player  debug

Works on both ie and firefox.

JL


  - Original Message - 
  From: sourcecoderia 
  To: flexcoders@yahoogroups.com 
  Sent: Wednesday, June 28, 2006 4:54 
  PM
  Subject: [flexcoders] Re: Flash player is 
  not a debugger?
  
  
  I can't see how a couple of us could have the problem though. i cleaned 
  everything from beta, even went throuh the registry after i seen i was 
  having problems.Have not had a problem since alpha version like this 
  one. i honestly can't think of anything else to 
  try.:(jason--- In [EMAIL PROTECTED]ups.com, 
  "Daniel Tuppeny" [EMAIL PROTECTED].. wrote: 
   On a colleagues machine here, it works fine. He's never had the 
  beta installed. Is there something been left around from the beta 
  that's screwing this up maybe?   -Original 
  Message- From: [EMAIL PROTECTED]ups.com 
  [mailto:[EMAIL PROTECTED]ups.com] 
  On Behalf Of sourcecoderia Sent: 28 June 2006 15:33 
  To: [EMAIL PROTECTED]ups.com 
  Subject: [flexcoders] Re: Flash player is not a debugger?  
  Regular mail not getting through.  I'm having the same problem 
  been working to solve it all day. No luck.  Just can't 
  seem to get a debug working in IE. Firefox works. I even went as 
  far as to clean any and all flash related stuff from my post.  
  Did not help a bit. Are you all on another local other then US, it 
  may have something to do with it..  Jason 
 --- In [EMAIL PROTECTED]ups.com, 
  "Jean-Luc ESSER" flex@ wrote:   Same issue 
  here.  Tried reverting to the beta 3 player, won't work 
  either.  Uninstalled everything and back on, same 
  problem...  Can't find a debug player anywhere...  
JL- Original Message - 
From: Daniel Tuppeny   To: [EMAIL PROTECTED]ups.com 
Sent: Wednesday, June 28, 2006 4:06 PM  Subject: 
  [flexcoders] Flash player is not a debugger?
  I upgraded my flash player to v9 this morning. 
  Then later, I installed FlexBuilder (assuming it would replace the 
  player, if needed).Now, when I run in debug 
  mode, I get a message saying the current version of my flash 
  player is not a debugger. Can I fix this? I can't see my Trace 
  statements or hit breakpoints as things are :-(
   
  --  The information contained in this e-mail and/or any 
  attachments is confidential and intended only for the individual(s) to 
  which it is addressed. If you are not named as an addressee you 
  must not disclose, copy or take any action in reliance of this 
  transmission.  This e-mail and its attachments have been scanned for 
  viruses by MessageLabs Ltd.   
 
  __ 
   This email has been scanned by the MessageLabs Email Security  
  System.  For more information please visit  http://www.messagelabs.com/email 
 
  __ 
  
   -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
  Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
   Yahoo! Groups Links 
  [Inbound Mail Scanned by 
  MessageLabs]  
  __ 
  This email has been scanned by the MessageLabs Email Security 
  System. For more information please visit http://www.messagelabs.com/email 
   
  __[Inbound Mail Scanned by 
MessageLabs]__This 
email has been scanned by the MessageLabs Email Security System.For more 
information please visit http://www.messagelabs.com/email 
__

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


AW: [flexcoders] converting from screen display to print ready PDF

2006-06-24 Thread Harald Dehn





Hi Mark,

which pdf generator do you use?

Harald


Von: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] Im Auftrag von 
MarkGesendet: Samstag, 24. Juni 2006 00:02An: 
flexcoders@yahoogroups.comBetreff: [flexcoders] converting from 
screen display to print ready PDF


First off, I want to say thanks much for all the efforts not only ofthe 
team that has created Flex but also a thanks to everyone in theFlex 
community.Now I'm gonna pose my question just to see if anyone can point 
me inthe right direction. I have a flex application that has a few 
imageelements drawn within a panel. I am then passing the X and Y 
coordsof those elements to a pdf generator and I'd like to create a 
hiresPDF that looks just like the view on the panel but with all 
hireselements. The problem is that I can't figure out a smart way 
toconvert the pixel coords over to inch/mm/pt measurements needed by 
myPDF generator.Has anyone had to do hi-res prints via PDF before? 
Is there a betterway for me to do this than to try and generate a PDF on the 
fly? Thanks for any help.::Mark
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



WG: [flexcoders] Garbage collection and removeChild [Flex 2 beta 3]?

2006-06-22 Thread Harald Dehn





Is there any answer tothis thread? I 
dohavethesameproblems with the garbage 
collector.





Von: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von 
sourcecoderiaGesendet: Dienstag, 20. Juni 2006 
18:06An: flexcoders@yahoogroups.comBetreff: [flexcoders] 
Garbage collection and removeChild [Flex 2 beta 3]?


From the documents when using removeChild the removed display item is 
added to the garbage collection for later removal. However I'm reusing 
component instances and creating new instance of the same (a sort of tabbed 
interface where children are created and removed at will.The 
listeners for the child component are removed and other objects set to null, 
but; it does not seem to be collected.Should one have to remove all 
objects created through the chain or just on the child being 
removed?I.e. if I instantiate a class called toto through a component 
called texavery and toto creates an instance of titi do I have to unload all 
objects created by or in the children following the entire chain 
texavery  toto  titi where each one unloads it's 
owned/created objects? Or is this cleaned up from the child object on 
down?Is there a way to force the garbage collection clean up, or destroy 
an object completely?I did wait to see if it unloaded 25mins and 
still no change in the process memory usage. However I'm only at this time 
unloading objects created by the child component and not it's children's 
objects.So unload the entire chain or just the first ?Is removeChild 
working properly ?How is this supposed to work, and are there any best 
practices in regards to this?Thanks, Jason
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



AW: [flexcoders] SOAP dateTime to ActionScript date conversion

2006-05-22 Thread Harald Dehn










Hi,



i had the same problem




var dateReg:RegExp
= /^(\d{4})\-(\d{2})\-(\d{2})T(\d{2})\:(\d{2})\:(\d{2})/;

var result:Object
= dateReg.exec(soapDateValue);

return new
Date(Number(result[1]), Number(result[2]) -1,

  Number(result[3]),
Number(result[4]), 

  Number(result[5]),
Number(result[6]));











Von:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von yomahz
Gesendet: Montag, 22. Mai 2006
18:28
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] SOAP
dateTime to ActionScript date conversion





I'm having problems with
Flex2 (b3) properly converting my SOAP
dateTimes to ActionScript dates. The object in the ResultEvent shows
it as a String instead of a Date:

 2006-05-22T05:00:00.000Z

The WSDL definition:

 element name=inventoryDate nillable=true
type=dateTime/

XML generated from the web service:

 ns_inventoryDate:inventoryDate
xmlns:ns_inventoryDate='http://myapp.mycompany.com/jaws'2006-05-22T05:00:00.000Z/ns_inventoryDate:inventoryDate

1) Why is flex deserializing this as a String instead of a Date?

2) Is there a data formatter that will let me specify the format of a
string and convert it to a Date? The Date object's String constructor
will not accept the format above. The debugger shows all of the date's
properties as NaN.












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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











WG: [flexcoders] Flex2B3 - Problems with the garbage collector

2006-05-22 Thread Harald Dehn



Hi,

I am still having problems with the gc (see below), could anyone help me?

Thanks,
Harald

-Ursprüngliche Nachricht-
Von: Manish Jethani [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 22. Mai 2006 17:13
An: Harald Dehn
Betreff: Re: [flexcoders] Flex2B3 - Problems with the garbage collector

Hi Harald,

I'm not aware of any further improvements. Flexcoders is the best
place to ask (as some people from Flash Player team might be hanging
out there).

Manish

On 5/22/06, Harald Dehn [EMAIL PROTECTED] wrote:





 Hi Manish,



 sorry vor contacting you directly, but I still have problems with the gc as described below. Do you know if there will be any improvements of the gc in the final release of Flex2 and FP9?



 Thanks for your time,

 Harald



 


 Von: Harald Dehn
 Gesendet: Donnerstag, 18. Mai 2006 10:18
 An: 'flexcoders@yahoogroups.com'
 Betreff: AW: [flexcoders] Flex2B3 - Problems with the garbage collector



 Hi,



 thanks for your response, but I still have the problem that it takes serveral minutes to free unsused memeory. And If I leave the application alone it never comes back to the memory usage of the beginning (round about 4.5 MB). There seems to be a bug in the gc.



 Harald

 


 Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Manish Jethani
 Gesendet: Mittwoch, 17. Mai 2006 18:27
 An: flexcoders@yahoogroups.com
 Betreff: Re: [flexcoders] Flex2B3 - Problems with the garbage collector
 Wichtigkeit: Hoch



 On 5/17/06, Harald Dehn [EMAIL PROTECTED] wrote:

  I do have some questions about the garbage collector. I have written a small sample which fills a container with thousand buttons (see below). When I start the application it uses round about 4MB of Memory. After adding the buttons, moving around with the mouse and removing all buttons it uses 14MB.
 
  The documentation says that the garbage collector should run every 60 seconds. But with my test application the amount of memory always rise for minutes. After round about 10 minutes the used memory decreases to 6.5 MB. Where is my mistake?

 I haven't looked, but I don't think we have an API similar to Java's
 System.gc(). i.e. you can't request the VM to run garbage collection
 using code. I'm not aware of any runtime parameters either.

  What about circular references? Could the garbage collector remove the following construct when no other references for the TestParent- and TestChild instances exists?

 Yes. The new garbage collector uses a combination of reference
 counting and the mark and sweep algorithm [1]. Circular references
 aren't supposed to be a problem anymore.

 [1]: http://www.osnews.com/story.php?news_id=6864

  Is there functionality in the Flex similar to the IDispose interface in .NET? The Dispose method of the interface will be called by the .NET framework or could called programmatically, it's the place where a class could free all used resources, eventlistener, etc.

 Or finalize() in Java. No, there's not such thing in Flex. Before
 letting an object go, you should call a method on it directly to make
 sure it's cleaned up. For example, before removing a VideoDisplay from
 the display list, you should ensure that stop() and close() are called
 on it (common issue when using a VideoDisplay inside a Repeater).


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




 SPONSORED LINKS


 Web site design development

 Computer software development

 Software design and development


 Macromedia flex

 Software development best practice





 


 YAHOO! GROUPS LINKS



 Visit your group flexcoders on the web.

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

 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



 






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Flex2b3 - Position of an icon in a tab of a tabnavigator

2006-05-11 Thread Harald Dehn










How can I change the position of the icon in a tab of
a tabnavigator control. Unfortuneally the icon is displayed directly at the
left border of the tab (see enclosed pic).



Harry











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











TabNavigator.png
Description: TabNavigator.png


[flexcoders] Flex2b2 : Icon Manipulation

2006-04-08 Thread Harald Dehn










Hi,



I try to manipulate the Icon of a subclass of a Linkbutton
to generate a disabledIcon. Could anyone help me, to convert an Image to a
Class to set as a disabled Image?



Harry



  public class
LinkButtonEx extends LinkButton {

    private var
_DisabledImage:Image;

    

    public override
function setStyle(styleProp:String, newValue:*):void {

  super.setStyle(styleProp,
newValue);

  if (
styleProp == icon ) {

    if(
_DisabledImage == null ) {

 _DisabledImage
= new Image();

 this.addChild(_DisabledImage);

    }

    _DisabledImage.source
= newValue;

    this.callLater(_DisabledIconLoaded);


  }

    }

    

    private function
_DisabledIconLoaded():void {

  _DisabledImage.content.blendMode
= BlendMode.ERASE;

  // doing
some Bit

      super.setStyle(disabledIcon,
_DisabledImage);  // I get an error here

    }

  

    public function
LinkButtonEx() {

  super();

    }

  }   



Harald Dehn



Gutzkowstraße 27

60594 Frankfurt



Tel +49 (69) 61002712

Fax +49 (69) 15049656

Mobil +69 (151) 17887510











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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









BEGIN:VCARD
VERSION:2.1
N:Dehn;Harald
FN:Harald Dehn ([EMAIL PROTECTED])
TEL;HOME;VOICE:+49 (69) 61002712
TEL;CELL;VOICE:+49 (151) 17887510
TEL;WORK;FAX:+49 (69) 15049656
ADR;WORK:;;Gutzkowstraße 27;Frankfurt;;60594;Deutschland
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Gutzkowstra=DFe 27=0D=0AFrankfurt 60594=0D=0ADeutschland
ADR;HOME:;;Gutzkowstraße 27;Frankfurt;;60594;Deutschland
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Gutzkowstra=DFe 27=0D=0AFrankfurt 60594=0D=0ADeutschland
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20060302T091719Z
END:VCARD


AW: [flexcoders] DataGrid bugs

2006-04-07 Thread Harald Dehn










Hi Matt,



You are right, but this
behaviour doesnt make sense. When I write an event listener for
ItemClick, which do some action with the clicked item and get a rowIndex  0
I first have to check, if the user clicked on the header or on a real
row (Please excuse my english J )



Harry









Von: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Im Auftrag von Matt Chotin
Gesendet: Freitag, 7. April 2006
06:11
An: flexcoders@yahoogroups.com
Betreff: RE: [flexcoders] DataGrid
bugs





Ive forwarded this
on. Bug #5 may not really be a bug though, the column headers are counted
as a row in the data grid.



Matt











From:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Harald Dehn
Sent: Wednesday, April 05, 2006
1:09 AM
To: flexcoders@yahoogroups.com
Subject: AW: [flexcoders] DataGrid
bugs





Hi,



I found another bug:




 Bug 5
 If you have a scrollbar with the verticalScrollposition  0 and click
 on a column header. You get an ListEvent.ITEM_CLICK where rowIndex != 0.
 In my opinion the rowIndex of the header should always be 0.






Harry







Von: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Im Auftrag von Sreejith Unnikrishnan
Gesendet: Mittwoch, 5. April 2006
09:18
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] DataGrid
bugs







Adobe,





I have noticed a few bugs with the datagrid.




 Bug 1
 If the headerHeight is set to '0', the headerText overlaps the first row
 content. [I assume this was already on the Flex BugBase]
 Bug 2
 If you have a scrollbar on the datagrid, try scrolling down and then
 resize the datagrid (typically in a VdividedBox situtation), empty rows
 appear in the datagrid
 Note that this does not happen though if you have not scrolled down.
 Bug 3
 Continuing with the above scenario, the mouse-overs become inconsistent.
 Bug 4
 Even if you do not have a scrollBar, if you scale the datagrid
 horizontally, the mouse-overs become inconsistent, typically the first few
 rows do not respond to mouseovers visually.




You may use the code below to reproduce the bugs.











Regards





Sree























Code:











?xml version=1.0
encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
xmlns=* layout=vertical
mx:HDividedBox width=100% height=100%
mx:VDividedBox width=50% height=100%
mx:HBox width=100% height=50% /
mx:HBox width=100% height=50%

mx:DataGrid id=myGrid width=100%
height=100% headerHeight=0

mx:dataProvider

mx:Array id=arr

mx:Object Artist= Kapil Album=All Time Favourites
Price=10/

mx:Object Artist= Kapil Album=Classic Songs
Price=10/

mx:Object Artist= Kapil Album=All Time Favourites
Price=10/

mx:Object Artist= Kapil Album=Classic Songs
Price=10/

mx:Object Artist= Kapil Album=All Time Favourites
Price=10/

mx:Object Artist= Kapil Album=Classic Songs
Price=10/

mx:Object Artist= Kapil Album=All Time Favourites
Price=10/

mx:Object Artist= Kapil Album=Classic Songs
Price=10/

mx:Object Artist= Kapil Album=All Time Favourites
Price=10/

mx:Object Artist= Kapil Album=Classic Songs
Price=10/

mx:Object Artist= Kapil Album=All Time Favourites
Price=10/

mx:Object Artist= Kapil Album=Classic Songs
Price=10/

/mx:Array

/mx:dataProvider

/mx:DataGrid
/mx:HBox
/mx:VDividedBox
mx:HBox width=50% height=100% /
/mx:HDividedBox





/mx:Application














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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











AW: [flexcoders] DataGrid bugs

2006-04-05 Thread Harald Dehn










Hi,



I found another bug:




 Bug 5
 If you have a scrollbar with the verticalScrollposition  0 and click
 on a column header. You get an ListEvent.ITEM_CLICK where rowIndex != 0. In
 my opinion the rowIndex of the header should always be 0.






Harry







Von: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Im Auftrag von Sreejith Unnikrishnan
Gesendet: Mittwoch, 5. April 2006
09:18
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] DataGrid
bugs







Adobe,





I have noticed a few bugs with the datagrid.




 Bug 1
 If the headerHeight is set to '0', the headerText overlaps the first row
 content. [I assume this was already on the Flex BugBase]
 Bug 2
 If you have a scrollbar on the datagrid, try scrolling down and then
 resize the datagrid (typically in a VdividedBox situtation), empty rows
 appear in the datagrid
 Note that this does not happen though if you have not scrolled down.
 Bug 3
 Continuing with the above scenario, the mouse-overs become inconsistent.
 Bug 4
 Even if you do not have a scrollBar, if you scale the datagrid
 horizontally, the mouse-overs become inconsistent, typically the first few
 rows do not respond to mouseovers visually.




You may use the code below to reproduce the bugs.











Regards





Sree























Code:











?xml version=1.0
encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
xmlns=* layout=vertical
mx:HDividedBox width=100% height=100%
mx:VDividedBox width=50% height=100%
mx:HBox width=100% height=50% /
mx:HBox width=100% height=50%

mx:DataGrid id=myGrid width=100%
height=100% headerHeight=0

mx:dataProvider

mx:Array id=arr

mx:Object Artist= Kapil Album=All Time Favourites
Price=10/

mx:Object Artist= Kapil Album=Classic Songs
Price=10/

mx:Object Artist= Kapil Album=All Time Favourites
Price=10/

mx:Object Artist= Kapil Album=Classic Songs
Price=10/

mx:Object Artist= Kapil Album=All Time Favourites
Price=10/

mx:Object Artist= Kapil Album=Classic Songs
Price=10/

mx:Object Artist= Kapil Album=All Time Favourites
Price=10/

mx:Object Artist= Kapil Album=Classic Songs
Price=10/

mx:Object Artist= Kapil Album=All Time Favourites
Price=10/

mx:Object Artist= Kapil Album=Classic Songs
Price=10/

mx:Object Artist= Kapil Album=All Time Favourites
Price=10/

mx:Object Artist= Kapil Album=Classic Songs
Price=10/

/mx:Array

/mx:dataProvider

/mx:DataGrid
/mx:HBox
/mx:VDividedBox
mx:HBox width=50% height=100% /
/mx:HDividedBox





/mx:Application












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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] DataGrid Columnsort - CaseInsensitive

2006-04-04 Thread Harald Dehn










Hello,



is there any posibility to sort the columns of a DataGrid
caseinsensitve?



Harry









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









BEGIN:VCARD
VERSION:2.1
N:Dehn;Harald
FN:Harald Dehn ([EMAIL PROTECTED])
TEL;HOME;VOICE:+49 (69) 61002712
TEL;CELL;VOICE:+49 (151) 17887510
TEL;WORK;FAX:+49 (69) 15049656
ADR;WORK:;;Gutzkowstraße 27;Frankfurt;;60594;Deutschland
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Gutzkowstra=DFe 27=0D=0AFrankfurt 60594=0D=0ADeutschland
ADR;HOME:;;Gutzkowstraße 27;Frankfurt;;60594;Deutschland
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Gutzkowstra=DFe 27=0D=0AFrankfurt 60594=0D=0ADeutschland
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20060302T091719Z
END:VCARD


[flexcoders] How to get the Insance of a CustomCellRendere of a DataGrid

2006-04-03 Thread Harald Dehn
Title: How to get the Insance of a CustomCellRendere of a DataGrid








Hi,

I would like to get access to the Instance of a custom cellrenderer to change the values. How could I implement the function _GetRenderer?

Thanks,

Harry


-

var myDataGrid = new DataGrid();

myDataGrid.addEventListener(ListEvent.ITEM_ROLL_OVER, _EventItem);

myDataGrid.addEventListener(ListEvent.ITEM_ROLL_OUT, _EventItem);   }


private function _EventItem(event:ListEvent):void {

 var _Renderer:MyCustomCellRenderer = _GetRender(event.rowIndex);

 if( _Renderer != null ) {

  switch( event.type ) {

   case ListEvent.ITEM_ROLL_OVER:

_Renderer.Icon.visible = true; // MyCustomCellRenderer has a public property Icon

break;

   case ListEvent.ITEM_ROLL_OUT:

_Renderer.Icon.visible = false;

break;

  }

 }

}

private function _GetRenderer(rowIndex:int):MyCustomCellRenderer {

 ???

}







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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









AW: [flexcoders] How to get the Insance of a CustomCellRendere of a DataGrid

2006-04-03 Thread Harald Dehn










Works fine, thanks for
your help.











Von:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Dirk Eismann
Gesendet: Montag, 3. April 2006
14:46
An: flexcoders@yahoogroups.com
Betreff: RE: [flexcoders] How to
get the Insance of a CustomCellRendere of a DataGrid





Hi,

try it the other way round: implement the logic in
your cell renderer
class. If your renderer implements
mx.controls.listClasses.IDropInListItemRenderer
you can easily setup
listeners for the ListEvent on the parent:

// custom cell renderer snippet
public function set
listData(value:BaseListData):void
{
 if (!setup)
 { 

value.owner.addEventListener(ListEvent.ITEM_ROLL_OVER, listEvent);

value.owner.addEventListener(ListEvent.ITEM_ROLL_OUT, listEvent);
 setup = true;
 }
}

private function listEvent(event:ListEvent):void
{
 // your stuff here
}

Dirk.





 From:
flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of
Harald Dehn
 Sent: Monday, April
03, 2006 2:28 PM
 To: flexcoders@yahoogroups.com
 Subject:
[flexcoders] How to get the Insance of a
CustomCellRendere of a DataGrid
 
 
 Hi,

 I would like to get
access to the Instance of a custom
cellrenderer to change the values. How could I
implement the function
_GetRenderer?

 Thanks,

 Harry



-

 var myDataGrid =
new DataGrid();


myDataGrid.addEventListener(ListEvent.ITEM_ROLL_OVER,
_EventItem);

 myDataGrid.addEventListener(ListEvent.ITEM_ROLL_OUT,
_EventItem);
}


 private function
_EventItem(event:ListEvent):void {


 var _Renderer:MyCustomCellRenderer =
_GetRender(event.rowIndex);


 if( _Renderer != null ) {



switch( event.type ) {



case ListEvent.ITEM_ROLL_OVER:



_Renderer.Icon.visible = true;
// MyCustomCellRenderer has a public property Icon



break;



case ListEvent.ITEM_ROLL_OUT:



_Renderer.Icon.visible = false;



break;



}


 }

 }

 private function
_GetRenderer(rowIndex:int):MyCustomCellRenderer
{


 ???

 }

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

 
 
 
 
 SPONSORED LINKS 
 Web site design
development
http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+
site+design+developmentw2=Computer+software+developmentw3=Software+des
ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac
ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ
 Computer software
development
http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We
b+site+design+developmentw2=Computer+software+developmentw3=Software+d
esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr
acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw
 Software design and
development
http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=
Web+site+design+developmentw2=Computer+software+developmentw3=Software
+design+and+developmentw4=Macromedia+flexw5=Software+development+best+
practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ
 
 Macromedia flex
http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+
developmentw2=Computer+software+developmentw3=Software+design+and+deve
lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1
66.sig=OO6nPIrz7_EpZI36cYzBjw
 Software development best
practice
http://groups.yahoo.com/gads?t=msk=Software+development+best+practice
w1=Web+site+design+developmentw2=Computer+software+developmentw3=Softw
are+design+and+developmentw4=Macromedia+flexw5=Software+development+be
st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw
 



 YAHOO! GROUPS LINKS




 
* Visit your group flexcoders
http://groups.yahoo.com/group/flexcoders
 on the web.

  

* To unsubscribe from this group, send an email
to:

 [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]


  

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













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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











AW: [flexcoders] Flex 2 Beta 2 - Bug with mx.controls.TextInput restrict Property

2006-03-28 Thread Harald Dehn










Hello Gordon,



Please look at the
example: TextInput.restrict =
0-9 ,.\- There is a
backslash before the minus sign, but it doesnt work.



Harry















Von: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Im Auftrag von Gordon Smith
Gesendet: Dienstag, 28. März 2006
09:04
An: flexcoders@yahoogroups.com
Betreff: RE: [flexcoders] Flex 2
Beta 2 - Bug with mx.controls.TextInput restrict Property





No; 'restrict' specifies
what is accepted, not what is rejected.



The problem is that the
minus sign (a.k.a. hyphen) is a metacharacter: look at how you're using it in
0-9 to mean 0 through 9. So you have to escape it by preceding it
with a backslash.



- Gordon











From:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt
 Chotin
Sent: Monday, March 27, 2006 10:48
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex 2
Beta 2 - Bug with mx.controls.TextInput restrict Property





Well youre
including the minus character in your restrict. So it shouldnt
allow negative numbers.











From:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Harald Dehn
Sent: Saturday, March 25, 2006
6:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2 Beta
2 - Bug with mx.controls.TextInput restrict Property





Hello



I try to restrict the input of a TextInput Control
with the following line:



TextInput.restrict
= 0-9 ,.\- + _CurrencySymbol;



Unfortuneally I cant enter negative numbers in
the box (it dont accept the minus character). This example worked fine
with the alpha version of Flex, I already reported the bug for the beta 1
version.



Harry













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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Flex 2 Beta 2

2006-03-27 Thread Harald Dehn










Hello,



are there any predefined Cursors I can use with
Cursormanager, for example a four-way arraow? I would like to change the cursor
during resize and move operations.



Harry









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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









BEGIN:VCARD
VERSION:2.1
N:Dehn;Harald
FN:Harald Dehn ([EMAIL PROTECTED])
TEL;HOME;VOICE:+49 (69) 61002712
TEL;CELL;VOICE:+49 (151) 17887510
TEL;WORK;FAX:+49 (69) 15049656
ADR;WORK:;;Gutzkowstraße 27;Frankfurt;;60594;Deutschland
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Gutzkowstra=DFe 27=0D=0AFrankfurt 60594=0D=0ADeutschland
ADR;HOME:;;Gutzkowstraße 27;Frankfurt;;60594;Deutschland
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Gutzkowstra=DFe 27=0D=0AFrankfurt 60594=0D=0ADeutschland
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20060302T091719Z
END:VCARD


[flexcoders] Flex 2 Beta 2 - Bug with mx.controls.TextInput restrict Property

2006-03-25 Thread Harald Dehn










Hello



I try to restrict the input of a TextInput Control
with the following line:



TextInput.restrict
= 0-9 ,.\- + _CurrencySymbol;



Unfortuneally I cant enter negative numbers in
the box (it dont accept the minus character). This example worked fine
with the alpha version of Flex, I already reported the bug for the beta 1
version.



Harry











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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









BEGIN:VCARD
VERSION:2.1
N:Dehn;Harald
FN:Harald Dehn ([EMAIL PROTECTED])
TEL;HOME;VOICE:+49 (69) 61002712
TEL;CELL;VOICE:+49 (151) 17887510
TEL;WORK;FAX:+49 (69) 15049656
ADR;WORK:;;Gutzkowstraße 27;Frankfurt;;60594;Deutschland
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Gutzkowstra=DFe 27=0D=0AFrankfurt 60594=0D=0ADeutschland
ADR;HOME:;;Gutzkowstraße 27;Frankfurt;;60594;Deutschland
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Gutzkowstra=DFe 27=0D=0AFrankfurt 60594=0D=0ADeutschland
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20060302T091719Z
END:VCARD


Main.mxml
Description: Main.mxml


AW: [flexcoders] Flex2 flash_proxy/Proxy getProperty and Binding

2006-03-15 Thread Harald Dehn










Hi,



you have to use namespace
as well. Here is an example of a SortedList I use in testproject. You can
enumerate the ListKeys with for  in and the Items with for each  in.



Harald



package Helper {

  import
flash.util.Proxy;

  import
flash.util.flash_proxy; 



  use
namespace flash_proxy;

  

  public
class SortedList extends Proxy {

    private
var _Values:Object;

    private
var _Keys:Array;

    private
var _Sorted:Boolean;

    private
var _Count:int;

    

    public
function Add(key:String, value:Object):void {

  if(
_Values.hasOwnProperty(key) ) throw new Error(Key allready
exists.);

  _Values[key]
= value;

  _Count++;

  _Sorted
= false;

    }

    public
function Clear():void {

  _Values
= new Object();

  _Sorted
= false;

  _Count
= 0;

    }

    public
function ContainsKey(key:String):Boolean {

  return
_Values.hasOwnProperty(key);

    }

    public
function get Count():int {

  return
_Count;

    }

    public
function Item(keyindex:Object):Object {

  return
this.getProperty(_GetKey(keyindex));

    }

    public
function Key(index:int):String {

  if(
index  0 || index = this.Count ) throw new RangeError();

  return
this.Keys[index];

    }

    public
function get Keys():Array {

  if(
!_Sorted ) {

    _Keys
= new Array();

    for(var
_Key:String in _Values) {

 _Keys.push(_Key);

    }   

    _Keys.sort();

  }

  return
_Keys;

    }

    public
function Remove(keyindex:Object):void {

  var
_Key:String = _GetKey(keyindex);

  if(
!_Values.hasOwnProperty(_Key) ) _ThrowError();

  delete
_Values[_Key];

  _Sorted
= false;

  _Count--;

    }

    

    override
flash_proxy function getProperty(name:*):* {

  if(
name is QName ) {

    return
_Values[name];

  }

  else
{

    var
key:String = _GetKey(name);

    if(
!_Values.hasOwnProperty(key) ) _ThrowError();

    return
_Values[key];

  }

    }

    override
flash_proxy function setProperty(name:*, value:*):void {

  if(
name is QName ) {

    _Values[name]
= value;

  }

  else
{

    var
key:String = _GetKey(name);

    if(
!_Values.hasOwnProperty(key) ) _ThrowError();

    _Values[key]
= value;

  }

    }

    override
flash_proxy function nextNameIndex(index:int):int {

  if(
index  _Count ) {

    return
index + 1;

  }

  else
{

    return
0;

  }

    }

    override
flash_proxy function nextName(index:int):String {

  return
this.Keys[index -1];

    }

    override
flash_proxy function nextValue(index:int):* {

  return
getProperty(this.Keys[index-1]);

    }



    //Private

    private
function _ThrowError():void {

  throw
new Error(Item doesn't exists.);

    }

    private
function _GetKey(keyindex:Object):String {

  if(
isNaN(Number(keyindex)) ) {

    return
(keyindex as String);

  }

  else
{

    var
_index:int = int(Number(keyindex));

    if(
_index  0 || _index = this.Count ) throw new RangeError();

    return
this.Keys[_index];

  }

    }



    //
Constructor

    public
function SortedList() {

  _Values
= new Object();

  _Sorted
= false;

  _Count
= 0;

    }   

  }

}









Von:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Renaun Erickson
Gesendet: Mittwoch, 15. März 2006
08:49
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Flex2
flash_proxy/Proxy getProperty and Binding





The sample code is located
below. I am trying to find a way to bind
dynamic attributes (when using Proxy class).
I can't get the dynamic
properties to bind, any suggestions or help would
be appreciated.

Renaun

Proxy Class:
package {
 import

AW: [flexcoders] DataGridColumn sortCompareFunction (Flex 2 Beta 1)

2006-03-06 Thread Harald Dehn










Thanks Matt,



so I am waiting for B2. Is
there any public information about the date you are publishing B2?



Harry











Von:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Matt Chotin
Gesendet: Montag, 6. März 2006
07:50
An: flexcoders@yahoogroups.com
Betreff: RE: [flexcoders]
DataGridColumn sortCompareFunction (Flex 2 Beta 1)





Yes, the docs are wrong
on b1 on the signature. If you provided a custom comparator in b1 it may
be that you need to know whether you wanted ascending or descending though I
thought we were handing it correctly. Im pretty sure it behaves
correctly in b2 though.



Matt











From:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Harald Dehn
Sent: Sunday, March 05, 2006 4:51
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]
DataGridColumn sortCompareFunction (Flex 2 Beta 1)





Hello,



I do have some problemens with a custom sort compare
function in a DataGrid. In the Columnn I like to sort birthdates of persons.
Regarding the manunal the callback function should have the following signature



mySortCompareFunction(obj1 :
Object, obj2
: Object, columnIndex
: Number) : Number



With this signature I get the following error message



ArgumentError: Error
#1063: Argument count mismatch on CellRenderer::DateCellRenderer/Compare().
Expected 3, got 2


at mx.collections::Sort/mx.collections:Sort::internalCompare()


at Array/sort() 


[]



So I tried the following function with only two
arguments:




var _ColumnName:String = birthDate;




public function Compare(pRow1:Object,
pRow2:Object):Number {


var _T1:Number;


var _T2:Number;


if( pRow1[_ColumnName] == null ) {


if( pRow2[_ColumnName] == null ) 


return 0;


else 


return -1;


}


else _T1 = pRow1[_ColumnName].time;


if( pRow2[_ColumnName] == null ) 


return 1;


else {


_T2 = pRow2[_ColumnName].time;


if( _T1  _T2 ) return -1;


if( _T1  _T2 ) return 1;


return 0;


}


}



This works fine with one exception; the rows are
always sorted ascend, even when the sort arrow indicates that the
rows should be sorted descant.



Where is my mistake?



Harry










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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] DataGridColumn sortCompareFunction (Flex 2 Beta 1)

2006-03-05 Thread Harald Dehn










Hello,



I do have some problemens with a custom sort compare
function in a DataGrid. In the Columnn I like to sort birthdates of persons.
Regarding the manunal the callback function should have the following signature



mySortCompareFunction(obj1 :
Object, obj2
: Object, columnIndex
: Number) : Number



With this signature I get the following error message



ArgumentError: Error
#1063: Argument count mismatch on CellRenderer::DateCellRenderer/Compare().
Expected 3, got 2

 at
mx.collections::Sort/mx.collections:Sort::internalCompare()

 at
Array/sort() 

 []



So I tried the following function with only two
arguments:



 var
_ColumnName:String = birthDate;



 public function Compare(pRow1:Object, pRow2:Object):Number
{

 var
_T1:Number;

 var
_T2:Number;

 if(
pRow1[_ColumnName] == null ) {

 if(
pRow2[_ColumnName] == null ) 

 return
0;

 else


 return
-1;

 }

 else
_T1 = pRow1[_ColumnName].time;

 if(
pRow2[_ColumnName] == null ) 

 return
1;

 else
{

 _T2
= pRow2[_ColumnName].time;

 if(
_T1  _T2 ) return -1;

 if(
_T1  _T2 ) return 1;

 return
0;

 }

 }



This works fine with one exception; the rows are always
sorted ascend, even when the sort arrow indicates that the rows
should be sorted descant.



Where is my mistake?



Harry









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









BEGIN:VCARD
VERSION:2.1
N:Dehn;Harald
FN:Harald Dehn ([EMAIL PROTECTED])
TEL;HOME;VOICE:+49 (69) 61002712
TEL;CELL;VOICE:+49 (151) 17887510
TEL;WORK;FAX:+49 (69) 15049656
ADR;WORK:;;Gutzkowstraße 27;Frankfurt;;60594;Deutschland
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Gutzkowstra=DFe 27=0D=0AFrankfurt 60594=0D=0ADeutschland
ADR;HOME:;;Gutzkowstraße 27;Frankfurt;;60594;Deutschland
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Gutzkowstra=DFe 27=0D=0AFrankfurt 60594=0D=0ADeutschland
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20060302T091719Z
END:VCARD


AW: [flexcoders] Coustom cellRenderer in AS3 for a DataGrid

2006-03-03 Thread Harald Dehn










Hi



here ist the
sourcecode I am experimenting with Unfortunealy the setValue function (I
found a lot of examples for flash 8) doesnt work with AS3. Do have any
idea?



Regards,

Harry



package
CellRenderer {

  import
mx.controls.Image;

  import
mx.controls.Label;

  import
mx.containers.HBox;

  import
mx.core.IDataObject;

  

  public
class KundeCellRenderer extends HBox {

    [Embed(source=Kunde.png)]

    public
static const cKundeImage:Class;

    [Embed(source=Kunde_Del.png)]

    public
static const cKundeDeleteImage:Class;

    

    private
var _Icon:Image;

    private
var _Label:Label;

    private
var _DataObject:Object;





    public
function setValue(str:String, item:Object, sel:Boolean):void {

  _Label.text
= item.KundenName;

    }



    protected
override function createChildren():void {

  super.createChildren();

  this.setStyle(verticalAlign,
middle);

  this.setStyle(marginLeft,
6);

  _Icon
= new Image();

  _Icon.source
= KundeCellRenderer.cKundeImage;

  this.addChild(_Icon);

  _Label
= new Label();

  //
_Label.text = 1234;

  this.addChild(_Label);

    }



    public
function KundeCellRenderer() {

    }

  }

}











Von:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von jeremy lu
Gesendet: Freitag, 3. März 2006
16:09
An: flexcoders@yahoogroups.com
Betreff: Re: [flexcoders] Coustom
cellRenderer in AS3 for a DataGrid





what you want to do with
it ?



On 3/3/06, harald_dehn
[EMAIL PROTECTED] wrote:

Hello,

does anyone know how to write a custom cellrenderer for a datagrid in
AS3. All examples i have found using MXML or were written for flash8
(using setValue function). Unfortunealy this approach doesn't work in 
AS3...

Harry






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:

[EMAIL PROTECTED]

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















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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.