[flexcoders] arraycollection vs listcollectionview

2009-03-27 Thread arieljake
I'm confused.

I have an ArrayCollection. And I listen for the COLLECTION_CHANGE.Remove event 
to know when to delete the item from the database.

For displaying the contents of my ArrayCollection, i am using a 
ListCollectionView with a filter function applied to it, so that the filter 
function does not affect all views using the same ArrayCollection.

But, when I change the value of a property on an item in the ArrayCollection 
that causes the filter to now filter OUT the item, the ListCollectionView 
dispatches a COLLECTION_CHANGE.Remove event.

This causes my code to remove the item from the db, undesirably.

Now I understand that the ListCollectionView must dispatch these events to 
update the ListBase, but why isn't the target different so that I can tell 
whether the Remove event came from the ArrayCollection itself or just a 
ListCollectionView of it? 



Re: [flexcoders] Re: How to restore the default work space in flex builder 3?

2009-03-27 Thread krshnaonweb
Thanks Mark

On Thu, Mar 26, 2009 at 8:39 PM, mark.jonk...@comcast.net wrote:

Do you mean like Windows - Perspectives - Reset Perspective??

 That would reset the Flex Debug perspective or Flex Developer perspective
 back to the original adobe defaults.

 Sincerely
 Mark R. Jonkman

 - Original Message -
 From: krshnaonweb krshnaon...@gmail.com
 To: flexcoders@yahoogroups.com
 Sent: Thursday, March 26, 2009 10:59:51 AM GMT -05:00 US/Canada Eastern
 Subject: Re: [flexcoders] Re: How to restore the default work space in flex
  builder 3?

 Did try that

 By mistake, I did close all workspace windows

 I need to get default work space, just like when I open like in flash.

 Please help me out here.

 Thanks in advance.

 Kris
 On Thu, Mar 26, 2009 at 8:13 PM, valdhor valdhorli...@embarqmail.comwrote:

   Go to File-Switch Workspace-Other... and browse to a new directory.

 Why would you want to do this?


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 krshnaonweb krshnaon...@... wrote:
 
  HI!!
 
  I am new bie in flex here.
  How to restore the default work space in flex builder 3, ?
 
  Thanks
  .kr
 




 --
 Best,
 .Kr


  




-- 
Best,
.Kr


[flexcoders] ViewStack uninitialise

2009-03-27 Thread Wesley Acheson
Hi my understanding of this is that when a component is first made visible
in a view stack thats when it and its childern are initialised.

If these components had a large footprint , think mini application for each
view, would it be possible to uninitialise a child (and thus release any
memory associated with it and its childern) when the component was hidden?
Then if viewStack.selectedIndex was set back to the same component it should
re-initialise.

Is my understanding of how this works correct?

Regards,

Wesley Acheson


Re: [flexcoders] Re: is it not possible to upload a file to a flash app (no server)?

2009-03-27 Thread Tom Chiverton
On Friday 27 Mar 2009, Paul Kukiel wrote:
 Yes in FP10 and the 3.3 SDK you can load data client side.  I have
 had trouble getting this to work on osx and linux though:

Is there a bug for this in bugs.adobe.com, because I have the 10,0,22,87 debug 
player here, on OpenSuSE 64bit (but with 32bit FireFox+plugin), and get the 
error as in the first comment.
It is meant to work...
-- 
Tom Chiverton
Helping to synergistically enable web-readiness as part of the IT team of the 
year, '09 and '08



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] Start Column Chart Y-axiz from non-zero value

2009-03-27 Thread Wesley Acheson
I believe you have to define the axis in your mxml.

Take a look at this sample
http://blog.flexexamples.com/2007/11/12/controlling-whether-a-linechart-should-set-its-base-value-at-zero/
I know its a line chart but the same concept should apply.

Also see
http://blog.flexexamples.com/2007/11/12/controlling-whether-a-linechart-should-set-its-base-value-at-zero/

Also please note that I've read somewhere that setting the values for
maximum and minimum actually improve the performance.


On a final note if there are a large disparity between data points then the
LogAxis may be more appropiate. It depends though on what the client wants.

Regards,

Wesley Acheson

On Thu, Mar 26, 2009 at 6:59 PM, GeeTee guns_n_mai...@yahoo.co.in wrote:


 Hi everyone,

 I was making a stacked column chart (in which a user can see the data
 between a  'Start Date' and an 'End Date' using a date field) in which the
 bottom part would show a cumulative data till that day while the top part
 would show the data for that day. No matter what the start date is, there
 will always be some cumulative data even for the first day, which is the
 start date (as the service for which the data is being displayed has been
 there for years). Since that number is very huge compared to 1 day's data,
 is there any way I can set the y-axis to start at a non-zero number (which
 would be cumulative data till the start date)?

 A test sample that I was working on, using basic column chart without
 stacking is pasted below. I would like to start the y-axis from 5 as
 val
 will always be greater than 5 (hypothetical situation)

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
[Bindable] public static var
 imageTypeQuarterly:ArrayCollection = new
 ArrayCollection( [
{ XVal: Q1, val: 52346},
{ XVal: Q2, val: 63476},
{ XVal: Q3, val: 68980} ]);
]]
/mx:Script

mx:ColumnChart x=169 y=42 id=columnchart1
 dataProvider={imageTypeQuarterly}
mx:series
mx:ColumnSeries displayName=Series 1 yField=val
 /
/mx:series
/mx:ColumnChart
mx:Legend dataProvider={columnchart1}/

 /mx:Application

 Thanks in advance for all the help.
 Gaurav
 --
 View this message in context:
 http://www.nabble.com/Start-Column-Chart-Y-axiz-from-non-zero-value-tp22727634p22727634.html
 Sent from the FlexCoders mailing list archive at Nabble.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






[flexcoders] Re: Combobox - force direction

2009-03-27 Thread valdhor
No, using that technique, you copy the required files to your classpath and 
modify them there. Quote: This will force flex to use mx.controls.ComboBox in 
your classpath instead of the Framework. If the Framework is updated Flex will 
still use the modified ComboBox in your classpath.


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

 But if I change framework source code I will have to restore the change every 
 time I upgrade the framework, right?
 --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
 
  Maybe: 
  http://www.typeoneerror.com/forcing-combobox-component-open-direction-in-flex/
  
  
  --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ 
  wrote:
  
   Is it possible to force a direction a combobox opens up to?
   
   Thanks
  
 





[flexcoders] Get component width/height after resize?

2009-03-27 Thread Claudiu Ursica
Hi does anyone how to get a component's new height/width after it is being 
resized. I got as far as locating them inside the internal vars $height  
$width. I have also seen somewhere that for images it works with contentHeight 
and contentWidth. But I have a tabnavgator component which is being resized ... 
and cannot get the new width/height

TIA,
Claudiu



[flexcoders] Hashmap vs Datagrid

2009-03-27 Thread senthilkumarirtt
i need to retrive hashmap return from java class to datagrid in mxml.



[flexcoders] Adding symbols to Flex Panel skin?

2009-03-27 Thread Sascha
Hi list,

I need to write a Flex Panel so that it features several tabs on the left
side of the panel. I remember darkly that I need to add sumbols to the
components chrome for this to work but resources on the web seem to be very
scarce (there's moslty only stuff describing how to add something to the
panel's titlebar but that's not what I need). Could somebody give me a
helping hand on this?

I've created four symbols in Flash that extend UIMovieClip and these symbols
need to stick out of the left side of my Panel so they can be used as some
sort of tabs. Problem is I have no clue how to add features to the panels
'skin' (chrome) anymore.

Sascha




RE: [flexcoders] arraycollection vs listcollectionview

2009-03-27 Thread Scott
That's a nasty little bug.

 

I haven't encountered that myself yet but I can see where that would
happen.

 

You may want to change your remove function to fire only on a button
click and not a component update (component.remove).

 

 Scott

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of arieljake
Sent: Friday, March 27, 2009 1:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] arraycollection vs listcollectionview

 

I'm confused.

I have an ArrayCollection. And I listen for the COLLECTION_CHANGE.Remove
event to know when to delete the item from the database.

For displaying the contents of my ArrayCollection, i am using a
ListCollectionView with a filter function applied to it, so that the
filter function does not affect all views using the same
ArrayCollection.

But, when I change the value of a property on an item in the
ArrayCollection that causes the filter to now filter OUT the item, the
ListCollectionView dispatches a COLLECTION_CHANGE.Remove event.

