Re: [flexcoders] QTP plug in?

2007-01-15 Thread João Fernandes

Dimitrios,

http://www.adobe.com/cfusion/tdrc/index.cfm?loc=en%5Fusproduct=flex

download the Flex Automation Package (bottom of the page).

João Fernandes

On 14/01/07, Dimitrios Gianninas [EMAIL PROTECTED]
wrote:


   Hi,

Has anyone found the QTP plug in after installing Flex Builder 2.0.1 or
FDS 2.01? I cant seem to find it... for those that do have it, did u have
to ask Adobe directly?

*Dimitrios Gianninas*
*RIA Developer*
*Optimal Payments Inc.*


*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.

 





--

João Fernandes


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

2007-01-15 Thread phipzkillah
Daniel,

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

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

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

mx:columns
mx:Array  mx:DataGridColumn 
dataField=@name
headerText=Name/ mx:DataGridColumn dataField=@total
headerText=Total/
/mx:Array
/mx:columns

That should to it...

Phil

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

 Hi,
 
 I want to have 3 datagrids with the same dataprovider but show 
 different part of it according to the filterFunction? Is it possible? 
 Or i need to copy the arraycollection into three and each have to 
 update back the original one by the observe tag by adobe??? Anyone 
 has any idea? Thanks
 
 Daniel





[flexcoders] flexbuilder 2.01 (windows version) CTRL + TAB keys

2007-01-15 Thread bhaq1972
in flexbuilder 2 CTRL+TAB would allow you to move between any opened 
files.
In this new version this is no longer the case. does anyone know what 
the new key combination is?

thanks



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

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



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



Daniel,

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

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

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

mx:columns
mx:Array mx:DataGridColumn dataField=@name
headerText=Name/ mx:DataGridColumn dataField=@total
headerText=Total/
/mx:Array
/mx:columns

That should to it...

Phil

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

 Hi,
 
 I want to have 3 datagrids with the same dataprovider but show 
 different part of it according to the filterFunction? Is it possible? 
 Or i need to copy the arraycollection into three and each have to 
 update back the original one by the observe tag by adobe??? Anyone 
 has any idea? Thanks
 
 Daniel




 

-

An electronic message is not binding on its sender.

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

-

 


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



[flexcoders] Re: ComboBox ItemEditor

2007-01-15 Thread bhaq1972
 
 Not sure if this is even possible, but in any case, I can't seem to
 find anything that can listen to a dispatched event from the 
editor.
 I've tried listening for the event on the datagrid, the datagrid
 column, and the component containing the datagrid... all giving
 errors.  Is this not possible? Or is there a better way to 
approach this?


why don't you create a custom event (with bubbles=true) which your 
datagrid listens to and your itemEditor dispatches

in mx:DataGrid initialize=startUP()
public function startUP():void 
{
  addEventListener(myEvent, myEventHandler);
}
public function myEventHandler(e:myEvent):void
{
  trace(something);
}

in your comboBox itemEditor mx:ComboBox change=doChange(event)
public function doChange(event:Event):void
{
 dispatchEvent(new MyEvent());
}

MyEvent.as
package
{
import flash.events.Event;

public class MyEvent extends Event
{

   public function MyEvent()
   {
  super(myEvent, true, true);

   }
}
}

see if that works. if it does, i'm sure you'll need to add a few 
extra bits to this.







Re: [flexcoders] making an entire hbox item linkable?

2007-01-15 Thread Tom Chiverton
On Sunday 14 January 2007 09:11, [EMAIL PROTECTED] wrote:
 One solution I can think of is :
 set the buttonmode of HBox to true and on click open the url.
 buttonMode=true click=navigateToURL(new URLRequest('www.yahoo.com
 '),'_blank')

That's clickable, not linkable :-)

-- 
Tom Chiverton
Helping to assertively create next-generation technologies



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

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

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] Re: Adding a row at bottom in datagrid with total of all other rows

2007-01-15 Thread greenfishinwater
Janis,

I haven't tried this in Flex, but I had a similar problem years ago
with VB, where I wanted the total of all the rows to always be the
last row displayed in the grid. As you know scrolling in the grid is
the problem.

So the easy solution is to create a second grid that has a single row,
and no headers, and position that at the bottom of your main data
grid. The columns will have the same widths as the main grid.

Hope this helps 

Andrew

--- In flexcoders@yahoogroups.com, Janis Radins [EMAIL PROTECTED] wrote:

 I just tried to make same thing yesterday.
 Collecting values is not a problem, and there is no problem with
adding that
 row to dataProvider.
 Though I ran in huge problems while trying to keep that line on
bottom of
 dataGrid when user is rearanging data in table.
 Code looked something like this:
   private function onSorting(event:DataGridEvent):void {
 setTimeout(function ():void {
 for(var i:uint = 0;
idisplayTable.dataProvider.length;
 i++){
 if(displayTable.dataProvider[i].num == ) {
 var totals:Object =
 displayTable.dataProvider.removeItemAt(i);
 displayTable.dataProvider.addItem(totals);
 displayTable.invalidateList();
 return;
 }
 }
 }, 10);
 }
 setTimeout is needed because DataGridEvent.HEADER_RELEASE is broadcasted
 before actual rearranging of data.
 This code actually never worked as I wanted to. I cought some
strange tihngs
 during testing like
 displayTable.dataProvider.addItemAt(totals, 3);
 trace(displayTable.dataProvider.getItemIndex(totals)); wont trace 3, but
 last value, so theres maybe a bug in ArrayCollection class, or thats
only me
 who is doing something wrong.
 
 Anyways, if someone has ideas how to keep one row constantly at
bottom, I
 preciate that.
 
 Janis





Re: [flexcoders] should cairngorm commands call other commands.

2007-01-15 Thread Tom Chiverton
On Monday 15 January 2007 00:05, Robin Burrer wrote:
 I started sending new cairngorm events in the on result method of my
 commands but actually I find this approach rather messy.

This comes up all the time on the list.
The default answer is now 'search the archive' I think :-)

-- 
Tom Chiverton
Helping to preemptively scale high-yield solutions



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

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

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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


Re: [flexcoders] Data Binding warning -- PHP, Weborb for PHP

2007-01-15 Thread Tom Chiverton
On Sunday 14 January 2007 20:57, jason_panko wrote:
 Any suggestions?

Mark the data provider variable [Bindable].

-- 
Tom Chiverton
Helping to simultaneously monetize synergistic patterns



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

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

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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


Re: [flexcoders] how to draw over an image

2007-01-15 Thread Tom Chiverton
On Friday 12 January 2007 12:10, dodger6135396 wrote:
 Please is this even possible?. Is there a technique for doing this?.

Have a look at the Graphics class on LiveDocs. Most objects have a graphic 
property to give you an initial handle on the canvas.

-- 
Tom Chiverton
Helping to ambassadorially initiate synergistic solutions



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

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

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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


Re: [flexcoders] Minimized Panel

2007-01-15 Thread Tom Chiverton
On Friday 12 January 2007 15:24, Pavel Zabelin wrote:
 Hi all! People have you any idea how to develop Panel that have minimize
 functionality?

Add a button to the title bar that sets a new height and set of co-ordinates, 
I'd imagine.

-- 
Tom Chiverton
Helping to appropriately customize industry-wide action-items



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

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

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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


Re: [flexcoders] datagrid row moves up to the header when scrolled?

2007-01-15 Thread Tom Chiverton
On Friday 12 January 2007 14:39, arpan srivastava wrote:
 I am facing lot of problem with datagrid. In my datagrid i have area
 chart in each cell. When i scroll the datagrid down, then first row moves
 upto the header instead of disappearing and extra comes from down,

Are you using custom item renders ?

-- 
Tom Chiverton
Helping to confidentially maximize eigth-generation channels



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

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

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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


Re: [flexcoders] Cairngorm VO question

2007-01-15 Thread Tom Chiverton
On Sunday 14 January 2007 00:56, Kevin wrote:
 public var bookList: BookListVO;

 However, I am having problems extending the ArrayCollection class

You can use meta data hints ([]) to indicate the types an ArrayCollection 
contains.

-- 
Tom Chiverton
Helping to dramatically streamline end-to-end users



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

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

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] FDT + FlexBuilder

2007-01-15 Thread Lieven Cardoen
I installed FlexBuilder plugin for Eclipse, and now .as files are
allways opened with the actionscript editor from Flex, and no longer
with FDT.

 

Perspective is set to Flash, and I thought FDT was associated with that
perspective.

 

Please help me with this, because AS2 files opened with ActionScript
editor from Flex isn't really a joy...

 

Lieven

Lieven Cardoen
Application developer

indiegroup
interactive digital experience
engelse wandeling 2 k18 
b8500 kortrijk 

 

 



[flexcoders] SVN ( Subversion ) and Flex Builder

2007-01-15 Thread Jerome Clarke a.k.a sinatosk

This is what I do when I come to create a new Flex project using Adobe Flex
Builder and Subversion

- I create a temporary directory and inside that directory I create 3 more
called 'branches', 'trunk' and 'tags'

- I create a Flex project for example Gallery

- I then create a new repository in subversion

- I then copy only the source code files ( 'mxml' and 'as' ) into the
'trunk' directory which is in the temporary directory I created earlier

- I then import the tempoaray directory into my new repository

- I then delete the temporary directory

- I then setup the repository in the Flex builder and check it out again
creating the same project again but ends with  SVN for example Gallery
SVN

- I then delete the project Gallery

thats it :p

How do you do yours when you first start a Flex project along with
subversion. I'm interested/curious/wondering :p


[flexcoders] scrollToIndex just won't work ... any workarounds ?

2007-01-15 Thread amigo_fd
Hello,

Any ideas why scrollToIndex won't work ? Tried it on a tilelist,
datagrid, ... all without any result. Not even an error message !


This works, as the last item is selected in the tilelist:

tlProductsSearchResults.selectedIndex =
tlProductsSearchResults.dataProvider.length - 1;


But this one doesn't do a thing:

tlProductsSearchResults.scrollToIndex(tlProductsSearchResults.dataProvider.length
- 1);

Best regards,
Frank



[flexcoders] Can we some how create HTML table in Flex

2007-01-15 Thread KP
 

Hi All,

 

As per the subject line .Can we create the html table structure as given
below in FLEX using htmlText attribute of text area.

I know that FLEX does not support table tag of html to be used in htmlText
attribute of TextArea.But can we some how achieve this.

Any approach will help. Thanks in Advance..

 

table

tr

tdKumar/td

/tr

 tr

tdPal/td

 /tr

 tr

tdJain/td

 /tr

   /table   

 

Thanks,

 Kumar

 



[flexcoders] Re: sort datagridcolumn on numeric field - use sortCompareFunction ?

2007-01-15 Thread amigo_fd
any ideas on how to do this with sortCompareFunction ?

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

 Hello, it looks like all data in a datagrid is treated as text. So if
 you sort a column with only numeric fields it is sorted on the value
 of the textual contect, instead of the numeric value, like this:
 
 1095
 111
 1276
 144
 ...
 
 I already converted my webservice-result to numbers at loading, but
 sorting keeps using text-value ... How to change this ?
 
 dgInvoiceListGrouped.dataProvider = new XMLListCollection(x.children());
 var GroupedArray:Array = [];
   
 for (var j:Number = 0; j  dgInvoiceList.dataProvider.length; j++) {  
 GroupedArray[j] = {Name:
 dgInvoiceListGrouped.dataProvider.getItemAt(j).Name.toString(),
   Country:
 dgInvoiceListGrouped.dataProvider.getItemAt(j).Country.toString(),
   GroupedTotalExcl:

Number(dgInvoiceListGrouped.dataProvider.getItemAt(j).GroupedTotalExcl.toString()),
   GroupedTotalIncl:

Number(dgInvoiceListGrouped.dataProvider.getItemAt(j).GroupedTotalIncl.toString())};
 }
   
 dgInvoiceListGrouped.dataProvider = [];
 dgInvoiceListGrouped.dataProvider = GroupedArray;





[flexcoders] Re: Filters with DataGrid - Excel

2007-01-15 Thread sanjaypmg
Hi,

I have tried to get column index in my testCombo.mxml by importing  
mx.controls.dataGridClasses.DataGridListData But I am not able to 
get column index or column name.

Could anyone please help me? so that i can complete the task and 
populate code for all.

