[flexcoders] Make label of LegendItem selectable

2009-07-10 Thread rleuthold
Hi,

I try to make the text of the LegendItem label selectable, unfortunately with 
no luck.

I thought this approach woud do the trick:

1.) Extend LegendItem
2.) override the set label and get label methods
3.) override the createChildren method

In the createChildren() method I try to add a Label (made it selectable) to the 
LegendItem, with the text which is set by the setter for the label.

Unfortunately the Label never shows up - anybody knows how to do this right?

Thank's
rico



[flexcoders] Upgrade only ASDoc.

2008-11-10 Thread rleuthold
Hi,

Does anybody know if it's possible to upgrade to a newer version of ASDoc 
without having to 
upgrade the whole sdk ? 

It would love to use the new mxml asdoc feature but my app is not Gumbo ready 
at all.

Thank's rico



[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-27 Thread rleuthold
Maybe the issue is related to this bug - 
http://bugs.adobe.com/jira/browse/SDK-15974

_rico

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

 Tracy - thanks - thats what I have started to do...
 
 I appreciate the feedback from you and everyone else - thanks!
 
 --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
 
  This is definitely not normal behavior, so you must have something
  unusual going on.  We haven't seen any code so we are just stabbing 
 in
  the dark.
  
   
  
  Rip out everything until it works, start adding it back til it 
 breaks.
  
   
  
  Tracy
  
   
  
  
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 On
  Behalf Of Tim Hoff
  Sent: Friday, September 26, 2008 12:52 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: TabNavigator - have to click twice on tab 
 to
  display page
  
   
  
  
  So, when you click the 2nd tab, does the 2nd tab remain selected, or
  does it switch back to the first tab? If it stays on the 2nd tab, 
 are
  you still seeing the content from the first tab, or is it just 
 blank;
  until you click the 2nd tab again?
  
  -TH
  
  --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
  , donald_d_hook donald_d_hook@
  wrote:
  
   TH -
  
   No, I m not doing that, thats what I thought it was originally.
  
   Thanks
  
   --- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com , Tim Hoff TimHoff@ wrote:
   
   
Cool, one other thing to check would be if you are manually 
 setting
   the
selectedIndex of the TabNavigator anywhere. Just guessing 
 though;
without seeing the code.
   
-TH
   
--- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com , donald_d_hook 
 donald_d_hook@
wrote:

 TH -

 THanks - I will give it a shot and see.


 --- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com , Tim Hoff TimHoff@ wrote:
 
 
  Sounds suspiciously like a callLater() solution. Have you 
 tested
  whether the creationComplete event is actually firing, 
 before
   you
 click
  tab2, for all of the child components? Sometimes not setting 
 the
 data,
  in a timely fashion, can also make a view appear blank.
 
  -TH
 
  --- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com , Manu Dhanda 
 manuraj.dhanda@
  wrote:
  
  
   Hi Tracy,
  
   It's really an issue with TabNavigator and we had faced 
 it.
   I won't say that I need to click the tab twice, but I need 
 to
 switch
  back to
   Tab1 and then come back to Tab2 to see the content on my 
 2nd
   Tab.
  
   And yes, already tried with creationPolicy='all', but it 
 din't
 worked.
  
   -Manu.
  
  
   Tracy Spratt wrote:
   
Are you programatically doing anything with the content 
 of
   tab
 2?
   
   
   
Do you understand about deferred instantiation and
 creationPolicy?
   
   
   
Tracy
   
   
   

   
From: flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com ]
  On
Behalf Of donald_d_hook
Sent: Thursday, September 25, 2008 2:15 PM
To: flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com 
Subject: [flexcoders] TabNavigator - have to click twice 
 on
   tab
 to
display page
   
   
   
I have a tab navigator with 3 tabs. Each tab has a 
 canvas
   with
several components on it. when the page is displayed, 
 you
   see
 the
  1st
tab. When I navigate to the 2nd tab, I have to click the 
 2nd
   tab