This causes my code to remove the item from the db, undesirably.

Now I understand that the ListCollectionView must dispatch these events
to update the ListBase, but why isn't the target different so that I can
tell whether the Remove event came from the ArrayCollection itself or
just a ListCollectionView of it? 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


Re: [flexcoders] Hashmap vs Datagrid

2009-03-27 Thread Wesley Acheson
A hashmap is a map which will be converted to a dynamic object.

see
http://livedocs.adobe.com/blazeds/1/blazeds_devguide/help.html?content=serialize_data_3.html

2009/3/27 senthilkumarirtt senthilkumari...@yahoo.co.in

 i need to retrive hashmap return from java class to datagrid in mxml.



 

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






[flexcoders] Advanced datagrid vs Hashmap in java

2009-03-27 Thread senthilkumarirtt
I want feed the data into Advanced datagrid by data return from Hashmap in java 
class



Re: [flexcoders] Adding symbols to Flex Panel skin?

2009-03-27 Thread Fotis Chatzinikos
I do not know if the following is any help in your situation but a simple
solution would be to have a canvas
behind the Panel and position a tabbar on top of the panel's header...It
might be a bit heavy thought

On Fri, Mar 27, 2009 at 9:50 AM, Sascha sbal...@gmail.com wrote:

   Hi list,

 I need to write a Flex Panel so that it features several tabs on the left
 side of the panel. I remember darkly that I need to add sumbols to the
 components chrome for this to work but resources on the web seem to be very
 scarce (there's moslty only stuff describing how to add something to the
 panel's titlebar but that's not what I need). Could somebody give me a
 helping hand on this?

 I've created four symbols in Flash that extend UIMovieClip and these
 symbols
 need to stick out of the left side of my Panel so they can be used as some
 sort of tabs. Problem is I have no clue how to add features to the panels
 'skin' (chrome) anymore.

 Sascha

  




-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


[flexcoders] Re: Strongly typed responses from RESTful web services

2009-03-27 Thread jim.abbott45
--- In flexcoders@yahoogroups.com, djepyon i...@... wrote:

 Hey flexiverse, is there a way to generate dto's and have strongly typed 
 result objects from REST services in flex?


Short answer: POX  (Google it...)

Long answer:
1) Have each REST service serialize its result as XML (or possibly JSON)
2) Have each REST service return that chunk of XML
3) From Flex, call each REST service (method) using the HTTPService class and 
the send() method
4) In Flex, define a Value Object (VO) class which has properties that map to 
the properties of each type of XML that your service methods can return (the VO 
class defines your strongly-typed object)
5) In the HTTPService, set the result type to e4x (for XML, that is)
6) In the HTTPService's result handler, use E4X to extract the values from the 
XML chunk and then put those values into an instance of the corresponding VO 
class.

Optionally:
--Make the VO class [Bindable]
--Store multiple instances of (same-class) VOs in ArrayCollection instances
--Use XDocLet or other templating/transformation tools to automatically 
generate the Flex VO (client-side object) definitions from server-side 
classes/XML schema/etc.



[flexcoders] Re: ItemEditors Memory Leak

2009-03-27 Thread flexcoder99
No. And honestly I did not check the release notes.
Will do that next time we upgrade.

I tried test program with SDK 3.3 ...but NO CHANGE. Still having the same 
problem with TextInput editors.

