[flexcoders] Menubar sub menu pop up orientation

2009-02-26 Thread Sefi Ninio
Hi.

I have a working MenuBar, with sub menus - all working exactly as I need it
to.

I was wondering, however, if there was a way to force the sub menu to open
upwards instead of downwards in relation to the menu bar.

I plan to place the MenuBar on the bottom of the component, and would like
to make sure that if the component is placed near the bottom of the screen,
that the sub menu pop up won't disappear from lack of screen space.

Thanks,
Sefi


Re: [flexcoders] Re: property editor component

2009-02-26 Thread Sefi Ninio
Hi Tracy,

Thanks for the help and the code.
I ended up implementing the component myself, as a container of multiple
types of editors.
Similar to what you implemented really, just with separate editors instead
of states.


On Wed, Feb 25, 2009 at 3:06 AM, Tracy Spratt tspr...@lariatinc.com wrote:

   Where will the dataProvider come from?


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Sefi
 Ninio sefi.ni...@... wrote:
 
  Okay, how about this:
  When defining a combo box as an itemEditor, and specifying the
  editorDataField - How can I specify the combo box dataProvider?
  I can use the model to bind a dp to the combobox, but I'd like to
 create a
  generic component that does not have dependencies on external
 models...
 
 
 
  On Sun, Feb 22, 2009 at 1:54 PM, Sefi Ninio sefi.ni...@... wrote:
 
   Hi all.
  
   I'm looking for a property editor component (or something similar
 to the
   description below):
   What I need is a table (DG) based name-value pairs editor, where
 the value
   should be displayed as a label.
   When it gets focus, it should be editable according to the value
 defined
   type (text, stepper, combo box etc.)
  
   Sure, I can implement components (as item editors for the DG)
 with two
   states for text/combo box, text/stepper, text/text editor etc.
   I was wondering if there is a component that already has this
   functionality.
  
   Anyone has any ideas?
  
   Thanks
  
 

  



[flexcoders] Flex RAM memory use - (probably a question for the player engineers?)

2009-02-26 Thread nwebb
Hi,

we're having 2 issues with memory in Flex:

1) Part way through our Flex application we open an external HTML page (3rd
party page). The user selects items from this page and then closes the page
 the control is then returned to the Flex application. This 3rd  party page
is heavy in terms of memory, and that memory is never getting released once
the page is closed. Is it at all possible that Flex is holding on to a
handle to that page and if so is there any way to release it, or is this
definitely not a Flex problem, and more a browser issues or issue with the
external page as I expect?

2) The Flex app is one part of a much larger website. When we proceed past
the Flex app (ie the user proceeds to a page where the app isn't embedded),
again much of the memory Flex was using doesn't seem to be getting released.
A browser issue?

Needless to say IE seems to be much more of a memory hog, but we've been
looking at this in both IE and FireFox.

Any help much appreciated.

Cheers,
Neil


[flexcoders] Re: ToggleButtonBar - disable buttons

2009-02-26 Thread bhaq1972
--- In flexcoders@yahoogroups.com, markgoldin_2000 
markgoldin_2...@... wrote:

 Can I disable some buttons in ToggleButtonBar control?
 
 Thanks


sure...something like this would do it

Button(myToggleButtonBar.getChildAt(1)).enabled = false;



[flexcoders] Re: Menubar sub menu pop up orientation

2009-02-26 Thread Sefi Ninio
OK, some updates:

What caused me to ask this, was that when I tried it, the sub menu appears
to flow off the bottom of the screen.
I tried it again, and it seems it only does this for the first time the sub
menu appears.
The second time, it kinda found out that it was flowing off the screen,
and on consecutive clicks after the first the sub menu appears as it should
(upwards instead of downwards).

I hope I am making sense... :)

So, an altered question:
Any thoughts on how to control the direction the MenuBar sub menu appears
(up or down)?

Thanks,
Sefi

On Thu, Feb 26, 2009 at 10:37 AM, Sefi Ninio sefi.ni...@gmail.com wrote:

 Hi.

 I have a working MenuBar, with sub menus - all working exactly as I need it
 to.

 I was wondering, however, if there was a way to force the sub menu to open
 upwards instead of downwards in relation to the menu bar.

 I plan to place the MenuBar on the bottom of the component, and would like
 to make sure that if the component is placed near the bottom of the screen,
 that the sub menu pop up won't disappear from lack of screen space.

 Thanks,
 Sefi



RE: [flexcoders] question for services-config?

2009-02-26 Thread Gregor Kiddie
There is a compiler option to allow to supply a services-config, so you
can change it and supply the changes one.

Better question, why do you want to change them?

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/ 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of markflex2007
Sent: 26 February 2009 04:22
To: flexcoders@yahoogroups.com
Subject: [flexcoders] question for services-config?

 

I have question for the following code:

channel-definition id=my-amf
class=mx.messaging.channels.AMFChannel
endpoint
uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amf

class=flex.messaging.endpoints.AMFEndpoint/
properties
polling-enabledfalse/polling-enabled
/properties
/channel-definition

which file can provice {server.name}, {server.port} and {context.root},

Which file I can change if I want to change them? Please give me the
file name I can make some changes.

Thanks

Mark





RE: [flexcoders] How to find the actual type of a custom flex component?

2009-02-26 Thread Gregor Kiddie
I think describeType() gives the inheritance list. You could pick it out
of that. It certainly gives the baseclass

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/ 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of pmotzfeldt
Sent: 26 February 2009 07:41
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to find the actual type of a custom flex
component?

 

Hi, 

I am wondering if anybody knows how I can find the actual class type
of a custom component?

By that I mean I create a custom component that is a VBox, but I call
it MyCustomBox, and whenever I call className on that it returns
MyCustomBox, but I want to get the class VBox by any means.

Appreciate any help, thanks!





Re: [flexcoders] Tons of errors using FlexBuilder on Ubuntu

2009-02-26 Thread Tom Chiverton
On Thursday 26 Feb 2009, Paul Kukiel wrote:
 Did you install into Eclipse 3.3 or 3.4 because it only works with
 3.3.  When i tried with the apt-get install eclipse version with
 Ubuntu I got lots or errors but when i manually setup 3.3 FB worked
 correctly.

I'm using the apt provided Eclipse, so v3.2, and it's been utterly fine on 
7.10, 8.04 and now 8.10 (with the Experimental Kubuntu KDE 4.2 packages 
too !): 
http://www.rachaelandtom.info/content/kubuntu-710-eclipse-and-flex-builder

-- 
Tom Chiverton
Helping to autoschediastically enable vertical fourth-generation relationships



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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

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

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

Re: [flexcoders] question for services-config?

2009-02-26 Thread Tom Chiverton
On Thursday 26 Feb 2009, markflex2007 wrote:
 which file can provice {server.name}, {server.port} and {context.root},

Their filled in at run time by the client.

 Which file I can change if I want to change them? Please give me the
 file name I can make some changes.

If you want to hard code a name, just go ahead and do so.

-- 
Tom Chiverton
Helping to biannually disintermediate edge-of-your-seat proactive impactful 
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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

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

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

[flexcoders] Reading the output of an AIR application in C#

2009-02-26 Thread akila_ksri
Hi,

I have an Air application which is launched from a C# application 
using System.Diagnostics.Process.Start(myAirApp.exe). I need to be 
able to return some results from the Air app  back to my C# app.

Is there any way to do this? 

Any help regarding this would be greatly appreciated.

Thanks in advance,
Akila 



Re: [flexcoders] Reading the output of an AIR application in C#

2009-02-26 Thread Tom Chiverton
On Thursday 26 Feb 2009, akila_ksri wrote:
 using System.Diagnostics.Process.Start(myAirApp.exe). I need to be
 able to return some results from the Air app  back to my C# app.

obviousHave the AIR app write a file, read that back in.

-- 
Tom Chiverton
Helping to dynamically cluster cross-media cross-platform e-services



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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

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

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

[flexcoders] Re: Reading the output of an AIR application in C#

2009-02-26 Thread akila_ksri
Hi Tom,

Thanks for your quick response, I do not want to write to a file 
mainly because, the output keeps coming from the Air application and I 
need to do the processing at the same time in C# and not wait till the 
application has exited completly.

-Akila

--- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiver...@... 
wrote:

 On Thursday 26 Feb 2009, akila_ksri wrote:
  using System.Diagnostics.Process.Start(myAirApp.exe). I need to 
be
  able to return some results from the Air app  back to my C# app.
 
 obviousHave the AIR app write a file, read that back in.
 
 -- 
 Tom Chiverton
 Helping to dynamically cluster cross-media cross-platform e-services
 
 
 
 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 Halliwells LLP, 3 Hardman Square, Spinningfields, 
Manchester, M3 3EB.  A list of members is available for inspection at 
the registered office together with a list of those non members who 
are referred to as partners.  We use the word ?partner? to refer to a 
member of the LLP, or an employee or consultant with equivalent 
standing and qualifications. Regulated by the Solicitors Regulation 
Authority.
 
 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 2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.






Re: [flexcoders] Re: Reading the output of an AIR application in C#

2009-02-26 Thread Weyert de Boer
You could check if AIR allows to output to the output stream (or 
System.Out) while running and you can catch that easily under Windows.

See for more information: 
http://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.redirectstandardoutput.aspx

Of course, can also add some sort of file watcher and get an event when 
the file is added to a specific file (or a file with a specific name) 
and then directly open it in C#.

See: 
http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx


RE: [flexcoders] Re: Reading the output of an AIR application in C#

2009-02-26 Thread Gregor Kiddie
They can communicate via LocalConnection. Your C# app just needs to
re-implement it, which admittedly is no small undertaking.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/ 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of akila_ksri
Sent: 26 February 2009 12:04
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Reading the output of an AIR application in C#

 

Hi Tom,

Thanks for your quick response, I do not want to write to a file 
mainly because, the output keeps coming from the Air application and I 
need to do the processing at the same time in C# and not wait till the 
application has exited completly.

-Akila

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Tom Chiverton tom.chiver...@... 
wrote:

 On Thursday 26 Feb 2009, akila_ksri wrote:
  using System.Diagnostics.Process.Start(myAirApp.exe). I need to 
be
  able to return some results from the Air app back to my C# app.
 
 obviousHave the AIR app write a file, read that back in.
 
 -- 
 Tom Chiverton
 Helping to dynamically cluster cross-media cross-platform e-services
 
 
 
 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 Halliwells LLP, 3 Hardman Square, Spinningfields, 
Manchester, M3 3EB. A list of members is available for inspection at 
the registered office together with a list of those non members who 
are referred to as partners. We use the word ?partner? to refer to a 
member of the LLP, or an employee or consultant with equivalent 
standing and qualifications. Regulated by the Solicitors Regulation 
Authority.
 
 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 2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.






Re: [flexcoders] Reading the output of an AIR application in C#

2009-02-26 Thread Ashish Verma
I think there is AxInterop.ShockwaveFlashObjects.dll that would be useful



On Thu, Feb 26, 2009 at 4:46 PM, akila_ksri akila_k...@yahoo.co.in wrote:

   Hi,

 I have an Air application which is launched from a C# application
 using System.Diagnostics.Process.Start(myAirApp.exe). I need to be
 able to return some results from the Air app back to my C# app.

 Is there any way to do this?

 Any help regarding this would be greatly appreciated.

 Thanks in advance,
 Akila

 



Re: [flexcoders] Re: Reading the output of an AIR application in C#

2009-02-26 Thread Weyert de Boer
You can find most of the information you need at: 
www.osflash.org/localconnection.


[flexcoders] Flex States and HttpService

2009-02-26 Thread ourcatgoogle
1) I use HTTP1  to inquire from an Oracle Pipe in State1.
2) Then I use HTTP2 to load a dropdown in State2 with a default value
from the Oracle Pipe result in State1.
3) All the code resides in a single script.

Question:
How do I get HTTP2 to execute in State2 ONLY? 



Re: [flexcoders] Re: Reading the output of an AIR application in C#

2009-02-26 Thread Tom Chiverton
On Thursday 26 Feb 2009, akila_ksri wrote:
 Thanks for your quick response, I do not want to write to a file
 mainly because, the output keeps coming from the Air application and I

Use SQLlite then ? I'll be amazed if C# doesn't have a connector...
-- 
Tom Chiverton
Helping to appropriately cluster scalable total principle-centered CEOs



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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

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

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

Re: [flexcoders] Flex RAM memory use - (probably a question for the player engineers?)

2009-02-26 Thread Ashish Verma
For the first problem I don't have clue but for second problem I can say
that it's due to weird behaviour of Flash Garbage Collector.