twice in order to view the contents of the tab. It looks
   like
 the
first click on the 2nd tab goes back to the first tab, 
 then
   the
 2nd
click displays the contents of the 2nd tab.
   
Was wondering if anyone has experienced this behavior 
 and
 wondering
what I am doing wrong.
   
Thanks in advance.
   
   
   
   
   
  
   --
   View this message in context:
  http://www.nabble.com/TabNavigator---have-to-click-twice-on-
 tab-
  http://www.nabble.com/TabNavigator---have-to-click-twice-on-tab- 
   to-
 displ\
  ay-page-tp19675428p19681501.html
   Sent from the FlexCoders mailing list archive at 
 Nabble.com.
  
 

   
  
 






[flexcoders] Re: FlexBuilder debugging kills ITunes

2008-09-21 Thread rleuthold

Is your mac starting to feel slower at the same time the iTunes begin to act 
shaky  ? Do you 
debug with Firefox ?

If so, check with Activity Monitor if your CPU is running at max ... 

If that is the case, try to do a fresh install of Firefox. With fresh I mean 
move the profiles and 
bookmarks away from the default location, reinstall Firefox and add all profile 
and addon 
stuff again.

worked for me ... 

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

 Brendan Meutzner wrote:
  Hi All,
  I'm sorry to post this not so technical question, but I figured it'd be
  the best place to see if other folks have this same frustration that I do.
  
  My dev machine is a Macbook Pro running Leopard, and I'm working with
  FlexBuilder 3.0.1.  I've found that whenever I go to debug an app and it
  hits a breakpoint, my ITunes audio output begins skipping/hopping/jumping
  etc... It's terribly annoying!
  
  I've never had this issue on my Mac Pro running the same environment...
  EXCEPT... I haven't pushed up to 3.0.1 hotfix for FlexBuilder there yet...
  just running 3.0.
  
  Has anyone else had this happen to them?  I'd love to just switch to
  another audio player, but having a lot of ITunes content, it would be really
  annoying to convert.
  
  
  Brendan
 
 man renice
 
 Might help.
 
 cheers,
   - shaun






[flexcoders] OS X: Flex Builder / Firefox 3 Debug Session Maxes Out CPU

2008-09-19 Thread rleuthold
Hi,

When I debug my application with Flex Builder 3 and Firefox 3.0.1 (under OS X 
10.5.5) and run 
into a breakpoint, where I want, for example, check some variables, the CPU is 
eaten up by the 
WindowServer process. This does not happen with Safari.

Does anybody notice the same and found a solution (beside the one to use 
Safari) ?

Thank's 

_rico



[flexcoders] Re: Java or C# from Flex

2008-09-19 Thread rleuthold
If you want to use Java in an AIR Application maybe this 
http://www.merapiproject.net/ is of 
interest.

_rico

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

 Hi,
  
 If you are using .NET you can try FluorineFx too
  
 Zoli
 www.fluorinefx.com
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Tracy Spratt
 Sent: Friday, September 19, 2008 1:41 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Java or C# from Flex
 
 
 
 
 One more thing. If you are more comfortable in .net/c#, look into WebOrb.
 But it's third party, and if you are comfortable in Java, then like I said
 before..
 
 Tracy
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Tracy Spratt
 Sent: Thursday, September 18, 2008 6:36 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Java or C# from Flex
 
 I am not a java guy, but here's my thinking til you hear from one of them.
 
 RemoteObject is one of the RPC protocols that Flex can use to talk to stuff
 on the server.  I know it will talk to servlets, and believe it will talk to
 other stuff like beans and maybe even EJBs.  It uses a proprietary
 transport protocol, called amf, that is the fastest data transport currently
 available to Flex.
 
 So that's your starting point. See the docs, google and search the archive
 here using the terms RemoteObject and amf, and whatever java enpoints you
 want to use.
 
 Tracy
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Peter Cross
 Sent: Thursday, September 18, 2008 5:16 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Java or C# from Flex
 
 Hi All,
 
 I need pointing in the right direction. I have done some searching 
 about Flex and Java and have not got the answers I am looking for yet.
 
 I have a conversion library that I can deploy as C# or Java for 
 converting HL7 result data and inserting that data to a database and I 
 want to be able to run that from flex. Is this possible? Where would 
 be a good place to learn more about how to do this?
 
 Thanks
 
 Peter Cross