Also I tried to checkout flex sdk with TortoiseSVN, the one recommended by 
Adobe (for windows), still can not checkout the source code. Getting the same 
error:
Could not resolve hostname `opensource.adobe.com': The requested name is valid 
and was found in the database, but it does not have the correct associated data 
being resolved for. 

I am not able to get to 4684 version in 3.3 branch - the one you recommended.

I tried FlexSprite and ListenerTracker (found on Flex Monkey patches) to remove 
all eventListeners...but there is no way to profile with this because app stops 
responding with profiler.

Running out of options ...


--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Did you file bugs for RTE's not predicted by the release notes?
 
 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 flexcoder99
 Sent: Thursday, March 26, 2009 2:47 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: ItemEditors Memory Leak
 
 
 I am getting following error checking out flex source code into SVN.
 I am using SVN plugin for Eclipse
 
 ?
 RA layer request failed
 svn: PROPFIND request failed on '/svn/opensource/flex/sdk'
 svn: PROPFIND of '/svn/opensource/flex/sdk': Could not resolve hostname 
 `opensource.adobe.com': The requested name is valid and was found in the 
 database, but it does not have the correct associated data being resolved 
 for. (http://opensource.adobe.com)
 ?
 
 Finally decided to upgrade to 3.3.0.4852
 I have to say, the upgrade is not as seamless as it should be.
 Last time I did that there were lot of new RTEs
 
 Thanks
 
 --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
 Harui aharui@ wrote:
 
  Look for change 4684 in Subversion (3.3 branch)
 
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
 
  From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
  [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
  Behalf Of flexcoder99
  Sent: Thursday, March 26, 2009 8:21 AM
  To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Re: ItemEditors Memory Leak
 
 
  Appreciate your prompt responses.
 
  We are using Flex SDK 3.0
  Which version was the fix put in?
  Last time I tried to change to 3.3 there were many runtime exceptions in 
  our application which did not happrn with 3.0. ecause it needed extensive 
  testing to uncover all the RTEs and we did not have enough time to do that, 
  we reverted back to 3.0.
 
  If you tell me the file(s) that has the fix...I can monkey patch it in to 
  our app.
 
 
  --- In 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
   Alex Harui aharui@ wrote:
  
   Which version of Flex are you using? I think we fixed a focusrect issue 
   recently.
  
   Alex Harui
   Flex SDK Developer
   Adobe Systems Inc.http://www.adobe.com/
   Blog: http://blogs.adobe.com/aharui
  
   From: 
   flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com

   [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com]
On Behalf Of flexcoder99
   Sent: Wednesday, March 25, 2009 4:23 PM
   To: 
   flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
   Subject: [flexcoders] Re: ItemEditors Memory Leak
  
  
   All are circular EXCEPT the reference held by DataGrid.
   This in turn has 59 references ...so after spending long time could not 
   find the culprit yet.
  
   Made some INTERESTING observations:
   The problem happens only if the editor is TextInput, but does not happen 
   with CheckBoxEditor and ComboBoxEditors.
  
   My TextInputEditor is subclass of TextInput and implements IFactory.
  
   As you said, I looked at the references of itemEditor itself.
  
   All are circular except HaloFocusRect and UITextField.
   There are lot of circular references held by Functions like 
   'keyUpHandler', 'keyDownHandler', 'focusInHandler', 'focusOutHandler', 
   'removedHandler', 'addedHandler', 'changeHandler' etc.
  
   --- In 
   flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
Alex Harui aharui@ wrote:
   
The next step is to chase all 9 references to see if they are circular 
(eventually end up back at Panel_A). I'd next check the itemEditor 
itself to make sure nobody is referencing it.
   
When the player hangs on to something, if you put focus 

[flexcoders] Re: Combobox - force direction

2009-03-27 Thread markgoldin_2000
I see, thanks.
--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 No, using that technique, you copy the required files to your classpath and 
 modify them there. Quote: This will force flex to use mx.controls.ComboBox 
 in your classpath instead of the Framework. If the Framework is updated Flex 
 will still use the modified ComboBox in your classpath.
 
 
 --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ wrote:
 
  But if I change framework source code I will have to restore the change 
  every time I upgrade the framework, right?
  --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
  
   Maybe: 
   http://www.typeoneerror.com/forcing-combobox-component-open-direction-in-flex/
   
   
   --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ 
   wrote:
   
Is it possible to force a direction a combobox opens up to?

Thanks
   
  
 





[flexcoders] Re: ItemEditors Memory Leak

2009-03-27 Thread valdhor
How about 
http://opensource.adobe.com/wiki/display/flexsdk/download?build=3.3.0.4852pkgtype=1


--- In flexcoders@yahoogroups.com, flexcoder99 haritha.moos...@... wrote:

 No. And honestly I did not check the release notes.
 Will do that next time we upgrade.
 
 I tried test program with SDK 3.3 ...but NO CHANGE. Still having the same 
 problem with TextInput editors.
 
 Also I tried to checkout flex sdk with TortoiseSVN, the one recommended by 
 Adobe (for windows), still can not checkout the source code. Getting the same 
 error:
 Could not resolve hostname `opensource.adobe.com': The requested name is 
 valid and was found in the database, but it does not have the correct 
 associated data being resolved for. 
 
 I am not able to get to 4684 version in 3.3 branch - the one you recommended.
 
 I tried FlexSprite and ListenerTracker (found on Flex Monkey patches) to 
 remove all eventListeners...but there is no way to profile with this because 
 app stops responding with profiler.
 
 Running out of options ...
 
 
 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  Did you file bugs for RTE's not predicted by the release notes?
  
  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 flexcoder99
  Sent: Thursday, March 26, 2009 2:47 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: ItemEditors Memory Leak
  
  
  I am getting following error checking out flex source code into SVN.
  I am using SVN plugin for Eclipse
  
  ?
  RA layer request failed
  svn: PROPFIND request failed on '/svn/opensource/flex/sdk'
  svn: PROPFIND of '/svn/opensource/flex/sdk': Could not resolve hostname 
  `opensource.adobe.com': The requested name is valid and was found in the 
  database, but it does not have the correct associated data being resolved 
  for. (http://opensource.adobe.com)
  ?
  
  Finally decided to upgrade to 3.3.0.4852
  I have to say, the upgrade is not as seamless as it should be.
  Last time I did that there were lot of new RTEs
  
  Thanks
  
  --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
  Alex Harui aharui@ wrote:
  
   Look for change 4684 in Subversion (3.3 branch)
  
   Alex Harui
   Flex SDK Developer
   Adobe Systems Inc.http://www.adobe.com/
   Blog: http://blogs.adobe.com/aharui
  
   From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
   [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] 
   On Behalf Of flexcoder99
   Sent: Thursday, March 26, 2009 8:21 AM
   To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
   Subject: [flexcoders] Re: ItemEditors Memory Leak
  
  
   Appreciate your prompt responses.
  
   We are using Flex SDK 3.0
   Which version was the fix put in?
   Last time I tried to change to 3.3 there were many runtime exceptions in 
   our application which did not happrn with 3.0. ecause it needed extensive 
   testing to uncover all the RTEs and we did not have enough time to do 
   that, we reverted back to 3.0.
  
   If you tell me the file(s) that has the fix...I can monkey patch it in to 
   our app.
  
  
   --- In 
   flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
Alex Harui aharui@ wrote:
   
Which version of Flex are you using? I think we fixed a focusrect issue 
recently.
   
Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui
   
From: 
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
 
[mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com]
 On Behalf Of flexcoder99
Sent: Wednesday, March 25, 2009 4:23 PM
To: 
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
Subject: [flexcoders] Re: ItemEditors Memory Leak
   
   
All are circular EXCEPT the reference held by DataGrid.
This in turn has 59 references ...so after spending long time could not 
find the culprit yet.
   
Made some INTERESTING observations:
The problem happens only if the editor is TextInput, but does not 
happen with CheckBoxEditor and ComboBoxEditors.
   
My TextInputEditor is subclass of TextInput and implements IFactory.
   
As you said, I looked at the references of itemEditor itself.
   
All are circular except HaloFocusRect and UITextField.
There are lot of circular references held by Functions like 
'keyUpHandler', 'keyDownHandler', 'focusInHandler', 'focusOutHandler', 
'removedHandler', 'addedHandler', 'changeHandler' etc.
   
--- In 
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
 

[flexcoders] horizontalAxisRenderer VS horizontalAxisRenderers?

2009-03-27 Thread sailorsea21
Hi everyone, 
I have the following script:
 
var columnChart:ColumnChart = new ColumnChart();
var axisVRenderer:AxisRenderer  = new AxisRenderer();
axisVRenderer.placement = left;
axisVRenderer.axis  = int_20;
axisVRenderer.labelFunction = axisPercent;
***columnChart.verticalAxisRenderers   = axisVRenderer; 

I don't understand why it's generating the following error:

***
1067: Implicit coercion of a value of type mx.charts:AxisRenderer to an 
unrelated type Array.

If I replace the verticalAxisRenderers by verticalAxisRenderer I receive the 
following warning:

3606: 'verticalAxisRenderer' has been deprecated.  Please use 
'CartesianChart.verticalAxisRenderers'.

Should I use verticalAxisRenderer and ignore the warning?

Thanks.

-David



Re: [flexcoders] ViewStack uninitialise

2009-03-27 Thread Tom Chiverton
On Friday 27 Mar 2009, Wesley Acheson wrote:
 Is my understanding of how this works correct?

No, once children of a viewstack have been created, they stay created.

-- 
Tom Chiverton
Helping to interactively scale segments as part of the IT team of the 
year, '09 and '08



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: ItemEditors Memory Leak

2009-03-27 Thread Tom Chiverton
On Thursday 26 Mar 2009, flexcoder99 wrote:
 Could not resolve hostname
 `opensource.adobe.com': 

Well ? Can you ping or browse to the address ?

-- 
Tom Chiverton
Helping to ambassadorially grow attention-grabbing best-of-breed features as 
part of the IT team of the year, '09 and '08



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] arraycollection vs listcollectionview

2009-03-27 Thread Alex Harui
You should be able to get what you want if you set it up correctly.  The AC and 
LCV should be separate instances sharing the same source or list property

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 Scott
Sent: Friday, March 27, 2009 4:57 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] arraycollection vs listcollectionview

That's a nasty little bug.

I haven't encountered that myself yet but I can see where that would happen.

You may want to change your remove function to fire only on a button click and 
not a component update (component.remove).

 Scott


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of arieljake
Sent: Friday, March 27, 2009 1:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] arraycollection vs listcollectionview


I'm confused.

I have an ArrayCollection. And I listen for the COLLECTION_CHANGE.Remove event 
to know when to delete the item from the database.

For displaying the contents of my ArrayCollection, i am using a 
ListCollectionView with a filter function applied to it, so that the filter 
function does not affect all views using the same ArrayCollection.

But, when I change the value of a property on an item in the ArrayCollection 
that causes the filter to now filter OUT the item, the ListCollectionView 
dispatches a COLLECTION_CHANGE.Remove event.

This causes my code to remove the item from the db, undesirably.

Now I understand that the ListCollectionView must dispatch these events to 
update the ListBase, but why isn't the target different so that I can tell 
whether the Remove event came from the ArrayCollection itself or just a 
ListCollectionView of it?

--
This message has been scanned for viruses and
dangerous content by MailScannerhttp://www.mailscanner.info/, and is
believed to be clean.



[flexcoders] Remoting: Sending a typed object with zendAMF to the server

2009-03-27 Thread djhatrick
I am always getting a fault when I try this, I don't know what the param should 
look like for a typed object for sending a value object back to the server...

Any help thanks?

patrick



[flexcoders] Preventing duplicate database entries in ColdFusion and flex

2009-03-27 Thread stinasius
how can i prevent duplicate database entries in coldfusion and flex. for 
example for registration forms, i would like that if someone registers the same 
combination of username and password that already exist in the db, the entry is 
rejected and the user is alerted. thanks



[flexcoders] Re: ItemEditors Memory Leak

2009-03-27 Thread flexcoder99
Your link provides me with the latest from repository.
I am trying to check out from SVN so i can see the revision history.

Thanks 

--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 How about 
 http://opensource.adobe.com/wiki/display/flexsdk/download?build=3.3.0.4852pkgtype=1
 
 
 --- In flexcoders@yahoogroups.com, flexcoder99 haritha.moosani@ wrote:
 
  No. And honestly I did not check the release notes.
  Will do that next time we upgrade.
  
  I tried test program with SDK 3.3 ...but NO CHANGE. Still having the same 
  problem with TextInput editors.
  
  Also I tried to checkout flex sdk with TortoiseSVN, the one recommended by 
  Adobe (for windows), still can not checkout the source code. Getting the 
  same error:
  Could not resolve hostname `opensource.adobe.com': The requested name is 
  valid and was found in the database, but it does not have the correct 
  associated data being resolved for. 
  
  I am not able to get to 4684 version in 3.3 branch - the one you 
  recommended.
  
  I tried FlexSprite and ListenerTracker (found on Flex Monkey patches) to 
  remove all eventListeners...but there is no way to profile with this 
  because app stops responding with profiler.
  
  Running out of options ...
  
  
  --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
  
   Did you file bugs for RTE's not predicted by the release notes?
   
   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 flexcoder99
   Sent: Thursday, March 26, 2009 2:47 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: ItemEditors Memory Leak
   
   
   I am getting following error checking out flex source code into SVN.
   I am using SVN plugin for Eclipse
   
   ?
   RA layer request failed
   svn: PROPFIND request failed on '/svn/opensource/flex/sdk'
   svn: PROPFIND of '/svn/opensource/flex/sdk': Could not resolve hostname 
   `opensource.adobe.com': The requested name is valid and was found in the 
   database, but it does not have the correct associated data being resolved 
   for. (http://opensource.adobe.com)
   ?
   
   Finally decided to upgrade to 3.3.0.4852
   I have to say, the upgrade is not as seamless as it should be.
   Last time I did that there were lot of new RTEs
   
   Thanks
   
   --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
   Alex Harui aharui@ wrote:
   
Look for change 4684 in Subversion (3.3 branch)
   
Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui
   
From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
[mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com]
 On Behalf Of flexcoder99
Sent: Thursday, March 26, 2009 8:21 AM
To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
Subject: [flexcoders] Re: ItemEditors Memory Leak
   
   
Appreciate your prompt responses.
   
We are using Flex SDK 3.0
Which version was the fix put in?
Last time I tried to change to 3.3 there were many runtime exceptions 
in our application which did not happrn with 3.0. ecause it needed 
extensive testing to uncover all the RTEs and we did not have enough 
time to do that, we reverted back to 3.0.
   
If you tell me the file(s) that has the fix...I can monkey patch it in 
to our app.
   
   
--- In 
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
 Alex Harui aharui@ wrote:

 Which version of Flex are you using? I think we fixed a focusrect 
 issue recently.

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

 From: 
 flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
  
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com]
  On Behalf Of flexcoder99
 Sent: Wednesday, March 25, 2009 4:23 PM
 To: 
 flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: ItemEditors Memory Leak


 All are circular EXCEPT the reference held by DataGrid.
 This in turn has 59 references ...so after spending long time could 
 not find the culprit yet.

 Made some INTERESTING observations:
 The problem happens only if the editor is TextInput, but does not 
 happen with CheckBoxEditor and ComboBoxEditors.

 My TextInputEditor is subclass of TextInput and implements IFactory.

 As you said, I looked at the references of itemEditor itself.

 All are circular except HaloFocusRect and UITextField.
 There are lot of 

[flexcoders] Re: ItemEditors Memory Leak

2009-03-27 Thread flexcoder99

Yes.
I can browse to 
http://opensource.adobe.com/svn/opensource/flex/sdk

This is the error i get while doing 

svn checkout http://opensource.adobe.com/svn/opensource/flex/sdk 

svn: PROPFIND request failed on '/svn/opensource/flex/sdk'
svn: PROPFIND of '/svn/opensource/flex/sdk': Could not resolve hostname `opensou
rce.adobe.com': The requested name is valid and was found in the database, but i
t does not have the correct associated data being resolved for.   (http://openso
urce.adobe.com)

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

 On Thursday 26 Mar 2009, flexcoder99 wrote:
  Could not resolve hostname
  `opensource.adobe.com': 
 
 Well ? Can you ping or browse to the address ?
 
 -- 
 Tom Chiverton
 Helping to ambassadorially grow attention-grabbing best-of-breed features as 
 part of the IT team of the year, '09 and '08
 
 
 
 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: is it not possible to upload a file to a flash app (no server)?

2009-03-27 Thread gmoniey22
I was able to get it working on OS X...the biggest problem was getting 
flexbuilder to use the FP 10 player, otherwise the load() function fails at 
runtime.

--- In flexcoders@yahoogroups.com, Paul Kukiel pkuk...@... wrote:

 Yes in FP10 and the 3.3 SDK you can load data client side.  I have  
 had trouble getting this to work on osx and linux though:
 
 http://blog.kukiel.net/2009/02/file-manipulation-client-side-with.html
 
 There are a few links on the entry to some decent references.
 
 Paul.
 
 
 On 26/03/2009, at 8:34 PM, gmoniey22 wrote:
 
  yes it will, using the FileReference.load(), and then accessing  
  FileReference.data.
 
  I got this working on FP10  sdk 3.3. It took a while to get  
  flexbuilder to play nice however.
 
  --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
  
   I have heard that FP 10 will allow access to the file contents.
  
  
  
   Tracy Spratt,
  
   Lariat Services, development services available
  
   _
  
   From: flexcoders@yahoogroups.com  
  [mailto:flexcod...@yahoogroups.com] On
   Behalf Of djepyon
   Sent: Thursday, March 26, 2009 6:19 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: is it not possible to upload a file to  
  a flash app
   (no server)?
  
  
  
   If its a remote file this can be done by using Loader.loadBytes()  
  and
   parsing the ByteArray.
  
   You would need AIR to load the bytes of a local file though.
  
   --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com  
  ups.com,
   gmoniey22 gmoniey22@ wrote:
   
No, I actually want to parse the file. This seems like it  
  should be a
   trivial task.
   
--- In flexcod...@yahoogro mailto:flexcoders% 
  40yahoogroups.com ups.com,
   Alain Thibodeau thibodeau.alain@ wrote:

 You mean just getting file info or actually parsing the full  
  file data?

 If it's just the basic file information, I think you can get  
  that with
   the FileReference...

 If you are looking for more power, swfStudio will give you  
  all the power
   you need: http://www.northcod http://www.northcode.com/index.php
   e.com/index.php







 
 From: gmoniey22 gmoniey22@
 To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com  
  ups.com
 Sent: Thursday, March 26, 2009 2:54:28 PM
 Subject: [flexcoders] is it not possible to upload a file to  
  a flash app
   (no server)?


 I want the user to select a file and have my flash app parse  
  it for
   information, and then display that info in the app.

 But it seems like all of the FileReference functions abstract  
  the
   upload/download process to a server.

 Am I missing something? Thanks





 __
 Yahoo! Canada Toolbar: Search from anywhere on the web, and  
  bookmark
   your favourite sites. Download it now
 http://ca.toolbar. http://ca.toolbar.yahoo.com. yahoo.com.

   
  
 
 





[flexcoders] Re: ItemEditors Memory Leak

2009-03-27 Thread flexcoder99
Mistery solved...it is a Flash player bug # 2267790 .

It has to do with removing a TextField (Flash Player component) from the stage 
while it is focused.  The fixes above are a partial fix, but it requires a 
change to Flash Player in order to completely resolve the issue.  This bug is 
open, and listed as a high priority but hasn't yet been scheduled.

Thanks to Alex and Jay (Adobe support).


--- In flexcoders@yahoogroups.com, flexcoder99 haritha.moos...@... wrote:

 No. And honestly I did not check the release notes.
 Will do that next time we upgrade.
 
 I tried test program with SDK 3.3 ...but NO CHANGE. Still having the same 
 problem with TextInput editors.
 
 Also I tried to checkout flex sdk with TortoiseSVN, the one recommended by 
 Adobe (for windows), still can not checkout the source code. Getting the same 
 error:
 Could not resolve hostname `opensource.adobe.com': The requested name is 
 valid and was found in the database, but it does not have the correct 
 associated data being resolved for. 
 
 I am not able to get to 4684 version in 3.3 branch - the one you recommended.
 
 I tried FlexSprite and ListenerTracker (found on Flex Monkey patches) to 
 remove all eventListeners...but there is no way to profile with this because 
 app stops responding with profiler.
 
 Running out of options ...
 
 
 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  Did you file bugs for RTE's not predicted by the release notes?
  
  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 flexcoder99
  Sent: Thursday, March 26, 2009 2:47 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: ItemEditors Memory Leak
  
  
  I am getting following error checking out flex source code into SVN.
  I am using SVN plugin for Eclipse
  
  ?
  RA layer request failed
  svn: PROPFIND request failed on '/svn/opensource/flex/sdk'
  svn: PROPFIND of '/svn/opensource/flex/sdk': Could not resolve hostname 
  `opensource.adobe.com': The requested name is valid and was found in the 
  database, but it does not have the correct associated data being resolved 
  for. (http://opensource.adobe.com)
  ?
  
  Finally decided to upgrade to 3.3.0.4852
  I have to say, the upgrade is not as seamless as it should be.
  Last time I did that there were lot of new RTEs
  
  Thanks
  
  --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
  Alex Harui aharui@ wrote:
  
   Look for change 4684 in Subversion (3.3 branch)
  
   Alex Harui
   Flex SDK Developer
   Adobe Systems Inc.http://www.adobe.com/
   Blog: http://blogs.adobe.com/aharui
  
   From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
   [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] 
   On Behalf Of flexcoder99
   Sent: Thursday, March 26, 2009 8:21 AM
   To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
   Subject: [flexcoders] Re: ItemEditors Memory Leak
  
  
   Appreciate your prompt responses.
  
   We are using Flex SDK 3.0
   Which version was the fix put in?
   Last time I tried to change to 3.3 there were many runtime exceptions in 
   our application which did not happrn with 3.0. ecause it needed extensive 
   testing to uncover all the RTEs and we did not have enough time to do 
   that, we reverted back to 3.0.
  
   If you tell me the file(s) that has the fix...I can monkey patch it in to 
   our app.
  
  
   --- In 
   flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
Alex Harui aharui@ wrote:
   
Which version of Flex are you using? I think we fixed a focusrect issue 
recently.
   
Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui
   
From: 
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
 
[mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com]
 On Behalf Of flexcoder99
Sent: Wednesday, March 25, 2009 4:23 PM
To: 
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
Subject: [flexcoders] Re: ItemEditors Memory Leak
   
   
All are circular EXCEPT the reference held by DataGrid.
This in turn has 59 references ...so after spending long time could not 
find the culprit yet.
   
Made some INTERESTING observations:
The problem happens only if the editor is TextInput, but does not 
happen with CheckBoxEditor and ComboBoxEditors.
   
My TextInputEditor is subclass of TextInput and implements IFactory.
   
As you said, I looked at the references of itemEditor itself.
   
All are circular except HaloFocusRect and UITextField.
There are lot of circular references held by 

[flexcoders] Re: horizontalAxisRenderer VS horizontalAxisRenderers?

2009-03-27 Thread valdhor
columnChart.verticalAxisRenderers wants an array. Try this...

columnChart.verticalAxisRenderers = [axisVRenderer];


--- In flexcoders@yahoogroups.com, sailorsea21 sailorse...@... wrote:

 Hi everyone, 
 I have the following script:
  
 var columnChart:ColumnChart = new ColumnChart();
 var axisVRenderer:AxisRenderer  = new AxisRenderer();
   axisVRenderer.placement = left;
   axisVRenderer.axis  = int_20;
   axisVRenderer.labelFunction = axisPercent;
   ***columnChart.verticalAxisRenderers   = axisVRenderer; 
 
 I don't understand why it's generating the following error:
 
 ***
 1067: Implicit coercion of a value of type mx.charts:AxisRenderer to an 
 unrelated type Array.
 
 If I replace the verticalAxisRenderers by verticalAxisRenderer I receive the 
 following warning:
 
 3606: 'verticalAxisRenderer' has been deprecated.  Please use 
 'CartesianChart.verticalAxisRenderers'.
 
 Should I use verticalAxisRenderer and ignore the warning?
 
 Thanks.
 
 -David





[flexcoders] Re: Remoting: Sending a typed object with zendAMF to the server

2009-03-27 Thread djhatrick
Here's an example of what I am sending, but I always get a fault...  I hate to 
say it, but ZendAMF is more complicated than the amfphp, and there's no service 
broswer tool, :(  



 /** 
 * 
 * @param  string $username
 * @param  string $email
 * @param  ArticleVO $articleVO
 * @return string
 * */
  
function updateArticleById($username,$password,$articleVO)
{
$users =  $this-validateUser($username,$password);
if ($users[0]-loggedIn == 0) return;

return success;
}

Any ideas out there?  I can retrieve my typed value objects, but I can't send 
them to the server.




--- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote:

 I am always getting a fault when I try this, I don't know what the param 
 should look like for a typed object for sending a value object back to the 
 server...
 
 Any help thanks?
 
 patrick





[flexcoders] Question an how to create dynamic content with Flex

2009-03-27 Thread timgerr
Hello all, 
I am creating an application that is a windowed system, I mean that I have 
windows that will launch and you can move them around.  I have ad to create all 
my content dynamically in Action Script because when my windows close I remove 
the object.  

Here is my question for y'all, can I create flex code dynamically, if so how 
can I do it?   Meaning that if I remove the Flex code widget object can I 
create it again?

Thanks for the information.

timgerr




Re: [flexcoders] Re: horizontalAxisRenderer VS horizontalAxisRenderers?

2009-03-27 Thread - -
Thanks! It worked :)





From: valdhor valdhorli...@embarqmail.com
To: flexcoders@yahoogroups.com
Sent: Friday, March 27, 2009 1:33:55 PM
Subject: [flexcoders] Re: horizontalAxisRenderer VS horizontalAxisRenderers?


columnChart. verticalAxisRend erers wants an array. Try this...

columnChart. verticalAxisRend erers = [axisVRenderer] ;

--- In flexcod...@yahoogro ups.com, sailorsea21 sailorsea21@ ... wrote:

 Hi everyone, 
 I have the following script:
 
 var columnChart: ColumnChart = new ColumnChart( );
 var axisVRenderer: AxisRenderer = new AxisRenderer( );
 axisVRenderer. placement = left;
 axisVRenderer. axis = int_20;
 axisVRenderer. labelFunction = axisPercent;
 ***columnChart. verticalAxisRend erers = axisVRenderer; 
 
 I don't understand why it's generating the following error:
 
 ***
 1067: Implicit coercion of a value of type mx.charts:AxisRende rer to an 
 unrelated type Array.
 
 If I replace the verticalAxisRendere rs by verticalAxisRendere r I receive 
 the following warning:
 
 3606: 'verticalAxisRender er' has been deprecated. Please use 
 'CartesianChart. verticalAxisRend erers'.
 
 Should I use verticalAxisRendere r and ignore the warning?
 
 Thanks.
 
 -David






  

RE: [flexcoders] Adding symbols to Flex Panel skin?

2009-03-27 Thread Sascha
Nevermind, I've wrapped the Panel into a Canvas and put the tabs into the
canvas too. The Panel does not need to be resized once it is instantiated so
that's an ok solution I think.

 

Thanks anyway.

Sascha

 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Fotis Chatzinikos
Sent: Friday, March 27, 2009 23:37
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Adding symbols to Flex Panel skin?

 

I do not know if the following is any help in your situation but a simple
solution would be to have a canvas
behind the Panel and position a tabbar on top of the panel's header...It
might be a bit heavy thought

On Fri, Mar 27, 2009 at 9:50 AM, Sascha sbal...@gmail.com wrote:

Hi list,

I need to write a Flex Panel so that it features several tabs on the left
side of the panel. I remember darkly that I need to add sumbols to the
components chrome for this to work but resources on the web seem to be very
scarce (there's moslty only stuff describing how to add something to the
panel's titlebar but that's not what I need). Could somebody give me a
helping hand on this?

I've created four symbols in Flash that extend UIMovieClip and these symbols
need to stick out of the left side of my Panel so they can be used as some
sort of tabs. Problem is I have no clue how to add features to the panels
'skin' (chrome) anymore.

Sascha




-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com, 



image001.jpgimage002.jpg

RE: [flexcoders] Hashmap vs Datagrid

2009-03-27 Thread Tracy Spratt
But be aware that you cannot use an Object directly as a dataProvider.

You will need to for in or for each over the properties in the object to
build some collection.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wesley Acheson
Sent: Friday, March 27, 2009 9:07 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Hashmap vs Datagrid

 

A hashmap is a map which will be converted to a dynamic object.

see http://livedocs.
http://livedocs.adobe.com/blazeds/1/blazeds_devguide/help.html?content=seri
alize_data_3.html
adobe.com/blazeds/1/blazeds_devguide/help.html?content=serialize_data_3.html

2009/3/27 senthilkumarirtt senthilkumarirtt@
mailto:senthilkumari...@yahoo.co.in yahoo.co.in

i need to retrive hashmap return from java class to datagrid in mxml.





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


   (Yahoo! ID required)

   mailto:flexcoders-fullfeat
mailto:flexcoders-fullfeatu...@yahoogroups.com u...@yahoogroups.com


 





RE: [flexcoders] Preventing duplicate database entries in ColdFusion and flex

2009-03-27 Thread Kevin F. Benz
Select the count of those that have those credentials and if the number is
greater than zero, return an error, otherwise do your insert.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of stinasius
Sent: Friday, March 27, 2009 10:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Preventing duplicate database entries in ColdFusion
and flex

 

how can i prevent duplicate database entries in coldfusion and flex. for
example for registration forms, i would like that if someone registers the
same combination of username and password that already exist in the db, the
entry is rejected and the user is alerted. thanks





[flexcoders] mx:Text and line height

2009-03-27 Thread carloscarvalhar
Hi,

how can i get a correct line heigth of mx:Text?

This is code that i'm using:
public function get textLineHeight():uint { 
var textLineMetrics:TextLineMetrics = this.getLineMetrics(0);
_textLineHeight = textLineMetrics.height + textLineMetrics.leading;
return _textLineHeight;
}

And the result is strange...if i have only one line, i need to add 3 pixels, if 
i have two lines, it's ok. But if i have more than 2 lines the height returned 
is bigger than it should be...

what am i doing wrong? how should i get a REAL line height?

Thanks,
Carlos
PS: you can see it happening here:
http://carvalhar.com/#/blog/45/incorporando-fontes-no-flex/



[flexcoders] Combobox and prompt

2009-03-27 Thread markgoldin_2000
I am trying to use a blank Prompt with my combobox in order to have a blank 
item on the top. But after selecting a non blank item the blank one is not in 
there. do I need to use blank data to get what I need?

Thanks



Re: [flexcoders] video - capture and save locally

2009-03-27 Thread Alain Thibodeau
just trying again to see if anyone has any ideas on this?

thanks!





From: thibodeau.alain thibodeau.al...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Wednesday, March 25, 2009 7:15:43 PM
Subject: [flexcoders] video - capture and save locally


Hi all,

I was wondering if anyone has any ideas or know of resources that I can start 
reading on how to capture a webcam and audio, then save it to the local file 
system?

I am already doing this using FMS and saving it on the server. I want to expand 
the application to save locally and not to FMS or using FMS. 

Ideally, I would like a web and desktop version. So a flex and Air version. 
I've saved photos using FileReference before with player 10, but how can I 
expand that to video and audio?

I did find this: http://tdotblog. info/?q=node/ 1 but seems outdated and the 
flv saved is buggy...

any help or direction would be appreciated.

Thank-you





  __
Connect with friends from any web browser - no download required. Try the new 
Yahoo! Canada Messenger for the Web BETA at 
http://ca.messenger.yahoo.com/webmessengerpromo.php

Re: [flexcoders] Combobox and prompt

2009-03-27 Thread Wesley Acheson
Try setting an empty string as the first item in the data provider.

I should imagine that should work fine.

2009/3/27 markgoldin_2000 markgoldin_2...@yahoo.com

 I am trying to use a blank Prompt with my combobox in order to have a blank
 item on the top. But after selecting a non blank item the blank one is not
 in there. do I need to use blank data to get what I need?

 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






[flexcoders] Re: ItemEditors Memory Leak

2009-03-27 Thread valdhor
I installed Subversive Plug-in from

http://download.eclipse.org/technology/subversive/0.7/update-site/

and Subversive SVN Connectors from

http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/

and was able to check out revision 5656 using

http://opensource.adobe.com/svn/opensource/flex/sdk

The problem must be with your SubVersion client.



--- In flexcoders@yahoogroups.com, flexcoder99 haritha.moos...@... wrote:

 
 Yes.
 I can browse to 
 http://opensource.adobe.com/svn/opensource/flex/sdk
 
 This is the error i get while doing 
 
 svn checkout http://opensource.adobe.com/svn/opensource/flex/sdk 
 
 svn: PROPFIND request failed on '/svn/opensource/flex/sdk'
 svn: PROPFIND of '/svn/opensource/flex/sdk': Could not resolve hostname 
 `opensou
 rce.adobe.com': The requested name is valid and was found in the database, 
 but i
 t does not have the correct associated data being resolved for.   
 (http://openso
 urce.adobe.com)
 
 --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@ wrote:
 
  On Thursday 26 Mar 2009, flexcoder99 wrote:
   Could not resolve hostname
   `opensource.adobe.com': 
  
  Well ? Can you ping or browse to the address ?
  
  -- 
  Tom Chiverton
  Helping to ambassadorially grow attention-grabbing best-of-breed features 
  as 
  part of the IT team of the year, '09 and '08
  
  
  
  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: Remoting: Sending a typed object with zendAMF to the server

2009-03-27 Thread valdhor
Sorry, my recommendation is WebORB. If you decide to change let me know and I 
can help you out.


--- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote:

 Here's an example of what I am sending, but I always get a fault...  I hate 
 to say it, but ZendAMF is more complicated than the amfphp, and there's no 
 service broswer tool, :(  
 
 
 
  /** 
  * 
  * @param  string $username
  * @param  string $email
  * @param  ArticleVO $articleVO
  * @return string
  * */
   
   function updateArticleById($username,$password,$articleVO)
   {
   $users =  $this-validateUser($username,$password);
   if ($users[0]-loggedIn == 0) return;
   
   return success;
   }
 
 Any ideas out there?  I can retrieve my typed value objects, but I can't send 
 them to the server.
 
 
 
 
 --- In flexcoders@yahoogroups.com, djhatrick djhatrick@ wrote:
 
  I am always getting a fault when I try this, I don't know what the param 
  should look like for a typed object for sending a value object back to the 
  server...
  
  Any help thanks?
  
  patrick
 





Re: [flexcoders] Re: is it not possible to upload a file to a flash app (no server)?

2009-03-27 Thread Fotis Chatzinikos
Any ideas why it was not working before? How did you fix it? Does it now
play ok on win, osx + linuxes?

I am considering using this for an app i am making, but i am not sure if it
worths the trouble if it only works on windows...

On Fri, Mar 27, 2009 at 7:32 PM, gmoniey22 gmonie...@yahoo.com wrote:

   I was able to get it working on OS X...the biggest problem was getting
 flexbuilder to use the FP 10 player, otherwise the load() function fails at
 runtime.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Paul
 Kukiel pkuk...@... wrote:
 
  Yes in FP10 and the 3.3 SDK you can load data client side. I have
  had trouble getting this to work on osx and linux though:
 
  http://blog.kukiel.net/2009/02/file-manipulation-client-side-with.html
 
  There are a few links on the entry to some decent references.
 
  Paul.
 
 
  On 26/03/2009, at 8:34 PM, gmoniey22 wrote:
 
   yes it will, using the FileReference.load(), and then accessing
   FileReference.data.
  
   I got this working on FP10  sdk 3.3. It took a while to get
   flexbuilder to play nice however.
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Tracy Spratt tspratt@ wrote:
   
I have heard that FP 10 will allow access to the file contents.
   
   
   
Tracy Spratt,
   
Lariat Services, development services available
   
_
   
From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
Behalf Of djepyon
Sent: Thursday, March 26, 2009 6:19 PM
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
Subject: [flexcoders] Re: is it not possible to upload a file to
   a flash app
(no server)?
   
   
   
If its a remote file this can be done by using Loader.loadBytes()
   and
parsing the ByteArray.
   
You would need AIR to load the bytes of a local file though.
   
--- In flexcod...@yahoogro 
mailto:flexcoders%40yahoogroups.comflexcoders%2540yahoogroups.com

   ups.com,
gmoniey22 gmoniey22@ wrote:

 No, I actually want to parse the file. This seems like it
   should be a
trivial task.

 --- In flexcod...@yahoogro mailto:flexcoders% flexcoders%25
   40yahoogroups.com ups.com,
Alain Thibodeau thibodeau.alain@ wrote:
 
  You mean just getting file info or actually parsing the full
   file data?
 
  If it's just the basic file information, I think you can get
   that with
the FileReference...
 
  If you are looking for more power, swfStudio will give you
   all the power
you need: http://www.northcod http://www.northcode.com/index.php
e.com/index.php
 
 
 
 
 
 
 
  
  From: gmoniey22 gmoniey22@
  To: flexcod...@yahoogro 
  mailto:flexcoders%40yahoogroups.comflexcoders%2540yahoogroups.com

   ups.com
  Sent: Thursday, March 26, 2009 2:54:28 PM
  Subject: [flexcoders] is it not possible to upload a file to
   a flash app
(no server)?
 
 
  I want the user to select a file and have my flash app parse
   it for
information, and then display that info in the app.
 
  But it seems like all of the FileReference functions abstract
   the
upload/download process to a server.
 
  Am I missing something? Thanks
 
 
 
 
 
  __
  Yahoo! Canada Toolbar: Search from anywhere on the web, and
   bookmark
your favourite sites. Download it now
  http://ca.toolbar. http://ca.toolbar.yahoo.com. yahoo.com.
 

   
  
  
 

  




-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


[flexcoders] SeriesInterpolate in actionscript ColumnChart?

2009-03-27 Thread sailorsea21
Hi everyone, I'm trying to set a SeriesInterpolate for my ColumnSeries, this is 
my code:

var columnChart:ColumnChart = new ColumnChart();
(...)
var action:SeriesInterpolate= new SeriesInterpolate();
action.duration = 1000;
action.minimumElementDuration   = 200;
action.elementOffset= 0;
var myColumnSeries:Array= new Array();  
var col:ColumnSeries= new ColumnSeries();
col.yField  = data;
col.xField  = title;  
col.setStyle(showDataEffect,action);
myColumnSeries.push(col);   
columnChart.series  = myColumnSeries;

If I write it out in MXML, I can get it to work, but not in actionscript. What 
am I doing wrong?

Thanks.




RE: [flexcoders] Combobox and prompt

2009-03-27 Thread Tracy Spratt
Yes, if you need a blank that  selectable, it need to be in the
dataProvider.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wesley Acheson
Sent: Friday, March 27, 2009 2:05 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Combobox and prompt

 

Try setting an empty string as the first item in the data provider.

I should imagine that should work fine.

2009/3/27 markgoldin_2000 markgoldin_2000@
mailto:markgoldin_2...@yahoo.com yahoo.com

I am trying to use a blank Prompt with my combobox in order to have a blank
item on the top. But after selecting a non blank item the blank one is not
in there. do I need to use blank data to get what I need?

Thanks





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


   (Yahoo! ID required)

   mailto:flexcoders-fullfeat
mailto:flexcoders-fullfeatu...@yahoogroups.com u...@yahoogroups.com


 





[flexcoders] Re: Question an how to create dynamic content with Flex

2009-03-27 Thread timgerr
Never mind, I am a goof.

timgerr

--- In flexcoders@yahoogroups.com, timgerr tgallag...@... wrote:

 Hello all, 
 I am creating an application that is a windowed system, I mean that I have 
 windows that will launch and you can move them around.  I have ad to create 
 all my content dynamically in Action Script because when my windows close I 
 remove the object.  
 
 Here is my question for y'all, can I create flex code dynamically, if so how 
 can I do it?   Meaning that if I remove the Flex code widget object can I 
 create it again?
 
 Thanks for the information.
 
 timgerr





[flexcoders] Question for Amfphp and Flex RemoteObject ?

2009-03-27 Thread markflex2007
Hi,

I take a look the Amfphp server code and structure. I do not see 
service-config.xml and remoting-config.xml file.

I need set connection with the two files in server if I use Flex remoteobject.

service-config.xml is used for endpoint setting and remoting-config.xml is used 
for destination/source setting.

Thanks for your help

Mark



RE: [flexcoders] mx:Text and line height

2009-03-27 Thread Alex Harui
Flash has a 2 pixel gutter all around the text.  Is that throwing off your 
calculations?

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 carloscarvalhar
Sent: Friday, March 27, 2009 10:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] mx:Text and line height


Hi,

how can i get a correct line heigth of mx:Text?

This is code that i'm using:
public function get textLineHeight():uint {
var textLineMetrics:TextLineMetrics = this.getLineMetrics(0);
_textLineHeight = textLineMetrics.height + textLineMetrics.leading;
return _textLineHeight;
}

And the result is strange...if i have only one line, i need to add 3 pixels, if 
i have two lines, it's ok. But if i have more than 2 lines the height returned 
is bigger than it should be...

what am i doing wrong? how should i get a REAL line height?

Thanks,
Carlos
PS: you can see it happening here:
http://carvalhar.com/#/blog/45/incorporando-fontes-no-flex/



[flexcoders] Re: is it not possible to upload a file to a flash app (no server)?

2009-03-27 Thread gmoniey22
I havent gotten a chance to play with it on anything but os x (10.5).

I ended up getting it working by following these instructions:

http://opensource.adobe.com/wiki/display/flexsdk/Targeting+Flash+Player+10

--- In flexcoders@yahoogroups.com, Fotis Chatzinikos fotis.chatzini...@... 
wrote:

 Any ideas why it was not working before? How did you fix it? Does it now
 play ok on win, osx + linuxes?
 
 I am considering using this for an app i am making, but i am not sure if it
 worths the trouble if it only works on windows...
 
 On Fri, Mar 27, 2009 at 7:32 PM, gmoniey22 gmonie...@... wrote:
 
I was able to get it working on OS X...the biggest problem was getting
  flexbuilder to use the FP 10 player, otherwise the load() function fails at
  runtime.
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Paul
  Kukiel pkukiel@ wrote:
  
   Yes in FP10 and the 3.3 SDK you can load data client side. I have
   had trouble getting this to work on osx and linux though:
  
   http://blog.kukiel.net/2009/02/file-manipulation-client-side-with.html
  
   There are a few links on the entry to some decent references.
  
   Paul.
  
  
   On 26/03/2009, at 8:34 PM, gmoniey22 wrote:
  
yes it will, using the FileReference.load(), and then accessing
FileReference.data.
   
I got this working on FP10  sdk 3.3. It took a while to get
flexbuilder to play nice however.
   
--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  Tracy Spratt tspratt@ wrote:

 I have heard that FP 10 will allow access to the file contents.



 Tracy Spratt,

 Lariat Services, development services available

 _

 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
 Behalf Of djepyon
 Sent: Thursday, March 26, 2009 6:19 PM
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: is it not possible to upload a file to
a flash app
 (no server)?



 If its a remote file this can be done by using Loader.loadBytes()
and
 parsing the ByteArray.

 You would need AIR to load the bytes of a local file though.

 --- In flexcod...@yahoogro 
 mailto:flexcoders%40yahoogroups.comflexcoders%2540yahoogroups.com
 
ups.com,
 gmoniey22 gmoniey22@ wrote:
 
  No, I actually want to parse the file. This seems like it
should be a
 trivial task.
 
  --- In flexcod...@yahoogro mailto:flexcoders% flexcoders%25
40yahoogroups.com ups.com,
 Alain Thibodeau thibodeau.alain@ wrote:
  
   You mean just getting file info or actually parsing the full
file data?
  
   If it's just the basic file information, I think you can get
that with
 the FileReference...
  
   If you are looking for more power, swfStudio will give you
all the power
 you need: http://www.northcod http://www.northcode.com/index.php
 e.com/index.php
  
  
  
  
  
  
  
   
   From: gmoniey22 gmoniey22@
   To: flexcod...@yahoogro 
   mailto:flexcoders%40yahoogroups.comflexcoders%2540yahoogroups.com
 
ups.com
   Sent: Thursday, March 26, 2009 2:54:28 PM
   Subject: [flexcoders] is it not possible to upload a file to
a flash app
 (no server)?
  
  
   I want the user to select a file and have my flash app parse
it for
 information, and then display that info in the app.
  
   But it seems like all of the FileReference functions abstract
the
 upload/download process to a server.
  
   Am I missing something? Thanks
  
  
  
  
  
   __
   Yahoo! Canada Toolbar: Search from anywhere on the web, and
bookmark
 your favourite sites. Download it now
   http://ca.toolbar. http://ca.toolbar.yahoo.com. yahoo.com.
  
 

   
   
  
 
   
 
 
 
 
 -- 
 Fotis Chatzinikos, Ph.D.
 Founder,
 Phinnovation
 fotis.chatzini...@...,





[flexcoders] how to override multiselect in a datagrid

2009-03-27 Thread gmoniey22
Hi,

I want to allow multiselects on my datagrid, but only conditionally. i.e. 
before the additional item is selected, I want to perform some logic and 
determine if it should be selected.

I have tried adding: itemClick, mouseDown,  click listeners which looked like 
the following:

private function clickListener(event:Event):void {   
   event.preventDefault();  
   _grid.selectedIndices.concat(new 
   Array(event.currentTarget.selectedIndex);
}

Obviously this doesn't work, but what I have noticed while debugging is that 
the grid's selectedIndices is already updated to include the current item (and 
exclude the existing item if, SHIFT or CONTROL was not depressed).

Am I not using the right listener? Is there no way to prevent the click, and 
then programmatically add the selection?

Thanks



[flexcoders] Re: embedding HTML code in Flex

2009-03-27 Thread unestahl
Reply from MP3 Sound Stream:

Well the code links to the player which is one swf and then the player links 
to the audio to stream it which is the other swf.

If you have already uploaded the button swf just upload the audio swf into the 
same folder and you have your streaming audio.


I tried the Loader class with the sample code from Adobe.  When the loader 
loads the controller file, the controllers will not show up, but if I load the 
sound file, it will load and play the sound.  Any ideas or sample code I could 
try?



--- In flexcoders@yahoogroups.com, Jeffry Houser j...@... wrote:

 
  You can't embed HTML like this in a Flex Application. 
 
  I'd look into the Loader class ( 
 http://livedocs.adobe.com/flex/2/langref/flash/display/Loader.html ) to 
 see about loading those swfs in your Flex App.
 
  I would expect you have to load up both SWFs and that they would need a 
 way to communicate to each other.  I only see one SWF in your code, so 
 I'm not sure why that snippet would load two SWFs, unless the swf was 
 loading both of them.
 
 unestahl wrote:
  I would like to embed the following HTML
  code snippet into Flex, so I can stream the audio SWF file.  How can I
  do that?  Is there something equivalent in Flex that will accomplish
  the same thing?  BTW, this is an output grabbed from MP3 Sound Stream.
 
  There are two SWF files: one
  contains an audio file and the other a control file for the audio.
  When the HTML snippet is cut and pasted into an HTML page, it works as
  it should by being able to start/stop/pause the audio, etc.  If I use
  the SWF loader, I get one or the other, and not both.
 
  Can you help?
 
  p
   object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
  codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0;
  width=230 height=130 align=absmiddle
   param name=movie value=mp3ss1d.swf
   param name=quality value=best
   param name=wmode value=transparent
   param name=bgcolor value=#FF
   param name=loop value=true
   embed src=mp3ss1d.swf quality=best wmode=transparent
  bgcolor=#FF loop=true width=230 height=130
  type=application/x-shockwave-flash
  pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash;
  align=absmiddle
   /embed
   /object
  NPR - Fresh Air
  /p

 
 
 -- 
 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]Where does my SWF gain it's weight?

2009-03-27 Thread dorkie dork from dorktown
Is there a tool or a way to find out what classes are making my SWF fat?

It's been a few months since I last checked my SWF file size and it's 1.2mb.
It used to be 600kb and I've made so many changes since then I don't know
where the weight is coming in.


RE: [flexcoders]Where does my SWF gain it's weight?

2009-03-27 Thread Tracy Spratt
Have you looked into the Flex Profiler?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of dorkie dork from dorktown
Sent: Friday, March 27, 2009 5:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]Where does my SWF gain it's weight?

 

Is there a tool or a way to find out what classes are making my SWF fat? 

It's been a few months since I last checked my SWF file size and it's 1.2mb.
It used to be 600kb and I've made so many changes since then I don't know
where the weight is coming in. 





RE: [flexcoders]Where does my SWF gain it's weight?

2009-03-27 Thread Maciek Sakrejda
If you have version control, just do a binary search through history to see 
where the bloat hit (something à la git bisect, though this can be easily 
scripted if you use another vcs). As far as actually analyzing a .swf and 
figuring out the bloat, perhaps someone else will chime in. You can generate a 
link report, but that won't really help with the actual byte-by-byte breakdown.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of dorkie dork from dorktown
Sent: Fri 3/27/2009 2:10 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]Where does my SWF gain it's weight?
 
Is there a tool or a way to find out what classes are making my SWF fat?

It's been a few months since I last checked my SWF file size and it's 1.2mb.
It used to be 600kb and I've made so many changes since then I don't know
where the weight is coming in.

winmail.dat

[flexcoders] Re: mx:Text and line height

2009-03-27 Thread carloscarvalhar
i think no...well, at least, with 2 lines i get a precise height. And with many 
lines the space is too much, like 42 lines and 200 px more.. So it shouldn't be 
this..

line height is actually just the line height plus the line leading (the space 
between lines) , no?
Would it have more things involved?

thanks,
Carlos


--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Flash has a 2 pixel gutter all around the text.  Is that throwing off your 
 calculations?
 
 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 carloscarvalhar
 Sent: Friday, March 27, 2009 10:49 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] mx:Text and line height
 
 
 Hi,
 
 how can i get a correct line heigth of mx:Text?
 
 This is code that i'm using:
 public function get textLineHeight():uint {
 var textLineMetrics:TextLineMetrics = this.getLineMetrics(0);
 _textLineHeight = textLineMetrics.height + textLineMetrics.leading;
 return _textLineHeight;
 }
 
 And the result is strange...if i have only one line, i need to add 3 pixels, 
 if i have two lines, it's ok. But if i have more than 2 lines the height 
 returned is bigger than it should be...
 
 what am i doing wrong? how should i get a REAL line height?
 
 Thanks,
 Carlos
 PS: you can see it happening here:
 http://carvalhar.com/#/blog/45/incorporando-fontes-no-flex/





Re: [flexcoders]Where does my SWF gain it's weight?

2009-03-27 Thread dorkie dork from dorktown
I meant file size not memory unless the profiler can tell me that?

On Fri, Mar 27, 2009 at 4:36 PM, Tracy Spratt tspr...@lariatinc.com wrote:

Have you looked into the Flex Profiler?



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *dorkie dork from dorktown
 *Sent:* Friday, March 27, 2009 5:11 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders]Where does my SWF gain it's weight?



 Is there a tool or a way to find out what classes are making my SWF fat?

 It's been a few months since I last checked my SWF file size and it's
 1.2mb. It used to be 600kb and I've made so many changes since then I don't
 know where the weight is coming in.
   



[flexcoders] Re:ViewStack uninitialise

2009-03-27 Thread Nicolas Noben
 If these components had a large footprint , think mini application  
 for each
 view, would it be possible to uninitialise a child (and thus release  
 any
 memory associated with it and its childern) when the component was  
 hidden?
 Then if viewStack.selectedIndex was set back to the same component  
 it should
 re-initialise.

Have a look at creationPolicy for containers, this might help

http://livedocs.adobe.com/flex/3/html/layoutperformance_05.html

What you are talking about though, is actually adding and removing  
each view at runtime, which you could do, using viewStack.addChildAt  
and removeChildAt, or by name.

HTH


[flexcoders] Re:how to override multiselect in a datagrid

2009-03-27 Thread Nicolas Noben
Have you tried simply ...

mx:DataGrid allowMultipleSelection={trueorfalsehere} /

Which I'm pretty sure you can flip at runtime.

HTH


Re: [flexcoders]Where does my SWF gain it's weight?

2009-03-27 Thread Nicolas Noben
Yeah make a search through all the files for 'Embed' and make sure that 
everything that is embedded really needs to be. That's the biggest hog.

Also make sure your final build is published using 'Export release build'. You 
will save a fair bit at release time.

But it's mostly assets' fault. Unless you've added plenty of custom components 
who extend default ones..

HTH

-- 
Nicolas Noben
P http://noben.org 
B http://idletogether.com
T http://twitter.com/keyle

--- In flexcoders@yahoogroups.com, dorkie dork from dorktown 
dorkiedorkfromdorkt...@... wrote:

 Is there a tool or a way to find out what classes are making my SWF fat?
 
 It's been a few months since I last checked my SWF file size and it's 1.2mb.
 It used to be 600kb and I've made so many changes since then I don't know
 where the weight is coming in.





[flexcoders] Embed skinClass - no embed

2009-03-27 Thread carloscarvalhar
Hi,

I have an external css file with many embed stuff, like this:
borderSkin: Embed(skinClass=Modal_borderSkin);

how can i use them without embedding? 
(This is  a flex component skinned in flash)

And i don't know this one also: 
background-image: Embed(source=images/bg.jpg);

Just another: is there a chance to see the default skin before load the custom 
skin or flex will always show the application after the custom skin is loaded?

Thanks,
Carlos

PS:
I googled a bit but couldn't find this info. Actually, when i need to find 
something about flex css in search engines i always get a lot of html css 
posts...



[flexcoders] Why Flex can not use flash.net.NetConnection?

2009-03-27 Thread markflex2007
 Hi,

 I have following code for amfphp.

 import flash.net.NetConnection; 
 private var connection:NetConnection;
 private var gateway:String = amfphp/gateway.php;

 private function init():void
 {
connection = new NetConnection();
connection.connect( gateway );
  
 }

 .

but I get error for connection = new NetConnection();. the error is the 
following:
Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.BadVersion

I know flash always use it,why flex can not use it?

Thanks

Mark