On Thu, Feb 26, 2009 at 2:48 PM, nwebb neilw...@gmail.com wrote:

   Hi,

 we're having 2 issues with memory in Flex:

 1) Part way through our Flex application we open an external HTML page (3rd
 party page). The user selects items from this page and then closes the page
  the control is then returned to the Flex application. This 3rd  party page
 is heavy in terms of memory, and that memory is never getting released once
 the page is closed. Is it at all possible that Flex is holding on to a
 handle to that page and if so is there any way to release it, or is this
 definitely not a Flex problem, and more a browser issues or issue with the
 external page as I expect?

 2) The Flex app is one part of a much larger website. When we proceed past
 the Flex app (ie the user proceeds to a page where the app isn't embedded),
 again much of the memory Flex was using doesn't seem to be getting released.
 A browser issue?

 Needless to say IE seems to be much more of a memory hog, but we've been
 looking at this in both IE and FireFox.

 Any help much appreciated.

 Cheers,
 Neil




 



RE: [flexcoders] Re: Reading the output of an AIR application in C#

2009-02-26 Thread Jim Hayes
You can write a socket server into your c# application and connect to
that from the AIR app.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of akila_ksri
Sent: 26 February 2009 12:04
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Reading the output of an AIR application in C#
 
Hi Tom,

Thanks for your quick response, I do not want to write to a file 
mainly because, the output keeps coming from the Air application and I 
need to do the processing at the same time in C# and not wait till the 
application has exited completly.

-Akila

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Tom Chiverton tom.chiver...@... 
wrote:

 On Thursday 26 Feb 2009, akila_ksri wrote:
  using System.Diagnostics.Process.Start(myAirApp.exe). I need to 
be
  able to return some results from the Air app back to my C# app.
 
 obviousHave the AIR app write a file, read that back in.
 
 -- 
 Tom Chiverton
 Helping to dynamically cluster cross-media cross-platform e-services
 
 
 
 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 Halliwells LLP, 3 Hardman Square, Spinningfields, 
Manchester, M3 3EB. A list of members is available for inspection at 
the registered office together with a list of those non members who 
are referred to as partners. We use the word ?partner? to refer to a 
member of the LLP, or an employee or consultant with equivalent 
standing and qualifications. Regulated by the Solicitors Regulation 
Authority.
 
 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 2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

Re: [flexcoders] How to find the actual type of a custom flex component?

2009-02-26 Thread Ashish Verma
You can use is operator to compare that object with your desired set of
classes using if - else if conditions


Best,
Ashish
On Thu, Feb 26, 2009 at 3:30 PM, Gregor Kiddie gkid...@inpses.co.uk wrote:

I think describeType() gives the inheritance list. You could pick it
 out of that. It certainly gives the baseclass



 Gk.

 *Gregor Kiddie*
 Senior Developer
 *INPS*

 Tel:   01382 564343

 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ

 Registered Number: 1788577

 Registered in the UK

 Visit our Internet Web site at www.inps.co.uk

 The information in this internet email is confidential and is intended
 solely for the addressee. Access, copying or re-use of information in it by
 anyone else is not authorised. Any views or opinions presented are solely
 those of the author and do not necessarily represent those of INPS or any of
 its affiliates. If you are not the intended recipient please contact
 is.helpd...@inps.co.uk
  --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *pmotzfeldt
 *Sent:* 26 February 2009 07:41
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] How to find the actual type of a custom flex
 component?



 Hi,

 I am wondering if anybody knows how I can find the actual class type
 of a custom component?

 By that I mean I create a custom component that is a VBox, but I call
 it MyCustomBox, and whenever I call className on that it returns
 MyCustomBox, but I want to get the class VBox by any means.

 Appreciate any help, thanks!

 



[flexcoders] ToggleButtonBar xml based dataProvider (2)

2009-02-26 Thread markgoldin_2000
Still can't understand why the following does not work:
code:
mx:ToggleButtonBar id=floorlines direction=vertical 
iconField=icon 
horizontalGap=5 itemClick=clickHandler
(event); labelField=label
creationComplete=floorLinesData(); 
height=100% fontSize=8 fontWeight=bold/

data:
root
  lines
id4/id
labelG2/label
onlinetrue/online
icon@Embed('D:/projects/sfcs/assets/status_online.png')/icon
  /lines
  lines
/root

code:
floorlines.dataProvider = resultXML.lines;

error:
Error: ERROR: The dataProvider of 'floorlines' must not contain 
objects of type flash.display.DisplayObject.
at mx.controls::NavBar/set dataProvider()[C:\autobuild\3.2.0
\frameworks\projects\framework\src\mx\controls\NavBar.as:378]
at tasktracking/floorLinesShowData()
[D:\projects\sfcs\tasktracking\src\tasktracking.mxml:107]
at modulecode::Classes/httpResult()
[D:\projects\sfcs\UFDCommonLib\src\modulecode\Classes.as:62]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::di
spatchRpcEvent()[C:\autobuild\3.2.0
\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:170]
at 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::re
sultHandler()[C:\autobuild\3.2.0
\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:193]
at mx.rpc::Responder/result()[C:\autobuild\3.2.0
\frameworks\projects\rpc\src\mx\rpc\Responder.as:43]
at mx.rpc::AsyncRequest/acknowledge()[C:\autobuild\3.2.0
\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74]
at DirectHTTPMessageResponder/completeHandler()
[C:\autobuild\3.2.0
\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.a
s:403]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()

Thanks




Re: [flexcoders] How to find the actual type of a custom flex component?

2009-02-26 Thread Jeffry Houser

 You should be able to override the className property, something like this:

override public function className():String{
 return 'VBox'
}

 Whether it is a good idea or not is open to discussion.

pmotzfeldt wrote:
 Hi, 

 I am wondering if anybody knows how I can find the actual class type
 of a custom component?

 By that I mean I create a custom component that is a VBox, but I call
 it MyCustomBox, and whenever I call className on that it returns
 MyCustomBox, but I want to get the class VBox by any means.

 Appreciate any help, thanks!



 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links




   

-- 
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust




Re: [flexcoders] Re: Reading the output of an AIR application in C#

2009-02-26 Thread Jeffry Houser


Maybe you want to look at technologies other than AIR? 

Tom's suggestion of write to file, read from file should be 
implementable w/o shutting down the AIR app.  You just have to implement 
some kind of directory watcher in the C# piece. 

Beyond that, you might look into WebORB.NET or CommandProxy (or Merapi 
to a lesser extent) to work out a different method for passing data back 
and forth. 


akila_ksri wrote:

Hi Tom,

Thanks for your quick response, I do not want to write to a file 
mainly because, the output keeps coming from the Air application and I 
need to do the processing at the same time in C# and not wait till the 
application has exited completly.


-Akila

--- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiver...@... 
wrote:
  

On Thursday 26 Feb 2009, akila_ksri wrote:

using System.Diagnostics.Process.Start(myAirApp.exe). I need to 
  

be
  

able to return some results from the Air app  back to my C# app.
  

obviousHave the AIR app write a file, read that back in.

--
Tom Chiverton
Helping to dynamically cluster cross-media cross-platform e-services



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 Halliwells LLP, 3 Hardman Square, Spinningfields, 
Manchester, M3 3EB.  A list of members is available for inspection at 
the registered office together with a list of those non members who 
are referred to as partners.  We use the word ?partner? to refer to a 
member of the LLP, or an employee or consultant with equivalent 
standing and qualifications. Regulated by the Solicitors Regulation 
Authority.
  

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

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










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links




  


--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



[flexcoders] Re: Dynamically change HBox based upon height/width of Image

2009-02-26 Thread azona26
Solved. Use contentHeight and contentWidth to get scaledImage 
properties. Hope this helps someone else out.

--- In flexcoders@yahoogroups.com, azona26 azsl1326-em...@... wrote:

 I am have a (large) Image Control whose source property is based upon
 which (smaller) Image Control is selected in an itemrenderer of a tile
 list. The 'large' Image Control is contained within an HBox that has a
 border along with a background. I would like to have the HBox resize
 when a new image is selected from the tilelist's itemrenderer. I can 
not
 seem to be able to grab the new image's width and height in order to
 resize the HBox. Any insight on how I might get these values?
 
 Thanks for the assistance.





[flexcoders] help with Image source

2009-02-26 Thread oneworld95
I have an itemRendrer in a DataGrid that contains an Image tag. When
the user uploads the image file from another column's itemRenderer, I
need to have the Image's source set to the new filename. How is this
done in Flex using good OOP practices?



[flexcoders] design time array vs. run time array

2009-02-26 Thread markgoldin_2000
Design:
mx:Array id=arr
mx:Object label=Accordion
icon=@Embed('D:/projects/sfcs/assets/status_online.png') /
/mx:Array

Run time:
objectToArray = new Object;
objectToArray.label = Accordion;
objectToArray.icon = @Embed
('D:/projects/sfcs/assets/status_online.png');
lineList[0] = objectToArray;

In the debugger for run time array:
icon looks like this: @Embed
('D:/projects/sfcs/assets/status_online.png')

but for design time array:
it looks like this:
test__embed_mxml_D__projects_sfcs_assets_status_online_png_1891042693$ 
(@6436f41)

What am I missing here?

Thanks



Re: [flexcoders] design time array vs. run time array

2009-02-26 Thread Paul Andrews
- Original Message - 
From: markgoldin_2000 markgoldin_2...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Thursday, February 26, 2009 3:28 PM
Subject: [flexcoders] design time array vs. run time array


 Design:
 mx:Array id=arr
 mx:Object label=Accordion
 icon=@Embed('D:/projects/sfcs/assets/status_online.png') /
 /mx:Array

 Run time:
 objectToArray = new Object;
 objectToArray.label = Accordion;
 objectToArray.icon = @Embed
 ('D:/projects/sfcs/assets/status_online.png');
 lineList[0] = objectToArray;

 In the debugger for run time array:
 icon looks like this: @Embed
 ('D:/projects/sfcs/assets/status_online.png')

 but for design time array:
 it looks like this:
 test__embed_mxml_D__projects_sfcs_assets_status_online_png_1891042693$
 (@6436f41)

 What am I missing here?

At design time the icon image is embedded when the swf is generated - 
increasing it's size. At runtime, it's loaded at runtime from a file.

 Thanks 



[flexcoders] Re: question for services-config?

2009-02-26 Thread markflex2007
How to do this if I need se end point like
 
http://192.168.0.10:1080/mytest/mytestbroker/amf

Thanks


Mark
 



[flexcoders] show and createComplate event?

2009-02-26 Thread markflex2007
I add show event to my component like

mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; height=768
width=858 xmlns:ns1=marketingModule.view.components.forms.* 
   show =init()



/mx:Canvas

but it doesn't call the function. I change it to craeteComplate,it
works at first time.

But I need call the function when I open the component.I am confuse
the show event.Please help me

Thanks


Mark



[flexcoders] Re: ToggleButtonBar xml based dataProvider (2)

2009-02-26 Thread bhaq1972
i'm no expert but i'd suggest not using XML as the 
dataprovideronly because of what the docs say and looking at the 
code prior to line 378 in NavBar.as

I modified your dataprovider to look like this

mx:dataProvider
 mx:Array
  mx:Object id=b4 label=G2 online=true icon=@Embed.../
etc..
 /mx:Array
/mx:dataProvider

And it works fine.




--- In flexcoders@yahoogroups.com, markgoldin_2000 
markgoldin_2...@... wrote:

 Still can't understand why the following does not work:
 code:
 mx:ToggleButtonBar id=floorlines direction=vertical 
 iconField=icon 
   horizontalGap=5 itemClick=clickHandler
 (event); labelField=label
   creationComplete=floorLinesData(); 
   height=100% fontSize=8 fontWeight=bold/
 
 data:
 root
   lines
 id4/id
 labelG2/label
 onlinetrue/online
 
icon@Embed('D:/projects/sfcs/assets/status_online.png')/icon
   /lines
   lines
 /root
 
 code:
 floorlines.dataProvider = resultXML.lines;
 
 error:
 Error: ERROR: The dataProvider of 'floorlines' must not contain 
 objects of type flash.display.DisplayObject.
   at mx.controls::NavBar/set dataProvider()[C:\autobuild\3.2.0
 \frameworks\projects\framework\src\mx\controls\NavBar.as:378]
   at tasktracking/floorLinesShowData()
 [D:\projects\sfcs\tasktracking\src\tasktracking.mxml:107]
   at modulecode::Classes/httpResult()
 [D:\projects\sfcs\UFDCommonLib\src\modulecode\Classes.as:62]
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at 
 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::di
 spatchRpcEvent()[C:\autobuild\3.2.0
 \frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:170]
   at 
 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::re
 sultHandler()[C:\autobuild\3.2.0
 \frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:193]
   at mx.rpc::Responder/result()[C:\autobuild\3.2.0
 \frameworks\projects\rpc\src\mx\rpc\Responder.as:43]
   at mx.rpc::AsyncRequest/acknowledge()[C:\autobuild\3.2.0
 \frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74]
   at DirectHTTPMessageResponder/completeHandler()
 [C:\autobuild\3.2.0
 
\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.a
 s:403]
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at flash.net::URLLoader/onComplete()
 
 Thanks