[flexcoders] Cursor Error: Bookmark no longer valid.

2008-09-10 Thread rleuthold
Hi,

I'm using a ComboBox with an ArrayCollection as dataProvider.

This ArrayCollection is the source of an AdvancedDataGrid GroupingCollection.

If the users clicks on an item in the ComboBox,the ArrayCollection gets 
filtered:

private function filterNodesInGrid():void
{
// assign filter function to the AdvancedDataGrid's dataProvider
IHierarchicalCollectionView(nodes.dataProvider).filterFunction = 
filterByRfids;

// refresh the ADG's dataProvider
//found in the archives http://www.mail-
archive.com/flexcoders@yahoogroups.com/msg95231.html   
nodes.invalidateProperties();
 
  IHierarchicalCollectionView(nodes.dataProvider).refresh();

  // expand all nodes
nodes.expandAll();
}


When the refresh is called, this error is thrown: 

Bookmark no longer valid.
at 
ListCollectionViewCursor/seek()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\coll
ections\ListCollectionView.as:2046]


... but beside the error, it works correct !? 

Does anybody have an idea how to overcome this issue. 

thank's 

_rico



[flexcoders] Re: Resize from left to right

2008-08-16 Thread rleuthold
Hi Laurent,

Thank's for the reply. After a long search in the archiv i found the solution.