Thanks,
Sanjay sharma

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

 Sanjay,
 
 Did you have any luck converting the DG Header Filter cell 
renderer to
 Flex 2.0?  These are the cons that were posted with the code 
snippet:
 
 CONS
 1) you must maintain the same dataProvider.
 2) sorting is no good. you might want to re-sort after a filter is
 done (but providing events and what not are still something I need 
to
 provide, probable a modelChanged event utilizing the 
eventName 'filter'
 
 There is still a lot to do for this renderer to make it more 
usable,
 but I figure I've gotten everyone to a dropping off point it 
shouldn't
 be too hard. As I progress with this I'll post more to this thread
 
 #
 
 I'm not sure exactly what you are trying to do.  Do you just simply
 want a combo-box that you select a field in the list and have it 
sort
 the datagrid?  If so I believe you need to use an ArrayList 
collection
 for your dataprovider.  
 
 The link that I gave you earlier seems like it would be the best 
for
 filtering a datagrid as you would be able to filter on each
 field/column by clicking on the header and selecting an item - 
which
 is exactly what Excel does.
 
 If you were able to convert that datagrid header filter cell 
renderer
 to Flex 2.0 can you please post the source up here?
 
 -Phil
 
 --- In flexcoders@yahoogroups.com, sanjaypmg sanjaypmg@ wrote:
 
  Hi,
  
  I have tried it but facing a problem when I try to access 
  DataCollection from another MXML testCombo.mxml. 
  
  Please Suggest:::
  
  See the following Code:
  
  filterTest.mxml
  
  ?xml version=1.0 ?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;  
  xmlns=../*  
  
  mx:Script
  ![CDATA[
  import mx.collections.ArrayCollection;
  import mx.core.ClassFactory;
  
  public var object2:Object = new Object();
  public var object:Object = new Object();
  [Bindable]
  
   
   [Bindable]
 public var authorsDataProvider : ArrayCollection = new 
  ArrayCollection( [
  { Country: USA, Gold: 35, Status:Active, 
  URL:http://www.google.com; },
  { Country: China, Gold: 32, 
  Status:Deactive,URL:http://www.yahoo.com},
  { Country: Russia, Gold: 27,Status:Deactive, 
  URL:http://www.hotmail.com; },
  { Country: India, Gold: 12, 
  Status:Active,URL:http://www.gmail.com},
  {Country: Russia, Gold: 27, 
  Status:Deleted,URL:http://www.hotmail.com; },
  {Country: Russia, Gold: 27, 
  Status:Deleted,URL:http://www.hotmail.com; } ]);
  
  ]]
  /mx:Script
  mx:Panel title=Header Filter width=100% height=100%
mx:DataGrid id=grid 
dataProvider={authorsDataProvider} 
  width=100% height=100% sortableColumns=false   
  mx:columns
mx:Array
  mx:DataGridColumn width=300 headerText=Country 
  dataField=Country /
  mx:DataGridColumn width=300 headerText=Value 
  dataField=Gold/
  mx:DataGridColumn width=300 headerText=Status 
  dataField=Status headerRenderer=testCombo/
  mx:DataGridColumn width=300 headerText=URL 
  dataField=URL/
/mx:Array
  /mx:columns
/mx:DataGrid
  /mx:Panel
  /mx:Application
  
  
  
  testCombo.mxml:
  
  
  ?xml version=1.0 encoding=utf-8?
  
  mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
  mx:Label text=Sale Price!/
  mx:ComboBox id=cboAuthorsStatusFilter
  dataProvider={authorsStatusArray} 
  change=filterAuthorsGrid();
  
  
  
  !-- dataProvider={_parent._parent.gridData}--
  mx:Script
  ![CDATA[
  import mx.controls.Alert;
  import mx.collections.*;
  [Bindable]  
  public var authorsArray:Array = [All,
  Active,
  Deactive,
  Deleted];
  
   [Bindable] 
  public var authorsStatusArray : Array = 
  populateAuthorsStatusArray(authorsArray);
  
  public function populateAuthorsStatusArray
  (authorsArray:Array):Array
  {
  //Alert.show
  (authorsArray: +authorsArray.toString())
  var statusArrayHashMap : Object = 
  new Object();   
  var statusArray : Array = new Array; 
  var n:int = authorsArray.length; 
  for (var i:int = 0; i  n; 
  i++) 
  {
  if (statusArrayHashMap

[flexcoders] Flex Data Services Half off?

2007-01-15 Thread girardklly
FYI! I came across an eBay auction for Flex Data Services today.  It 
appears they are selling it for half off or best offer. If anyone is 
looking to purchase Flex Data Services for cheap this might be a good 
opportunity. :D

Adobe Flex Data Services 2- Enterprise Edition

http://cgi.ebay.com/Adobe-Flex-Data-Services-2-Enterprise-
Edition_W0QQitemZ140071933216QQihZ004QQcategoryZ41877QQssPageNameZWDVWQQ
rdZ1QQcmdZViewItem





Re: [flexcoders] should cairngorm commands call other commands.

2007-01-15 Thread Ben Yee

Hi Robyn,

Another way you can do this is by extending your class to use the
SequenceCommand

That way you can set your next command in your constructor and call this on
your're command result

check out
http://www.cairngormdocs.org/docs/cairngorm_2_1/com/adobe/cairngorm/commands/SequenceCommand.html

hope that helps
cheers
ben

On 1/15/07, Robin Burrer [EMAIL PROTECTED] wrote:


Hi all,



I'm working on flex application using the cairngorm framework and I ask
myself if commands should call other commands.

E.g. another event is triggered in the result method of the command. Note
that I actually run in this problem when I try to handle my client
application logic, not for server requests.



I started sending new cairngorm events in the on result method of my
commands but actually I find this approach rather messy.

Should I dispatch all events in my views? That however means that my views
are handling some of my application logic. I think they are not supposed to
do that…

Or should I create a new form commands that only manage other commands?
That would add another level of complexity though …



Robin









 



Re: [flexcoders] making an entire hbox item linkable?

2007-01-15 Thread

Tom,

read the mail sent by Kasey in reply to your email.
He wrote:

yeah, ive seen that -- its not quite what i need...i need to make
the entire thing clickableit seems the history manager is just
for enabling the browsers back and forward buttons to work...again,
i just need to make the entire Hbox clickable


Any comments now ?

Thanks


On 1/15/07, Tom Chiverton [EMAIL PROTECTED] wrote:


On Sunday 14 January 2007 09:11, [EMAIL PROTECTED] wrote:
 One solution I can think of is :
 set the buttonmode of HBox to true and on click open the url.
 buttonMode=true click=navigateToURL(new URLRequest('www.yahoo.com
 '),'_blank')

That's clickable, not linkable :-)

--
Tom Chiverton
Helping to assertively create next-generation technologies



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

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

CONFIDENTIALITY

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

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



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






[flexcoders] Problem with web services over SSL in Internet Explorer

2007-01-15 Thread d_kornas
Hi

Can anyone help with configuration of SSL in flex application that
connects to web services over https? Actually, I have the problem with
Internet Explorer (in Firefox it's all OK), because every time I load
my flex client I recieve an error message saying:

[RPC Fault faultString=HTTP request error
faultCode=Server.Error.Request faultDetail=Unable to load WSDL. If
currently online, please verify the URI and/or format of the WSDL
(https://localhost:8443/recrutidoo/services/CVService?wsdl)]
at mx.rpc.soap::WSDLParser/::dispatchFault()
at
mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::httpFaultHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at ::DirectHTTPMessageResponder/errorHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()

I've read about problems with self-signed certificates (I'm using it),
but adding them to trusted certs didn't fix the problem. 

Iva also tried to follow suggestions listed here:
http://weblogs.macromedia.com/lin/archives/flex/security/index.cfm ,
but they also didn't solve the problem.

Any hints will be very helpful.



Dominik Kornas





[flexcoders] How to get message from server exceptions in flex client application

2007-01-15 Thread d_kornas
Hi

I'm developing some client-server application. The client is made in
flex and server is written in Java using xFire
(http://xfire.codehaus.org/) SOAP framework which helps me to create
and expose web services which are called by my client.

My problem is when the web service throws an exception on server side
(which is my custom exception type with some custom data inside), then
my flex client calls properly the fault-handling function, but it
cannot recognize what's inside the exception and instead it tells me
that Error #2032: Stream Error occured.

My question is: how can I make my flex client know what type of
exception I throw from web service. It's important for me, because I
want to pass some error message inside the exception.

One more thing: I want to avoid situation when I return data from
service wrapped in some object which contains both raw data and some
information about any exceptions or other problems. I want to separate
those things, let services return what they should like strings,
arrays etc. , and if something goes wrong they should throw an
exception with custom message describing the problem.

Dominik Kornas




RE: [flexcoders] QTP plug in?

2007-01-15 Thread Dimitrios Gianninas
Ahh perfect, just missed that, thanks!
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of João 
Fernandes
Sent: Monday, January 15, 2007 3:49 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] QTP plug in?




Dimitrios,

http://www.adobe.com/cfusion/tdrc/index.cfm?loc=en%5Fusproduct=flex 
http://www.adobe.com/cfusion/tdrc/index.cfm?loc=en%5Fusproduct=flex 

download the Flex Automation Package (bottom of the page). 

João Fernandes


On 14/01/07, Dimitrios Gianninas [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 wrote: 



Hi,
 
Has anyone found the QTP plug in after installing Flex Builder 2.0.1 or 
FDS 2.01? I cant seem to find it... for those that do have it, did u have to 
ask Adobe directly?
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 
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. 








-- 

João Fernandes 

 

-- 
WARNING
---
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.

AVIS IMPORTANT
--
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.



[flexcoders] title window on app first run

2007-01-15 Thread jonalexander370
Hello,

Am very new to Flex am trying to have the first web page view being a
primary login / registration TitleWindow with the main application as
a fuzzy background.

1.   Upon arrival at our web page at http://www.e-revenues.com the
first view would be a login / register page with an advertising Flash
intro similar to Raymond Camden's Lemonade Stand Game at: 
http://ray.camdenfamily.com/index.cfm/2006/11/21/My-Thanksgiving-Flex-Homework
and actual application at:  http://ray.camdenfamily.com/demos/ls/main.html

2.  EXCEPT, I wish to have the main application background fuzzy'ed
out, if you click the START GAME button you shall see the effect with
the Instructions being forefront and the main application being
fuzzy'ed out in the background.

3.  To clarify, the main app would be in the background fuzzy'ed out
with the login / registration being a TitleWindow in the foreground.

Any and all suggestions would be greatly appreciated.

Thank you.

Jon Alexander




RE: [flexcoders] should cairngorm commands call other commands.

2007-01-15 Thread Grant Davies
This looks like a command sequencer function:
 
http://www.cairngormdocs.org/docs/cairngorm_2_1/com/adobe/cairngorm/comm
ands/SequenceCommand.html
 
not sure if that's available in the version you are using.
 
 
...
 b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
 [EMAIL PROTECTED]
 http://www.bluetube.com/bti http://www.bluetube.com/bti 
 A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Robin Burrer
Sent: Sunday, January 14, 2007 7:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] should cairngorm commands call other commands.



 Hi all,

I'm working on flex application using the cairngorm framework and I ask
myself if commands should call other commands.

E.g. another event is triggered in the result method of the command.
Note that I actually run in this problem when I try to handle my client
application logic, not for server requests. 

I started sending new cairngorm events in the on result method of my
commands but actually I find this approach rather messy.

Should I dispatch all events in my views? That however means that my
views are handling some of my application logic. I think they are not
supposed to do that...

Or should I create a new form commands that only manage other commands?
That would add another level of complexity though ...

Robin

 
attachment: small.jpg


[flexcoders] Two ChartElement extension classes that catch MouseDowns (Charting)

2007-01-15 Thread g_odds
I have created two classes that extend ChartElement, one for zooming
and one for panning.  Both work as wanted if applied separately to a
chart using the annotationElements.  However, if I apply both only one
of the two will ever catch a MouseDown rather than both.  I worked out
how to implement the classes in the first place by looking at the
InteractiveBubble example on the Quietly Scheming website
(http://www.quietlyscheming.com/blog/charts/interactive-bubble-chart/).

The jist is that I have overridden the updateDisplayList(..) function
with the following to ensure the Pan or Zoom catches the mouse event:

override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void
{
super.updateDisplayList(unscaledWidth,unscaledHeight);
graphics.clear();
graphics.moveTo(0,0);
graphics.beginFill(0,0);
graphics.drawRect(0,0,unscaledWidth,unscaledHeight);
}

Clearly the problem I am having when I have two classes using this
same technique being used at the same time is because one of the
rectangles is on top of the other.

I realise that combining the pan and zoom into a single class, as is
done in the Quietly Scheming example, would solve the problem but it
is not appropriate for my intensions.

Does anyone have any suggestions for a clean solution?



[flexcoders] Re: Getting a node to accept dropped nodes in a tree

2007-01-15 Thread nathanbrown19
Chris, 

Read up on XML first, then try this XML structure

root
node1/
node2/
node3/
node4/
node5/
node6/
node7/
/root


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

 Here is my xml structure.
 
 node
  node1
  node2
  node3
  node4
  node5
  node6
  node7
 /node
 
 I'm trying to drop node1 onto node2 but the tree drops it after
 node2.  Does anyone know how to get the tree to make node2 a
 branch when you drop node1 onto it.





[flexcoders] Urgent :: Custom Serialization exception

2007-01-15 Thread

I am using Custom Serialization to serialize my Java Object (TreeNode class)
recursively to ActionScript.
But this fails giving the following exception:

ArgumentError: Error #2004: One of the parameters is invalid.
   at flash.utils::ObjectInput/readObject()
   at com.flex.dao::TreeNode/readExternal()

(mx.messaging.messages::ErrorMessage)#0
 body = (Object)#1
 clientId = (null)
 correlationId = 5D934A88-B385-627D-2445-258088A878CA
 destination = 
 extendedData = (null)
 faultCode = Server.Acknowledge.Failed
 faultDetail = Was expecting mx.messaging.messages.AcknowledgeMessage, but
received null
 faultString = Didn't receive an acknowledge message
 headers = (Object)#2
 messageId = 983E8914-DDAC-1ECA-C02A-2580CCD4A40F
 rootCause = (null)
 timestamp = 0
 timeToLive = 0


=
The code of ActionScript and Java TreeNode classes is as under:

=== ActionScript 
package com.flex.dao
{
   import mx.collections.ArrayCollection;
   import flash.utils.IExternalizable;
   import flash.utils.IDataInput;
   import flash.utils.IDataOutput;
   import mx.controls.Alert;

   [RemoteClass(alias=com.java.dao.TreeNode)]
   public class TreeNode implements IExternalizable
   {
   public var name : String;
   public var id : int;
   public var type : int;
   public var children : ArrayCollection;
   public var data : Object;

   public function readExternal(input:IDataInput) : void
   {
   id = input.readInt();
   name = input.readUTF();
   type = input.readInt();

   var childCount : int = input.readInt();
   if(childCount != 0)
   {
   children = new ArrayCollection();
   for(var i:int = 0; ichildCount;i++)
   {
   var obj : Object = input.readObject();
   children.addItem(obj);
   }
   }
   var hasData : int = input.readInt();
   if(hasData != 0)
   data = input.readObject();
   }

   public function writeExternal(output:IDataOutput) : void
   {
   output.writeInt(id);
   output.writeUTF(name);
   output.writeInt(type);
   if(children != null)
   {
   output.writeInt(children.length);
   for(var i:int = 0; ichildren.length;i++)
   output.writeObject(TreeNode(children.getItemAt(i)));
   }
   else
   output.writeInt(0);
   if(data != null)
   {
   output.writeInt(1);
   output.writeObject(data);
   }
   else
   output.writeInt(0);
   }

   }
}


 Java ==
public class TreeNode implements Externalizable

{
   public List children; //list of TreeNode
   public Object data;


   public TreeNode()
   {
   }

   public TreeNode(int id, String name, int type) {
   super(id, name, type);
   children = new ArrayList();

   }


   public void addChild(TreeNode child) {
 children.add(child);
   }


   public void writeExternal(ObjectOutput objectOutput) throws IOException
   {
   objectOutput.writeInt(id);
   objectOutput.writeUTF(name);
   objectOutput.writeInt(type);

   if(children != null  children.size()  0)
   {
   System.out.println(name +  :: +children.size());
   objectOutput.writeInt(children.size());
   for(int i = 0; i children.size();i++)
   objectOutput.writeObject(children.get(i));
   }
   else
   objectOutput.writeInt(0);
   if(data != null)
   {
   objectOutput.writeInt(1);
   objectOutput.writeObject(data);
   }
   else
   objectOutput.writeInt(0);
   }

   public void readExternal(ObjectInput objectInput) throws IOException,
ClassNotFoundException
   {
   id = objectInput.readInt();
   name = objectInput.readUTF();
   type = objectInput.readInt();

   int childCount = objectInput.readInt();
   if(childCount != 0)
   {
   children = new ArrayList();
   for(int i=0; ichildCount; i++)
   children.add((TreeNode)objectInput.readObject());

   }
   int hasData = objectInput.readInt();
   if(hasData != 0)
   data = objectInput.readObject();

   }
}


[flexcoders] Updating a DataService fill

2007-01-15 Thread spirit_ryder2k
Hi, I'm writing a small forum application which uses multiple 
DataService destinations.

In my CategoryDS destination I fill a datagrid with a list of forum 
categories and each category has a property which keeps track of the 
number of threads in it.

In my ThreadDS destination I retrieve a list of threads in a 
category. This works fine. When I create a new thread I want the 
CategoryDS to refill itself so the thread count is updated:

// in my thread assembler
public void createItem(Object newVersion)
{
 ...
DataServiceTransaction dtx = DataServiceTransaction.begin(false);
dtx.refreshFill(CategoryDS, null);
dtx.commit();
}

Unfortunately this does not work :(
When I manually refresh the counter is updated. Am I missing 
something in my code? I can post mxml source or config source if 
needed.



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

2007-01-15 Thread Dimitrios Gianninas
Careful however, by putting creationPolicy to all you will slow down the 
startup time of your app because it will have to create everything on every 
view, including the ones currently not displayed. Now in your sample app below 
this wont be visible, but in a larger app this will become apparent.
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Stembert Olivier (BIL)
Sent: Monday, January 15, 2007 2:06 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Problem with viewstack in Flex 2.0 ActionScript not 
search element by id.



Jan,
 
By default, the View Stack control's children are not created until they are 
selected.
Change the creationPolicy attribute of the View Stack to all.
 
Regards,
 
Olivier



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



Hallo,

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

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
http://www.adobe.com/2006/mxml 
layout=absolute creationComplete=start();

mx:Script
![CDATA[

public function start():void
{
labela.text = new text A;
labelb.text = new text B;
}
]]
/mx:Script

mx:TabBar height=30 width=200 id=tab_menu 
dataProvider=stack1 
/mx:TabBar
mx:ViewStack x=0 y=40 width=250 height=100
borderStyle=solid id=stack1
mx:Canvas label=aaa
mx:Label width=200 id=labela text=old text A/
/mx:Canvas 
mx:Canvas label=bbb
mx:Label width=200 id=labelb text=old text B/
/mx:Canvas 

/mx:ViewStack

/mx:Application

Very thanks for help

Jan Hora



-

An electronic message is not binding on its sender.

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

-

 

-

An electronic message is not binding on its sender.

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

-

 

 

-- 
WARNING
---
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.

AVIS IMPORTANT
--
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.



RE: [flexcoders] Can we some how create HTML table in Flex

2007-01-15 Thread Dimitrios Gianninas
If you are just looking to display a list of names (or items actually) use the 
List control. In the Flex world, we forget about Table tags, all bad :)
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of KP
Sent: Monday, January 15, 2007 7:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can we some how create HTML table in Flex



Hi All,

As per the subject line .Can we create the html table structure as given below 
in FLEX using htmlText attribute of text area.

I know that FLEX does not support table tag of html to be used in htmlText 
attribute of TextArea.But can we some how achieve this.

Any approach will help. Thanks in Advance

table

tr

tdKumar/td

/tr

 tr

tdPal/td

 /tr

 tr

tdJain/td

 /tr

   /table   

Thanks,

 Kumar

 

-- 
WARNING
---
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.

AVIS IMPORTANT
--
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.



Re: [flexcoders] Can we some how create HTML table in Flex

2007-01-15 Thread Marc Donkers

Hi KP,

Depending on your wishes, you can use a grid, in combination with a
repeater.

Greetz,
Marc

On 1/15/07, KP [EMAIL PROTECTED] wrote:




Hi All,



As per the subject line .Can we create the html table structure as given
below in FLEX using htmlText attribute of text area.

I know that FLEX does not support table tag of html to be used in htmlText
attribute of TextArea.But can we some how achieve this.

Any approach will help. Thanks in Advance….



table

tr

tdKumar/td

/tr

 tr

tdPal/td

 /tr

 tr

tdJain/td

 /tr

   /table



Thanks,

 Kumar







[flexcoders] Re: Minimized Panel

2007-01-15 Thread jocflex
Hi,

in our most recent project we managed panels/windows with STATES

Just set up a default state and a minimised state, then set the currentState
from a button action.

Also you can then use transitions to smooth the change.

Joc


 Hi all! People have you any idea how to develop Panel that have minimize
 functionality?



Re: [flexcoders] SVN ( Subversion ) and Flex Builder

2007-01-15 Thread Kevin

This is what I do:

1) create a new Flex Project in Flex Builder

2) right-click on the flex project and select Team - Share Project

3) choose SVN

4) either create new repository location or use existing (up to you)

5) choose 'specified folder name' and type:
projectname /trunk

6) follow the prompts fro her - which allow you to choose what to  
commit and what to exclude.


This approach has work pretty well for me.  Not sure if it is the  
correct way though.


I create the branches  tags folders directly in the SVN later when I  
need them.


- kevin



On Jan 15, 2007, at 7:25 AM, Jerome Clarke a.k.a sinatosk wrote:

This is what I do when I come to create a new Flex project using  
Adobe Flex Builder and Subversion


- I create a temporary directory and inside that directory I create  
3 more called 'branches', 'trunk' and 'tags'


- I create a Flex project for example Gallery

- I then create a new repository in subversion

- I then copy only the source code files ( 'mxml' and 'as' ) into  
the 'trunk' directory which is in the temporary directory I created  
earlier


- I then import the tempoaray directory into my new repository

- I then delete the temporary directory

- I then setup the repository in the Flex builder and check it out  
again creating the same project again but ends with  SVN for  
example Gallery SVN


- I then delete the project Gallery

thats it :p

How do you do yours when you first start a Flex project along with  
subversion. I'm interested/curious/wondering :p







Re: [flexcoders] Some AS3 component troubles

2007-01-15 Thread Michael Schmalle

Hi,

Looking at your code, you might want to try searching the Flex Docs for
component creation and component life cycle.

It's a huge no-no what you are doing in the constructor.

1. Never create instances in a constructor(createChildren()).
2. Never call addChild in a constructor (createChildren()).
3. You havn't implemented measure()
4. you haven't implemented updateDisplayList()
5. SInce you are subclassing UIComponent, you have to call sizing on your
children. It is not a Container, so it is not doing it for you.

IE in updateDisplayList() override

imageInstance.setActualSize(imageInstance.getExplicitOrMeasuredWidth(),
imageInstance.getExplicitOrMeasuredHeight());

To name a few. Try correcting some of those problems and see what happens.

Peace, Mike

On 1/15/07, Janis Radins [EMAIL PROTECTED] wrote:


  Hey people!

I already tried to ask in here but no one answered, then I tried
flashcoders list and no solution in there as well, so I'm trying one more
time, maybe someone can explain where is my problem.

I'm trying to make some pretty simple UI component in Flex and it seems
like I'm missing something.
I think I've read everything I could but I cannt find what is it I'm
missing, maybe someone on this list knows wheres the problem.
So what I am doing is:
1. I create some pretty simple MXML project just for test with this
content
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx= http://www.adobe.com/2006/mxml;
xmlns:myComp=components.* layout=absolute
myComp:TestComponent/myComp:TestComponent
/mx:Application

Pretty simple.
xmlns:myComp=components.* defines that components can be found in folder
named components in root of project, where I have this file
TestComponent.as with following content
package components {
import mx.core.UIComponent;
import mx.controls.Image;
import flash.display.Shape;
public class TestComponent extends UIComponent {
private var imageInstance:Image = null;
public function TestComponent() {
 super();
imageInstance = new Image();
imageInstance.source = icon.gif;
addChild(imageInstance);
trace(TestComponent initialized!);
var shape:Shape = new Shape();
shape.graphics.beginFill(0xFF);
shape.graphics.drawCircle(50,50,25);
addChild(shape);
}
}
}

 icon.gif is bitmap stored in root folder of project.
Seems like pretty stright forward and theres nothing to break, but it isnt
so. Shape appears, which make me think that component instance is
initialized and placed in display list.
But I really have bad luck with creating mx.controls.Image i think I tried
everything with no luck.
There must be something I'm missing, but I have no idea what is it :)

Oh, and when I tried to extend some component directly it works, seems
like thers no blank components for me!
Any help will be apreciated!

Jānis

 





--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Some AS3 component troubles

2007-01-15 Thread Ralf Bokelberg

Hi Janis

Your component looks very different from a common Flex component. Flex
components follow a certain structure to create sub instances and update
their ui. I don't remember the url, but i think you can find some
introductory tutorials about Flex component development at Adobe's website.

Good luck,
Ralf.

On 1/15/07, Janis Radins [EMAIL PROTECTED] wrote:


  Hey people!

I already tried to ask in here but no one answered, then I tried
flashcoders list and no solution in there as well, so I'm trying one more
time, maybe someone can explain where is my problem.

I'm trying to make some pretty simple UI component in Flex and it seems
like I'm missing something.
I think I've read everything I could but I cannt find what is it I'm
missing, maybe someone on this list knows wheres the problem.
So what I am doing is:
1. I create some pretty simple MXML project just for test with this
content
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx= http://www.adobe.com/2006/mxml;
xmlns:myComp=components.* layout=absolute
myComp:TestComponent/myComp:TestComponent
/mx:Application

Pretty simple.
xmlns:myComp=components.* defines that components can be found in folder
named components in root of project, where I have this file
TestComponent.as with following content
package components {
import mx.core.UIComponent;
import mx.controls.Image;
import flash.display.Shape;
public class TestComponent extends UIComponent {
private var imageInstance:Image = null;
public function TestComponent() {
 super();
imageInstance = new Image();
imageInstance.source = icon.gif;
addChild(imageInstance);
trace(TestComponent initialized!);
var shape:Shape = new Shape();
shape.graphics.beginFill(0xFF);
shape.graphics.drawCircle(50,50,25);
addChild(shape);
}
}
}

 icon.gif is bitmap stored in root folder of project.
Seems like pretty stright forward and theres nothing to break, but it isnt
so. Shape appears, which make me think that component instance is
initialized and placed in display list.
But I really have bad luck with creating mx.controls.Image i think I tried
everything with no luck.
There must be something I'm missing, but I have no idea what is it :)

Oh, and when I tried to extend some component directly it works, seems
like thers no blank components for me!
Any help will be apreciated!

Jānis

 





--
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


Re: [flexcoders] Cairngorm VO question

2007-01-15 Thread Kevin
thanks.  that helped.


On Jan 15, 2007, at 6:30 AM, Tom Chiverton wrote:

 On Sunday 14 January 2007 00:56, Kevin wrote:
 public var bookList: BookListVO;

 However, I am having problems extending the ArrayCollection class

 You can use meta data hints ([]) to indicate the types an  
 ArrayCollection
 contains.

 -- 
 Tom Chiverton
 Helping to dramatically streamline end-to-end users

 

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

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

 CONFIDENTIALITY

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

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



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






Re: [flexcoders] Some AS3 component troubles

2007-01-15 Thread Janis Radins

Thankyou both for answers.
You finally gave me some pointers to explore.

07.15.1 Ralf Bokelberg [EMAIL PROTECTED] rakstīja:


  Hi Janis

Your component looks very different from a common Flex component. Flex
components follow a certain structure to create sub instances and update
their ui. I don't remember the url, but i think you can find some
introductory tutorials about Flex component development at Adobe's website.

Good luck,
Ralf.

On 1/15/07, Janis Radins [EMAIL PROTECTED] wrote:

   Hey people!

 I already tried to ask in here but no one answered, then I tried
 flashcoders list and no solution in there as well, so I'm trying one more
 time, maybe someone can explain where is my problem.

 I'm trying to make some pretty simple UI component in Flex and it seems
 like I'm missing something.
 I think I've read everything I could but I cannt find what is it I'm
 missing, maybe someone on this list knows wheres the problem.
 So what I am doing is:
 1. I create some pretty simple MXML project just for test with this
 content
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx= http://www.adobe.com/2006/mxml;
 xmlns:myComp=components.* layout=absolute
 myComp:TestComponent/myComp:TestComponent
 /mx:Application

 Pretty simple.
 xmlns:myComp=components.* defines that components can be found in
 folder named components in root of project, where I have this file
 TestComponent.as with following content
 package components {
 import mx.core.UIComponent;
 import mx.controls.Image;
 import flash.display.Shape;
 public class TestComponent extends UIComponent {
 private var imageInstance:Image = null;
 public function TestComponent() {
  super();
 imageInstance = new Image();
 imageInstance.source = icon.gif;
 addChild(imageInstance);
 trace(TestComponent initialized!);
 var shape:Shape = new Shape();
 shape.graphics.beginFill(0xFF);
 shape.graphics.drawCircle(50,50,25);
 addChild(shape);
 }
 }
 }

  icon.gif is bitmap stored in root folder of project.
 Seems like pretty stright forward and theres nothing to break, but it
 isnt so. Shape appears, which make me think that component instance is
 initialized and placed in display list.
 But I really have bad luck with creating mx.controls.Image i think I
 tried everything with no luck.
 There must be something I'm missing, but I have no idea what is it :)

 Oh, and when I tried to extend some component directly it works, seems
 like thers no blank components for me!
 Any help will be apreciated!

 Jānis




--
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35

 



[flexcoders] Cairngorm ServiceLocator error

2007-01-15 Thread Kevin
has any one receieved this error when using the Cairngorm  
ServiceLocator?


ReferenceError: Error #1069: Property myListService not found on  
com.adobe.cairngorm.business.ServiceLocator and there is no default  
value.


Here is my code:

(in Delegate file)
this.service = ServiceLocator.getInstance().getRemoteObject 
(myListService);


(in Services.mxml)
cairngorm:ServiceLocator
xmlns:mx=http://www.adobe.com/2006/mxml;
xmlns:cairngorm=com.adobe.cairngorm.business.*

mx:RemoteObject id=myListService fault=faultHandler(event)  
showBusyCursor=true destination=amfphp

source=com.onefoot.dbocl.services.GetMyListService
mx:method name=getMyList result=resultHandler(event) /
/mx:RemoteObject

/cairngorm:ServiceLocator

I am not sure where I am going wrong.

- Kevin

[flexcoders] Compiling problems

2007-01-15 Thread Webdevotion

Hey Coders,

When I compile a working AS3 project I occasionally run into a very
very time consuming and strange error.

TypeError: Error #1009: Cannot access a property or method of a null object
reference.
at be.webdevotion.lnb.view.slideshow::Slideshow/resizeHandler
()[C:\*\workspace\lnb\be\webdevotion\lnb\view\slideshow\Slideshow.as:40]
at be.webdevotion.lnb.view.slideshow::Slideshow$iinit
()[C:\*\workspace\lnb\be\webdevotion\lnb\view\slideshow\Slideshow.as:24]
at LNB$iinit()[C:\*\workspace\lnb\LNB.as:80]

This error even occurs when my main class constructor is just empty.
This error also occurs where code is in comments.
I tried reboots, made new projects, commented big chunks of code etc.

In the error logs of the plug in development view, there are a lot of
errors
about org.eclipse.ui, if that helps.

I updated everything to the latest versions ( eclipse 3.2.1 and Flex 2.0.1).

Can someone pull me out of this situation ?


[flexcoders] Interface class for states?

2007-01-15 Thread Van De Velde Hans
Hi,
 
is there a way to use an interface class 
to define a minimum sets of states
in an MXML component?
 
For example, I need to be sure that every portlet (a component extending the
Canvas)
has at least these states:
 
  mx:State name=minimized
  /mx:State
  mx:State name=maximized
  /mx:State
  mx:State name=normal
  /mx:State
  mx:State name=icon
  /mx:State
  mx:State name=edit
  /mx:State  

Is there a way to check for the presence of these states when compiling?
Like the implementation of an interface class checking for the presence of
certain methods.
 
 
Thanks,
Hans.
 


Re: [flexcoders] Re: Minimized Panel

2007-01-15 Thread Pavel Zabelin

Will the Panel dimensions change if I use its State and put it into
VDividedBox or like this?


[flexcoders] Cairngorm Duplicate Remote Object Return Events

2007-01-15 Thread Battershall, Jeff
I've got a delegate class making a remote object call using CF 7.02 as
the backend.  What I'm seeing is that I'm getting duplicate return
events coming over for a single delegate instance.

If I invoke the remote object once, I get the result event once.
If I invoke the RO again, I get the result event twice.
If I invoke it again, I get the result three times and so on.

I'm using Cairngorm 2.0 and Service Locator. Has anyone else seen this
behavior?  I can work around it, sure, but I don't think I should have
to.

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)


[flexcoders] Delete Components after RemoveChildAction (Flex2)

2007-01-15 Thread thuijzer
After a RemoveChildAction in a Transition I would like to remove the
removed Components from the memory. 
Can someone tell me how this is done best? I am new to Flex and cannot
find anything about this topic.

Thank you.



Re: [flexcoders] Firefox/PC and Key.isDown()

2007-01-15 Thread Daniel Freiman

take a look at http://www.senocular.com/flash/actionscript.php, specifically
com.senocular.utils.KeyObject.

Does the Key class even work still?  It's not documented.  I'd like to know
where you read that it was still working.

- Dan

On 1/14/07, fattymelt [EMAIL PROTECTED] wrote:


  I have found the Key.isDown() does not work on Firefox/PC if the
window mode is set. At first, I didn't know what the problem was, but
then I read this () - and sure enough, getting rid of the wmode fixed it.

Only problem is, I /have/ to use wmode.

Is anyone familiar with this problem, and knows of a work-a-round?

 



Re: [flexcoders] Increasing / Decreasing Font Sizes

2007-01-15 Thread Daniel Freiman

i think you'd have to do this manually.  You could keep track of each text
component and iterate through them or you could recursively iterate through
all of the children of the application (which would probably be slow).
Other than that, I think you're out of luck.

- Dan

On 1/14/07, Bruce Denham [EMAIL PROTECTED] wrote:


  Is there any way to increase or decrease all the fonts in an
application by a percentage?

Because an application has lots of varying fontSizes, it would be
really cool to be able to increase all of them by a percentage, so
that you could create a cool fontSizing effect with the mouse scroll
wheel, as is possible in browsers.

Thanks,
Bruce

 



[flexcoders] HDivideBox

2007-01-15 Thread Lieven Cardoen
Hi guys,

 

Is there a way to have a HdivideBox, but where the right part can be
opened and closed. I need a property kind of thing on the right which
the user can open and close + resize so that properties width gets
bigger/smaller.

 

Thx, Lieven Cardoen

 

Lieven Cardoen
Application developer

indiegroup
interactive digital experience
engelse wandeling 2 k18 
b8500 kortrijk 

 

 



RE: [flexcoders] Can we some how create HTML table in Flex

2007-01-15 Thread Van De Velde Hans
The gridlayout behaves like an HTML table:
check the help for mx.containers.Grid,mx.containers.GridItem 
mx.containers.GridRow
 
 


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Webdevotion
Sent: maandag 15 januari 2007 15:52
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Can we some how create HTML table in Flex



Try using the mx:datagrid tag.
It'll generate a table for you, just like in html.
If you want to display pictures etc in your datagrid,
you will have to define your own datagrid cellrenderer.


 



[flexcoders] Re: Minimized Panel

2007-01-15 Thread jocflex
Hi,

yes, you can resize the panel, add and remove components and make
many other changes from state to state.

Joc

 Will the Panel dimensions change if I use its State and put it into
 VDividedBox or like this?




Re: [flexcoders] Interface class for states?

2007-01-15 Thread Webdevotion

Hey Hans,

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

succes ermee ; )


Re: [flexcoders] Re: Minimized Panel

2007-01-15 Thread Pavel Zabelin

Some misunderstanding :(. I mean that I dont want that Panel change its size
when its STATE is minimized in any parent container.




yes, you can resize the panel, add and remove components and make
many other changes from state to state.




[flexcoders] Re: RTE when using itemRenderers in DataGrid.

2007-01-15 Thread michael_ramirez44
--- In flexcoders@yahoogroups.com, Jim Robson [EMAIL PROTECTED] wrote:

 Here you go:
 
 http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform


I have submitted this bug via the WishForm on Jan 10 but I have not 
recieved any response back not even an auto-response. Is there another 
place I can submit bugs?

Michael Ramirez



[flexcoders] Re: making an entire hbox item linkable?

2007-01-15 Thread kasey.mccurdy
thanks man -- this worked like a charm -- damn, i hate being a n00b.


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

 One solution I can think of is :
 set the buttonmode of HBox to true and on click open the url.
 
 buttonMode=true click=navigateToURL(new URLRequest('www.yahoo.com
 '),'_blank')
 
 
 
 On 1/12/07, kasey.mccurdy [EMAIL PROTECTED] wrote:
 
im creating a component in actionscript with an HBox inside it,
and i
  was wondering if anyone has any advice as to the best way to make the
  entire Hbox (and all its children) linkable...(i want it to go to the
  url specified when the user clicks the entire item)
 
  any help is much appreciated
 
   
 





Re: [flexcoders] SVN ( Subversion ) and Flex Builder

2007-01-15 Thread Jerome Clarke a.k.a sinatosk

Thanks for that. didn't know you could do it that way. Much quicker and
easier :p

On 1/15/07, Kevin [EMAIL PROTECTED] wrote:


  This is what I do:

1) create a new Flex Project in Flex Builder

2) right-click on the flex project and select Team - Share Project

3) choose SVN

4) either create new repository location or use existing (up to you)

5) choose 'specified folder name' and type:
projectname /trunk

6) follow the prompts fro her - which allow you to choose what to commit
and what to exclude.

This approach has work pretty well for me.  Not sure if it is the correct
way though.

I create the branches  tags folders directly in the SVN later when I need
them.

- kevin



On Jan 15, 2007, at 7:25 AM, Jerome Clarke a.k.a sinatosk wrote:

This is what I do when I come to create a new Flex project using Adobe
Flex Builder and Subversion

- I create a temporary directory and inside that directory I create 3 more
called 'branches', 'trunk' and 'tags'

- I create a Flex project for example Gallery

- I then create a new repository in subversion

- I then copy only the source code files ( 'mxml' and 'as' ) into the
'trunk' directory which is in the temporary directory I created earlier

- I then import the tempoaray directory into my new repository

- I then delete the temporary directory

- I then setup the repository in the Flex builder and check it out again
creating the same project again but ends with  SVN for example Gallery
SVN

- I then delete the project Gallery

thats it :p

How do you do yours when you first start a Flex project along with
subversion. I'm interested/curious/wondering :p


 


RE: [flexcoders] Cairngorm ServiceLocator error

2007-01-15 Thread jason.proulx
Make sure you have:

 

business:Services id=serviceLocator /

in your main Application file.

 

Jay Proulx

[EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin
Sent: January 15, 2007 9:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm ServiceLocator error

 

has any one receieved this error when using the Cairngorm
ServiceLocator?

 

ReferenceError: Error #1069: Property myListService not found on
com.adobe.cairngorm.business.ServiceLocator and there is no default
value.

 

Here is my code:

 

(in Delegate file)

this.service =
ServiceLocator.getInstance().getRemoteObject(myListService);

 

(in Services.mxml)

cairngorm:ServiceLocator

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

xmlns:cairngorm=com.adobe.cairngorm.business.*

 

mx:RemoteObject id=myListService fault=faultHandler(event)
showBusyCursor=true destination=amfphp

 
source=com.onefoot.dbocl.services.GetMyListService

mx:method name=getMyList
result=resultHandler(event) /

/mx:RemoteObject

 

/cairngorm:ServiceLocator

 

I am not sure where I am going wrong.

 

- Kevin

 



Re: [flexcoders] Compiling problems

2007-01-15 Thread Webdevotion

Ok, I found a way to reproduce my problem.
Create a new project.

Add a new child ( eg: a Car class which extends Sprite ).
Inside the Car class, try to access stage.
eg: var w:Number = stage.stageWidth;


From that moment on, your app fails to compile,

even after removing the stage.stageWidth line.

Can anyone verify this for me ?


Re: [flexcoders] Cairngorm Duplicate Remote Object Return Events

2007-01-15 Thread Tom Chiverton
On Monday 15 January 2007 15:02, Battershall, Jeff wrote:
 behavior?  I can work around it, sure, but I don't think I should have
 to.

No, you're right, this is wrong :-)
Firstly, set the log level at the bottom of your ColdFusion servers 
services-config.xml to 'debug' and restart ColdFusion.
This will tell you if you are somehow sending the results twice or something.
Failing that, post some code snippits.

-- 
Tom Chiverton
Helping to completely envisioneer principle-centered partnerships



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

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

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] My Blog in Flex .. design challenges

2007-01-15 Thread mrinal.wadhwa
I am developing my homepage/blog in flex and designing the blog is
presenting a lot of design challenges. Here's one of them...

I don't particularly like scroll bars, especially not more that one on
a page. I'd appreciate if all the design experts on this list could
suggest on how a flex blog should look.



RE: [flexcoders] Interface class for states?

2007-01-15 Thread Van De Velde Hans
Thanks for your reply,
but this is not exactly what I need... :-}
 
What I need is an (exotic) way to force the presence of
certain states in a MXML component.
 
For example we're developing www.belgacom.tv http://www.belgacom.tv  in
group and 
I want to make sure that everyone extending the GeneralPortlet class
implements has at least these states:
 
 mx:states
  mx:State name=minimized
  /mx:State
  mx:State name=maximized
  /mx:State
  mx:State name=normal
  /mx:State
  mx:State name=icon
  /mx:State
  mx:State name=edit
  /mx:State  
 /mx:states
 
Can this be done?
 
 
wkr,
Hans.

 
 

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



Hey Hans,

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

succes ermee ; )


 



Re: [flexcoders] Cairngorm ServiceLocator error

2007-01-15 Thread Kevin

of course!!!

Thanks.  It's always something simple.  I had commented that part out  
when i was testing some stuff and I forgot to uncomment it.


- Kevin


On Jan 15, 2007, at 10:44 AM, [EMAIL PROTECTED] wrote:



Make sure you have:



business:Services id=”serviceLocator” /

in your main Application file.



Jay Proulx

[EMAIL PROTECTED]

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

Sent: January 15, 2007 9:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm ServiceLocator error



has any one receieved this error when using the  
CairngormServiceLocator?




ReferenceError: Error #1069: Property myListService not found on  
com.adobe.cairngorm.business.ServiceLocator and there is no default  
value.




Here is my code:



(in Delegate file)

this.service = ServiceLocator.getInstance().getRemoteObject 
(myListService);




(in Services.mxml)

cairngorm:ServiceLocator

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

xmlns:cairngorm=com.adobe.cairngorm.business.*



mx:RemoteObject id=myListService fault=faultHandler(event)  
showBusyCursor=true destination=amfphp


 
source=com.onefoot.dbocl.services.GetMyListService


mx:method name=getMyList  
result=resultHandler(event) /


/mx:RemoteObject



/cairngorm:ServiceLocator



I am not sure where I am going wrong.



- Kevin







[flexcoders] Re: Minimized Panel

2007-01-15 Thread jocflex
Hi,

then don't change the size when you set up the minimised state.
It's up to you how the different states act and look.

If you aren't changing the size how is it going to be minimised?

Joc

 Some misunderstanding :(. I mean that I dont want that Panel change its size
 when its STATE is minimized in any parent container.
 
  yes, you can resize the panel, add and remove components and make
  many other changes from state to state.
 




[flexcoders] Re: Getting a node to accept dropped nodes in a tree

2007-01-15 Thread chrislpigg
I couldn't find anything in the xml documentation that explains about
not being able to drop nodes onto nodes that aren't a branch.  This
functionality has to do with the tree  and the drag and drop capability.

My Tree's properties are set to :
dragEnabled=true 
dropEnabled=true

Any Thoughts?



[flexcoders] Flex Data and Hibernate issue (identity mapping)

2007-01-15 Thread ripe101
Hello,

I'm trying to integrate FDS and Hibernate, I've gotten it mostly 
working, but I have one remaining issue...

I Have FDS running on JBoss 4.0.5GA, with hibernate 3.

I've got all the bits working except the (hibernate) id field is 
not coming across to Flex.  All of the other fields come across 
except this one (!)

I can see Hibernate sending the attributes, but in the Flex message 
they don't appear.
Anyone seen this happen?

* logs:
* from Hibernate:
2007-01-15 08:37:48,281 DEBUG [org.hibernate.pretty.Printer] listing 
entities:
2007-01-15 08:37:48,343 DEBUG [org.hibernate.pretty.Printer] 
[EMAIL PROTECTED], USER_NAME=ADMIN2, 
id=23}
2007-01-15 08:37:48,343 DEBUG [org.hibernate.pretty.Printer] 
[EMAIL PROTECTED], USER_NAME=ADMIN, id=22}
2007-01-15 08:37:48,343 DEBUG [org.hibernate.pretty.Printer] 
[EMAIL PROTECTED], USER_NAME=USER, id=21}

* from FDS
09:38:06,140 INFO  [STDOUT] Hibernate: select users0_.USER_KEY as 
USER1_0_, user
s0_.USER_NAME as USER2_0_, users0_.EMAIL_ADDRESS as EMAIL3_0_ from 
ID_USER users
0_
09:38:06,203 INFO  [STDOUT] [Flex] Serializing AMF/RTMP response
Version: 3
  (Command method=_result (0) trxId=3)
(Typed Object #0 'flex.data.messages.SequencedMessage')
  sequenceId = 0
  destination = users
  headers = (Object #1)
  dataMessage = null
  correlationId = 35BE4552-FD9F-6E63-0542-2668798A1325
  messageId = 6DC516AF-CB2D-F630-393D-1BECA9C93882
  timestamp = 1.168875486203E12
  clientId = 8A9CAB6A-41D5-E6B8-8274-266877D45B54
  timeToLive = 0.0
  sequenceProxies = null
  sequenceSize = 3
  body = (Array #2)
[0] = (Typed Object #3 'users.Users')
  EMAIL_ADDRESS = [EMAIL PROTECTED]
  USER_NAME = ADMIN2
[1] = (Ref #3)
[2] = (Ref #3)


* Here is my hibernate mapping (stripped off the DOCTYPE):

hibernate-mapping
class name=users.Users table=ID_USER
id name=id column=USER_KEY
generator class=identity/
/id
property name=USER_NAME/
property name=EMAIL_ADDRESS/
/class

  query name=all.usersfrom Users/query
/hibernate-mapping

* and the corresponding FDS data-management-config.xml:

?xml version=1.0 encoding=UTF-8?
service id=data-service 
class=flex.data.DataService 
messageTypes=flex.data.messages.DataMessage
adapters
adapter-definition id=actionscript 
class=flex.data.adapters.ASObjectAdapter default=true/
adapter-definition id=java-dao 
class=flex.data.adapters.JavaAdapter/
/adapters
default-channels
channel ref=my-rtmp/
/default-channels
  destination id=users
adapter ref=java-dao /
properties  
use-transactionstrue/use-transactions
sourceflex.data.assemblers.HibernateAssembler/source
scopeapplication/scope
metadata
identity property=id/
/metadata
network
paging enabled=false pageSize=10 /
throttle-inbound policy=ERROR max-frequency=500/
throttle-outbound policy=REPLACE max-
frequency=500/
/network
server
hibernate-entityusers.Users/hibernate-entity
fill-method
namefill/name
paramsjava.util.List/params
/fill-method
fill-configuration
use-query-cachefalse/use-query-cache
allow-hql-queriestrue/allow-hql-queries
/fill-configuration
/server
/properties
/destination
/service

Thanks!
JK



Re: [flexcoders] Simple Question

2007-01-15 Thread Webdevotion

Hey Saeed,

Did you declare the variables correctly ?

You have put this code outside your class:

*fileRef.addEventListener(Event.SELECT , selectHandler);
fileRef.addEventListener(Event.COMPLETE , completeHandler);
fileRef.browse();*

Put those lines inside your constructor and those errors will disappear.
Don't forget to import flash.events.Event in your package or you'll get
an error there.

Good luck!


[flexcoders] Mouse Events

2007-01-15 Thread john_69_11
I am noticing that when I have handlers on mouseDown, mouseUp and
Click all three of these events are fired (in that order) no matter
what i do.  If i click on the object and hold it down for awhile the
Click event is fired (as well as the others).  If i click the object
quickly all three events are again fired.  Is this normal behaviour? 
I'm trying to do a drag and drop object, mousedown starts drag,
mouseup ends it.  I also want to be able to click on the object to
make it selected.  Problem is the object should stay in the same state
when dragged, this is impossible as far as I can tell with all three
of these events being fired everytime.  Any help at all would be welcome,

-John



RE: [flexcoders] Flex Data Services Half off?

2007-01-15 Thread Carson Hager
I would be very careful with this. Most software products EULAs do not
allow the end user to transfer the license under any circumstances
except for when the licensee has been acquired by another entity. I
don't know about the FDS license but I would definitely look into this
first.
 
 
Carson
 

 
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com http://www.cynergysystems.com/ 
 
Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY
Mobile: 1.703.489.6466

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of girardklly
Sent: Sunday, January 14, 2007 7:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Data Services Half off?



FYI! I came across an eBay auction for Flex Data Services today. It 
appears they are selling it for half off or best offer. If anyone is 
looking to purchase Flex Data Services for cheap this might be a good 
opportunity. :D

Adobe Flex Data Services 2- Enterprise Edition

http://cgi.ebay.com/Adobe-Flex-Data-Services-2-Enterprise-
http://cgi.ebay.com/Adobe-Flex-Data-Services-2-Enterprise- 
Edition_W0QQitemZ140071933216QQihZ004QQcategoryZ41877QQssPageNameZWDVWQQ
rdZ1QQcmdZViewItem



 


[flexcoders] Re: Interface class for states?

2007-01-15 Thread jocflex
Hi,

could you use the constructor of the superclass (GeneralPortlet)
to check that it has those states?

Joc

 What I need is an (exotic) way to force the presence of
 certain states in a MXML component.




[flexcoders] Newbie asks why Flex?

2007-01-15 Thread mabrams_us
I write to solicit some recommendations as to why one should invest 
in learning Flex as a career move opposed to focusing on other 
technologies.

I am a Sr. mainframe database applications developer / architect who 
returned to school FT as a web programming student. My technical 
exposure and academic projects include Flash8, DW8, Visual Studio, 
Premier, Vegas, MSSQL, mySQL, MS Access and writing web apps in 
VB.NET, XHTML/CSS2, JavaScript, DOM, and some action script... 

When school ends I need to work and I want to build data driven RIA 
that incorporate streaming media and ecommerce. I know I can do this 
in AJAX with more mainstream technologies and the Flex marketplace is 
very small compared to its competitors. 

1) Why choose Flex as opposed to developing in .NET? (Please save the 
evil empire stuff :-) How important is a JAVA background to becoming 
a good Flex programmer?  What other technologies should a Flex 
programmer know?

2) Since Flex emerged in 2004, what type of experience are Flex 
hiring managers looking for (I find what I consider unrealistic 
position memos on the job sites, e.g. 10 years of Flex experience 
preferred …) and what's the best way to secure a position as a Flex 
programmer if your employer didn't decide this for you?  

TIA for your attention and recommendations. 
Mark




Re: [flexcoders] Re: Minimized Panel

2007-01-15 Thread Pablo

Well. I have instance of Panel with some minimized button. Then I click on
this button executes script this.height=30 (where this is a Panel's
instance). But this Panel instance placed with other Panel instance in
VDividedBox and when I drag divider minimized Panel's instance became
unminimized. I  e its this.height increased automaticaly. So how I can
avoid this?


RE: [flexcoders] Cairngorm Duplicate Remote Object Return Events

2007-01-15 Thread Battershall, Jeff
Tom,

That's good advice, thanks. I'm going to try that but some client side
debugging indicates only one call is being made per delegate instance,
but I'm getting back duplicate results.

One theory I have about what 'might' be happening is that before I make
my servce call, I'm adding event listeners for the result/fault and
these may be duplicate ones, because the remote object instance is being
persisted in ServiceLocator. However, I tried explictly removing the
listeners before adding them and no dice.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Monday, January 15, 2007 11:02 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cairngorm Duplicate Remote Object Return
Events


On Monday 15 January 2007 15:02, Battershall, Jeff wrote:
 behavior?  I can work around it, sure, but I don't think I should have

 to.

No, you're right, this is wrong :-)
Firstly, set the log level at the bottom of your ColdFusion servers 
services-config.xml to 'debug' and restart ColdFusion.
This will tell you if you are somehow sending the results twice or
something. Failing that, post some code snippits.

-- 
Tom Chiverton
Helping to completely envisioneer principle-centered partnerships



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

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

CONFIDENTIALITY

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

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



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





[flexcoders] Re: Combobox Display issues

2007-01-15 Thread Rick Schmitty
bump

On 1/11/07, Rick Schmitty [EMAIL PROTECTED] wrote:
 Hi all, I'm having some wierd display issues when using a font in a
 combo box.  Things dont pop up where they should or appear in doubles
 (aside from the intentional repeating)

 Here is the snippet

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 mx:Script
 ![CDATA[
 [Bindable]
 private var dp:Array=[{label:0 Arial,font:myArial},
   {label:1 
 Rage,font:myRage},
   {label:2 Bookman 
 Antica,font:myBkant},
   {label:3 
 Tahoma,font:myTahoma},
   {label:4 Times New 
 Roman,font:myTimes},
   {label:5 
 Trebuchet,font:myTrebuc},
   {label:6 
 Arial,font:myArial},
   {label:7 
 Rage,font:myRage},
   {label:8 Bookman 
 Antica,font:myBkant},
   {label:9 
 Tahoma,font:myTahoma},
   {label:10 Times 
 New Roman,font:myTimes},
   {label:11 
 Trebuchet,font:myTrebuc},
   ];
 ]]
 /mx:Script

 mx:DataGrid id=dg dataProvider={dp}/

 mx:ComboBox id=cb dataProvider={dp}
 mx:itemRenderer
 mx:Component
 mx:Text 
 xmlns:mx=http://www.adobe.com/2006/mxml; fontSize=14
 creationComplete=init()
 mx:Script
 ![CDATA[
 private function init():void {
 trace(data.label);
 
 setStyle(fontFamily,data.font);
 text=data.label;
 }
 ]]
 /mx:Script
 /mx:Text
 /mx:Component
 /mx:itemRenderer
 /mx:ComboBox



 mx:Style
 @font-face {
 src: url(/assets/fonts/ARIAL.TTF);
 fontFamily: myArial;
 }
 @font-face {
 src: url(/assets/fonts/BKANT.TTF);
 fontFamily: myBkant;
 }
 @font-face {
 src: url(/assets/fonts/TAHOMA.TTF);
 fontFamily: myTahoma;
 }
 @font-face {
 src: url(/assets/fonts/TIMES.TTF);
 fontFamily: myTimes;
 }
 @font-face {
 src: url(/assets/fonts/TREBUC.TTF);
 fontFamily: myTrebuc;
 }
 /mx:Style
 /mx:Application



RE: [flexcoders] Doesn't work :/

2007-01-15 Thread Tracy Spratt
First trace(xmlResult.toXMLString()); to make sure you have the xml you
expect.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex
Sent: Thursday, January 11, 2007 11:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Doesn't work :/

 

I've tried:

import mx.rpc.events.ResultEvent;

private function ticketDataRequestHandler( oEvent:ResultEvent ):void { 
var xmlResult:XML = XML(oEvent.result); 
var xlData:XMLList = xmlResult..data;

for (var i:int ; ixlData.length() ; i++){
Alert.show(xlData[i].toXMLString());
}
}

in conjunction with:

mx:HTTPService 
id=ticketDataRequest 
url= {FLEXsys.proxy}
useProxy=false 
method=POST 
resultFormat=e4x
showBusyCursor=true
requestTimeout=10
result=ticketDataRequestHandler( event )
mx:request xmlns=
actionticketData/action
id{ticketID}/id
/mx:request
/mx:HTTPService

without luck..

Here's a sample of the actual XML being pulled in

?xml version=1.0?
Auracle
CommandticketData/Command
ResultFLEX: Ticket data/Result
TR1/TR
ticket
id13671/id
date![CDATA[2006-12-29]]/date
subject![CDATA[TWIRL implementation]]/subject
priority![CDATA[general usage question]]/priority
reply![CDATA[heychadley]]/reply
status![CDATA[1]]/status
/ticket
messages
message
id64886/id

user5901/user
usernameheychadley/username
text![CDATA[Hi There,

This is a sample messages

Thanks,

Chad]]/text
/message
message
id64683/id
user3/user
usernameAdmin/username
text![CDATA[Ok]]/text
/message 
/messages
/Auracle

Should be fairly straightforward? I mean I'm pulling XML from all
over the place successfully otherwise - this is an annoying problem! :)

 



RE: [flexcoders] Re: Help sifting through XML (from HTTPService) with a foreach loop [new to Fle

2007-01-15 Thread Tracy Spratt
If you want to use Object, then you were on the right track, looking for
an array of objects in a property, you'll just need to debug to see how
Flex has converted the xml onto the nested object structure, to
determine the reference.

 

And don't mix the operators. .. is an e4x operator and can't be used
with Objects, With collections,  use the collection api.

 

Work you way down through the object hierarchy, one step at a time.
There is an object dumper utility in the ObjectUtil class.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex
Sent: Thursday, January 11, 2007 10:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Help sifting through XML (from HTTPService)
with a foreach loop [new to Fle

 

Thanks for the messages. In the spirit of learning however, were I to
use the object method, what syntax would be used? 

If I use a breakpoint, I see the structure like:

data
+--+ Auracle
|
+-+ messages
|
+-+ message
|
+[0]
| |
| +id
| +text
|
+--[1]
+--[2]
+--[3]

What's the significance of the .. operator on collections?

 



[flexcoders] New To Flex -- Autoincrement a variable?

2007-01-15 Thread David Steele
This is very easy to do in earlier versions of AS but I can't see how to do it 
in Flex.

I want to autoincrement a variable and display it in a textbox. In earlier 
versions of AS I'd just put an onEnterFrame and increment a variable.


Can anyone tell me how to do this??

Thanks,

David


 

Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

RE: [flexcoders] Yes it does! Thanks + Sorry

2007-01-15 Thread Tracy Spratt
Also, you can use index loops with XMLList, which will give you control
over the order if that is important:

for (var i:int=0;ixmData().length;i++)

xmlCurNode = xmlData[i]

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex
Sent: Friday, January 12, 2007 12:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Yes it does! Thanks + Sorry

 

My mistake:

 for each (var d:Object in data.a.b..c){

I assumed that .. had scope

 



[flexcoders] what control does flow layout in flex ?

2007-01-15 Thread Berthelot
Hi,
VBox and HBox are not good enough for me. I'd like to do flow layout 
so that controls added dynamically to a container are positionned from 
left to right, then if the right-end of the container is reached, it 
starts again below. This is so easy to do in java or in css/html, 
there must be a way to do that easily in Flex ?

Thanks,



[flexcoders] How to recurse through XML Structure?

2007-01-15 Thread chrislpigg
I'm using Ex4 and am trying to recurse through an xml structure.  Here
is my structure except on a much smaller scale.

root
  set
 category id=1
 node id=1/
 node id=2/
 node id=3/
 node id=4/
 node id=5/
 /category 
 category id=2
 node id=1/
 node id=2/
 node id=3/
 node id=4/
 node id=5/
 /category 
 category id=3
 node id=1/
 node id=2/
 node id=3/
 node id=4/
 node id=5/
 /category 
 category id=4
 node id=1/
 node id=2/
 node id=3/
 node id=4/
 node id=5/
 /category 
  /set
/root

How Could I grab only the node = 3 under category = 4 using EX4
expression from the root node.  Basically do a tree search without
having to drill down to the node level by using this code:
root.set.category.node(@id == 5)

Is there some way that you can just use the root and do a search?



Re: [flexcoders] Cairngorm Duplicate Remote Object Return Events

2007-01-15 Thread Martin Wood-Mitrovski
 One theory I have about what 'might' be happening is that before I make
 my servce call, I'm adding event listeners for the result/fault and
 these may be duplicate ones, because the remote object instance is being
 persisted in ServiceLocator. However, I tried explictly removing the
 listeners before adding them and no dice.

sounds like the most likely thing to be happening.

try setting a breakpoint on where you remove / add the listeners and check that 
the references are the ones you expect, i.e. you are not trying to remove a 
different listener or something.



[flexcoders] Cairngorm support for Flex 2.0.1 modules?

2007-01-15 Thread Tom Baggett
Hello all,

I'm evaluating the new module interface in the Flex 2.0.1 update and
have some questions in regards to Cairngorm-architected apps.

Does anyone have recommendations on how you would slice up a
Cairngorm-based Flex app into modules?

For example, the ModelLocator- and FrontController-derived classes
would need to allow values and commands to be dynamically added and
removed as modules are loaded and unloaded.  How should this be
implemented so that data binding to the model works as expected?

Is there any work being done on the framework to facilitate these
types of things?

Thanks for any thoughts,

Tom



RE: [flexcoders] How to handle server side errors on the UI

2007-01-15 Thread Tracy Spratt
I catch all server-side exceptions on the server, and write them into
the xml I return to the client.  The client resulthandler looks at the
xml to determine if it is good data or an error and responds
appropriately.  For the few occasions where the server app itself
errors, I use a fault handler.

 

The problem with faultString is that if the server errors with a 500,
the browser does not pass the full error informtion to the player.  It
is possible to cause the server to send a 200 instead of a 500, and you
can then access the fault detail.  How this is done depends on the
server.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Valy Sivec
Sent: Friday, January 12, 2007 3:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to handle server side errors on the UI

 

Hello flexcoders,

I'm working on a project that uses HTTP services and I'm having
difficulties catching the server side error on the client. In fact, I'd
like to be able translate the  error code from the back-end to a
meaningfull message to the client for certain error codes. 

It looks that faultString doesn't help me much. How do you guys deal
with the server side errors on the client, if you want to have custom
error messages depending on the error code?

Thanks,
Valy Sivec



 



Any questions? Get answers on any topic at Yahoo! Answers
http://answers.yahoo.com/;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMz
OTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx . Try it now.

 



RE: [flexcoders] Re: Combobox Display issues

2007-01-15 Thread Peter Watson
Rick,

 

Try calling the setStyle() in the updateDisplayList() function rather
than creationComplete.

 

creationComplete will only get called once - but the cell is rendered
multiple times when you scroll so you'll end up with intermittent
results like you are seeing.

 
http://livedocs.macromedia.com/flex/2/docs/0850.html#233552

 

updateDisplayList() ensures that anytime the display changes, your code
will get run and render with the correct font.

 

mx:Script

![CDATA[

override protected function
updateDisplayList( uw:Number, uh:Number ):void{

super.updateDisplayList(
uw, uh );

trace(data.label);

 
setStyle(fontFamily,data.font);

text=data.label; 

}

]]

/mx:Script

 

 

regards,

peter

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Schmitty
Sent: Monday, January 15, 2007 12:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Combobox Display issues

 

bump

On 1/11/07, Rick Schmitty [EMAIL PROTECTED]
mailto:flexcode%40gmail.com  wrote:
 Hi all, I'm having some wierd display issues when using a font in a
 combo box. Things dont pop up where they should or appear in doubles
 (aside from the intentional repeating)

 Here is the snippet

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
 mx:Script
 ![CDATA[
 [Bindable]
 private var dp:Array=[{label:0 Arial,font:myArial},
 {label:1 Rage,font:myRage},
 {label:2 Bookman Antica,font:myBkant},
 {label:3 Tahoma,font:myTahoma},
 {label:4 Times New Roman,font:myTimes},
 {label:5 Trebuchet,font:myTrebuc},
 {label:6 Arial,font:myArial},
 {label:7 Rage,font:myRage},
 {label:8 Bookman Antica,font:myBkant},
 {label:9 Tahoma,font:myTahoma},
 {label:10 Times New Roman,font:myTimes},
 {label:11 Trebuchet,font:myTrebuc},
 ];
 ]]
 /mx:Script

 mx:DataGrid id=dg dataProvider={dp}/

 mx:ComboBox id=cb dataProvider={dp}
 mx:itemRenderer
 mx:Component
 mx:Text xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  fontSize=14
 creationComplete=init()
 mx:Script
 ![CDATA[
 private function init():void {
 trace(data.label);
 setStyle(fontFamily,data.font);
 text=data.label;
 }
 ]]
 /mx:Script
 /mx:Text
 /mx:Component
 /mx:itemRenderer
 /mx:ComboBox



 mx:Style
 @font-face {
 src: url(/assets/fonts/ARIAL.TTF);
 fontFamily: myArial;
 }
 @font-face {
 src: url(/assets/fonts/BKANT.TTF);
 fontFamily: myBkant;
 }
 @font-face {
 src: url(/assets/fonts/TAHOMA.TTF);
 fontFamily: myTahoma;
 }
 @font-face {
 src: url(/assets/fonts/TIMES.TTF);
 fontFamily: myTimes;
 }
 @font-face {
 src: url(/assets/fonts/TREBUC.TTF);
 fontFamily: myTrebuc;
 }
 /mx:Style
 /mx:Application


 



RE: [flexcoders] Updating a DataService fill

2007-01-15 Thread Jeff Vroom
Try changing your code to:

 

  DataServiceTransaction dtx =
DataServiceTransaction.getCurrentDataServiceTransaction();

  dtx.refreshFill(CategoryDS, null);

 

You also don't want the dtx.commit() in there.  The basic problem is
that when your createItem call is made, the current transaction is still
open (i.e. not committed).  In this case, you want to do the refreshFill
in the new (i.e. the current) transaction.  If you create your own new
one, it will refresh the fill but before the current change has been
committed to the database.

 

Jeff

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of spirit_ryder2k
Sent: Monday, January 15, 2007 5:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Updating a DataService fill

 

Hi, I'm writing a small forum application which uses multiple 
DataService destinations.

In my CategoryDS destination I fill a datagrid with a list of forum 
categories and each category has a property which keeps track of the 
number of threads in it.

In my ThreadDS destination I retrieve a list of threads in a 
category. This works fine. When I create a new thread I want the 
CategoryDS to refill itself so the thread count is updated:

// in my thread assembler
public void createItem(Object newVersion)
{
...
DataServiceTransaction dtx = DataServiceTransaction.begin(false);
dtx.refreshFill(CategoryDS, null);
dtx.commit();
}

Unfortunately this does not work :(
When I manually refresh the counter is updated. Am I missing 
something in my code? I can post mxml source or config source if 
needed.

 



RE: [flexcoders] How do you get the color changed for a Radio Button Label for mouseOnRollOver ?

2007-01-15 Thread Tracy Spratt
I wa going to send you to the styleExplorer, which is usually great for
this kind of question, but It soes not seem to address the radio button!
Here is the link anyway:

http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplo
rer.html

 

Other than that all I can suggest is the docs.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of helihobby
Sent: Friday, January 12, 2007 6:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do you get the color changed for a Radio
Button Label for mouseOnRollOver ?

 

How do you get the color changed for a Radio Button Label ?

I changed the label color no problem using the CSS ( or Inlline Tag ) 
using the color: #FF no problem.

But I can't seem to be able to change the color of the lable text WHEN 
THE MOUSE is over it.

I tried a few tags and nothing worked ... any idea ?

Thank you for all the help,

Sean.

 



[flexcoders] show he vertical scroll bar of any container/control on the lft hand side

2007-01-15 Thread saha.prasanta
is it possible to show he vertical scroll bar of any container/control
on the left hand side. Can we override any protected method to do the
same??



Re: [flexcoders] Re: Interface class for states?

2007-01-15 Thread Webdevotion

If you are the creator of the Portlet,
why not implement those states yourself ?

On the state minimized, remove the main canvas.
If the state is maximized, add the main canvas again ( with all its children
).
etc.

That main canvas is an mx:canvas that you add to your component.
When others use your component they can set the component to the
minimized state, which will remove the main canvas from your comp's
displaylist.

This way, you control everthing and the behaviour is consistent throughout
the app.

btw: nice website and custom design on the b.tv site.
As a little remark: those thumbnails in the portlets look very pixelated,
they could use a higher quality.


RE: [flexcoders] Some AS3 component troubles

2007-01-15 Thread Stephen Gilson
You can find the Creating and Extending Flex 2 Components doc here:
 
http://livedocs.macromedia.com/flex/201/html/Part3_CreateComps_135_1.html
 
You can also try the Flex QuickStart for building components in ActionScript:
 
http://www.adobe.com/devnet/flex/quickstart/building_components_in_as/
 
Stephen



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Janis 
Radins
Sent: Monday, January 15, 2007 9:16 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Some AS3 component troubles



Thankyou both for answers.
You finally gave me some pointers to explore.


07.15.1 Ralf Bokelberg [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  
rakstīja: 

Hi Janis

Your component looks very different from a common Flex component. Flex 
components follow a certain structure to create sub instances and update their 
ui. I don't remember the url, but i think you can find some introductory 
tutorials about Flex component development at Adobe's website. 

Good luck,
Ralf. 



On 1/15/07, Janis Radins  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 wrote: 


Hey people!

I already tried to ask in here but no one answered, then I 
tried flashcoders list and no solution in there as well, so I'm trying one more 
time, maybe someone can explain where is my problem. 
 
I'm trying to make some pretty simple UI component in Flex and 
it seems like I'm missing something.
I think I've read everything I could but I cannt find what is 
it I'm missing, maybe someone on this list knows wheres the problem. 
So what I am doing is:
1. I create some pretty simple MXML project just for test with 
this content
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx= http://www.adobe.com/2006/mxml 
http://www.adobe.com/2006/mxml  xmlns:myComp=components.* 
layout=absolute
myComp:TestComponent/myComp:TestComponent
/mx:Application

Pretty simple. 
xmlns:myComp=components.* defines that components can be 
found in folder named components in root of project, where I have this file 
TestComponent.as with following content
package components {
import mx.core.UIComponent;
import mx.controls.Image;
import flash.display.Shape;
public class TestComponent extends UIComponent {
private var imageInstance:Image = null;
public function TestComponent() { 
 super();
imageInstance = new Image();
imageInstance.source = icon.gif;
addChild(imageInstance);
trace(TestComponent initialized!); 
var shape:Shape = new Shape();
shape.graphics.beginFill(0xFF);
shape.graphics.drawCircle(50,50,25);
addChild(shape);
}
}
}

 icon.gif is bitmap stored in root folder of project.
Seems like pretty stright forward and theres nothing to break, 
but it isnt so. Shape appears, which make me think that component instance is 
initialized and placed in display list. 
But I really have bad luck with creating mx.controls.Image i 
think I tried everything with no luck.
There must be something I'm missing, but I have no idea what is 
it :)

Oh, and when I tried to extend some component directly it 
works, seems like thers no blank components for me! 
Any help will be apreciated!

Jānis








-- 
Ralf Bokelberg [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
Flex  Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35 






 


[flexcoders] AMFPHP, Cairngorm VO

2007-01-15 Thread Kevin
1) Is is possible to return results from AMFPHP and have them easily  
assign Value Objects on the Flex Client? (if so, how)


EXAMPLE:
call service to ask for an array of VO data.
AMFPHP returns array of PHP Data(Value) Objects in result event.
How do I then map the items in the VO array to a Flex VO? Is this  
possible?


I thought I could use something like this to do it,
[ArrayElementType(com.one.of.my.customVO)]
but I am not sure where to put this?? or how to use it properly.

2) Is it bad form to give Cairngorm Value Objects custom getters   
setters to handle some basic data manipulation tasks?


I have been doing this in my unit testing, but now that I am trying  
to connect to AMFPHP to return the data, the getters  setters are  
useless because the Flex VO is being ignored.



Thanks for your help.

- Kevin

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

2007-01-15 Thread Tracy Spratt
In order to improve the start-up performance of complex applications,
many Flex containers, like ViewStack and TabNavigator use a feature
called deferred instantiation.  This means that the child views of
such containers are not instantiated until the user navigates to that
child view.

 

So in your case, Canvas bbb does not exist until you have viewed it
the first time.

 

The best solution is to craft the app to use binding and event driven
code to initialize/update the child components, instead of attempting to
set the values from the outside.

 

A quick and dirty fix is to set the creationPolicy=all on the
ViewStack.  This forces all the child components to be instantiated when
the app loads.  This can have a negative effect on the app load
performance.

 

Tracy

 



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

 

Hallo,

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

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=absolute creationComplete=start();

mx:Script
![CDATA[

public function start():void
{
labela.text = new text A;
labelb.text = new text B;
}
]]
/mx:Script

mx:TabBar height=30 width=200 id=tab_menu 
dataProvider=stack1 
/mx:TabBar
mx:ViewStack x=0 y=40 width=250 height=100
borderStyle=solid id=stack1
mx:Canvas label=aaa
mx:Label width=200 id=labela text=old text A/
/mx:Canvas 
mx:Canvas label=bbb
mx:Label width=200 id=labelb text=old text B/
/mx:Canvas 

/mx:ViewStack

/mx:Application

Very thanks for help

Jan Hora

 



[flexcoders] How to change the source for a mx:Image in another viewstate

2007-01-15 Thread oneproofdk
In a small Flex app, I have two viewstates, start and spreadView.
In start I have a Tile with VBoxes and HBoxes, when the user click
on a thumbnail mx:image, I'd like it to set the source of the image
on spreadView and then swithc to that view.

Here's my code, propably very messy, but this i my first ever Flex
project - so please provide any helpers if needed :-)

Thanks,
Mark

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute 

creationComplete=xmlEdition.send();xmlSales.send();xmlRegion.send();xmlInsertion.send();xmlPages.send();
mx:states
mx:State name=spreadView
mx:SetProperty target={vbox1} name=visible 
value=false/
mx:SetProperty target={tile1} name=visible 
value=false/
mx:AddChild relativeTo={pageCanvas} 
position=lastChild
mx:HBox id=spreadImages horizontalGap=0
click=this.currentState=''
mx:Image id=bigLeft showEffect=Fade 
source= scaleX=1
scaleY=1/
mx:Image id=bigRight showEffect=Fade 
source= scaleX=1
scaleY=1/
/mx:HBox
/mx:AddChild
/mx:State
/mx:states
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
import mx.events.ListEvent;
import mx.controls.Alert;   

[Bindable]
private var editions:ArrayCollection = new ArrayCollection();
[Bindable]
private var salesPeople:ArrayCollection = new ArrayCollection();
[Bindable]
private var regions:ArrayCollection = new ArrayCollection();
[Bindable]
private var insertions:ArrayCollection = new ArrayCollection();
[Bindable]
private var pages:ArrayCollection = new ArrayCollection();


private function insertionHandler(event:ResultEvent):void {
insertions = event.result.action.item;
}

private function regionHandler(event:ResultEvent):void {
regions = event.result.action.item;
}
private function salesHandler(event:ResultEvent):void {
salesPeople = event.result.action.item;
}

private function editionHandler(event:ResultEvent):void{
editions = event.result.action.item;
}

private function pageHandler(event:ResultEvent):void {
pages = event.result.action.pageset;
}

private function itemClickEvent(event:ListEvent):void {
Alert.show( 
String(event.currentTarget.selectedItem.materialno),
Materiale Nr., mx.controls.Alert.OK);
}
]]
/mx:Script
mx:HTTPService id=xmlEdition
url=http://flex2.dk/mark/xml/ddt/xmlEdition.xml; 
result=editionHandler(event) /
mx:HTTPService id=xmlSales
url=http://flex2.dk/mark/xml/ddt/xmlSales.xml; 
result=salesHandler(event) /
mx:HTTPService id=xmlRegion
url=http://flex2.dk/mark/xml/ddt/xmlRegion.xml; 
result=regionHandler(event) /
mx:HTTPService id=xmlInsertion
url=http://flex2.dk/mark/xml/ddt/xmlInsertion.xml; 
result=insertionHandler(event) /
mx:HTTPService id=xmlPages
url=http://flex2.dk/mark/xml/ddt/xmlPages.xml; 
result=pageHandler(event) /

mx:SoundEffect id=mySounds source=@Embed(source='bin/sound2.mp3')/

mx:ApplicationControlBar x=0 y=0 width=100% height=50
mx:HBox width=100% height=100%
mx:Label x=9 y=8 text=Udgave : width=58/
mx:ComboBox id=edition dataProvider={editions} 
x=70 y=6
labelField=title  /
mx:Label x=209 y=8 text=Region :/
mx:ComboBox id=region dataProvider={regions} 
labelField=pub /
mx:Label x=384 y=8 text=Sælger :/   

mx:ComboBox id=sales x=265 y=6 
dataProvider={salesPeople}
labelField=person/

/mx:HBox
/mx:ApplicationControlBar
mx:Canvas width=100% height=100% x=0 y=51
mx:DividedBox direction=vertical width=100% height=100%
mx:Panel width=100% height=100%
mx:DividedBox direction=horizontal width=100% height=100%
mx:Panel width=250 height=100%
backgroundColor=0xCC
mx:TabNavigator width=100% height=100%
mx:Canvas label=Annoncer width=100% height=100%
mx:DataGrid 

[flexcoders] AMFPHP, Cairngorm VO

2007-01-15 Thread Kevin
1) Is is possible to return results from AMFPHP and have them easily  
assign Value Objects on the Flex Client? (if so, how)


EXAMPLE:
call service to ask for an array of VO data.
AMFPHP returns array of PHP Data(Value) Objects in result event.
How do I then map the items in the VO array to a Flex VO? Is this  
possible?


I thought I could use something like this to do it,
[ArrayElementType(com.one.of.my.customVO)]
but I am not sure where to put this?? or how to use it properly.

2) Is it bad form to give Cairngorm Value Objects custom getters   
setters to handle some basic data manipulation tasks?


I have been doing this in my unit testing, but now that I am trying  
to connect to AMFPHP to return the data, the getters  setters are  
useless because the Flex VO is being ignored.



Thanks for your help.

- Kevin

[flexcoders] add actionscript project as a library to a flex project

2007-01-15 Thread superabe superabe

I have an AS Project in FB2, which I would like to use as a library in
another Flex project.
I tried using the Add Project option in the project properties for FB2,
but cant seem to find a way to specify an AS project.

I get the No Flex Library Project Exists error dialog.

Any ideas on how I can achieve this (without having to create a swc) ?

Thx,

superabe


Re: [flexcoders] How to handle server side errors on the UI

2007-01-15 Thread Valy Sivec
I did the same way, but I feel uncomfortable coupling the server side with UI 
message. In addition to that frameworks like Spring, Hibernate promote runtime 
errors that makes faultString is kinda useless, or I don't know how to use 
it 
 
It looks to me that Adobe needs to reconsider the way they handle the server 
side errors on their side and provide the UI programmers a way to identify the 
error codes on the client side.
 
I'd like to hear flexcoders opinion regarding this or how did they handle this 
in their applications.
 
Thanks,
Valy

- Original Message 
From: Tracy Spratt [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, January 15, 2007 1:21:13 PM
Subject: RE: [flexcoders] How to handle server side errors on the UI

I catch all server-side exceptions on the server, and write them into the xml I 
return to the client.  The client resulthandler looks at the xml to determine 
if it is good data or an error and responds appropriately.  For the few 
occasions where the server app itself errors, I use a fault handler.
 
The problem with faultString is that if the server errors with a 500, the 
browser does not pass the full error informtion to the player.  It is possible 
to cause the server to send a 200 instead of a 500, and you can then access the 
fault detail.  How this is done depends on the server.
 
Tracy
 



From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf 
Of Valy Sivec
Sent: Friday, January 12, 2007 3:44 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] How to handle server side errors on the UI
 
Hello flexcoders,

I'm working on a project that uses HTTP services and I'm having difficulties 
catching the server side error on the client. In fact, I'd like to be able 
translate the  error code from the back-end to a meaningfull message to the 
client for certain error codes. 

It looks that faultString doesn't help me much. How do you guys deal with the 
server side errors on the client, if you want to have custom error messages 
depending on the error code?

Thanks,
Valy Sivec


 



Any questions? Get answers on any topic at Yahoo! Answers. Try it now.



 

Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

RE: [flexcoders] Flex Builder 2.0.1 the update !

2007-01-15 Thread Allen Riddle
I am experiencing the same thing. I created a thread on here, but didn't
get any responses. We're gonna have to revert back to 2.0.0 unless we
can figure this out.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pauscato1
Sent: Sunday, January 14, 2007 7:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Builder 2.0.1 the update !

 

Hi all, is there anyone that have notice that flex builder 2.0.1 use 
long time to building workspace hangs on about 47% to 50% and 
when you save it even uses more time. Flex builder 2 was a loot faster 
and funn to work whit. is this an issue or is it only my computer that 
sucks ?? 

Cato 

 



[flexcoders] Re: New To Flex -- Autoincrement a variable?

2007-01-15 Thread ben.clinkinbeard
addEventListener(Event.ENTER_FRAME, myFunc);

HTH,
Ben


--- In flexcoders@yahoogroups.com, David Steele [EMAIL PROTECTED] wrote:

 This is very easy to do in earlier versions of AS but I can't see
how to do it in Flex.
 
 I want to autoincrement a variable and display it in a textbox. In
earlier versions of AS I'd just put an onEnterFrame and increment a
variable.
 
 
 Can anyone tell me how to do this??
 
 Thanks,
 
 David
 
 
  


 Bored stiff? Loosen up... 
 Download and play hundreds of games for free on Yahoo! Games.
 http://games.yahoo.com/games/front





RE: [flexcoders] New To Flex -- Autoincrement a variable?

2007-01-15 Thread Tracy Spratt
Increment at what event or action?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Steele
Sent: Monday, January 15, 2007 12:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] New To Flex -- Autoincrement a variable?

 

This is very easy to do in earlier versions of AS but I can't see how to
do it in Flex.

 

I want to autoincrement a variable and display it in a textbox. In
earlier versions of AS I'd just put an onEnterFrame and increment a
variable.

 

 

Can anyone tell me how to do this??

 

Thanks,


David

 



TV dinner still cooling?
Check out Tonight's Picks
http://us.rd.yahoo.com/evt=49979/*http:/tv.yahoo.com/  on Yahoo! TV.

 



RE: [flexcoders] what control does flow layout in flex ?

2007-01-15 Thread Tracy Spratt
Have you looked at the Tile container?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Berthelot
Sent: Monday, January 15, 2007 12:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] what control does flow layout in flex ?

 

Hi,
VBox and HBox are not good enough for me. I'd like to do flow layout 
so that controls added dynamically to a container are positionned from 
left to right, then if the right-end of the container is reached, it 
starts again below. This is so easy to do in java or in css/html, 
there must be a way to do that easily in Flex ?

Thanks,

 



[flexcoders] Re: QTP plug in?

2007-01-15 Thread chuvakgu
 http://www.adobe.com/cfusion/tdrc/index.cfm?loc=en%5Fusproduct=flex
 
 download the Flex Automation Package (bottom of the page).

Is FDS necessary for this (and Express won't do)?



[flexcoders] Random pause for each object within Repeater

2007-01-15 Thread ndcrns
I'd like to have each image within my repeater appear after a random
pause. In the script below all images currently appear at once. Any
ideas how I can adapt it so each image appears after a random time?

mx:Sequence id=bounceIn
  mx:Pause duration={randRange(500,4000)}/  
  mx:Zoom zoomHeightFrom=0.01 zoomWidthFrom=0.01
zoomHeightTo=1.0 zoomWidthTo=1.0
duration=1200 easingFunction={Elastic.easeOut}/
/mx:Sequence

mx:Repeater id=r dataProvider={badgeData}
mx:Image source=assets/{r.currentItem.image} 
x={randRange(50,800)} y={randRange(50,500)}
creationCompleteEffect=bounceIn
/mx:Image
/mx:Repeater



  1   2   >