RE: [flexcoders] Flex RAM memory use - (probably a question for the player engineers?)

2009-02-26 Thread Alex Harui
Are you using SWFObject?  
http://groups.google.com/group/swfobject/browse_thread/thread/d94bc23037ddc714

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Ashish Verma
Sent: Thursday, February 26, 2009 5:27 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex  RAM memory use - (probably a question for the 
player engineers?)

For the first problem I don't have clue but for second problem I can say that 
it's due to weird behaviour of Flash Garbage Collector.
On Thu, Feb 26, 2009 at 2:48 PM, nwebb 
neilw...@gmail.commailto:neilw...@gmail.com wrote:

Hi,

we're having 2 issues with memory in Flex:

1) Part way through our Flex application we open an external HTML page (3rd 
party page). The user selects items from this page and then closes the page  
the control is then returned to the Flex application. This 3rd  party page is 
heavy in terms of memory, and that memory is never getting released once the 
page is closed. Is it at all possible that Flex is holding on to a handle to 
that page and if so is there any way to release it, or is this definitely not a 
Flex problem, and more a browser issues or issue with the external page as I 
expect?

2) The Flex app is one part of a much larger website. When we proceed past the 
Flex app (ie the user proceeds to a page where the app isn't embedded), again 
much of the memory Flex was using doesn't seem to be getting released. A 
browser issue?

Needless to say IE seems to be much more of a memory hog, but we've been 
looking at this in both IE and FireFox.

Any help much appreciated.

Cheers,
Neil








[flexcoders] form validation pop-up migrain

2009-02-26 Thread wakouaq
Hello everyone,

I've been running into a pretty disturbing problem for the last few days.

I am updating a login module so that it can handle user registration
and password retrieval. 

I have various messages displayed depending on what the user did ( e.g
: the password is incorrect ). And they all correctly appear IN FRONT
of my login module.

When the user clicks on the submit button, a validation function is
called to check if the fields have all correctly been filled and if
not, a pop up message is displayed telling the user that he didn't
fill correctly all the fields.
So here comes my problem : this particular pop-up is displayed BEHIND
my login module.

My guess would be that for some reason, the focus is given back to the
login module, sending the pop-up behind it as fast as lightning. 


Does anyone have any suggestion on how to fix this issue ? 

I can provide more detailled info if you wish, like bits of code.




[flexcoders] Help with ColumnChart?

2009-02-26 Thread webbymary
I am drawing the horizontal line of a crosshair on a columnchart.

g.lineStyle(2,0xFF,.5);

g.moveTo(0,_crosshairs.y);
g.lineTo(unscaledWidth,_crosshairs.y);



I would like to change the lineStyle when the crosshair hits a y
coordinate that would equate to a particular data value on the y-axis.

Help?



[flexcoders] Converting strings to numbers before sorting?

2009-02-26 Thread Keith Hughitt
Hi all,

I have a problem related to sorting type-casted numeric data, and was
wondering if someone could help me out:

Given some numeric data stored as strings (11.5), how can I populate
it into a DataGrid and have it sort properly?

From the Flex API docs
http://livedocs.adobe.com/flex/3/langref/mx/controls/dataGridClasses/Da\
taGridColumn.html#sortCompareFunction  it appears that when you use a
labelFunction instead of a dataField to specify what should be displayed
in a column, that the output of the label function is what is then used
for sorting:

If you specify a value of the labelFunction property,   you must
also provide a function to the sortCompareFunction property,  
unless sorting is not allowed on this column.

So my first attempt was to simply cast the strings to numbers within the
label function and hope that the default sorters would still be
available:

private function testLabel2(item:Object, col:DataGridColumn):Number {
 return parseFloat(item.string);
}
... I also tried using Number(item.string), however, neither worked so
I went to manually specifying the sort compare function:

 public function sortAsIs(obj1:Object, obj2:Object):int {
 if (obj1  obj2)
 return -1;
 else if (obj1 == obj2)
 return 0;
 else
 return 1;
 }

This didn't do the trick either. So finally, I decided to try doing the
conversion in the sortCompareFunction, just in case it was comparing the
original data fields and not the output of the label function. Again no
luck.

Anyone have any suggestions? Any help would be greatly appreciated.

Here is the full code for the test case I am describing:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 mx:Script
 ![CDATA[
 import mx.collections.ArrayCollection;

 [Bindable]
 public var test:ArrayCollection = new ArrayCollection([
 {string: 11.0, number: 11.0},
 {string: 0, number: 0},
 {string: 7.75, number: 7.75},
 {string: 8, number: 8},
 {string: 3, number: 3},
 {string: 8.93, number: 8.93}
 ]);

 private function testLabel1(item:Object,
col:DataGridColumn):Number {
 return Number(item.string);
 }

 private function testLabel2(item:Object,
col:DataGridColumn):Number {
 return parseFloat(item.string);
 }

 public function sortAsIs(obj1:Object, obj2:Object):int {
 if (obj1  obj2)
 return -1;
 else if (obj1 == obj2)
 return 0;
 else
 return 1;
 }

 public function sortAfterCasting(obj1:Object, obj2:Object):int {
 var a:Number = Number(obj1);
 var b:Number = Number(obj2);

 if (a  b)
 return -1;
 else if (a == b)
 return 0;
 else
 return 1;
 }

 ]]
 /mx:Script

 mx:DataGrid id=testDG dataProvider={test}
 mx:columns
 mx:DataGridColumn dataField=string /
 mx:DataGridColumn dataField=number /
 mx:DataGridColumn headerText=Number(string) - sortAsIs
labelFunction=testLabel1 sortCompareFunction=sortAsIs/
 mx:DataGridColumn headerText=parseFloat(string) -
sortAsIs labelFunction=testLabel2 sortCompareFunction=sortAsIs/
 mx:DataGridColumn headerText=Number(string) - casting
labelFunction=testLabel1 sortCompareFunction=sortAfterCasting/
 mx:DataGridColumn headerText=parseFloat(string) - casting
labelFunction=testLabel2 sortCompareFunction=sortAfterCasting/
 /mx:columns
 /mx:DataGrid
/mx:Application


Thanks!
Keith




Re: [flexcoders] Converting strings to numbers before sorting?

2009-02-26 Thread Adrian Williams

Hi Keith,

   Have you tried casting your string to a number via the number() 
function first? Number() handles floating points well.  We have the same 
problem sorting kit numbers in true numerical fashion as we can have 
some that begin with a letter versus a true number.  So in our sort 
compare we do this:


   public static function compareKitNumbers(obj1:Object, 
obj2:Object):int

   {
   var value1:Number = (obj1.KitNum == '' || obj1.KitNum == 
null) ? null : new Number(obj1.KitNum);
   var value2:Number = (obj2.KitNum == '' || obj2.KitNum == 
null) ? null : new Number(obj2.KitNum);

   var kitnum1:String = obj1.KitNum as String;
   var kitnum2:String = obj2.KitNum as String;
   var kit1Length:int = kitnum1.length - 1;
   var kit2Length:int = kitnum2.length - 1;
  
   if (isNaN(value1)  isNaN(value2))

   {
   if (kitnum1.substr(0,1)  kitnum2.substr(0,1))
   {
   return -1;
   }
   else if (kitnum1.substr(0,1)  kitnum2.substr(0,1))
   {
   return 1;
   }
   else
   {
   value1 = new Number(kitnum1.substr(1,kit1Length));
   value2 = new Number(kitnum2.substr(1,kit2Length));
   }
   }

   if (value1  value2 || (isNaN(value2)  !isNaN(value1)))
   {
   return -1;
   }
   else if (value1  value2 || (isNaN(value1)  !isNaN(value2)))
   {
   return 1;
   }
   else
   {
   return 0;
   }
   }

HTH,
Adrian


Keith Hughitt wrote:


Hi all,

I have a problem related to sorting type-casted numeric data, and was 
wondering if someone could help me out:


Given some numeric data stored as strings (11.5), how can I populate 
it into a DataGrid and have it sort properly?


From the Flex API docs 
http://livedocs.adobe.com/flex/3/langref/mx/controls/dataGridClasses/DataGridColumn.html#sortCompareFunction 
it appears that when you use a labelFunction instead of a dataField to 
specify what should be displayed in a column, that the output of the 
label function is what is then used for sorting:


If you specify a value of the |labelFunction| property, you must
also provide a function to the |sortCompareFunction| property,
unless sorting is not allowed on this column. 

So my first attempt was to simply cast the strings to numbers within 
the label function and hope that the default sorters would still be 
available:


private function testLabel2(item:Object, col:DataGridColumn):Number {
return parseFloat(item.string);
}

... I also tried using Number(item.string), however, neither worked 
so I went to manually specifying the sort compare function:


public function sortAsIs(obj1:Object, obj2:Object):int {
if (obj1  obj2)
return -1;
else if (obj1 == obj2)
return 0;
else
return 1;
}

This didn't do the trick either. So finally, I decided to try doing 
the conversion in the sortCompareFunction, just in case it was 
comparing the original data fields and not the output of the label 
function. Again no luck.


Anyone have any suggestions? Any help would be greatly appreciated.

Here is the full code for the test case I am describing:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
   
[Bindable]

public var test:ArrayCollection = new ArrayCollection([
{string: 11.0, number: 11.0},
{string: 0, number: 0},
{string: 7.75, number: 7.75},
{string: 8, number: 8},
{string: 3, number: 3},
{string: 8.93, number: 8.93}
]);
   
private function testLabel1(item:Object, 
col:DataGridColumn):Number {

return Number(item.string);
}
   
private function testLabel2(item:Object, 
col:DataGridColumn):Number {

return parseFloat(item.string);
}
   
public function sortAsIs(obj1:Object, obj2:Object):int {

if (obj1  obj2)
return -1;
else if (obj1 == obj2)
return 0;
else
return 1;
}
   
public function sortAfterCasting(obj1:Object, obj2:Object):int {

var a:Number = Number(obj1);
var b:Number = Number(obj2);
   
if (a  b)

return -1;
else if (a == b)
return 0;
else
return 1;
}

]]
/mx:Script
   
mx:DataGrid id=testDG dataProvider={test}

mx:columns
mx:DataGridColumn dataField=string /
mx:DataGridColumn dataField=number /
   

Re: [flexcoders] Re: Loader or URLRequest Issues on Mac

2009-02-26 Thread Maciek Sakrejda
As I'm answering my own questions here, I guess I'll just posted my
findings :)

I just wanted to point out that this is much appreciated. There's way
too many forum threads that end with never mind--figured it out, which
is not that helpful to the next guy who has the same question
(flexcoders is actually pretty good about this, but I figure it can't
hurt to encourage the behavior).

Thanks,
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com






[flexcoders] Re: ToggleButtonBar xml based dataProvider (2)

2009-02-26 Thread markgoldin_2000
Yeah, I see it now too.
Do think it's possible to set an icon for a button at run time?

--- In flexcoders@yahoogroups.com, bhaq1972 mbha...@... wrote:

 i'm no expert but i'd suggest not using XML as the 
 dataprovideronly because of what the docs say and looking at 
the 
 code prior to line 378 in NavBar.as
 
 I modified your dataprovider to look like this
 
 mx:dataProvider
  mx:Array
   mx:Object id=b4 label=G2 online=true icon=@Embed.../
 etc..
  /mx:Array
 /mx:dataProvider
 
 And it works fine.
 
 
 
 
 --- In flexcoders@yahoogroups.com, markgoldin_2000 
 markgoldin_2000@ wrote:
 
  Still can't understand why the following does not work:
  code:
  mx:ToggleButtonBar id=floorlines direction=vertical 
  iconField=icon 
  horizontalGap=5 itemClick=clickHandler
  (event); labelField=label
  creationComplete=floorLinesData(); 
  height=100% fontSize=8 fontWeight=bold/
  
  data:
  root
lines
  id4/id
  labelG2/label
  onlinetrue/online
  
 icon@Embed('D:/projects/sfcs/assets/status_online.png')/icon