You can do the move and resize in parallel (don't remember the correct syntax):

mx:Parallel id=shrinkToRight ... 
mx:Move xFrom={target.x}  xTo={target.x + (target.width -20)} 
duration=500 /
   mx:Resize widthFrom={target.width} widthTo=20 duration=500 /
/mx:Parallel


_rico


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

 I usually do it by first moving the component and then applying the new width 
 and height 
to it. I don't know if Flex has any built in way to do that.
 
 
 var newWidth = 200;
 var newHeight = 200;
 
 button.x = button.x + button.width - newWidth;
 button.y = button.y + button.height - newHeight;
 button.width = newWidth;
 button.height = newHeight;
 
 
 --
 Laurent Cozic
 
 Flash, Flex and Web Application development
 http://pogopixels.com
 
 --- On Thu, 8/14/08, Rico Leuthold [EMAIL PROTECTED] wrote:
 From: Rico Leuthold [EMAIL PROTECTED]
 Subject: [flexcoders] Resize from left to right
 To: flexcoders@yahoogroups.com
 Date: Thursday, August 14, 2008, 8:47 AM
 
 
 
 
 
 
 
 
 
 
 
 Hi,
 
 
 
 I was pretty sure to find the answer in the archive - but nope ...  
 
 couldn't find it.
 
 
 
 Is there an easy way to have the resize of a component going from left  
 
 to right ?
 
 
 
 Thank's
 
 
 
 _rico






[flexcoders] Slider with logarithmic scale

2008-08-04 Thread rleuthold
Hi,

Has anybody created a slider class with a logarithmic scale ? 

Thank's

_rico



[flexcoders] DataGrid horizontal ScrollBar not shown properly

2008-07-30 Thread rleuthold
Hi,

I'm having a very wide DataGrid ( approx 4000px ).

I'm setting the scroll policies to on. But the horizontal scroll bar is not 
shown properly. It 
doesn't show the right end and arrow of the scroll bar, so the user is never 
able to see the 
columns all to the right in the grid.

It functions very well, with a DataGrid which is around 2000px wide. Does 
anybody know if 
there is a limit for the width of a component to show the scroll bars propely ?

Thank's
rico



[flexcoders] Re: TabNaviigator tabBar index doesn't update on selectedIndex change

2008-07-21 Thread rleuthold
Hi Jeff,

Have you found a solution to this, cause I'm having exactly the same problem, 
and didn't 
found a way to solve it.

_rico


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

 I'm using Flex 3 Beta 3.  I have a TabNavigator component where the
 children are created dynamically from a Repeater.  When the dataProvider
 of the repeater changes, the tab labels update accordingly, EXCEPT the
 tabBar index of the component doesn't visually update.  I would just set
 myTabNav.tabBar.selectedIndex = whatever, except that the tabBar is a
 protected member.
 
 I can work around this by extending the component (I think) but I
 shouldn't have to do this - perhaps I'm missing something on how to best
 approach it.
 
 Jeff Battershall
 Application Architect
 Dow Jones Indexes
 [EMAIL PROTECTED]
 (609) 520-5637 (p)
 (484) 477-9900 (c)






[flexcoders] Irregular Polygon Area

2008-05-21 Thread rleuthold
Hi,

Does somebody know of a class which calculates the area of an irregular polygon 
?

Thank's

_rico



[flexcoders] Re: DateChooser setting displayedMonth, displayedYear does nothing

2008-05-19 Thread rleuthold
Thank's - I could solve it easily with your explanations. And now it is totally 
clear to me why 
it couldn't work.
But there was no warning in the console.

Thank's again _rico

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

 I didn't run the code, but by looking at it, the selectableRange is
 bound to a plain old object which doesn't support binding. You should
 have seen a warning in the console at runtime.  Thus at init time, the
 selectableRange is bogus and the displayedMonth/Year probably get
 screwed up as well.
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of rleuthold
 Sent: Sunday, May 18, 2008 8:10 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: DateChooser setting displayedMonth,
 displayedYear does nothing
 
 
 
 Hi Alex, thanks for the reply. I made a simple test case, and could
 figure out why it is not 
 working as expected- Can you shortly have look at this code:
 
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml  
 creationComplete=build()
 mx:Script
 ![CDATA[
 
 [Bindable]
 private var _rangeStart:Date;
 [Bindable]
 private var _rangeStart_two:Date = new Date(2006,0,1);
 [Bindable]
 private var _rangeEnd:Date;
 [Bindable]
 private var _rangeEnd_two:Date = new Date(2007,0,1);
 
 private function build():void 
 {
 _rangeStart = new Date(2006,0,1);
 _rangeEnd = new Date(2007,0,1);
 }
 
 ]]
 /mx:Script
 
 mx:Label text=Dates set in creation complete handler: doesn't work for
 me /
 mx:DateChooser
 selectableRange={{rangeStart : _rangeStart, rangeEnd :_rangeEnd}}
 displayedMonth=10
 displayedYear=2006
 / 
 
 mx:Label text=Dates set initially: works for me /
 mx:DateChooser
 selectableRange={{rangeStart : _rangeStart_two, rangeEnd
 :_rangeEnd_two}}
 displayedMonth=10
 displayedYear=2006
 / 
 
 /mx:Application
 
 Is that explainable ?
 
 Thank's _rico
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  I'd make a simple test case and see if it works there. Are you sure
  your compDateRange has two elements with valid values?
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of rleuthold
  Sent: Saturday, May 17, 2008 6:05 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] DateChooser setting displayedMonth,
 displayedYear
  does nothing
  
  
  
  Hi,
  
  I have a DateChooser in a popUp window. If I set the displayedMonth
 and
  displayedYear 
  properties on that DateChooser (after creating the popup), nothing
  happens. The display is 
  still on the month and year previously selected/displayed. Does
 anybody
  have an idea ?
  
  code (parent comp):
  
  _datePickerWin =
  DateRangerPopUp(PopUpManager.createPopUp(Application.application as 
  DisplayObject, DateRangerPopUp, true));
  _datePickerWin.compDateRange = _dateRange;
  
  code (DateRangerPopup):
  public function set compDateRange(dateRange:Array):void
  {
  _compDateRange = dateRange;
  
  dateChooser.selectedRanges = [ {rangeStart: _compDateRange[0],
 rangeEnd:
  
  _compDateRange[1] }];
  
  dateChooser.displayedMonth = _compDateRange[1].month;
  dateChooser.displayedYear = _compDateRange[1].fullYear;
  
  
  Thank's rico
 






[flexcoders] Re: DateChooser setting displayedMonth, displayedYear does nothing

2008-05-18 Thread rleuthold
Hi Alex, thanks for the reply. I made a simple test case, and could figure out 
why it is not 
working as expected- Can you shortly have look at this code:

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
creationComplete=build()
mx:Script
![CDATA[

[Bindable]
private var _rangeStart:Date;
[Bindable]
private var _rangeStart_two:Date = new Date(2006,0,1);
[Bindable]
private var _rangeEnd:Date;
[Bindable]
private var _rangeEnd_two:Date = new Date(2007,0,1);

private function build():void 
{
_rangeStart = new Date(2006,0,1);
_rangeEnd = new Date(2007,0,1);
}

]]
/mx:Script

mx:Label text=Dates set in creation complete handler: doesn't work for me /
mx:DateChooser
selectableRange={{rangeStart : _rangeStart, rangeEnd :_rangeEnd}}
displayedMonth=10
displayedYear=2006
  /  
  
 mx:Label text=Dates set initially: works for me /
 mx:DateChooser
selectableRange={{rangeStart : _rangeStart_two, rangeEnd 
:_rangeEnd_two}}
displayedMonth=10
displayedYear=2006
  /   

/mx:Application

Is that explainable ?

Thank's _rico


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

 I'd make a simple test case and see if it works there.  Are you sure
 your compDateRange has two elements with valid values?
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of rleuthold
 Sent: Saturday, May 17, 2008 6:05 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] DateChooser setting displayedMonth, displayedYear
 does nothing
 
 
 
 Hi,
 
 I have a DateChooser in a popUp window. If I set the displayedMonth and
 displayedYear 
 properties on that DateChooser (after creating the popup), nothing
 happens. The display is 
 still on the month and year previously selected/displayed. Does anybody
 have an idea ?
 
 code (parent comp):
 
 _datePickerWin =
 DateRangerPopUp(PopUpManager.createPopUp(Application.application as 
 DisplayObject, DateRangerPopUp, true));
 _datePickerWin.compDateRange = _dateRange;
 
 code (DateRangerPopup):
 public function set compDateRange(dateRange:Array):void
 {
 _compDateRange = dateRange;
 
 dateChooser.selectedRanges = [ {rangeStart: _compDateRange[0], rangeEnd:
 
 _compDateRange[1] }];
 
 dateChooser.displayedMonth = _compDateRange[1].month;
 dateChooser.displayedYear = _compDateRange[1].fullYear;
 
 
 Thank's rico






[flexcoders] DateChooser setting displayedMonth, displayedYear does nothing

2008-05-17 Thread rleuthold
Hi,

I have a DateChooser in a popUp window.  If I set the displayedMonth and 
displayedYear 
properties on that DateChooser (after creating the popup), nothing happens. The 
display is 
still on the  month and year previously selected/displayed. Does anybody have 
an idea ?

code (parent comp):

_datePickerWin = 
DateRangerPopUp(PopUpManager.createPopUp(Application.application as 
DisplayObject, DateRangerPopUp, true));
_datePickerWin.compDateRange = _dateRange;

code (DateRangerPopup):
public function set compDateRange(dateRange:Array):void
{
_compDateRange = dateRange;

  dateChooser.selectedRanges = [ {rangeStart: _compDateRange[0], 
rangeEnd: 
_compDateRange[1] }];

dateChooser.displayedMonth = _compDateRange[1].month;
dateChooser.displayedYear =  _compDateRange[1].fullYear;


Thank's rico



[flexcoders] pieChart (callout) labels not redrawn on drill down

2008-04-24 Thread rleuthold
Hi,

I'm having a pieChart double click enabled, to get a drill down for the 
selected pieChart item. 
This drill down is displayed aside of the original chart.

The problem is, that the labels for the original chart disappear (or do not get 
redrawn) when 
the original chart gets double clicked the FIRST TIME. If you double click 
(whatever pieChart 
item)  again, the labels appear. Does anybody have an idea why this happens ?

thanks _rico



[flexcoders] PieChart Legend customize label text in legend

2008-04-20 Thread rleuthold
Hi,

I'd like to have legend label texts for  a PieChart in the form of  - 
PieSeries.nameField + 
sometext . Sounds simple but I couldn't find a way to accomplish. 

Can anybody point my to the right direction ?

thanks_rico



[flexcoders] Flex SuperTabBar skin not updated when selecting tab programmatically

2008-04-07 Thread rleuthold
I'm using several SuperTabNavigators (They 're awesome !) from flexlib (Thanxs 
for flexlib ! ) 
but I have one  problem (not able to solve it since weeks). 

After loading the contents for the SuperTabNavigator I'd like to select the 
first tab -  
superTabNav.selectedChild or superTabNav.selectedIndex. 

This works well, but sometimes the skin of the associated Tab header 
(SuperTabBar child) is 
not set to its upSkin. 

Does anybody have an idea why this happens ?

_rico



[flexcoders] SuperTabNavigator SuperTabBar skin not updated

2008-02-25 Thread rleuthold
Hi,

I try to select a tab in a SuperTabNavigator after a data download is complete. 
There's no 
problem to select the tab, but the skin of the tab is not updated.  Does 
anybody know how to 
refresh the SuperTabBar so the skin updates ?

Thank's

_rico



[flexcoders] DataGrid initial sort broken in latest FlexBuilder Beta SDK 3.0.0

2008-01-13 Thread rleuthold
Hi,

Since I'm using the lastest FlexBuilder Beta with SDK 3.0.0, I have a problem 
with the initial sort 
of a dataGrid . The underlying ArrayCollection is in the desired sort order 
when the dataGrid is 
added. But the displayed dataGrid is in coomplete disorder. 

Versions of my Application compiled with older FlexBuilder/SDK versions doesn't 
show this 
problem. 

Does somebody notice something similar ?

_rico






[flexcoders] Dual Slider component with date objects

2008-01-07 Thread rleuthold
Hi,

I try to build a dual Slider component (based on flexlib HSlider) to filter an 
ArrayCollection 
(displayed in a data grid) with dates but can't figure out how to do it. The 
main problem is, that 
it is only possible to set Numbers as min/max values.

Every idea is welcome.

Thank's 
_rico



[flexcoders] AsDoc and libraries problem

2007-12-06 Thread rleuthold
Hi,

I want to run asdoc (from command line) for my project, but always getting an 
error cause of 
the flexlib components I'm using (Error: Could not resolve 
flexlib:SuperTabNavigator to a 
component implementation). Does somebody have an idea how to exclude the 
flexlib 
components when running asdoc ?