/lines
lines
  /root
  
  code:
  floorlines.dataProvider = resultXML.lines;
  
  error:
  Error: ERROR: The dataProvider of 'floorlines' must not contain 
  objects of type flash.display.DisplayObject.
  at mx.controls::NavBar/set dataProvider()[C:\autobuild\3.2.0
  \frameworks\projects\framework\src\mx\controls\NavBar.as:378]
  at tasktracking/floorLinesShowData()
  [D:\projects\sfcs\tasktracking\src\tasktracking.mxml:107]
  at modulecode::Classes/httpResult()
  [D:\projects\sfcs\UFDCommonLib\src\modulecode\Classes.as:62]
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at 
  
 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::di
  spatchRpcEvent()[C:\autobuild\3.2.0
  \frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:170]
  at 
  
 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::re
  sultHandler()[C:\autobuild\3.2.0
  \frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:193]
  at mx.rpc::Responder/result()[C:\autobuild\3.2.0
  \frameworks\projects\rpc\src\mx\rpc\Responder.as:43]
  at mx.rpc::AsyncRequest/acknowledge()[C:\autobuild\3.2.0
  \frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74]
  at DirectHTTPMessageResponder/completeHandler()
  [C:\autobuild\3.2.0
  
 
\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.a
  s:403]
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at flash.net::URLLoader/onComplete()
  
  Thanks
 





Re: [flexcoders] Re: ToggleButtonBar xml based dataProvider (2)

2009-02-26 Thread Maciek Sakrejda
Not by default, but there are about a million and a half examples if you
search the web.
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: markgoldin_2000 markgoldin_2...@yahoo.com
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ToggleButtonBar xml based dataProvider (2)
Date: Thu, 26 Feb 2009 17:36:09 -

Yeah, I see it now too.
Do think it's possible to set an icon for a button at run time?

--- In flexcoders@yahoogroups.com, bhaq1972 mbha...@... wrote:

 i'm no expert but i'd suggest not using XML as the 
 dataprovideronly because of what the docs say and looking at 
the 
 code prior to line 378 in NavBar.as
 
 I modified your dataprovider to look like this
 
 mx:dataProvider
 mx:Array
 mx:Object id=b4 label=G2 online=true icon=@Embed.../
 etc..
 /mx:Array
 /mx:dataProvider
 
 And it works fine.
 
 
 
 
 --- In flexcoders@yahoogroups.com, markgoldin_2000 
 markgoldin_2000@ wrote:
 
  Still can't understand why the following does not work:
  code:
  mx:ToggleButtonBar id=floorlines direction=vertical 
  iconField=icon 
  horizontalGap=5 itemClick=clickHandler
  (event); labelField=label
  creationComplete=floorLinesData(); 
  height=100% fontSize=8 fontWeight=bold/
  
  data:
  root
  lines
  id4/id
  labelG2/label
  onlinetrue/online
  
 icon@Embed('D:/projects/sfcs/assets/status_online.png')/icon
  /lines
  lines
  /root
  
  code:
  floorlines.dataProvider = resultXML.lines;
  
  error:
  Error: ERROR: The dataProvider of 'floorlines' must not contain 
  objects of type flash.display.DisplayObject.
  at mx.controls::NavBar/set dataProvider()[C:\autobuild\3.2.0
  \frameworks\projects\framework\src\mx\controls\NavBar.as:378]
  at tasktracking/floorLinesShowData()
  [D:\projects\sfcs\tasktracking\src\tasktracking.mxml:107]
  at modulecode::Classes/httpResult()
  [D:\projects\sfcs\UFDCommonLib\src\modulecode\Classes.as:62]
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at 
  
 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::di
  spatchRpcEvent()[C:\autobuild\3.2.0
  \frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:170]
  at 
  
 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::re
  sultHandler()[C:\autobuild\3.2.0
  \frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:193]
  at mx.rpc::Responder/result()[C:\autobuild\3.2.0
  \frameworks\projects\rpc\src\mx\rpc\Responder.as:43]
  at mx.rpc::AsyncRequest/acknowledge()[C:\autobuild\3.2.0
  \frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74]
  at DirectHTTPMessageResponder/completeHandler()
  [C:\autobuild\3.2.0
  
 
\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.a
  s:403]
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at flash.net::URLLoader/onComplete()
  
  Thanks
 










Re: [flexcoders] Reading the output of an AIR application in C#

2009-02-26 Thread Maciek Sakrejda
I think you should be able to have the C# app open an XML socket server,
and communicate back through XMLSocket from Flex. It's much more
straightforward than reimplementing LocalConnection, and much more
flexible than communicating through a file.
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: akila_ksri akila_k...@yahoo.co.in
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Reading the output of an AIR application in C#
Date: Thu, 26 Feb 2009 11:16:44 -

Hi,

I have an Air application which is launched from a C# application 
using System.Diagnostics.Process.Start(myAirApp.exe). I need to be 
able to return some results from the Air app back to my C# app.

Is there any way to do this? 

Any help regarding this would be greatly appreciated.

Thanks in advance,
Akila 









[flexcoders] AdvancedDataGrid Browser hangs

2009-02-26 Thread gireeshgiri
Hi, 

   I have created a dynamic AdvancedDataGrid, columns on data grid is
added dynamically and also uses header renders, data is attached via
binding (via Model). 

The issue is, When the data provider is null or empty my browser
hangs, If I try adding a breakpoint in my custom header renderer I
see that the creationCompleted is keep getting called, looks like
its creating/validating header columns in a loop.

What is the problem, Need to solve this ASAP, I am stuck here.

Thanks
Gireesh



[flexcoders] syncing AIR/Flex app with mobile phones

2009-02-26 Thread arieljake
Has anyone handled syncing things like contacts or calendar events
with mobile phones? Are there services or libraries for integrating
with the existing contact and calendar apps on the popular smartphones?



[flexcoders] Printing same object twice, different results

2009-02-26 Thread kaleb_pederson
In trying to track down a printing bug [1], I discovered that (on
certain browsers) I can print the exact same object twice using
PrintJob.addPage(myPage) and get different results, even though
nothing about the object changed between calls [2] [3].

So far, I've found that the following things matter to some extent:

1) It doesn't show up on most systems, but it shows up almost every
time on other systems
2) I must have compiled targeting flash player 10
3) Changing myPage's parent from the print preview control to
Application.application immediately before printing makes the bug
disappear on some systems, and less invasive on other systems.
4) Avoiding the print preview control and printing directly when
attached to Application.application seems to make the bug disappear on
all systems
5) It doesn't matter whether or not I use FlexBuilder's provided 3.2
SDK, the open source 3.2 SDK, or the open source 3.3 SDK.

Does anybody have suggestions or thoughts on what might cause this? 
Do you have other suggestions for things that I can look at?

Thanks.

Kaleb Pederson

[1] https://bugs.adobe.com/jira/browse/FP-1352
[2] http://blogs.soph-ware.com/?p=42 (prints same page twice)
[3] http://blogs.soph-ware.com/?p=17 (details and background)



[flexcoders] Re: flash.events and flash.net library don't exist in Flex SDK 3.3.0.4852 ??

2009-02-26 Thread handitan
Yikes!!!
Man, I really hope that this is just a mistake and it will be fixed 
soon.

Well, I also post this question on Flex SDK forum.
http://www.adobeforums.com/webx/.59b80d28

Still waiting for the reply...





[flexcoders] labelFunction on BarSeries not firing

2009-02-26 Thread Bob Wohl
Hello all,
I'm not to sure why this isn't firing. I've broke this down to the simplest
of forms and even used some very basic examples to reproduce. For some
reason the labelfunctiojn never gets hit, maybe I'm missing something very
simple. My stacked charts and pie charts fire just fine, seems to only be
the bar chart that I'm having this issue with. Any Ideas would be much
appreciated.
code :
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  mx:Script![CDATA[
  import mx.charts.ChartItem;
import mx.charts.chartClasses.Series;
   import mx.collections.ArrayCollection;
 [Bindable]
 public var expenses:ArrayCollection = new ArrayCollection([
{Month:Jan, Profit:2000, Expenses:1500},
{Month:Feb, Profit:1000, Expenses:200},
{Month:Mar, Profit:1500, Expenses:500}
 ]);
private function myLabelFunction(element:ChartItem, series:Series):String {
trace(should fire)
var str:String = hello!
return str;
}
   ]]/mx:Script
mx:BarChart id=theChart dataProvider={expenses} showDataTips=true
width=780
 mx:verticalAxis
mx:CategoryAxis categoryField=Month /
/mx:verticalAxis
mx:series
mx:BarSeries labelFunction=myLabelFunction yField=Month
xField=Profit/
/mx:series
/mx:BarChart
/mx:Application



Thanks in Advance!
B.


[flexcoders] Advanced datagrid with grouping to Excel

2009-02-26 Thread w_page3
I have an advanced datagrid with 3 levels of Grouping...

Like this 
Total Expense
Total Expense by Section
Total Expense by Line
Total Expense by Vendor

The datagrid works perfectly but when I export to Excel using a 
modified version of exportexcel.ascode found 
here...http://www.saskovic.com/blog/?p=3...I was unable to get any 
results (after changing the references to advanceddatagrid...

so as a workaround i passed in the array collection...
the result is basically a flat version of my data without subtotals

I would like to include subtotal lines but have not seen this done 
anywhere on the web...I am sure it is possible by modifying the 
exportexcel.as file...Looking for node items vs tree items...Just not 
sure how to go about it...



RE: [flexcoders] labelFunction on BarSeries not firing

2009-02-26 Thread Ryan Graham

Hey Bob,

 

Good meeting you at the AZFPUG meeting last night.

 

Looks like labelPosition defaults to none on a BarSeries. Try setting
that to something else:

 

mx:BarSeries labelFunction=myLabelFunction labelPosition=outside
yField=Month xField=Profit/

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Bob Wohl
Sent: Thursday, February 26, 2009 11:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] labelFunction on BarSeries not firing

 

Hello all, 

 

I'm not to sure why this isn't firing. I've broke this down to the
simplest of forms and even used some very basic examples to reproduce.
For some reason the labelfunctiojn never gets hit, maybe I'm missing
something very simple. My stacked charts and pie charts fire just fine,
seems to only be the bar chart that I'm having this issue with. Any
Ideas would be much appreciated.

 

code :

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

  mx:Script![CDATA[

import mx.charts.ChartItem;

import mx.charts.chartClasses.Series;

import mx.collections.ArrayCollection;

[Bindable]

public var expenses:ArrayCollection = new
ArrayCollection([

   {Month:Jan, Profit:2000, Expenses:1500},

   {Month:Feb, Profit:1000, Expenses:200},

   {Month:Mar, Profit:1500, Expenses:500}

]);

private function
myLabelFunction(element:ChartItem, series:Series):String {

trace(should fire)

   var str:String = hello!

   return str;

}

]]/mx:Script

mx:BarChart id=theChart dataProvider={expenses}
showDataTips=true width=780

mx:verticalAxis

mx:CategoryAxis categoryField=Month /

/mx:verticalAxis

mx:series

mx:BarSeries labelFunction=myLabelFunction yField=Month
xField=Profit/

/mx:series

/mx:BarChart

/mx:Application

 

 

 

Thanks in Advance!

B.

 

 





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] Flex RAM memory use - (probably a question for the player engineers?)

2009-02-26 Thread Battershall, Jeff
Alex,
 
Is this still an issue?  I got the impression it had been addressed in
swfobject 2.1.
 
Jeff

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui
Sent: Thursday, February 26, 2009 11:36 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex  RAM memory use - (probably a
question for the player engineers?)



Are you using SWFObject?
http://groups.google.com/group/swfobject/browse_thread/thread/d94bc23037
ddc714

 

Alex Harui

Flex SDK Developer

Adobe Systems Inc. http://www.adobe.com/ 

Blog: http://blogs.adobe.com/aharui
http://blogs.adobe.com/aharui 

 

From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com] On Behalf Of Ashish Verma
Sent: Thursday, February 26, 2009 5:27 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex  RAM memory use - (probably a
question for the player engineers?)

 

For the first problem I don't have clue but for second problem I
can say that it's due to weird behaviour of Flash Garbage Collector.  

On Thu, Feb 26, 2009 at 2:48 PM, nwebb neilw...@gmail.com
wrote:

Hi, 

we're having 2 issues with memory in Flex:

1) Part way through our Flex application we open an external
HTML page (3rd party page). The user selects items from this page and
then closes the page  the control is then returned to the Flex
application. This 3rd  party page is heavy in terms of memory, and that
memory is never getting released once the page is closed. Is it at all
possible that Flex is holding on to a handle to that page and if so is
there any way to release it, or is this definitely not a Flex problem,
and more a browser issues or issue with the external page as I expect?