thanx_rico 



[flexcoders] Force skin state

2007-11-20 Thread rleuthold
Hi,

Is there a way to force a component to have a specific skin state (e.g. 'd like 
to set a tab of a tab 
navigator to the upSkin state).

thanks_rico



[flexcoders] Flex Builder 3 Performance Profiling not working os x 10.4.10

2007-11-13 Thread rleuthold
Hi,

I've tried to do a performance profiling of my App, following the Instructions 
on the Adobe 
Labs Page 
http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Performance_and_Mem
ory_Profiling (I quit Firefox before starting as well), but the Performance 
Profile Panel is always 
empty. 

I've found a filed bug (FB-10646) saying that there is a known problem on os x 
10.5. But I'm 
running 10.4.10 and experience the same thing.

Ideas, Information ? 

Thanks_rico






[flexcoders] Component instances and Global events

2007-10-30 Thread rleuthold
Hi,

I'm having an issue with the overall design of an application.

My app consists of some kind of main Components (data browser comp , fil 
upload comp, 
chart browser, etc.) which are used in a SuperTab Navigator (flexlib). Multiple 
instances of 
these main components can be opened closed.  Furthermore I'm using the alon 
design 
pattern (http://www.helihobby.com/html/alon_desingpattern.html) for central 
event 
handling.

Here comes the Probleme: Since there can be multiple instances of one component 
and a 
central event handling (alon), events dispatched from one instance of a 
component are 
heard by all instances. 

I can go around this by adding / deleting event listeners as needed. But there 
im running 
into problems, cause the main components are a compound of other components. So 
the 
event dispatching, and listeners are distributeted to these components , making 
the as 
needed approach almost impossible. 

At the moment I'm giving all the main components an id, setting it in all its 
child 
components as well. So when an event is dispatched the id of component is 
attached to 
event (as parameter) and in the event handler function i check if the event is 
really intended 
for this instance. 

I think this solution is not nice at all.  Does somebody have an idea to 
overcome this 
problem ?

_rico 
(Hope I could make the problem understandable  - it's hard to explain)



[flexcoders] new Date(unixTimeStamp) doesn't work (Flex 3)

2007-10-23 Thread rleuthold
Hi,

If I understood the API for Date right, it should be possible to pass a unix 
time stamp (as a 
number and as the one and only argument) to the constructor and then have a 
normal date 
object.

I try this:
testDate:Date = new Date(1180166923);

trace(testDate) // output: Wed Jan 14 16:49:26 GMT+0100 1970

If I convert the timestamp (e.g. on the web: 
http://www.4webhelp.net/us/timestamp.php?
action=stampstamp=1180166923timezone=1)

I get: Saturday, May 26th 2007, 9:08:43 (GMT +1) ... which is the date I want

What am I missing here ? Thanks.

_rico



[flexcoders] g.drawRoundRectComplex() opper left corner never round

2007-10-15 Thread rleuthold
Hi,

I use g.drawRoundRectComplex(0,0,w,h,2,2,2,2) to skin my buttons. When I look 
at the 
graphical output, all the corners are round with a radius of two except the 
upper left one 
which is drawn with a corner radius of 0. Anybody has an explanation for that ?

I'm using the Flex 3 Beta 2 SDK. 






[flexcoders] DataGrid multi column sort - where is the sort arrow ?

2007-10-15 Thread rleuthold
Ok, I have implemented the multiple column sort (thanks for the help Alex).

It works fine, but now the sortArrow disapeared and I can not change the sort 
direction. 
I've tried to use the placeSortArrow() function, but this function seems not to 
exist in the 
SDK I'm using (Flex 3 Beta 2).

Why is that ? Any idea ?

Thank's ... _rico

 

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

 The datagrid UI does not support multi-column sort.  If you implement
 it, you should call preventDefault() on the headerRelease event so it
 doesn't attempt to do a single column sort.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of rleuthold
 Sent: Monday, October 01, 2007 4:03 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] DataGrid  ArrayCollection numerical sort on
 multiple columns
 
  
 
 Hi there,
 
 I know, there are tons of posts in the archive about numeric sort with
 Data Grids and an Array 
 Collection as Data Provider. But I couldn't find an answer to my problem
 in any of them.
 
 I'm atttaching a numerical sort to the Data Provider as described in the
 help (with sortFields 
 and DP.sort an so on). When I specifiy a numerical sort to just one
 field of the Array Collection 
 the sorting in the Data Grid works very well. 
 
 But when I specify a numerical sort for different fields in the Array
 Collection, I see a number 
 just next to the sort marker in the Header Column of the Data Grid and
 the sorting is just a 
 normal text sort. 
 
 Can somebody explain me this phenomenon ? _rico






[flexcoders] Re: flexbuilder3beta2 - custom preloader issue/bug

2007-10-05 Thread rleuthold
I have a custom preloader problem too, and I'm really stuck. My preloader class 
is getting 
an xml used all around the application, so that I assign the xml to a Variable 
in the 
application file (Application.application).

Hope somebody has information about that.

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

 forgot to add the rte trace
 
 TypeError: Error #1009: Cannot access a property or method of a null 
 object reference.
   at global$init()[E:\dev\flex_3_beta2
 \sdk\frameworks\projects\framework\src\mx\core\Application.as:210]
   at preloadPNG::WelcomeScreen()[C:\Documents and 
 Settings\bodrul haque.SYNLOG\My Documents\Flex Builder 3\myTest3
 \src\preloadPNG\WelcomeScreen.as:24]
   at preloadPNG::CustomPreloader()[C:\Documents and 
 Settings\bodrul haque.SYNLOG\My Documents\Flex Builder 3\myTest3
 \src\preloadPNG\CustomPreloader.as:21]
   at mx.preloaders::Preloader/initialize()[E:\dev\flex_3_beta2
 \sdk\frameworks\projects\framework\src\mx\preloaders\Preloader.as:203
 ]
   at 
 mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal
 ::initialize()[E:\dev\flex_3_beta2
 \sdk\frameworks\projects\framework\src\mx\managers\SystemManager.as:1
 505]
   at mx.managers::SystemManager/initHandler()
 [E:\dev\flex_3_beta2
 \sdk\frameworks\projects\framework\src\mx\managers\SystemManager.as:2
 206]
 
 
 
 
 
 --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote:
 
  (This looks like a bug... but the buglist seems to be out of reach)
  
  Problem - I get a runtime error when referencing 
  mx.core.Application.application in a Loader class.
  
  I've got a custom preloader based on a Ted Patrick example.
  The problem occurs in WelcomeScreen.as
  
  WelcomeScreen.as
  
  public class WelcomeScreen extends Loader
  {
public function WelcomeScreen()
{
  trace(mx.core.Application.application); 
}
  }
  the above trace should be null not a RTE. 
  
  eg.
  mx:Application preloader=CustomPreloader
  
  CustomPreloader.as
  --
  public class CustomPreloader extends DownloadProgressBar
  {
public var wcs:WelcomeScreen;
  
public function CustomPreloader() 
{
  super(); 
  wcs = new WelcomeScreen();
  this.addChild(wcs)   
}
  }
 






[flexcoders] DataGrid ArrayCollection numerical sort on multiple columns

2007-10-01 Thread rleuthold
Hi there,

I know, there are tons of posts in the archive about numeric sort with Data 
Grids and an Array 
Collection as Data Provider. But I couldn't find an answer to my problem in any 
of them.

I'm atttaching a numerical sort to the Data Provider as described in the help 
(with sortFields 
and DP.sort an so on). When I specifiy a numerical sort to just one field of 
the Array Collection 
the sorting in the Data Grid works very well. 

But when I specify a numerical sort for different fields in the Array 
Collection, I see a number 
just next to the sort marker in the Header Column of the Data Grid and the 
sorting is just a 
normal text sort. 

Can somebody explain me this phenomenon ? _rico






[flexcoders] sequential remote calls

2007-09-24 Thread rleuthold
Hi there,

I want to have sequential RPC's. More precisly, I'd like to build DataGrids and 
get the data for 
each one from a database. My only problem is, that I have to wait for the RPC 
result to assign 
the data for the grid. How do I wait for the result handler ? Or better, how do 
I initiate the RPC 
sequential ?

Thank's to  all of you  ... _rico



[flexcoders] Add methods to RemoteObjects with ActionScript

2007-09-18 Thread rleuthold
Hi there,

Does somebody know how to create and add methods to RemoteObjects in 
ActionScript ?

In mxml i do it like this.
mx:method name=getData result=getDataHandler(event) 
fault=faultHandler(event) / 

... must be possible to do it in AS ... 

I couldn't find something in the doc's ... 

With best thanks for every bit of information ...

_rico