2) The Flex app is one part of a much larger website. When we
proceed past the Flex app (ie the user proceeds to a page where the app
isn't embedded), again much of the memory Flex was using doesn't seem to
be getting released. A browser issue?

Needless to say IE seems to be much more of a memory hog, but
we've been looking at this in both IE and FireFox.

Any help much appreciated.

Cheers,
Neil



  

 









RE: [flexcoders] Flex RAM memory use - (probably a question for the player engineers?)

2009-02-26 Thread Alex Harui
That thread should have concluded that it was fixed in 2.1.  Note that the 
SWFObject that are in  Flex templates is still 2.0 though.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Battershall, Jeff
Sent: Thursday, February 26, 2009 11:27 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex  RAM memory use - (probably a question for the 
player engineers?)

Alex,

Is this still an issue?  I got the impression it had been addressed in 
swfobject 2.1.

Jeff
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Thursday, February 26, 2009 11:36 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex  RAM memory use - (probably a question for the 
player engineers?)
Are you using SWFObject?  
http://groups.google.com/group/swfobject/browse_thread/thread/d94bc23037ddc714

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Ashish Verma
Sent: Thursday, February 26, 2009 5:27 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex  RAM memory use - (probably a question for the 
player engineers?)

For the first problem I don't have clue but for second problem I can say that 
it's due to weird behaviour of Flash Garbage Collector.
On Thu, Feb 26, 2009 at 2:48 PM, nwebb 
neilw...@gmail.commailto:neilw...@gmail.com wrote:

Hi,

we're having 2 issues with memory in Flex:

1) Part way through our Flex application we open an external HTML page (3rd 
party page). The user selects items from this page and then closes the page  
the control is then returned to the Flex application. This 3rd  party page is 
heavy in terms of memory, and that memory is never getting released once the 
page is closed. Is it at all possible that Flex is holding on to a handle to 
that page and if so is there any way to release it, or is this definitely not a 
Flex problem, and more a browser issues or issue with the external page as I 
expect?

2) The Flex app is one part of a much larger website. When we proceed past the 
Flex app (ie the user proceeds to a page where the app isn't embedded), again 
much of the memory Flex was using doesn't seem to be getting released. A 
browser issue?

Needless to say IE seems to be much more of a memory hog, but we've been 
looking at this in both IE and FireFox.

Any help much appreciated.

Cheers,
Neil








Re: [flexcoders] syncing AIR/Flex app with mobile phones

2009-02-26 Thread Weyert de Boer
Hi,

You could consider to use the SyncML protocol. Now you probably would 
still need some program in the middle who can push the SyncML data to 
the mobile phone like via Bluetooth. Of course, you can also generate an 
iCal file or a  vCard file. Maybe? Of course, you can just push to 
something like Google Calendar and Google Contacts (if it exists!)

Yours,
Weyert

 

 Has anyone handled syncing things like contacts or calendar events
 with mobile phones? Are there services or libraries for integrating
 with the existing contact and calendar apps on the popular smartphones?

 



[flexcoders] IDE + Continuous integration == meh?

2009-02-26 Thread Rick Winscot
I¹m trying to trim a little more fat off an application that has half a
dozen RSLs and a scad of modules. The application is being built out of a
continuous integration process using Flex Ant Tasks. My first thoughts were
to tune compiled targets in the IDE (which worked nicely) and then use
­dump-config to generate a config file that I would use in lieu of
flex-config.xml. This didn¹t work ­ RSL/module file size stayed the same
(scratches head).

I¹ve read a heaping plate-full of great posts by Ryan Steward, Ted Patrick,
that guy Alex at Adobe (ROWR) and a few others... does anyone have any
horror stories or success stories they could share about reducing your
application footprint?

Rick Winscot


[flexcoders] Re: wtf is a DragSource

2009-02-26 Thread hofo
Matt, when you say shallow copies below do you really mean
references? I jsut ran across behavior where the dragSource items
changed between the beginning of the drag and the dragDrop event. This
happened because in the dragOver event handler I was changing the
selectedIndex on the drag initiator. When this happens, the dragSource
items became the new selectedIndex, not the item that was actually
being dragged. Is this a bug or an undocumented feature?

-- 
Howard Fore, howard.f...@hofo.com
The universe tends toward maximum irony. Don't push it. - Jeff Atwood


--- In flexcoders@yahoogroups.com, Matt Chotin mcho...@... wrote:

 So a DragSource is a little more than that.  Check out the
addHandler method
 for example.  What happens is your source (e.g., the List) will create a
 DragSource, and then give the DS a function to say hey, if someone
asks for
 data of this format, call this function to get the data.  This can be
 really useful if it would be computationally expensive to give the
data in a
 certain format.  The List is a perfect example of this (and it leads
to an
 answer for Dave).  The List (and subclasses) DataSource has two formats
 stored, source and items.  The source is the List where the
dragging
 was initiated.  Easy enough.  The items are in fact shallow copies
of the
 items that were in the dataProvider that are being dragged across. 
So if
 you are dragging 3 items from a List the items data is going to be an
 array of those 3 items.  This is where the handler function comes
in.  How
 many times have you started to drag something and then never ended up
 dropping it somewhere?  I do it a lot.  Now what if creating that
new array
 of items from the List is computationally expensive (it is because
there's a
 copy being made), you wouldn't want that to happen the minute the user
 starts dragging, right?  You really only want it to happen the first
time
 someone asks for the items.  So the handler function allows us to
delay the
 work that goes into returning that array of items, only calling the
 expensive operation when it's actually needed.
 
  
 
 Thus the need for a real class to do some of this dirty work.  Make
sense?
 
  
 
 Matt
 
  
 
   _  
 
 From: JesterXL [mailto:jeste...@...] 
 Sent: Friday, January 21, 2005 2:22 PM
 To: Flexcoders
 Subject: [flexcoders] wtf is a DragSource
 
  
 
 Ok, this is the weirdest class I've ever used in my life.  Correct
me where 
 I'm wrong; if your bored, feel free to fill in the blanks.
 
 A dragSource is a class used to hold data.  This data, in effect,
helps give
 
 those handlers who respond to drag events context about what's going
on, and
 
 who's currently being dragged.  At a low level, one can use the
dragSource 
 to stuff in referneces to those who were dragged, say a List, and
then later
 
 in the drop function, grab items from that list indirectly; since
your using
 
 a refernce, no need to hardcode references to objects since the
dragSource 
 has it, allowing your dropfunctions to remain dumb.
 
 am I even close?  Why not just use a vanilla object like 
 EventDispatcher? 




Re: [flexcoders] labelFunction on BarSeries not firing

2009-02-26 Thread Bob Wohl
Ah! good point, I completely overlooked that!

Yes, it was good time. Nice seeing some new faces. :)

Thanks Ryan!
B.

On Thu, Feb 26, 2009 at 12:16 PM, Ryan Graham ryan.gra...@phoenix.eduwrote:

Hey Bob,



 Good meeting you at the AZFPUG meeting last night.



 Looks like labelPosition defaults to “none” on a BarSeries. Try setting
 that to something else:



 mx:BarSeries labelFunction=myLabelFunction labelPosition=outside
 yField=Month xField=Profit/



 HTH,

 Ryan



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Bob Wohl
 *Sent:* Thursday, February 26, 2009 11:57 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] labelFunction on BarSeries not firing



 Hello all,



 I'm not to sure why this isn't firing. I've broke this down to the simplest
 of forms and even used some very basic examples to reproduce. For some
 reason the labelfunctiojn never gets hit, maybe I'm missing something very
 simple. My stacked charts and pie charts fire just fine, seems to only be
 the bar chart that I'm having this issue with. Any Ideas would be much
 appreciated.



 code :

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

   mx:Script![CDATA[

 import mx.charts.ChartItem;

 import mx.charts.chartClasses.Series;

 import mx.collections.ArrayCollection;

 [Bindable]

 public var expenses:ArrayCollection = new
 ArrayCollection([

{Month:Jan, Profit:2000, Expenses:1500},

{Month:Feb, Profit:1000, Expenses:200},

{Month:Mar, Profit:1500, Expenses:500}

 ]);

 private function
 myLabelFunction(element:ChartItem, series:Series):String {

 trace(should fire)

var str:String = hello!

return str;

 }

 ]]/mx:Script

 mx:BarChart id=theChart dataProvider={expenses}
 showDataTips=true width=780

 mx:verticalAxis

 mx:CategoryAxis categoryField=Month /

 /mx:verticalAxis

 mx:series

 mx:BarSeries labelFunction=myLabelFunction yField=Month
 xField=Profit/

 /mx:series

 /mx:BarChart

 /mx:Application







 Thanks in Advance!

 B.





  This message is private and confidential. If you have received it in
 error, please notify the sender and remove it from your system.

  



[flexcoders] NativeDragEvents vs. DragEvents

2009-02-26 Thread djhatrick
OK, this is a real challenge.  How do I handle both dragEvents and
NativeDragEvents inside a list...

For instance, files need to be able to dragged in and the list (doing
this on the itemRenderer) also the list needs to handle the ablility
to be reordered with it's own drag and drop. 

It seems like one competes withe the over.  It seems like I am going
to have to do the math and figure out which item in the list renderer
is being dropped on...

Any suggestion on best practices for this one, this is proving a trial
and error challenge.

Patrick



[flexcoders] Enum in Fles

2009-02-26 Thread sunmoorthy1
Hi,

I am using BlazeDS for communicate Flex with java application.
I want to know how to how to convert enum object to Flex ActionScript 
object.







[flexcoders] Re: NativeDragEvents vs. DragEvents

2009-02-26 Thread djhatrick
--- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote:

 OK, this is a real challenge.  How do I handle both dragEvents and
 NativeDragEvents inside a list...
 
 For instance, files need to be able to dragged in and the list (doing
 this on the itemRenderer) also the list needs to handle the ablility
 to be reordered with it's own drag and drop. 
 
 It seems like one competes withe the over.  It seems like I am going
 to have to do the math and figure out which item in the list renderer
 is being dropped on...
 
 Any suggestion on best practices for this one, this is proving a trial
 and error challenge.
 
 Patrick


Also, when you test events with the is operation, DragEvents pass as
NativeDragEvents. OMG.



Re: [flexcoders] Enum in Fles

2009-02-26 Thread Maciek Sakrejda
This came up on this list recently and apparently it's not a great idea:

http://tech.groups.yahoo.com/group/flexcoders/message/136096

We're using Granite DS which *does* generate a mirror ActionScript Enum
type, but apparently this approach is fraught with peril (because
Flash--unlike Java--won't guarantee that you have only one instance of
your Enum). I've reviewed our usage, and we're not doing anything where
this would hurt us, but I can easily imagine problems.

E.g., if you put your Enum in an ArrayCollection and later try to find
it by using getItemIndex, but you pass a different Enum instance to
getItemIndex, the ArrayCollection won't find it because it uses == to
compare objects, and two separate instances of the same Enum are not ==.
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: sunmoorthy1 sunmoort...@yahoo.com
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Enum in Fles
Date: Thu, 26 Feb 2009 21:22:47 -

Hi,

I am using BlazeDS for communicate Flex with java application.
I want to know how to how to convert enum object to Flex ActionScript 
object.









[flexcoders] Reading compressed file in AS 3

2009-02-26 Thread ACasualObserver
I have a program that create an XML string and write it to a file
using either regular file function or zlib file function to create
compressed file. This is done on the server.

On the client, I can read and process the uncompressed file in an AS3
application using URLLoader and URLRequest. I have problem doing the
same with compressed file. The code copies the data correctly to a
ByteArray but uncompress method gives Error #2058: There was an error
decompressing the data. What can be wrong and what is the solution.

In case it is useful, the first 16 bytes of the file in HEX are:

1F 8B 08 00 00 00 00 00 00 0B CC BC 67 AF F4 CC

They match the first 16 bytes of the ByteArray.

Thanks. 



Re: [flexcoders] Reading compressed file in AS 3

2009-02-26 Thread Maciek Sakrejda
What are the other bytes ;) ?

I've run into some issues working with low-level bit-twiddling before
(only on Linux, but that still may be indicative of larger problems).
For example, in FP9 on Linux, sending a payload with a POST URLRequest
truncates the payload data at the first 0x00 byte (!). On FP10 in Linux,
that seems to have been fixed, but I'm getting a different error that I
have not yet tracked down.

I'm not sure if your issue is related, but I'd make sure your data makes
it to the client okay before you try to decompress it. E.g., can you
compute a checksum for both client and server and compare?
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: ACasualObserver pof...@yahoo.com
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Reading compressed file in AS 3
Date: Thu, 26 Feb 2009 21:45:19 -

I have a program that create an XML string and write it to a file
using either regular file function or zlib file function to create
compressed file. This is done on the server.

On the client, I can read and process the uncompressed file in an AS3
application using URLLoader and URLRequest. I have problem doing the
same with compressed file. The code copies the data correctly to a
ByteArray but uncompress method gives Error #2058: There was an error
decompressing the data. What can be wrong and what is the solution.

In case it is useful, the first 16 bytes of the file in HEX are:

1F 8B 08 00 00 00 00 00 00 0B CC BC 67 AF F4 CC

They match the first 16 bytes of the ByteArray.

Thanks. 









[flexcoders] Re: Can't Change Custom Border Custom Styles - Please Help !!!

2009-02-26 Thread Tim Hoff

Hi Greg,

If you change the top half of your borderSkin class to the code below,
you can use a class selector style as a styleName for a VBox
(styleName=tightDashBorder).  To use a type selector style, you're
probably going to have to turn the borderSkin into a full-fledged
component; with the same name.  While the code below is not how I would
normally do this, it is a working example that you can expand upon.

-TH

package
{
import mx.skins.RectangularBorder;



[Style(name=dashlen,type=Number,format=Length,inherit=no)]
[Style(name=gaplen,type=Number,format=Length,inherit=no)]



public class DashBorder extends RectangularBorder{



public function DashBorder(){
super();
}



override public function styleChanged(styleProp:String):void {
invalidateDisplayList();
}



override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void{



super.updateDisplayList(unscaledWidth, unscaledHeight);



var borderThickness:int = getStyle(borderThickness);
var borderColor:int = getStyle(borderColor);
var dashlen:int = (getStyle(dashlen) == null) ? 5 :
getStyle(dashlen);
var gaplen:int = (getStyle(gaplen) == null) ? 5 : getStyle(gaplen);



graphics.clear();
graphics.lineStyle(borderThickness, borderColor, 1)



drawBorder(this.x, this.y, unscaledWidth, unscaledHeight, dashlen,
gaplen);
}

---\
-
---\
-

--- In flexcoders@yahoogroups.com, greg_lafrance glafra...@...
wrote:

 I created a custom border class to create a dashed line border, and I
 added two custom style properties dashlen and gaplen, but I can't
 set them.

 In the attached code, the default dashlen and gaplen are 5.

 I create three VBox using the DashBorder, and although I have created
 a type selector style for DashBorder and a class selector style
 tightDashBorder, neither one is applied.

 Also, I get errors when I try to access the style properties dashlen
 and gaplen in the mx:VBox tag. I can access the borderColor style
 property though.

 What more must I do to fix this? Thanks in advance!!!

  DashBorder.as ---
 package
 {
 import mx.skins.RectangularBorder;
 import mx.styles.CSSStyleDeclaration;
 import mx.styles.StyleManager;

 [Style(name=dashlen,type=Number,format=Length,inherit=no)]
 [Style(name=gaplen,type=Number,format=Length,inherit=no)]

 public class DashBorder extends RectangularBorder{
 private static var classConstructed:Boolean = classConstruct();
 private var bStypePropChanged:Boolean = false;
 private var dashlen:Number = 5;
 private var gaplen:Number = 5;

 public function DashBorder(){
 super();
 }

 private static function classConstruct():Boolean {
 if(!StyleManager.getStyleDeclaration(DashBorder)){
 var myBorderStyles:CSSStyleDeclaration = new
 CSSStyleDeclaration();
 myBorderStyles.defaultFactory = function():void{
 this.dashlen = 5;
 this.gaplen = 5;
 }
 StyleManager.setStyleDeclaration(DashBorder,
 myBorderStyles, true);
 }
 return true;
 }

 override public function styleChanged(styleProp:String):void {
 super.styleChanged(styleProp);
 if (styleProp==dashlen || styleProp==gaplen){
 bStypePropChanged=true;
 invalidateDisplayList();
 return;
 }
 }

 override protected function updateDisplayList
 (unscaledWidth:Number, unscaledHeight:Number):void{
 super.updateDisplayList(unscaledWidth, unscaledHeight);
 var borderThickness:int = getStyle(borderThickness);
 var borderColor:int = getStyle(borderColor);
 graphics.clear();
 graphics.lineStyle(borderThickness, borderColor, 1)

 if (bStypePropChanged==true){
 this.dashlen = getStyle(dashlen);
 this.gaplen = getStyle(gaplen);
 bStypePropChanged=false;
 }
 drawBorder(this.x, this.y, unscaledWidth, unscaledHeight,
 this.dashlen, this.gaplen);
 }

 public function drawLine(x1:Number, y1:Number, x2:Number,
 y2:Number,
 dashlen:Number, gaplen:Number): void {
 if((x1 != x2) || (y1 != y2)){
 var incrlen:Number = dashlen + gaplen;

 var len:Number = Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2)
 * (y1 - y2));
 var angle:Number = Math.atan((y2 - y1) / (x2 - x1));
 var steps:uint = len / (dashlen + gaplen);

 var dashstepx:Number = dashlen * Math.cos(angle);
 if (x2  x1) dashstepx *= -1;

 var dashstepy:Number = dashlen * Math.sin(angle);

 var gapstepx:Number = gaplen * Math.cos(angle);
 if (x2  x1) gapstepx *= -1;

 var gapstepy:Number = gaplen * Math.sin(angle);
 var stepcount:uint = 0;

 while ((stepcount++)  steps) {

 var dashstartx:Number;
 var dashstarty:Number;
 var dashendx:Number;
 var dashendy:Number;

 if(x1 == x2  y1 != y2){
 dashstartx = dashendx = x1;
 if(y2  y1){
 dashstarty = y1 + ((stepcount-1) * (dashlen +
 gaplen));
 dashendy = dashstarty + dashlen;
 }else{
 dashstarty = y1 - ((stepcount-1) * (dashlen +
 gaplen));
 dashendy = dashstarty - dashlen;
 }
 }else if(y1 == y2  x1 != x2){
 dashstarty = 

[flexcoders] Re: Can't Change Custom Border Custom Styles - Please Help !!!

2009-02-26 Thread Tim Hoff

You're also going to want to change this:

.tightDashBorder  {
dashlen: 2;
dashgap: 2;
}

To this:

.tightDashBorder  {
dashlen: 2;
gaplen: 2;
}

-TH

--- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote:


 Hi Greg,

 If you change the top half of your borderSkin class to the code below,
 you can use a class selector style as a styleName for a VBox
 (styleName=tightDashBorder). To use a type selector style, you're
 probably going to have to turn the borderSkin into a full-fledged
 component; with the same name. While the code below is not how I would
 normally do this, it is a working example that you can expand upon.

 -TH

 package
 {
 import mx.skins.RectangularBorder;



 [Style(name=dashlen,type=Number,format=Length,inherit=no)]
 [Style(name=gaplen,type=Number,format=Length,inherit=no)]



 public class DashBorder extends RectangularBorder{



 public function DashBorder(){
 super();
 }



 override public function styleChanged(styleProp:String):void {
 invalidateDisplayList();
 }



 override protected function updateDisplayList(unscaledWidth:Number,
 unscaledHeight:Number):void{



 super.updateDisplayList(unscaledWidth, unscaledHeight);



 var borderThickness:int = getStyle(borderThickness);
 var borderColor:int = getStyle(borderColor);
 var dashlen:int = (getStyle(dashlen) == null) ? 5 :
 getStyle(dashlen);
 var gaplen:int = (getStyle(gaplen) == null) ? 5 :
getStyle(gaplen);



 graphics.clear();
 graphics.lineStyle(borderThickness, borderColor, 1)



 drawBorder(this.x, this.y, unscaledWidth, unscaledHeight, dashlen,
 gaplen);
 }


---\
\
 -

---\
\
 -

 --- In flexcoders@yahoogroups.com, greg_lafrance glafrance@
 wrote:
 
  I created a custom border class to create a dashed line border, and
I
  added two custom style properties dashlen and gaplen, but I
can't
  set them.
 
  In the attached code, the default dashlen and gaplen are 5.
 
  I create three VBox using the DashBorder, and although I have
created
  a type selector style for DashBorder and a class selector style
  tightDashBorder, neither one is applied.
 
  Also, I get errors when I try to access the style properties dashlen
  and gaplen in the mx:VBox tag. I can access the borderColor style
  property though.
 
  What more must I do to fix this? Thanks in advance!!!
 
   DashBorder.as ---
  package
  {
  import mx.skins.RectangularBorder;
  import mx.styles.CSSStyleDeclaration;
  import mx.styles.StyleManager;
 
  [Style(name=dashlen,type=Number,format=Length,inherit=no)]
  [Style(name=gaplen,type=Number,format=Length,inherit=no)]
 
  public class DashBorder extends RectangularBorder{
  private static var classConstructed:Boolean = classConstruct();
  private var bStypePropChanged:Boolean = false;
  private var dashlen:Number = 5;
  private var gaplen:Number = 5;
 
  public function DashBorder(){
  super();
  }
 
  private static function classConstruct():Boolean {
  if(!StyleManager.getStyleDeclaration(DashBorder)){
  var myBorderStyles:CSSStyleDeclaration = new
  CSSStyleDeclaration();
  myBorderStyles.defaultFactory = function():void{
  this.dashlen = 5;
  this.gaplen = 5;
  }
  StyleManager.setStyleDeclaration(DashBorder,
  myBorderStyles, true);
  }
  return true;
  }
 
  override public function styleChanged(styleProp:String):void {
  super.styleChanged(styleProp);
  if (styleProp==dashlen || styleProp==gaplen){
  bStypePropChanged=true;
  invalidateDisplayList();
  return;
  }
  }
 
  override protected function updateDisplayList
  (unscaledWidth:Number, unscaledHeight:Number):void{
  super.updateDisplayList(unscaledWidth, unscaledHeight);
  var borderThickness:int = getStyle(borderThickness);
  var borderColor:int = getStyle(borderColor);
  graphics.clear();
  graphics.lineStyle(borderThickness, borderColor, 1)
 
  if (bStypePropChanged==true){
  this.dashlen = getStyle(dashlen);
  this.gaplen = getStyle(gaplen);
  bStypePropChanged=false;
  }
  drawBorder(this.x, this.y, unscaledWidth, unscaledHeight,
  this.dashlen, this.gaplen);
  }
 
  public function drawLine(x1:Number, y1:Number, x2:Number,
  y2:Number,
  dashlen:Number, gaplen:Number): void {
  if((x1 != x2) || (y1 != y2)){
  var incrlen:Number = dashlen + gaplen;
 
  var len:Number = Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2)
  * (y1 - y2));
  var angle:Number = Math.atan((y2 - y1) / (x2 - x1));
  var steps:uint = len / (dashlen + gaplen);
 
  var dashstepx:Number = dashlen * Math.cos(angle);
  if (x2  x1) dashstepx *= -1;
 
  var dashstepy:Number = dashlen * Math.sin(angle);
 
  var gapstepx:Number = gaplen * Math.cos(angle);
  if (x2  x1) gapstepx *= -1;
 
  var gapstepy:Number = gaplen * Math.sin(angle);
  var stepcount:uint = 0;
 
  while ((stepcount++)  steps) {
 
  var dashstartx:Number;
  var 

[flexcoders] Resize effect when I expand a Panel

2009-02-26 Thread faserone
I can't find any way to apply a resize effect when I expand a Panel
inside a DividedBox.
I tried using transition and applying a resize effect directly to
Panel resizeEffect, but without any effective result. In some cases
the behaviour is weird and I presume the cause could be that the
effect doesn't work well when using percentage dimension.

Here is my test code:
http://www.faser.net/public/tmp/flextest/testtrans.html

Anyway, do you think it's better to use transition or I can continue
to try to use the Panel resizeEffect event?




[flexcoders] Re: Flashing new row in a datagrid

2009-02-26 Thread faserone
--- In flexcoders@yahoogroups.com, jer_ela g...@... wrote:

 If the new rows have a timestamp of when they were added, you can use
 the AdvancedDataGrid styleFunction to change the style of a cell based
 on that timestamp.  Both AdvancedDataGrid and AdvancedDataGridColumn
 have the property.
 
 Here is a style function I used that made the text bright red for new
 records and then faded to black as the record aged.
 
 
 protected function styleElapsedTime(data:Object,  
col:AdvancedDataGridColumn):Object
 {  var color:uint = 0xff;
var ts:Date = new Date(data.timeStamp);
var now:Date = new Date();
var elapsedTime:int = (now.time - ts.time) / 6 ;
color = ColorUtil.adjustBrightness(color, - (elapsedTime * 4));
return {color: color};
 }



If I don't need the AdvancedDataGrid do you think it's ok to use it
only for this effect or there is an overhead?
I tried your solution, but I think that the problem is that I need to 
refresh the datagrid for changing color.
I don't think this is a viable solution because I have thousand of
rows, I would only blink the new rows for one second.



[flexcoders] Re: Reading compressed file in AS 3

2009-02-26 Thread ACasualObserver
Thanks for the quick response. Both my server and client are Windows.
Actually they are the same machine!!!

I will try the checksum tomorrow but I checked number of bytes that
are both the same.

Another test I did was to send the uncompressed file and read into a
ByteArray. When I compress the ByteArray on the sever, the result is
13 bytes larger than the compressed file. Compressed files is over
88,000 bytes.

I create the compressed file by calling gzopen. I use wb9 for the
mode. Should I used another mode?

Thanks. 

--- In flexcoders@yahoogroups.com, Maciek Sakrejda msakre...@... wrote:

 What are the other bytes ;) ?
 
 I've run into some issues working with low-level bit-twiddling before
 (only on Linux, but that still may be indicative of larger problems).
 For example, in FP9 on Linux, sending a payload with a POST URLRequest
 truncates the payload data at the first 0x00 byte (!). On FP10 in Linux,
 that seems to have been fixed, but I'm getting a different error that I
 have not yet tracked down.
 
 I'm not sure if your issue is related, but I'd make sure your data makes
 it to the client okay before you try to decompress it. E.g., can you
 compute a checksum for both client and server and compare?
 -- 
 Maciek Sakrejda
 Truviso, Inc.
 http://www.truviso.com
 




[flexcoders] Re: show and createComplate event?

2009-02-26 Thread Amy
--- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... 
wrote:

 I add show event to my component like
 
 mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; height=768
 width=858 xmlns:ns1=marketingModule.view.components.forms.* 
  show =init()
 
 
 
 /mx:Canvas
 
 but it doesn't call the function. I change it to craeteComplate,it
 works at first time.
 
 But I need call the function when I open the component.I am confuse
 the show event.Please help me

Is this in a ViewStack or something?  If so, the first time the 
component is shown (if creationpolicy is auto) does not fire the show 
event.  Instead, it fires the creationComplete event.



[flexcoders] Re: Resize effect when I expand a Panel

2009-02-26 Thread Tim Hoff

Since you're using view states, consider using transitions instead of
effects.

-TH

--- In flexcoders@yahoogroups.com, faserone faser...@... wrote:

 I can't find any way to apply a resize effect when I expand a Panel
 inside a DividedBox.
 I tried using transition and applying a resize effect directly to
 Panel resizeEffect, but without any effective result. In some cases
 the behaviour is weird and I presume the cause could be that the
 effect doesn't work well when using percentage dimension.

 Here is my test code:
 http://www.faser.net/public/tmp/flextest/testtrans.html

 Anyway, do you think it's better to use transition or I can continue
 to try to use the Panel resizeEffect event?






[flexcoders] Who have YOU used for outsourcing mid to large Flex/CF projects?

2009-02-26 Thread Pat Buchanan
My company is where I like it - small and maintainable - just a few
employees.  But sometimes I get some BIG projects thrown at me that are
nearly guaranteed.  The problem is, I don't want to hire anyone and it's too
hard to keep a good group of reserve programmers busy 100% of the time.

I've turned away at least 3  $30,000 projects in the last few months alone
- and I hate it.  I want to be involved, I want to grow the company, but I
think the best solution might be to use an outsourcing house.  Eventually
these clients will stop coming to me and go elsewhere - and I don't want
that to happen.

So --- who have YOU used to outsource your projects to?  Someone that does
it all - Flex, CF, .NET, SQL Server, etc.

I don't have the money to blow to try out places to find out they suck
pondwater or never return phone calls.  I want to manage the project and I
want to be involved in everything, but I need a group that can continue to
work even though they run into a roadblock on a separate piece.

Now there are some INCREDIBLE groups out there that we all know and love (I
won't name names, but one of them trained me in Flex) but $120/hour in this
economy isn't going to cut it.

So - who have you used that you like, that won't break the bank?  And do
they communicate well?  (It's WAAAY to hard for me to express what I want to
someone that doesn't understand English, so I need to be careful there too)

Any recommendations/thoughts/examples?

If you ARE one of these groups, PLEASE don't respond on this list - just
reply to me directly.  There is already WAY too much traffic on this list to
begin with (I even hesitated sending this message)

But what I'm REALLY looking for is someone who has EXPERIENCE with some of
these groups - good or bad.

Thanks for listening!


RE: [flexcoders] Re: Reading compressed file in AS 3

2009-02-26 Thread Alex Harui
Note that ByteArray cannot consume a .ZIP file, as it contains a catalog.  It 
only handles the actual compressed bytes.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of ACasualObserver
Sent: Thursday, February 26, 2009 2:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Reading compressed file in AS 3


Thanks for the quick response. Both my server and client are Windows.
Actually they are the same machine!!!

I will try the checksum tomorrow but I checked number of bytes that
are both the same.

Another test I did was to send the uncompressed file and read into a
ByteArray. When I compress the ByteArray on the sever, the result is
13 bytes larger than the compressed file. Compressed files is over
88,000 bytes.

I create the compressed file by calling gzopen. I use wb9 for the
mode. Should I used another mode?

Thanks.

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Maciek 
Sakrejda msakre...@... wrote:

 What are the other bytes ;) ?

 I've run into some issues working with low-level bit-twiddling before
 (only on Linux, but that still may be indicative of larger problems).
 For example, in FP9 on Linux, sending a payload with a POST URLRequest
 truncates the payload data at the first 0x00 byte (!). On FP10 in Linux,
 that seems to have been fixed, but I'm getting a different error that I
 have not yet tracked down.

 I'm not sure if your issue is related, but I'd make sure your data makes
 it to the client okay before you try to decompress it. E.g., can you
 compute a checksum for both client and server and compare?
 --
 Maciek Sakrejda
 Truviso, Inc.
 http://www.truviso.com




Re: [flexcoders] Who have YOU used for outsourcing mid to large Flex/CF projects?

2009-02-26 Thread ben gomez farrell
Hey, this is just my opinion and what I've learned from working for 
people that run small companies.  I don't have direct experience - but 
here's what I think

In my opinion $30k projects just aren't that big.  They're great to 
maintain your business, and by all means money is money - so who 
wouldn't want to take them.  But I'd call a $30k project small to 
low-mid size.

Maybe its a large project for you folks, but it will most likely be a 
small project for a company you outsource to.  At that level you 
probably won't see much difference in the price tag if you folks were to 
do it in house, or if an outsourcing firm were to do it in house.  Once 
you get into the bigger numbers like $100-$200k, you can at least start 
marking yourselves up a little more because you landed the project - and 
still pay the outsourcing firm a decent rate.

My recommendation would be to keep the project in-house, but maintain a 
large rolodex of contractors.  $120/hour is probably normal for 
outsourcing because they'll most likely be hiring a project manager on 
top of their programmer to manage your project.  If you contract a good 
programmer at like $60-$80 per hour, and use an in house project manager 
or producer, you can probably achieve the same results.

Like I said.I've never run a company, so this might be bad advice - 
but its probably what I'd do.
ben


Pat Buchanan wrote:

 My company is where I like it - small and maintainable - just a few 
 employees.  But sometimes I get some BIG projects thrown at me that 
 are nearly guaranteed.  The problem is, I don't want to hire anyone 
 and it's too hard to keep a good group of reserve programmers busy 
 100% of the time.

 I've turned away at least 3  $30,000 projects in the last few months 
 alone - and I hate it.  I want to be involved, I want to grow the 
 company, but I think the best solution might be to use an outsourcing 
 house.  Eventually these clients will stop coming to me and go 
 elsewhere - and I don't want that to happen.

 So --- who have YOU used to outsource your projects to?  Someone that 
 does it all - Flex, CF, .NET, SQL Server, etc.

 I don't have the money to blow to try out places to find out they suck 
 pondwater or never return phone calls.  I want to manage the project 
 and I want to be involved in everything, but I need a group that can 
 continue to work even though they run into a roadblock on a separate 
 piece.

 Now there are some INCREDIBLE groups out there that we all know and 
 love (I won't name names, but one of them trained me in Flex) but 
 $120/hour in this economy isn't going to cut it.

 So - who have you used that you like, that won't break the bank?  And 
 do they communicate well?  (It's WAAAY to hard for me to express what 
 I want to someone that doesn't understand English, so I need to be 
 careful there too)

 Any recommendations/thoughts/examples?

 If you ARE one of these groups, PLEASE don't respond on this list - 
 just reply to me directly.  There is already WAY too much traffic on 
 this list to begin with (I even hesitated sending this message)

 But what I'm REALLY looking for is someone who has EXPERIENCE with 
 some of these groups - good or bad.

 Thanks for listening!

 


Re: [flexcoders] Re: Reading compressed file in AS 3

2009-02-26 Thread Jim Cheng
I'm assuming you're using PHP based upon gzopen.

 From reading the zlib library documentation, you'll want to use the 
gzcompress function instead of gzopen to compress your string into the 
zlib data format (which corresponds to ByteArray's compress/uncompress 
methods).  Note that gzopen uses a slightly different data format, gzip, 
which is based upon, but incompatible with zlib.  This likely accounts 
for the slight difference in file size and your inability to decompress 
the file on the Flex side of things.

Hope this helps,

Jim

ACasualObserver wrote:
 
 I create the compressed file by calling gzopen. I use wb9 for the
 mode. Should I used another mode?
 


Re: [flexcoders] Who have YOU used for outsourcing mid to large Flex/CF projects?

2009-02-26 Thread Alan Rother
Three words
John C Bland

http://www.johncblandii.com/

He's a friggin Flash / Flex / CF / .net genius.

Also a former Flash Platform User Group Manager here in Phoenix and now an
Adobe Community Expert. My company has used him many times on big important
projects.


=]
-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org


RE: [flexcoders] How to find the actual type of a custom flex component?

2009-02-26 Thread Gordon Smith
The actual type of your component is MyCustomBox. Its superclass is VBox. 
VBox's superclass is Box. Box's superclass is Container, etc. So you're looking 
for your immediate superclass.

Use the getQualifiedSuperclassName() function in the flash.utils package. It 
will give you a String like mx.containers:VBox. (It think it puts a colon in 
there.)

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Ashish Verma
Sent: Thursday, February 26, 2009 5:37 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to find the actual type of a custom flex 
component?

You can use is operator to compare that object with your desired set of 
classes using if - else if conditions


Best,
Ashish
On Thu, Feb 26, 2009 at 3:30 PM, Gregor Kiddie 
gkid...@inpses.co.ukmailto:gkid...@inpses.co.uk wrote:

I think describeType() gives the inheritance list. You could pick it out of 
that. It certainly gives the baseclass



Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk

The information in this internet email is confidential and is intended solely 
for the addressee. Access, copying or re-use of information in it by anyone 
else is not authorised. Any views or opinions presented are solely those of the 
author and do not necessarily represent those of INPS or any of its affiliates. 
If you are not the intended recipient please contact 
is.helpd...@inps.co.ukmailto:is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On 
Behalf Of pmotzfeldt
Sent: 26 February 2009 07:41
To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Subject: [flexcoders] How to find the actual type of a custom flex component?



Hi,

I am wondering if anybody knows how I can find the actual class type
of a custom component?

By that I mean I create a custom component that is a VBox, but I call
it MyCustomBox, and whenever I call className on that it returns
MyCustomBox, but I want to get the class VBox by any means.

Appreciate any help, thanks!




RE: [flexcoders] Who have YOU used for outsourcing mid to large Flex/CF projects?

2009-02-26 Thread Ryan Graham

Yeah, I've seen some of John's work and heard him speak at meetings here
in Phoenix as well. His client list and work are impressive to say the
least.

 

+1

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alan Rother
Sent: Thursday, February 26, 2009 5:50 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Who have YOU used for outsourcing mid to large
Flex/CF projects?

 

Three words

 

John C Bland

 

http://www.johncblandii.com/

 

He's a friggin Flash / Flex / CF / .net genius. 

 

Also a former Flash Platform User Group Manager here in Phoenix and now
an Adobe Community Expert. My company has used him many times on big
important projects.

 

 

=]
-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

[flexcoders] Re: Reading compressed file in AS 3

2009-02-26 Thread ACasualObserver
Jim,

I am using the zlib in a C program.

Alex,

The file passed t AS3 is not zip file. 

Thanks.


--- In flexcoders@yahoogroups.com, Jim Cheng li...@... wrote:

 I'm assuming you're using PHP based upon gzopen.
 
  From reading the zlib library documentation, you'll want to use the 
 gzcompress function instead of gzopen to compress your string into the 
 zlib data format (which corresponds to ByteArray's compress/uncompress 
 methods).  Note that gzopen uses a slightly different data format,
gzip, 
 which is based upon, but incompatible with zlib.  This likely accounts 
 for the slight difference in file size and your inability to decompress 
 the file on the Flex side of things.
 
 Hope this helps,
 
 Jim
 
 ACasualObserver wrote:
  
  I create the compressed file by calling gzopen. I use wb9 for the
  mode. Should I used another mode?
 





[flexcoders] LCDS: How to use load-on-demand?

2009-02-26 Thread Kevin
I am trying to figure out how to use the LCDS 2.6.1 load-on-demand feature with 
a 
DataGrid.  I have set up my associations and am getting the expected result 
when I load the 
object (which is that none of the load-on-demand associations are populated), 
however, then 
do not know how to actually populate the data grid when I need the collection's 
data.  I tried  
calling for the length of the collection thinking that it would throw and 
ItemPendingError, but 
that did not seem to work.  Are there any examples out there or sample code 
from people 
who are using the load-on-demand feature?

Thanks,

Kevin



[flexcoders] question for flex coders

2009-02-26 Thread brad
Why does my dateformater NOT work in my grid (below) if 
I specify the resultformat as E4X?  Thats the only difference 
I can see in the grids below. 

Grids 1 and 2 are not e4X and yet they display the date as processed by
the dateformatter.
 
Grids 3 and 4 are e4x and the field is just blank for them.
 
Hopefully I'm not being bone-headed!
 
thanks in advance,
brad
 
Relevant Code Snippets follows
 

mx:DateFormatter id=publishDate formatString= DD,  / 
** 
private function dateFormat(dateItem:Object, 
   dateColumn:DataGridColumn):String 
{ 
   return publishDate.format(dateItem[dateColumn.dataField]); 
} 

[Bindable] private var bookStock:ArrayCollection; 
private function bookHandler(evt:ResultEvent):void 
{ 
  bookStock = evt.result.books.stock; 
} 

[Bindable] private var bookStock2:XMLList; 
private function bookHandler2(evt:ResultEvent):void 
{ 
bookStock2 = evt.result.stock 
} 

[Bindable] private var bookStock3_List:XMLListCollection; 
private function bookHandler3(evt:ResultEvent):void 
{ 
var bookStock3:XMLList = new XMLList(evt.result.stock); 
bookStock3_List = new XMLListCollection (bookStock3); 
} 

** 
mx:HTTPService id=bookData url=assets/books2.xml / 

mx:HTTPService id=bookData2 url=assets/books2.xml 
result=bookHandler(event) 
fault=faultHandler(event) 
/ 
mx:HTTPService id=bookData3 url=assets/books2.xml 
result=bookHandler2(event) 
 resultFormat=e4x/ 
  
mx:HTTPService id=bookData4 url=assets/books2.xml 
result=bookHandler3(event) 
 resultFormat=e4x/ 
 
mx:DataGrid  id=dg2  x=42 y=125 width=950 height=100 
  dataProvider={bookStock}  
  mx:columns 
mx:DataGridColumn dataField=name headerText=name/ 
mx:DataGridColumn dataField=author headerText=author/ 
mx:DataGridColumn dataField=category headerText=category/ 
mx:DataGridColumn dataField=description
headerText=description/ 
mx:DataGridColumn dataField=publish_date 
   headerText=publish date 
  labelFunction=dateFormat/ 
  /mx:columns 
/mx:DataGrid 
  
mx:DataGrid id=dg3 x=42 y=250 width=950 height=100 
 dataProvider={bookStock2}  
  mx:columns 
mx:DataGridColumn dataField=name headerText=name/ 
mx:DataGridColumn dataField=author headerText=author/ 
mx:DataGridColumn dataField=category headerText=category/ 
mx:DataGridColumn dataField=description
headerText=description/ 
mx:DataGridColumn dataField=publish_date 
 headerText=publish date 
labelFunction=dateFormat/ 
 /mx:columns 
/mx:DataGrid


Re: [flexcoders] question for flex coders

2009-02-26 Thread Sam Lai
Because in the line,

return publishDate.format(dateItem[dateColumn.dataField]);

dateItem[dateColumn.dataField] is an XML object, not a string, and the
date formatter doesn't like that. Try adding toString() after it and
it should work, i.e.

return publishDate.format(dateItem[dateColumn.dataField].toString());

2009/2/27  b...@bueche.com:
 Why does my dateformater NOT work in my grid (below) if
 I specify the resultformat as E4X?  Thats the only difference
 I can see in the grids below.
 Grids 1 and 2 are not e4X and yet they display the date as processed by the
 dateformatter.

 Grids 3 and 4 are e4x and the field is just blank for them.

 Hopefully I'm not being bone-headed!

 thanks in advance,
 brad

 Relevant Code Snippets follows

 mx:DateFormatter id=publishDate formatString= DD,  /
 **
 private function dateFormat(dateItem:Object,
    dateColumn:DataGridColumn):String
 {
    return publishDate.format(dateItem[dateColumn.dataField]);
 }

 [Bindable] private var bookStock:ArrayCollection;
 private function bookHandler(evt:ResultEvent):void
 {
   bookStock = evt.result.books.stock;
 }

 [Bindable] private var bookStock2:XMLList;
 private function bookHandler2(evt:ResultEvent):void
 {
         bookStock2 = evt.result.stock
 }

 [Bindable] private var bookStock3_List:XMLListCollection;
 private function bookHandler3(evt:ResultEvent):void
 {
         var bookStock3:XMLList = new XMLList(evt.result.stock);
         bookStock3_List = new XMLListCollection (bookStock3);
 }

 **
 mx:HTTPService id=bookData url=assets/books2.xml /

 mx:HTTPService id=bookData2 url=assets/books2.xml
                                 result=bookHandler(event)
                                 fault=faultHandler(event)
                                 /
 mx:HTTPService id=bookData3 url=assets/books2.xml
                                     result=bookHandler2(event)
                                  resultFormat=e4x/

 mx:HTTPService id=bookData4 url=assets/books2.xml
                                     result=bookHandler3(event)
                                  resultFormat=e4x/
 
 mx:DataGrid  id=dg2  x=42 y=125 width=950 height=100
               dataProvider={bookStock} 
   mx:columns
     mx:DataGridColumn dataField=name headerText=name/
     mx:DataGridColumn dataField=author headerText=author/
     mx:DataGridColumn dataField=category headerText=category/
     mx:DataGridColumn dataField=description headerText=description/
     mx:DataGridColumn dataField=publish_date
    headerText=publish date
   labelFunction=dateFormat/
   /mx:columns
 /mx:DataGrid

 mx:DataGrid id=dg3 x=42 y=250 width=950 height=100
                  dataProvider={bookStock2} 
   mx:columns
     mx:DataGridColumn dataField=name headerText=name/
     mx:DataGridColumn dataField=author headerText=author/
     mx:DataGridColumn dataField=category headerText=category/
     mx:DataGridColumn dataField=description headerText=description/
     mx:DataGridColumn dataField=publish_date
                          headerText=publish date
                         labelFunction=dateFormat/
  /mx:columns
 /mx:DataGrid

 


[flexcoders] Define repeaters at runtime

2009-02-26 Thread smitade
Is it possible to define repeaters at runtime? I've scanned the web
and didn't find anything. I would like an Image array defined within a
repeater but WITHOUT using the mxml 
mx:Repeater id=myRepeater dataProvider=...
mx:Image id=myImage/
/mx:Repeater 
.
.
.
.
so that I can access it later in the code: myImage[10].source=...

Thanks 



[flexcoders] Re: Loader or URLRequest Issues on Mac

2009-02-26 Thread lampei
Yeah, I always get annoyed when I'm searching for an answer an then
it's just never mind...figured it out.  The answer may make you look
foolish (if it's something simple), but someone else will probably be
grateful for having a quick solution to their problem.

--- In flexcoders@yahoogroups.com, Maciek Sakrejda msakre...@... wrote:

 As I'm answering my own questions here, I guess I'll just posted my
 findings :)
 
 I just wanted to point out that this is much appreciated. There's way
 too many forum threads that end with never mind--figured it out, which
 is not that helpful to the next guy who has the same question
 (flexcoders is actually pretty good about this, but I figure it can't
 hurt to encourage the behavior).
 
 Thanks,
 -- 
 Maciek Sakrejda
 Truviso, Inc.
 http://www.truviso.com





Re: [flexcoders] Define repeaters at runtime

2009-02-26 Thread Pedro Sena
If you don't want to use mxml, why don't you use a simple loop instead of
repeater?

The idea of the repeater is to make a loop in mxml adding UI components.

But if you don't want to use mxml, you can easilly do this in AS3 with a
loop + addChild method.

Just my 2 cents,

Pedro Sena

On Thu, Feb 26, 2009 at 11:21 PM, smitade smit...@yahoo.com wrote:

   Is it possible to define repeaters at runtime? I've scanned the web
 and didn't find anything. I would like an Image array defined within a
 repeater but WITHOUT using the mxml
 mx:Repeater id=myRepeater dataProvider=...
 mx:Image id=myImage/
 /mx:Repeater
 .
 .
 .
 .
 so that I can access it later in the code: myImage[10].source=...

 Thanks

  




-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


[flexcoders] Re: Define repeaters at runtime

2009-02-26 Thread smitade
Thanks Pedro

So is it possible to define an Image Array without a repeater? I'd
like to run through 64 Images using:

for each (var img:Image in ImageArray)
{
... etc
}

Back to google.




[flexcoders] Image scaleContent=false causes Security Sandbox Violation in AIR 1.5.x

2009-02-26 Thread Shigeru Nakagaki
Image is loaded, but Security Sandbox Violation log is outputted in 
console. If scaleContent is true, there is no Security Sandbox 
Violation log.


crossdomain.xml is like this.

?xml version=1.0?
cross-domain-policy
site-control permitted-cross-domain-policies=master-only/
allow-access-from domain=* /
/cross-domain-policy


And app loads policy file on initialization like this.

Security.loadPolicyFile(http://localhost/crossdomain.xml;);


Cannot this Security Sandbox Violation log be avoided ?

Cannot we access context data of loaded image in AIR ??


thanks

Shigeru Nakagaki




[flexcoders] Re: Define repeaters at runtime

2009-02-26 Thread smitade
Tried this but it failed:

In Model.as
public var a_red:Array=new Array();

then later:
Model.getInstance().a_red[1].source=Model.getInstance().red_source;

where red_source is a png image.

for (var i:int=0;i64;i++)
{
 Model.getInstance().a_red.push(Model.getInstance().red);
}

then:
trace(Red Image: ,Model.getInstance().red[1].source);

Error #1069: Property 1 not found on mx.controls.Image and there is no
default value.




[flexcoders] Re: show and createComplate event?

2009-02-26 Thread markflex2007
My question is why the show event never be fired.

Thanks




[flexcoders] Re: Define repeaters at runtime

2009-02-26 Thread smitade
It works - please ignore the previous post. Wow, the ability to push
components into arrays like this opens up so many possibilities -
especially when working with flex frameworks. I find it strange the
documentation doesn't highlight this feature - otherwise I missed it.
Thanks again!



[flexcoders] Re: Advanced datagrid with grouping to Excel

2009-02-26 Thread w_page3
No takers on this one...Seems like a common request that would be 
helpful to all in this community...

Or is the request very simple and I am missing something?



[flexcoders] Changing states and removing ControlBar throws an error

2009-02-26 Thread azona26
I have a panel which contains a form, form items, controlbar and a
button. When I create a new state and remove all the items from the
panel using removeChild, the error is thrown:
ArgumentError: Error #2025: The supplied DisplayObject must be a child
of the caller.
I have narrowed it down to an issue with the controlbar. If I do not use
removeChild on the controlbar, simply keeping the controlbar in the new
state, I do not get an error. In reality, it's fine if I leave the
controlbar in the new state, however, I would like to know if it's
something I am doing wrong or a bug ( looks like an issue similar to
this bug http://bugs.adobe.com/jira/browse/SDK-12188
http://bugs.adobe.com/jira/browse/SDK-12188   ).

Thanks.




[flexcoders] Dynamic Advanced Datagrid

2009-02-26 Thread venkat eswar
How to do Dynamic tree inside advanced datagrid