[flexcoders] Re: filtering a flex datagrid using a slider with two thumbs

2008-08-08 Thread stinasius
hi guy i appreciate that you are really trying to help. but so far i
still have the same problem, when i remove the slider from the filter
equation the datagrid is filtered but when i add it something wired
happens(the data disappears from the grid) here is a sample of my code
and i call the filterGrid() function on the change event of the two
combos and the slider, is that the correct way of doing it? hope this
will help solve my problem. thanks


 


 

















/data
functions/
public function InitCountry():void{
homeSvc.getCountries();
}
public function countryResult(event:ResultEvent):void{
ctry_cb.dataProvider = event.result;
}   

private var cityAr:ArrayCollection ;  
public function cityResult(event:ResultEvent):void{ 

cityAr = event.result as ArrayCollection;   
 
//add an Object at the beginning of the areaAryCol
var city:Object = {city_id: -1, city_name: "All"};
cityAr.addItemAt(city, 0);
//reset the areaCB's data provider to so the above 
//Object is display at the top of the combo box
city_cb.dataProvider = cityAr ;
cityAr.refresh();
city_cb.selectedIndex = 0
}

private var lctAr:ArrayCollection ;  
public function locationResult(event:ResultEvent):void{ 

lctAr = event.result as ArrayCollection;
//add an Object at the beginning of the areaAryCol
var location:Object = {lct_id: -1, lct_name: "All"};
lctAr.addItemAt(location, 0);
//reset the areaCB's data provider to so the above 
//Object is display at the top of the combo box
lct_cb.dataProvider = lctAr ;
lct_cb.selectedIndex = 0;
}   

   [Bindable]
   private var dataAr:ArrayCollection = new ArrayCollection;
public function displayResult(event:ResultEvent):void{
dataAr = new ArrayCollection( (event.result as
ArrayCollection).source);   
}


filters//

 public function filterGrid():void{
 dataAr.filterFunction=cityFilter;
 dataAr.refresh();
 //dgrid.selectedIndex = null;  
 }
 
 public function cityFilter(item:Object):Boolean{
 var result:Boolean=false;

 if ( (city_cb.selectedLabel == "All" || item.city ==
city_cb.selectedLabel) && (lct_cb.selectedLabel == "All" ||
item.location == lct_cb.selectedLabel)
 ){
 result=true; 
 } 
 return result; 
 } 



[flexcoders] Can the browser embedded swf invoke the installed AIR app?

2008-08-08 Thread Jo Morano
Hi!

Can I check from my swf whether the 'full' version is already installed as
an AIR application and if not, prompt the user to install it (based on
user's attempt to access the advanced features on the browser version)? If
so, how? I am good at reading manuals, so if you point me to one, that will
help as well.

Regards


[flexcoders] How to get selected row in AdvancedDataGrid with Hierarchical Data?

2008-08-08 Thread Djamshed
When you open children in AdvancedDataGrid which uses Hierarchical
data, rowIndex in selectedCells does not refer to the ADG's
dataprovider index.

Here is the example: http://djamshed.googlepages.com/grid.html
Source is here: http://djamshed.googlepages.com/Grid.mxml.html

Open a child node and DOUBLE CLICK on any cell of a child, rowIndex
seems correct (in terms of reflecting the row number), but this
rowIndex definitely does NOT REFER to the index in dataprovider. Is
there any way to get the selected data?

PS: ADG's variable named "firstCellSelectionData" seems like keeping
the correct value, but it is private. Looked at the source of ADG, it
says that everything it keeps is found in selectedCells, so the story
begins from scratch.




RE: [flexcoders] Re: Paginate DataGrid

2008-08-08 Thread Alex Harui
If the datagrid has too many items than rows, it shows a scrollbar.

 

You can turn off the scrollbar via verticalScrollPolicy="off" and add
some other way to change verticalScrollPosition

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Joshua Jackson
Sent: Friday, August 08, 2008 5:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Paginate DataGrid

 

I mean the data in DataGrid is paginated, so not all of them is
displayed on one page. 

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> What do you mean by paginated? The PrintDataGrid will help you print
> across multiple pages.
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Joshua Jackson
> Sent: Friday, August 08, 2008 1:16 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Paginate DataGrid
> 
> 
> 
> Dear all,
> 
> How do I paginate DataGrid? In the flex 3 reference it is written that
> DataGrid can be paginated, but it doesn't explain on how to do it?
> Could anyone give me a hint on this?
> 
> Best regards
> 
> -- 
> Setting a new landmark.
> Blog: http://joshuajava.wordpress.com/
 
>  >

> Twitter: http://twitter.com/thejavafreak
 
>  >
>

 



RE: [flexcoders] Sorting XMLListCollection by childIndex()

2008-08-08 Thread Alex Harui
I think as the sort happens, the child indexes will change.

 

I'd wrap the collection so that it iterates in reverse order.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Friday, August 08, 2008 7:06 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Sorting XMLListCollection by childIndex()

 

Hi, all;

I'm using an XMLLisCollection as the dataprovider for a bar chart. For 
some reason a bar chart draws the bars from bottom to top, rather than 
from top to bottom. This puts my data upside down, and the order is 
important in this application. I'd rather not change the data itself, 
so I need to sort the XMLListCollection. All the information I have on 
sorting shows using sortField. I need to sort on childIndex(), which 
is a method in e4x. Has anyone successfully sorted an 
XMLListCollection by childIndex?

This is what I've tried, and it seems to just sort randomly

var reverseSort:Sort= new Sort();
reverseSort.fields = [new SortField
('childIndex()', true, true)];
_data.sort=reverseSort;
_data.refresh()

}

 



[flexcoders] How to let RichTextEditor component to set indent of paragraph

2008-08-08 Thread Jonathan Lee
Hello all:
The RichTextEditor component can edit most of the basic stuff. Now the question 
I have is how to set the indent of a paragraph? Any one has a sample?

I think the HTML in textfield supports the attribute "BLOCKINDENT" which allows 
the indent of paragraph. But anyone knows how to do it when edit the text?

Thanks much!



  


[flexcoders] Re: Tabbing in an ItemEditor

2008-08-08 Thread Ben
Thank you.  This worked perfectly.

The trick from that example is to add an event for a key focus change,
and manually change the focus there and do preventDefault.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> http://blogs.adobe.com/aharui/2008/08/datagrid_itemeditor_with_two_i.htm
> l
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Ben
> Sent: Friday, August 08, 2008 3:16 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Tabbing in an ItemEditor
> 
> 
> 
> By default, if the user strike the tab key in a Tree ItemEditor, then
> the ItemEditor loses focus and is destroyed. However, I have multiple
> controls in my ItemEditor that need to be tabbed between. Somehow I
> need to keep the ItemEditor being destroyed after a tab, but so far I
> have been unable to do so successfully.
> 
> I have already tried calling preventDefault in a itemEditEnd function.
> This does keep the ItemEditor from closing, but a second tab will
> destroy the ItemEditor because focus is lost.
> 
> I have tried Google, but I could only find this thread where no
> solution was given:
> http://www.nabble.com/Tabbing-in-custom-item-editor-in-datagrid-td167666
> 44.html
>  644.html> 
> 
> Thanks in advance.
>




[flexcoders] Application close event?

2008-08-08 Thread Guy Morton
Hi all

Does anyone know if there is an event that can be used to trigger  
clean-up activities when a Flex app is closed, either by the browser  
being closed or the user navigating to a new page?

TIA

Guy


Re: [flexcoders] Re: aspx Wrapper for Flex Build Possible?

2008-08-08 Thread Howard Fore
I can't remember where I saw it now but I found some instructions for  
doing this to create a coldfusion wrapper. I'll post the particulars  
when I get back to my workstation but I recall it had to do with  
making a coldfusion file in the html-templates directory that was  
named the same as the index.html file that's there now.

--
Howard Fore [EMAIL PROTECTED]
Sent from my iPhone

On Aug 8, 2008, at 5:49 PM, "nathanpdaniel" <[EMAIL PROTECTED]> wrote:

> We create the wrapper in ASPX, then build the app to our local site  
> (in
> the Flex project's properties) and turn off the generate HTML wrapper
> functionality (also in the Flex project's properties).  Hope this  
> helps
> a little - albeit has nothing to do really with your original
> question...
> :D
> --- In flexcoders@yahoogroups.com, Adrian Williams <[EMAIL PROTECTED]>  
> wrote:
>>
>> Hi all,
>>
>>Just a quick question. I know the flex builder tool allows you to
>> auto-generate an HTML wrapper on compile.  Has anyone found a way to
>> have it create a wrapper in .aspx, possibly using some kind of master
>> template?
>>
>> Thanks,
>> Adrian
>>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo 
> ! Groups Links
>
>
>


[flexcoders] Re: Why Doesn't This JavaScript Regular Expression Work in AS3?

2008-08-08 Thread haykelbj
The JavaScript and ActionScript codes are not doing exactly the same
thing. In your AS code, at a certain point you are doing the following
assignment:
_testValue = qualifier.toLowerCase()+ ",$";
This will result in _testValue = "true,$" which will make the test
isCurrency.test(_testValue) return false which is right because
isCurrency's regex is /^, ?\$/.


--- In flexcoders@yahoogroups.com, "jwebbsuccess" <[EMAIL PROTECTED]> wrote:
>
> I have a regular expression that works in JavaScript and does not work
> in ActionScript 3, even though both languages supposedly use the
> ECMAScript standard for regular expressions.  I need the expression to
> return true when ever it tests the two strings below:
> 
> true,$
> true, $
> 
> I need the expression to return false whenever the string is not the
> same as one of the two above.
> 
> I've attached the HTML that demonstrates that the regular expressions
> work in JavaScript.  Can you modify the same expressions in the Flex
> code, provided below, to produce the same result?
> 
> Thanks.
> 
> ---
> 
> 
> 
> #doc {background-color:#EFEFEF;text-align:center;}
> #testBlock
>
{background-color:#FF;text-align:left;width:600px;height:500px;margin:
> 0 auto;border:1px solid #FF9900;padding:0 20px;}
> .regexp {color:#FF;}
> .testval {color:#00CC00;}
> 
> 
> 
> 
>   
>   
>   
>   The only two true values should be "true,$" and "true, $";
> everything else should be false.
>   
>   
>   //TEST YOUR REGULAR EXPRESSIONS HERE.
> var re1 = /^true\b(.*)$/;
> var re2 = /^, ?\$/;
> var str = "true,$"; 
>  
>   //THE VALUES USED IN YOUR TESTS WILL APPEAR IN THE PAGE...
> document.getElementById( "test1" ).innerHTML = "Regular 
> Expression
> 1: " + re1 + "";
> document.getElementById( "test2" ).innerHTML = "Regular 
> Expression
> 1: " + re2 + "";
> document.getElementById( "testValue" ).innerHTML = "Test 
> Value:
> " + str + "";
> 
> if ( ( resultArray = re1.exec( str ) ) != null )
> {
>   alert( "Test 1 successful" );
>   if ( re2.test( resultArray[ 1 ] ) )
>   {
>   alert( "Test 2 successful" );
>   }
>   else
>   {
>   alert( "Test 2 failed" );   
>   }
> }
>   
> 
> 
> 
> 
> ---
> 
> 
> 
> http://www.adobe.com/2006/mxml";
> creationComplete="runRegExpTest( event )">
> 
> 
> 
>  backgroundColor="#FAF7F7">
>fontSize="18" color="#00">
>  fontWeight="bold"/>
>   
>fontSize="18" color="#00">
>  fontWeight="bold"/>
>   
>   
>  color="#BF5100" fontWeight="bold"/>
>   
> 
> 
>




[flexcoders] Re: Chart example posted

2008-08-08 Thread sa3376
--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> Hi, all;
> 
> Someone on another forum asked me about how to create multiple axes in 
> a chart in Flex.  I put together a little example of how to do a chart 
> completely in AS and posted it on my blog.  For those doing charting, 
> you might be interested http://flexdiary.blogspot.com/2008/08/charting-
> example.html.
> 
> HTH;
> 
> Amy
>

Thanks for the example, Amy.  It was very timely for me on the project
I'm currently working on.  No worries about "bad habits" as I've
plenty of my own -- what difference could one more make?



Re: [flexcoders] Re: Flexbuilder for iPhone?

2008-08-08 Thread Howard Fore
Sounds like a bad 80's movie...Flex and Java, banned from iPhonia,  
team up together to reclaim their birthright...

--
Howard Fore [EMAIL PROTECTED]
Sent from my iPhone

On Aug 8, 2008, at 5:33 PM, "Jason" <[EMAIL PROTECTED]>  
wrote:

> Ah, the follow up tweets were not there when i saw them.  So Ryan's
> on my blacklist now - stupid joke. :P)
>
>
> --- In flexcoders@yahoogroups.com, Matt Chotin <[EMAIL PROTECTED]> wrote:
>>
>> Read the follow-up tweets, they were joking around.  No Flex
> Builder on the iPhone.  No Flex Builder building apps for the iPhone.
>>
>> Matt
>>
>>
>> On 8/8/08 12:35 PM, "Clint Tredway" <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>
>> that would rock.. I just got an iPhone and I am learning the SDK
> for it, but flex apps would be awesome.
>>
>> On Fri, Aug 8, 2008 at 2:33 PM, dnk <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>
>> On 8-Aug-08, at 12:18 PM, Merrill, Jason wrote:
>>
>>>
>>> Ryan Stewart just tweeted, "I just let Adobe's iPhone secret slip
>>> while at lunch with effectiveUI. We're going to have Flex Builder
>>> for the iPhone."
>>>
>>> http://brightkite.com/people/ryanstewart/
>>> http://twitter.com/ryanstewart
>>> For real?  Could you actually code flexbuilder on an iPhone?
> Seems
>>> like a pretty small screen...
>>>
>>
>> I suspect they mean building flex apps to run on the iphone so I
>> guess a flash player on the iphone?
>>
>> purely speculation.
>>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo 
> ! Groups Links
>
>
>


[flexcoders] Sorting XMLListCollection by childIndex()

2008-08-08 Thread Amy
Hi, all;

I'm using an XMLLisCollection as the dataprovider for a bar chart.  For 
some reason a bar chart draws the bars from bottom to top, rather than 
from top to bottom.  This puts my data upside down, and the order is 
important in this application.  I'd rather not change the data itself, 
so I need to sort the XMLListCollection. All the information I have on 
sorting shows using sortField.  I need to sort on childIndex(), which 
is a method in e4x.  Has anyone successfully sorted an 
XMLListCollection by childIndex?

This is what I've tried, and it seems to just sort randomly

var reverseSort:Sort= new Sort();
reverseSort.fields = [new SortField
('childIndex()', true, true)];
_data.sort=reverseSort;
_data.refresh()

}



[flexcoders] FlexReport issues

2008-08-08 Thread aceoohay
FlexReport developers, I have a few questions, The following relates 
to the current SVN version;

1) When I set the PaperFormat to LETTER and adjust my template to 
width="792" height="1224" the image in the previewer and PDF are 
smeared so much that everything appears as gray horizontal streaks. 
However when I print it comes out ok. What am I doing wrong?

2) I need to insert page breaks either in the data stream (HTML) or 
as part of the "PrintTextArea" tag. In the HTML would be best. Is 
there current functionality to do this? How?

3) I am developing a mini word processor for my application to allow 
the generation of simple letters with a mail merge from a database. I 
am using the mx:RichTextEditor which has lots of functionality 
including a number of fonts. It seems as though the only way to print 
different fonts from FlexReports is to add embedded fonts. If I need 
1o fonts and their associated bold and italic versions, this would 
seem to substantially increase the swf size. Is their a way of 
avoiding this?

I have posted some of this to the blog, but it doesn't seem too 
active.

Paul



[flexcoders] Re: Paginate DataGrid

2008-08-08 Thread Joshua Jackson
I mean the data in DataGrid is paginated, so not all of them is displayed on 
one page. 

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> What do you mean by paginated?  The PrintDataGrid will help you print
> across multiple pages.
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Joshua Jackson
> Sent: Friday, August 08, 2008 1:16 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Paginate DataGrid
> 
> 
> 
> Dear all,
> 
> How do I paginate DataGrid? In the flex 3 reference it is written that
> DataGrid can be paginated, but it doesn't explain on how to do it?
> Could anyone give me a hint on this?
> 
> Best regards
> 
> -- 
> Setting a new landmark.
> Blog: http://joshuajava.wordpress.com/
>  
> Twitter: http://twitter.com/thejavafreak
> 
>





[flexcoders] storage directory debugging AIR in FLEX3

2008-08-08 Thread slackware2142
Sorry, if this is a newbie question, but I google'd about it, and I 
didn't find any answer. While debugging AIR apps in FLEX3, what is the 
storage directory to write files (windows)?. Once the application is 
compiled and installed, the default directory is something like: 
C:\Documents and Settings\UserName\Application Data\Test.XXX\Local 
Store\ (windows xp). But what if I'm only debugging the app?

 

Thanks in advance!




Re: [flexcoders] deprecated horizontalAxisRenderer

2008-08-08 Thread coder3

thanks!!! if i use the out of box code, it works fine. 

but the problem is, i use an extended AxisRenderer .as class,
http://bugs.adobe.com/jira/secure/attachment/12340/InnerAxisRenderer.as. now
i got this run time error: 

do i need to modify the class? how?



TypeError: Error #1009: Cannot access a property or method of a null object
reference.
at
mx.charts.chartClasses::CartesianChart/updateAxisLayout()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:2087]
at
mx.charts.chartClasses::CartesianChart/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:1355]
at
mx.core::UIComponent/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6214]
at
mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602]
at
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:657]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
at
mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]





Michael VanDaniker wrote:
> 
> Certainly!
> 
> 
>  
>   
>  
>  
>   
>  
>  
>   
>  
>  
>   
>  
>  
>yField="bar"/>
>  
> 
> 
> I didn't compile this, but it should be pretty close.
> 
> Also, check out the example in the documentation for AxisRenderer:
> http://livedocs.adobe.com/flex/3/langref/mx/charts/AxisRenderer.html#includeExamplesSummary
> 
> --- In flexcoders@yahoogroups.com, coder3 <[EMAIL PROTECTED]> wrote:
>>
>> 
>> not sure how to do it.
>> 
>> is there an example?
>> 
>> thanks
>> 
>> 
>> 
>> Michael VanDaniker wrote:
>> > 
>> > You have to tell your AxisRenderer which axis it should render by
>> > setting the axis property.
>> > 
>> > --- In flexcoders@yahoogroups.com, coder3  wrote:
>> >>
>> >> 
>> >> Hi All, i have flex2 code, and now shows warnings in flex 3
>> >> 
>> >> for example, 
>> >> 
>> >> 
>> >> :::
>> >>   
>> >>   
>> >>   
>> >>   
>> >> :::
>> >> 
>> >> 
>> >> will shows warning:
>> >> 
>> >>  'horizontalAxisRenderer' has been deprecated. Please use
>> >> 'CartesianChart.horizontalAxisRenderers'
>> >> 
>> >> I don't know what to do so i just change
>  to
>> >> 
>> >> 
>> >> it compiled but it gives me runtime error as following. so i must
> miss
>> >> something. what is it?
>> >> 
>> >> thanks!!
>> >> c
>> >> 
>> >> 
>> >> Error: Property axis is not set for this AxisRenderer
>> >>   at
>> >>
>> >
> mx.charts::AxisRenderer/measureLabels()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1738]
>> >>   at
>> >>
>> >
> mx.charts::AxisRenderer/adjustGutters()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1364]
>> >>   at
>> >>
>> >
> mx.charts.chartClasses::CartesianChart/updateAxisLayout()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:2019]
>> >>   at
>> >>
>> >
> mx.charts.chartClasses::CartesianChart/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:1355]
>> >>   at
>> >>
>> >
> mx.core::UIComponent/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6214]
>> >>   at
>> >>
>> >
> mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602]
>> >>   at
>> >>
>> >
> mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:657]
>> >>   at Function/http://adobe.com/AS3/2006/builtin::apply()
>> >>   at
>> >>
>> >
> mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
>> >>   at
>> >>
>> >
> mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]
>> >> 
>> >> 
>> >> 
>> >> -- 
>> >> View this message in context:
>> >
> http://www.nabble.com/deprecated-horizontalAxisRenderer-tp18900354p18900354.html
>> >> Sent from the FlexCoders mailing list archive at Nabble.com.
>> >>
>> > 
>> > 
>> > 
>> > 
>> 
>> -- 
>> View this message in context:
> http://www.nabble.com/deprecated-horizontalAxisRenderer-tp18900354p18900481.html
>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/deprecated-horizontalAxisRenderer-tp18900354p18900769.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Re: Data caching dto's

2008-08-08 Thread Brian Deitte
This message is probably too late, but I'll answer anyways.  If you're
just trying to compare ten objects at a time, I'd just use the Array
technique that you described.  Assuming you need to do a deep equality
check, just use ObjectUtil.equals() (or something like that, it's in
the Flex framework).  Comparing 10 (or 100) objects, assuming you're
only comparing each object to one other object, shouldn't be very
intensive.  -Brian

On Thu, Aug 7, 2008 at 11:45 AM, flexaustin <[EMAIL PROTECTED]> wrote:
> Actually obtaining the data isn't the issue. I more interested how do
> I go about comparing the old data to the new data? Array, some sort
> of custom hash, or xml. Which is faster or better?
>
> I would think array would be best by comparing old data array to new
> data array and then creating a third data array that holds all those
> that haven't changed?
>
> Yes all 500 objects are shown at once. The issue isn't getting the
> data its how slow and processor intensive it is to create the objects
> all over again if the data has changed.
>
> --- In flexcoders@yahoogroups.com, "Brian Deitte" <[EMAIL PROTECTED]> wrote:
>>
>> Caching of data across browser sessions, I assume? This is usually
>> done with SharedObject. But I wonder if there's a way to rearchitect
>> your application so this isn't needed? I assume that all 500 objects
>> aren't shown at once and that you could implement some kind of paging
>> mechanism. -Brian
>>
>> On Wed, Aug 6, 2008 at 3:17 PM, flexaustin <[EMAIL PROTECTED]> wrote:
>> > I was wondering if anyone has done any caching of data in Flex? And if
>> > so how did you do this?
>> >
>> > I have an application that pulls in up to 500 items and converts them
>> > to DTO's. The app then runs a routine, which generates objects based
>> > on those dto's. The generation of objects is very memory intensive so
>> > I need to reduce this to increase usability as right now the user has
>> > to wait until all 500 objects are created. I would like to be able to
>> > generate say the first 10 objects based off the old data, if the data
>> > hasn't changed since the last time the data was grab (via httpservice)
>> > then run the routine to create the other 490 objects.
>> >
>> > So sorting by saying N changed?...yes through out, N + 1
>> > changed?no keep create object, N + 2 changed? yes through
>> > out.N+10 stop.
>> > Run...routine recreate the other 490 and stick them back in the
>> > correct order.
>> >
>> > Make sense?
>> >
>> >
>>
>
> 


[flexcoders] Re: deprecated horizontalAxisRenderer

2008-08-08 Thread Michael VanDaniker
Certainly!


 
  
 
 
  
 
 
  
 
 
  
 
 
  
 


I didn't compile this, but it should be pretty close.

Also, check out the example in the documentation for AxisRenderer:
http://livedocs.adobe.com/flex/3/langref/mx/charts/AxisRenderer.html#includeExamplesSummary

--- In flexcoders@yahoogroups.com, coder3 <[EMAIL PROTECTED]> wrote:
>
> 
> not sure how to do it.
> 
> is there an example?
> 
> thanks
> 
> 
> 
> Michael VanDaniker wrote:
> > 
> > You have to tell your AxisRenderer which axis it should render by
> > setting the axis property.
> > 
> > --- In flexcoders@yahoogroups.com, coder3  wrote:
> >>
> >> 
> >> Hi All, i have flex2 code, and now shows warnings in flex 3
> >> 
> >> for example, 
> >> 
> >> 
> >> :::
> >>
> >>
> >>
> >>
> >> :::
> >> 
> >> 
> >> will shows warning:
> >> 
> >>  'horizontalAxisRenderer' has been deprecated. Please use
> >> 'CartesianChart.horizontalAxisRenderers'
> >> 
> >> I don't know what to do so i just change
 to
> >> 
> >> 
> >> it compiled but it gives me runtime error as following. so i must
miss
> >> something. what is it?
> >> 
> >> thanks!!
> >> c
> >> 
> >> 
> >> Error: Property axis is not set for this AxisRenderer
> >>at
> >>
> >
mx.charts::AxisRenderer/measureLabels()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1738]
> >>at
> >>
> >
mx.charts::AxisRenderer/adjustGutters()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1364]
> >>at
> >>
> >
mx.charts.chartClasses::CartesianChart/updateAxisLayout()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:2019]
> >>at
> >>
> >
mx.charts.chartClasses::CartesianChart/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:1355]
> >>at
> >>
> >
mx.core::UIComponent/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6214]
> >>at
> >>
> >
mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602]
> >>at
> >>
> >
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:657]
> >>at Function/http://adobe.com/AS3/2006/builtin::apply()
> >>at
> >>
> >
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
> >>at
> >>
> >
mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]
> >> 
> >> 
> >> 
> >> -- 
> >> View this message in context:
> >
http://www.nabble.com/deprecated-horizontalAxisRenderer-tp18900354p18900354.html
> >> Sent from the FlexCoders mailing list archive at Nabble.com.
> >>
> > 
> > 
> > 
> > 
> 
> -- 
> View this message in context:
http://www.nabble.com/deprecated-horizontalAxisRenderer-tp18900354p18900481.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>




Re: [flexcoders] deprecated horizontalAxisRenderer

2008-08-08 Thread coder3

not sure how to do it.

is there an example?

thanks



Michael VanDaniker wrote:
> 
> You have to tell your AxisRenderer which axis it should render by
> setting the axis property.
> 
> --- In flexcoders@yahoogroups.com, coder3 <[EMAIL PROTECTED]> wrote:
>>
>> 
>> Hi All, i have flex2 code, and now shows warnings in flex 3
>> 
>> for example, 
>> 
>> 
>> :::
>>  
>>  
>>  
>>  
>> :::
>> 
>> 
>> will shows warning:
>> 
>>  'horizontalAxisRenderer' has been deprecated. Please use
>> 'CartesianChart.horizontalAxisRenderers'
>> 
>> I don't know what to do so i just change  to
>> 
>> 
>> it compiled but it gives me runtime error as following. so i must miss
>> something. what is it?
>> 
>> thanks!!
>> c
>> 
>> 
>> Error: Property axis is not set for this AxisRenderer
>>  at
>>
> mx.charts::AxisRenderer/measureLabels()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1738]
>>  at
>>
> mx.charts::AxisRenderer/adjustGutters()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1364]
>>  at
>>
> mx.charts.chartClasses::CartesianChart/updateAxisLayout()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:2019]
>>  at
>>
> mx.charts.chartClasses::CartesianChart/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:1355]
>>  at
>>
> mx.core::UIComponent/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6214]
>>  at
>>
> mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602]
>>  at
>>
> mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:657]
>>  at Function/http://adobe.com/AS3/2006/builtin::apply()
>>  at
>>
> mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
>>  at
>>
> mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]
>> 
>> 
>> 
>> -- 
>> View this message in context:
> http://www.nabble.com/deprecated-horizontalAxisRenderer-tp18900354p18900354.html
>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/deprecated-horizontalAxisRenderer-tp18900354p18900481.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: deprecated horizontalAxisRenderer

2008-08-08 Thread Michael VanDaniker
You have to tell your AxisRenderer which axis it should render by
setting the axis property.

--- In flexcoders@yahoogroups.com, coder3 <[EMAIL PROTECTED]> wrote:
>
> 
> Hi All, i have flex2 code, and now shows warnings in flex 3
> 
> for example, 
> 
> 
> :::
>   
>   
>   
>   
> :::
> 
> 
> will shows warning:
> 
>  'horizontalAxisRenderer' has been deprecated. Please use
> 'CartesianChart.horizontalAxisRenderers'
> 
> I don't know what to do so i just change  to
> 
> 
> it compiled but it gives me runtime error as following. so i must miss
> something. what is it?
> 
> thanks!!
> c
> 
> 
> Error: Property axis is not set for this AxisRenderer
>   at
>
mx.charts::AxisRenderer/measureLabels()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1738]
>   at
>
mx.charts::AxisRenderer/adjustGutters()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1364]
>   at
>
mx.charts.chartClasses::CartesianChart/updateAxisLayout()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:2019]
>   at
>
mx.charts.chartClasses::CartesianChart/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:1355]
>   at
>
mx.core::UIComponent/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6214]
>   at
>
mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602]
>   at
>
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:657]
>   at Function/http://adobe.com/AS3/2006/builtin::apply()
>   at
>
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
>   at
>
mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]
> 
> 
> 
> -- 
> View this message in context:
http://www.nabble.com/deprecated-horizontalAxisRenderer-tp18900354p18900354.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>




[flexcoders] deprecated horizontalAxisRenderer

2008-08-08 Thread coder3

Hi All, i have flex2 code, and now shows warnings in flex 3

for example, 


:::




:::


will shows warning:

 'horizontalAxisRenderer' has been deprecated. Please use
'CartesianChart.horizontalAxisRenderers'

I don't know what to do so i just change  to


it compiled but it gives me runtime error as following. so i must miss
something. what is it?

thanks!!
c


Error: Property axis is not set for this AxisRenderer
at
mx.charts::AxisRenderer/measureLabels()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1738]
at
mx.charts::AxisRenderer/adjustGutters()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1364]
at
mx.charts.chartClasses::CartesianChart/updateAxisLayout()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:2019]
at
mx.charts.chartClasses::CartesianChart/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:1355]
at
mx.core::UIComponent/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6214]
at
mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602]
at
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:657]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
at
mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]



-- 
View this message in context: 
http://www.nabble.com/deprecated-horizontalAxisRenderer-tp18900354p18900354.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] Re: introspection - remote object

2008-08-08 Thread Alex Harui
Did you try for..in



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of marioa00
Sent: Friday, August 08, 2008 1:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: introspection - remote object



by the way, as you can see, the remote object destination is set
dinamically, the user choose the destination to use and the
application must show the functions inside that destination.



 


RE: [flexcoders] Tabbing in an ItemEditor

2008-08-08 Thread Alex Harui
http://blogs.adobe.com/aharui/2008/08/datagrid_itemeditor_with_two_i.htm
l



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ben
Sent: Friday, August 08, 2008 3:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tabbing in an ItemEditor



By default, if the user strike the tab key in a Tree ItemEditor, then
the ItemEditor loses focus and is destroyed. However, I have multiple
controls in my ItemEditor that need to be tabbed between. Somehow I
need to keep the ItemEditor being destroyed after a tab, but so far I
have been unable to do so successfully.

I have already tried calling preventDefault in a itemEditEnd function.
This does keep the ItemEditor from closing, but a second tab will
destroy the ItemEditor because focus is lost.

I have tried Google, but I could only find this thread where no
solution was given:
http://www.nabble.com/Tabbing-in-custom-item-editor-in-datagrid-td167666
44.html
 

Thanks in advance.



 


RE: [flexcoders] Paginate DataGrid

2008-08-08 Thread Alex Harui
What do you mean by paginated?  The PrintDataGrid will help you print
across multiple pages.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Joshua Jackson
Sent: Friday, August 08, 2008 1:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Paginate DataGrid



Dear all,

How do I paginate DataGrid? In the flex 3 reference it is written that
DataGrid can be paginated, but it doesn't explain on how to do it?
Could anyone give me a hint on this?

Best regards

-- 
Setting a new landmark.
Blog: http://joshuajava.wordpress.com/
 
Twitter: http://twitter.com/thejavafreak
 


 


[flexcoders] Tabbing in an ItemEditor

2008-08-08 Thread Ben
By default, if the user strike the tab key in a Tree ItemEditor, then
the ItemEditor loses focus and is destroyed.  However, I have multiple
controls in my ItemEditor that need to be tabbed between.  Somehow I
need to keep the ItemEditor being destroyed after a tab, but so far I
have been unable to do so successfully.

I have already tried calling preventDefault in a itemEditEnd function.
 This does keep the ItemEditor from closing, but a second tab will
destroy the ItemEditor because focus is lost.

I have tried Google, but I could only find this thread where no
solution was given:
http://www.nabble.com/Tabbing-in-custom-item-editor-in-datagrid-td16766644.html

Thanks in advance.



[flexcoders] Why Doesn't This JavaScript Regular Expression Work in AS3?

2008-08-08 Thread jwebbsuccess
I have a regular expression that works in JavaScript and does not work
in ActionScript 3, even though both languages supposedly use the
ECMAScript standard for regular expressions.  I need the expression to
return true when ever it tests the two strings below:

true,$
true, $

I need the expression to return false whenever the string is not the
same as one of the two above.

I've attached the HTML that demonstrates that the regular expressions
work in JavaScript.  Can you modify the same expressions in the Flex
code, provided below, to produce the same result?

Thanks.

---



#doc {background-color:#EFEFEF;text-align:center;}
#testBlock
{background-color:#FF;text-align:left;width:600px;height:500px;margin:
0 auto;border:1px solid #FF9900;padding:0 20px;}
.regexp {color:#FF;}
.testval {color:#00CC00;}




  
  
  
  The only two true values should be "true,$" and "true, $";
everything else should be false.
  

//TEST YOUR REGULAR EXPRESSIONS HERE.
  var re1 = /^true\b(.*)$/;
  var re2 = /^, ?\$/;
  var str = "true,$"; 
 
//THE VALUES USED IN YOUR TESTS WILL APPEAR IN THE PAGE...
  document.getElementById( "test1" ).innerHTML = "Regular 
Expression
1: " + re1 + "";
  document.getElementById( "test2" ).innerHTML = "Regular 
Expression
1: " + re2 + "";
  document.getElementById( "testValue" ).innerHTML = "Test 
Value:
" + str + "";
  
  if ( ( resultArray = re1.exec( str ) ) != null )
  {
alert( "Test 1 successful" );
if ( re2.test( resultArray[ 1 ] ) )
{
alert( "Test 2 successful" );
}
else
{
alert( "Test 2 failed" );   
}
  }





---



http://www.adobe.com/2006/mxml";
creationComplete="runRegExpTest( event )">




  

  
  

  
  

  






[flexcoders] Re: aspx Wrapper for Flex Build Possible?

2008-08-08 Thread nathanpdaniel
We create the wrapper in ASPX, then build the app to our local site (in 
the Flex project's properties) and turn off the generate HTML wrapper 
functionality (also in the Flex project's properties).  Hope this helps 
a little - albeit has nothing to do really with your original 
question... 
:D
--- In flexcoders@yahoogroups.com, Adrian Williams <[EMAIL PROTECTED]> wrote:
>
> Hi all,
> 
> Just a quick question. I know the flex builder tool allows you to 
> auto-generate an HTML wrapper on compile.  Has anyone found a way to 
> have it create a wrapper in .aspx, possibly using some kind of master 
> template?
> 
> Thanks,
> Adrian
>




[flexcoders] Re: Flexbuilder for iPhone?

2008-08-08 Thread Jason
Ah, the follow up tweets were not there when i saw them.  So Ryan's 
on my blacklist now - stupid joke. :P) 


--- In flexcoders@yahoogroups.com, Matt Chotin <[EMAIL PROTECTED]> wrote:
>
> Read the follow-up tweets, they were joking around.  No Flex 
Builder on the iPhone.  No Flex Builder building apps for the iPhone.
> 
> Matt
> 
> 
> On 8/8/08 12:35 PM, "Clint Tredway" <[EMAIL PROTECTED]> wrote:
> 
> 
> 
> 
> that would rock.. I just got an iPhone and I am learning the SDK 
for it, but flex apps would be awesome.
> 
> On Fri, Aug 8, 2008 at 2:33 PM, dnk <[EMAIL PROTECTED]> wrote:
> 
> 
> 
> 
> On 8-Aug-08, at 12:18 PM, Merrill, Jason wrote:
> 
> >
> > Ryan Stewart just tweeted, "I just let Adobe's iPhone secret slip
> > while at lunch with effectiveUI. We're going to have Flex Builder
> > for the iPhone."
> >
> > http://brightkite.com/people/ryanstewart/
> > http://twitter.com/ryanstewart
> > For real?  Could you actually code flexbuilder on an iPhone?  
Seems
> > like a pretty small screen...
> >
> 
> I suspect they mean building flex apps to run on the iphone so I
> guess a flash player on the iphone?
> 
> purely speculation.
>




[flexcoders] aspx Wrapper for Flex Build Possible?

2008-08-08 Thread Adrian Williams

Hi all,

   Just a quick question. I know the flex builder tool allows you to 
auto-generate an HTML wrapper on compile.  Has anyone found a way to 
have it create a wrapper in .aspx, possibly using some kind of master 
template?


Thanks,
Adrian


[flexcoders] Re: introspection - remote object

2008-08-08 Thread marioa00
by the way, as you can see, the remote object destination is set
dinamically, the user choose the destination to use and the
application must show the functions inside that destination.




[flexcoders] Paginate DataGrid

2008-08-08 Thread Joshua Jackson
Dear all,

How do I paginate DataGrid? In the flex 3 reference it is written that
DataGrid can be paginated, but it doesn't explain on how to do it?
Could anyone give me a hint on this?

Best regards

-- 
Setting a new landmark.
Blog: http://joshuajava.wordpress.com/
Twitter: http://twitter.com/thejavafreak


Re: [flexcoders] Flexbuilder for iPhone?

2008-08-08 Thread Matt Chotin
Read the follow-up tweets, they were joking around.  No Flex Builder on the 
iPhone.  No Flex Builder building apps for the iPhone.

Matt


On 8/8/08 12:35 PM, "Clint Tredway" <[EMAIL PROTECTED]> wrote:




that would rock.. I just got an iPhone and I am learning the SDK for it, but 
flex apps would be awesome.

On Fri, Aug 8, 2008 at 2:33 PM, dnk <[EMAIL PROTECTED]> wrote:




On 8-Aug-08, at 12:18 PM, Merrill, Jason wrote:

>
> Ryan Stewart just tweeted, "I just let Adobe's iPhone secret slip
> while at lunch with effectiveUI. We're going to have Flex Builder
> for the iPhone."
>
> http://brightkite.com/people/ryanstewart/
> http://twitter.com/ryanstewart
> For real?  Could you actually code flexbuilder on an iPhone?  Seems
> like a pretty small screen...
>

I suspect they mean building flex apps to run on the iphone so I
guess a flash player on the iphone?

purely speculation.







Re: [flexcoders] Flexbuilder for iPhone?

2008-08-08 Thread Clint Tredway
that would rock.. I just got an iPhone and I am learning the SDK for it, but
flex apps would be awesome.

On Fri, Aug 8, 2008 at 2:33 PM, dnk <[EMAIL PROTECTED]> wrote:

>
> On 8-Aug-08, at 12:18 PM, Merrill, Jason wrote:
>
> >
> > Ryan Stewart just tweeted, "I just let Adobe's iPhone secret slip
> > while at lunch with effectiveUI. We're going to have Flex Builder
> > for the iPhone."
> >
> > http://brightkite.com/people/ryanstewart/
> > http://twitter.com/ryanstewart
> > For real? Could you actually code flexbuilder on an iPhone? Seems
> > like a pretty small screen...
> >
>
> I suspect they mean building flex apps to run on the iphone so I
> guess a flash player on the iphone?
>
> purely speculation.
>
>  
>



-- 
"When you choose hope, anything is possible."
-Christopher Reeve


Re: [flexcoders] Flexbuilder for iPhone?

2008-08-08 Thread dnk

On 8-Aug-08, at 12:18 PM, Merrill, Jason wrote:

>
> Ryan Stewart just tweeted, "I just let Adobe's iPhone secret slip  
> while at lunch with effectiveUI. We're going to have Flex Builder  
> for the iPhone."
>
> http://brightkite.com/people/ryanstewart/
> http://twitter.com/ryanstewart
> For real?  Could you actually code flexbuilder on an iPhone?  Seems  
> like a pretty small screen...
>


I suspect they mean building flex apps to run on the iphone so I  
guess a flash player on the iphone?

purely speculation.




[flexcoders] Flexbuilder for iPhone?

2008-08-08 Thread Merrill, Jason
Ryan Stewart just tweeted, "I just let Adobe's iPhone secret slip while at 
lunch with effectiveUI. We're going to have Flex Builder for the iPhone."
http://brightkite.com/people/ryanstewart/
http://twitter.com/ryanstewart
For real?  Could you actually code flexbuilder on an iPhone?  Seems like a 
pretty small screen...


Jason Merrill 
Bank of America 
Enterprise Technology & Global Risk L&LD 
Instructional Technology & Media

Join the Bank of America Flash Platform Developer Community  
http://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx> 

Are you a Bank of America associate interested in innovative learning ideas and 
technologies?
Check out our internal  GT&O Innovative Learning Blog 
http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx>  
& subscribe 
http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.aspx?List=\{41BD3FC9-BB07-4763-B3AB-A6C7C99C5B8D\}&Source=http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/Lists/Posts/Archive.aspx>
 . 




[flexcoders] Re: Force UI update during intense AS work

2008-08-08 Thread Amy
--- In flexcoders@yahoogroups.com, "verma.java" <[EMAIL PROTECTED]> 
wrote:
>
> Hello All,
> 
> I am Ashish. I am working in Adobe Flex & AIR from last six months 
> only. I have a problem that anyone will have been faced in flex/air 
of 
> updaing UI during the intense AS work before. Actually I am reading 
the 
> OS File System and making a XML file that would work as data 
provider 
> for a Tree control which will render in AdvancedGrid. I am able to 
read 
> each and every node but thing is that UI is not updating during 
> scanning; the same problem like i read in this post 
(http://www.mail-
> archive.com/flexcoders@yahoogroups.com/msg06477.html) and also 
approach 
> for solution, but i am unable to implement it. 
> 
> Could anyone please guide me in this situation? if anyone have any 
code 
> regarding that would be more appriciated. 
> 
> Looking for forward response.

Does this help
http://tinyurl.com/6go6lt



RE: [flexcoders] Re: filtering a flex datagrid using a slider with two thumbs

2008-08-08 Thread Gordon Smith
I don't have a tested code sample to offer, but you would use the fact
that your DataGrid's dataProvider has probably been turned into an
ArrayCollection, which has a filterFunction property. You set the
filterFunction to be a reference to a method that takes a single data
item as an argument and returns true or false to indicate whether the
item should be displayed.

 

For example, suppose the items in your dataProvider were Address
instances and you wanted to show only the ones for a particular state
selected in a stateComboBox. Then you'd write code like

 

private function myFilterFunction(item:Object):Boolean

{

return Address(item).state == stateComboBox.selectedLabel;

}

 

and somewhere set

 

myDataGrid.dataProvider.filterFunction = myFilterFunction;

 

To get the DataGrid to refresh when you select a different state, I
think you would call myDataGrid.invalidateList() in a hanlder for the
ComboBox's "change" event.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of stinasius
Sent: Friday, August 08, 2008 12:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: filtering a flex datagrid using a slider with
two thumbs

 

hi guys i hope am not being a pain, but how can i use a combo box and
a slider (two thumbed) to fliter a datagrid? a small code sample will
do it. thanks.

 



[flexcoders] Re: URL deeplinking or other?

2008-08-08 Thread haykelbj
You can use BrowserManager
  . In the handler function of the
BrowserChangeEvent.BROWSER_URL_CHANGE event you can get the fragment
from the BrowserManager and according to its value you can choose which
item to display.

You can see a working example on the following site:
http://www.allmas-tn.com  .
The ViewStack at the bottom of the page selects the right page according
to the fragment in the url, so if you visit this url:
http://www.allmas-tn.com/#contact  ,
the "Contact" page will be selected.

Hope this helps,
Haykel


--- In flexcoders@yahoogroups.com, "flexaustin" <[EMAIL PROTECTED]> wrote:
>
> Does anyone know the best way or anyway to pass an URL into a Flex app
> in order move to the correct state?
>
> So if I have an app -> Panel -> itemrender and I want to display one
> of them items (which when selected grows and expands) when it receives
> a certain URL.  Is this possible and has anyone seen this or done
> anything like this?
>
> Whats the best approach. Thanks for all the help and thanks in advance
> on this one.
>



Re: [flexcoders] Re: How to display the vertical scrollbar of a container on the left

2008-08-08 Thread Michael Schmalle
This is possible, I have done it with vertical and horizontal scrollbars.

One component I made was a tab bar that had it's horizontal scroll bar on
the top of the content.

As Alex said, cross your fingers because you really have to know what you
are doing to get it to work (IE know what does what and where it does it.

One thing to note is the contentPane will give you nightmares when it comes
to viewMetrics/borderMetrics.

And no, I don't have any code because it's too complicated.

Mike

On Fri, Aug 8, 2008 at 1:52 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>Override updatedisplaylist, override viewMetrics, cross your fingers.
>
>  --
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *haykelbj
> *Sent:* Friday, August 08, 2008 8:13 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Re: How to display the vertical scrollbar of a
> container on the left
>
>  So, no responses/suggestions?
>
> Ok I'm trying some things and as soon as I have something usable I'll
> post it here.
>
> But in the meantime I have a question to the Adobe SDK developers:
> Will Gumbo support RTL components? When you set the direction of a
> component to "rtl" for example, it will mirror its children and align
> them to the right (basically set the origin of the x-axis in the
> component to the right).
>
> Bye,
> Haykel
>
> --- In flexcoders@yahoogroups.com ,
> "haykelbj" <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > Is there a way to display the vertical scrollbar of a container on the
> > left side? It would be nice if there's a general solution, otherwise
> > I'm specially interested by the Canvas container.
> >
> > Thanks,
> > Haykel
> >
>
>  
>



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

Teoti Graphix Blog
http://www.blog.teotigraphix.com

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


[flexcoders] Re: Sub-Objects in AdvancedDataGrid?

2008-08-08 Thread gerhard.schlager
--- In flexcoders@yahoogroups.com, "tudsy" <[EMAIL PROTECTED]> wrote:
>
> I seem to recall seeing this issue discussed, but can't find it right
> now...

I had a few problems with this too [1]. There's a link to a small demo
which shows how it could work, however, there's still the problem with
the binding and automatic updates of the displayed content. I managed
to do this with lots of event listeners that dispatch the events from
sub-objects ...

In case you want to use the sort function in the grid you have to
implement a custom sortCompareFunction as well. However, there are a
few problems. Please look at my bug report (with a possible
workaround) at [2].

HTH
Gerhard

[1] http://tech.groups.yahoo.com/group/flexcoders/message/119270
[2] https://bugs.adobe.com/jira/browse/FLEXDMV-1817




RE: [flexcoders] Re: How to display the vertical scrollbar of a container on the left

2008-08-08 Thread Alex Harui
Override updatedisplaylist, override viewMetrics, cross your fingers.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of haykelbj
Sent: Friday, August 08, 2008 8:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to display the vertical scrollbar of a
container on the left



So, no responses/suggestions?

Ok I'm trying some things and as soon as I have something usable I'll
post it here.

But in the meantime I have a question to the Adobe SDK developers:
Will Gumbo support RTL components? When you set the direction of a
component to "rtl" for example, it will mirror its children and align
them to the right (basically set the origin of the x-axis in the
component to the right).

Bye,
Haykel

--- In flexcoders@yahoogroups.com 
, "haykelbj" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> Is there a way to display the vertical scrollbar of a container on the
> left side? It would be nice if there's a general solution, otherwise
> I'm specially interested by the Canvas container.
> 
> Thanks,
> Haykel
>



 


[flexcoders] Re: Question about Changewatch?

2008-08-08 Thread haykelbj
Did you declare the variable "theChange" as Bindable?

This works for me:


http://www.adobe.com/2006/mxml";
layout="absolute" creationComplete="init()">
 
 
 
 



--- In flexcoders@yahoogroups.com, "markflex2007" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
>
> I did a simple test for changewatch.I try to watch a variable
> change.but I am not sure why it doesn't work.
>
> (variable "theChange" change from true to false)
>
> The code is here:
>
>  BindingUtils.bindProperty(this,"onChange", this, "theChange"
);
>
>  }
>
>   public function  set onChange (value:Boolean):void
>  {
>  Alert.show ("change happen");
>  }
>
>
>
>   private function finishit():void{
>
> theChange = true;
> theChange = false;
>
>
>
>   }
>
>
>  ]]>
> 
>
>
>  
>
>
> 
>
> Thanks for help
>
> Mark
>



RE: [flexcoders] URL deeplinking or other?

2008-08-08 Thread Alex Harui
deeplinking = BrowserManager.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexaustin
Sent: Friday, August 08, 2008 10:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] URL deeplinking or other?



Does anyone know the best way or anyway to pass an URL into a Flex app
in order move to the correct state? 

So if I have an app -> Panel -> itemrender and I want to display one
of them items (which when selected grows and expands) when it receives
a certain URL. Is this possible and has anyone seen this or done
anything like this?

Whats the best approach. Thanks for all the help and thanks in advance
on this one.



 


[flexcoders] Re: WindowedApplication custom close / exit

2008-08-08 Thread aphexyuri
Thanks
I actually just figured that out right after I made the post...it
always works like that...thanks anyways!

--- In flexcoders@yahoogroups.com, "marcel.panse" <[EMAIL PROTECTED]>
wrote:
>
> There is a close and closing event on windowedApplication. You could
> probably just catch those and use something like
> event.preventDefault() when you don't want it to close.
> 
> This works:
> 
>  xmlns:mx="http://www.adobe.com/2006/mxml";>
> 
> 
> 
> 
> 
> grtz,
> marcel
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > I think you want:
> >  
> > flash.events.Event.EXITING
> >
 > G>  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of aphexyuri
> > Sent: Thursday, August 07, 2008 2:16 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] WindowedApplication custom close / exit
> > 
> > 
> > 
> > Hi
> > I need some help preventing window close, on system chrome close
> > button click.
> > 
> > Basically, what I would like to do, is check for a condition when the
> > user clicks the system chrome close btn. It the condition states its
> > ok, I'd like to call app.exit(), and if not, perform other actions.
> > 
> > Any help will be appreciated.
> >
>




Re: [flexcoders] How do you update your Flex Builder SDK?

2008-08-08 Thread Matt Chotin
Create new SDK directories is the recommendation.  That way if you don't' like 
something you have an easy way to revert.


On 8/8/08 10:41 AM, "Rick Schmitty" <[EMAIL PROTECTED]> wrote:




Ah, thank you.  Is it recommended you update the Flex 3 SDK directly
or create a new SDK directory such that you have

Flex 2.0.1 Hotfix 3
Flex 3 (sdk that shipped with flex builder)
Flex 3.0.x (latest stable release)
and while I'm at it, if I wanted to look at the new flash player features
Flex 3.x  Nightly build

On Fri, Aug 8, 2008 at 10:30 AM, Matt Chotin <[EMAIL PROTECTED] 
 > wrote:
> http://opensource.adobe.com/wiki/display/flexsdk/Using+Flex+3+Builds+in+Flex+Builder
>
> On 8/8/08 10:28 AM, "Rick Schmitty" <[EMAIL PROTECTED] 
>  > wrote:
>
> Perhaps the dumbest question of the day... but how do you update your
> Flex Builder if there has been a bug that was fixed?
>
> http://bugs.adobe.com/jira/browse/SDK-3323
>
> I'm on a mac if that matters...
>
>




Re: [flexcoders] How do you update your Flex Builder SDK?

2008-08-08 Thread Rick Schmitty
Ah, thank you.  Is it recommended you update the Flex 3 SDK directly
or create a new SDK directory such that you have

Flex 2.0.1 Hotfix 3
Flex 3 (sdk that shipped with flex builder)
Flex 3.0.x (latest stable release)
and while I'm at it, if I wanted to look at the new flash player features
Flex 3.x  Nightly build


On Fri, Aug 8, 2008 at 10:30 AM, Matt Chotin <[EMAIL PROTECTED]> wrote:
> http://opensource.adobe.com/wiki/display/flexsdk/Using+Flex+3+Builds+in+Flex+Builder
>
> On 8/8/08 10:28 AM, "Rick Schmitty" <[EMAIL PROTECTED]> wrote:
>
> Perhaps the dumbest question of the day... but how do you update your
> Flex Builder if there has been a bug that was fixed?
>
> http://bugs.adobe.com/jira/browse/SDK-3323
>
> I'm on a mac if that matters...
>
> 


Re: [flexcoders] How do you update your Flex Builder SDK?

2008-08-08 Thread Matt Chotin
http://opensource.adobe.com/wiki/display/flexsdk/Using+Flex+3+Builds+in+Flex+Builder


On 8/8/08 10:28 AM, "Rick Schmitty" <[EMAIL PROTECTED]> wrote:




Perhaps the dumbest question of the day... but how do you update your
Flex Builder if there has been a bug that was fixed?

http://bugs.adobe.com/jira/browse/SDK-3323

I'm on a mac if that matters...




[flexcoders] How do you update your Flex Builder SDK?

2008-08-08 Thread Rick Schmitty
Perhaps the dumbest question of the day... but how do you update your
Flex Builder if there has been a bug that was fixed?

http://bugs.adobe.com/jira/browse/SDK-3323

I'm on a mac if that matters...


[flexcoders] Re: Using Create App from DB - Saving decimal number 123.123??

2008-08-08 Thread Tim Hoff
nice!

--- In flexcoders@yahoogroups.com, Blair Cox <[EMAIL PROTECTED]> wrote:
>
> No, you were correct. It also uses float, however long was already 
in the
> code, just not used. I made a couple changes and works like a 
charm. All I¹m
> really doing is passing along the variable from the user end and 
storing it
> in the db, so I don¹t need to perform any calculations along the 
way.
> 
> Cheers,
> 
> -- 
> Blair
> 
> 
> 
> 
> From: Tim Hoff <[EMAIL PROTECTED]>
> Reply-To: 
> Date: Fri, 08 Aug 2008 15:37:49 -
> To: 
> Subject: [flexcoders] Re: Using Create App from DB - Saving decimal 
number
> 123.123??
> 
>  
>  
> 
> Oh sorry, been in the java world too "long".  I beleive that php 
uses
> Float; instead of double or long.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com  ,
> Blair Cox  wrote:
> >
> > Ha, too funny ;) I thought it was a simple matter of changing the
> script. It
> > is set to Number on the flex side and int of the php. Sorry, did
> you say to
> > set it to Œlong¹? (or is that log?) I¹ll look up the options 
within
> php, but
> > I¹m not familiar with this one.
> > 
> > Cheers! Thanks for the assistance.
> > 
> > -- 
> > Blair 
> > 
> > 
> > 
> > 
> > From: Tim Hoff 
> > Reply-To: mailto:flexcoders%
40yahoogroups.com> >
> > Date: Thu, 07 Aug 2008 20:26:02 -
> > To: mailto:flexcoders%
40yahoogroups.com> >
> > Subject: [flexcoders] Re: Using Create App from DB - Saving 
decimal
> number
> > 123.123??
> > 
> >  
> >  
> > 
> > 
> > No, you're stuck using just int for the rest of your programming
> > existence.  Ha, just kidding.  :)  Just change it to a long on the
> php
> > side.  And change it to a Number on the flex side.
> > 
> > -TH
> >
>




[flexcoders] introspection - remote object

2008-08-08 Thread marioa00
hi, i'm using flex to create an application (client)  that shows the
methods and  parameters that are in a java file, and this file is in
my blazeds server. 

i have a remote object define as:

var ro : RemoteObject = new RemoteObject(); 
ro.destination = entryVO.destinationVar;

i just need to get the methods within this object and show them in
flex.. i thought i could use reflexion (getDefinitionByName and
describeType), but it hadn't worked for me.

any help will be appreaciated.

thanks  

 





[flexcoders] URL deeplinking or other?

2008-08-08 Thread flexaustin
Does anyone know the best way or anyway to pass an URL into a Flex app
in order move to the correct state? 

So if I have an app -> Panel -> itemrender and I want to display one
of them items (which when selected grows and expands) when it receives
a certain URL.  Is this possible and has anyone seen this or done
anything like this?

Whats the best approach. Thanks for all the help and thanks in advance
on this one.





Re: [flexcoders] Re: Using Create App from DB - Saving decimal number 123.123??

2008-08-08 Thread Blair Cox
No, you were correct. It also uses float, however long was already in the
code, just not used. I made a couple changes and works like a charm. All I¹m
really doing is passing along the variable from the user end and storing it
in the db, so I don¹t need to perform any calculations along the way.

Cheers,

-- 
Blair




From: Tim Hoff <[EMAIL PROTECTED]>
Reply-To: 
Date: Fri, 08 Aug 2008 15:37:49 -
To: 
Subject: [flexcoders] Re: Using Create App from DB - Saving decimal number
123.123??

 
 

Oh sorry, been in the java world too "long".  I beleive that php uses
Float; instead of double or long.

-TH

--- In flexcoders@yahoogroups.com  ,
Blair Cox <[EMAIL PROTECTED]> wrote:
>
> Ha, too funny ;) I thought it was a simple matter of changing the
script. It
> is set to Number on the flex side and int of the php. Sorry, did
you say to
> set it to Œlong¹? (or is that log?) I¹ll look up the options within
php, but
> I¹m not familiar with this one.
> 
> Cheers! Thanks for the assistance.
> 
> -- 
> Blair 
> 
> 
> 
> 
> From: Tim Hoff <[EMAIL PROTECTED]>
> Reply-To: mailto:flexcoders%40yahoogroups.com> >
> Date: Thu, 07 Aug 2008 20:26:02 -
> To: mailto:flexcoders%40yahoogroups.com> >
> Subject: [flexcoders] Re: Using Create App from DB - Saving decimal
number
> 123.123??
> 
>  
>  
> 
> 
> No, you're stuck using just int for the rest of your programming
> existence.  Ha, just kidding.  :)  Just change it to a long on the
php
> side.  And change it to a Number on the flex side.
> 
> -TH
> 



[flexcoders] Question about Changewatch?

2008-08-08 Thread markflex2007
Hi,

I did a simple test for changewatch.I try to watch a variable
change.but I am not sure why it doesn't work.

(variable "theChange" change from true to false)

The code is here:

 BindingUtils.bindProperty(this,"onChange", this, "theChange" );

} 

 public function  set onChange (value:Boolean):void
{
Alert.show ("change happen");
}  

 

private function finishit():void{

  theChange = true;   
  theChange = false;
  
   
  
} 


]]>

 
 

 

 

Thanks for help

Mark






[flexcoders] Re: Flex access of RMI server

2008-08-08 Thread ron_mori
Fidel,
I appreciate your input.  

Sometimes you get to choose the pieces of the application and
sometimes you don't.. in this case I don't.  The client is pondering a
number of communication protocol options for his app - RMI being just
one.  I'm constantly presented the questions: Can you connect to [fill
in blank]?

So RMI - one solution I have constructed to provide the widest set of
options, is to build a java backend / proxy server using Remote
Objects.  That java code base can relay requests to whatever protocol
comes my way.  The risk is the performance hit of adding another call.
 But most times I can answer - "Sure we can do that, it's software we
can do anything!"

thanks again



[flexcoders] Re: Using Create App from DB - Saving decimal number 123.123??

2008-08-08 Thread Tim Hoff
Oh sorry, been in the java world too "long".  I beleive that php uses 
Float; instead of double or long.  

-TH

--- In flexcoders@yahoogroups.com, Blair Cox <[EMAIL PROTECTED]> wrote:
>
> Ha, too funny ;) I thought it was a simple matter of changing the 
script. It
> is set to Number on the flex side and int of the php. Sorry, did 
you say to
> set it to Œlong¹? (or is that log?) I¹ll look up the options within 
php, but
> I¹m not familiar with this one.
> 
> Cheers! Thanks for the assistance.
> 
> -- 
> Blair 
> 
> 
> 
> 
> From: Tim Hoff <[EMAIL PROTECTED]>
> Reply-To: 
> Date: Thu, 07 Aug 2008 20:26:02 -
> To: 
> Subject: [flexcoders] Re: Using Create App from DB - Saving decimal 
number
> 123.123??
> 
>  
>  
> 
> 
> No, you're stuck using just int for the rest of your programming
> existence.  Ha, just kidding.  :)  Just change it to a long on the 
php
> side.  And change it to a Number on the flex side.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com  ,
> "cox.blair"  wrote:
> >
> > I'm using the Create Application from database for testing and I'm
> > just wondering on earth it appears to only update whole numbers 
to the
> > table? It will not pass a decimal number to the database? I see 
in the
> > php 'int', can I change this to allow it to store 123.123 instead?
> >
> > Really, whole numbers are pretty useless, I must be missing 
something,
> > right?
> >
> > Thanks,
> >
>




[flexcoders] Re: filtering a flex datagrid using a slider with two thumbs

2008-08-08 Thread Tim Hoff

No worries,

It looks like your filter function already uses the comboBox's
selectedLabel to compare.  You can initiate the filter like this:

private function filterDataGrid():void
{
 myArrayCollection.filterFunction = myFilterFunction;
 myArrayCollection.refresh();
}






-TH

--- In flexcoders@yahoogroups.com, "stinasius" <[EMAIL PROTECTED]> wrote:
>
> hi guys i hope am not being a pain, but how can i use a combo box and
> a slider (two thumbed) to fliter a datagrid? a small code sample will
> do it. thanks.
>




[flexcoders] Re: How to display the vertical scrollbar of a container on the left

2008-08-08 Thread haykelbj
So, no responses/suggestions?

Ok I'm trying some things and as soon as I have something usable I'll
post it here.

But in the meantime I have a question to the Adobe SDK developers:
Will Gumbo support RTL components? When you set the direction of a
component to "rtl" for example, it will mirror its children and align
them to the right (basically set the origin of the x-axis in the
component to the right).

Bye,
Haykel

--- In flexcoders@yahoogroups.com, "haykelbj" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> Is there a way to display the vertical scrollbar of a container on the
> left side? It would be nice if there's a general solution, otherwise
> I'm specially interested by the Canvas container.
> 
> Thanks,
> Haykel
>




Re: [flexcoders] Flex is time consumming

2008-08-08 Thread Paul Andrews
Presumably you don't have 4,000 lines of code in one file, which would be 
asking for trouble. The other thing to do is to turn off automatic builds in 
flexbuilders preferences.

Paul

- Original Message - 
From: "litesh_b321" <[EMAIL PROTECTED]>
To: 
Sent: Friday, August 08, 2008 2:45 PM
Subject: [flexcoders] Flex is time consumming


> Hi guys,
> I am facing a problem while working on flex builder 3.0
>
> Problem description :
>
> My application consist around 4000 line of code where i am binding
> 2000 XML with different ids. now whenever i want to edit any line of
> code  or if i want to delete any line of code flex is taking too much
> time   for process.
> And if the time out happen then flex is throwing the error of JVM
> that "JVM terminated.Exit code = 1"
> i increased JVM memory till 512 MB by configuring JRE file
>
> Why this is happening
> Please help me out
> ThanX
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
> Links
>
>
>
> 



[flexcoders] Re: CursorManager problem - custom cursor disappears

2008-08-08 Thread ferriejbank
Thanks Alex,

I see that's the problem and I was able to make
a work-a-round by delaying the intense processing
some milliseconds so at least the cursor image will
change into the busy cursor (before freezing - but
I can live with that, as long as the user gets a clue
of what's happening).

Obviously the point I missed is that the busy cursor
is intended for asynchrounous processes, i.e. not the
user's machine being busy, but some external process
we're expecting feedback from is busy.

If the user's machine itself is so busy that one would
like to show a busy cursor, you're already too late,
as the system is too busy to even show that busy cursor.

It took me a while to realize that, but I've got it now ;-)

Thanks,
Ferrie

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> The cursor won't draw until code stops running.
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of ferriejbank
> Sent: Thursday, August 07, 2008 5:59 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] CursorManager problem - custom cursor disappears
> 
> 
> 
> Hi,
> 
> I'm having this really weird problem in Flex 2.0.1 using LCDS ES 2.5.1
> where whatever I do using CursorManager to change the cursor (like to
> activate the BusyCursor or any kind of custom cursor, no matter what
> priority) all my mouse pointer does is just disappear into nothing.
> 
> As soon as I reset the BusyCursor or remove my custom one, the
> original regular mouse pointer image is restored.
> 
> The thing that really drives me crazy is that standard component
> classes like mx.rpc.http.mxml.HTTPService make the same call
> succesfully! In the same application.
> 
> I tried all kinds of workarounds, like employing callLater() so I
> could do the time consuming stuff from a separate function call (so
> the pointer will be updated), but that doesn't help. The mouse pointer
> is actually instantly updated but simply disappears instead of showing
> the different cursor.
> 
> Any ideas on this? Did anyone ever had a similar experience?
> 
> Regards,
> Ferrie
>




RE: [flexcoders] Force UI update during intense AS work

2008-08-08 Thread Gregor Kiddie
If you throw us your scanning code, someone might be able to give you
some pointers.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

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

Registered Number: 1788577

Registered in the UK

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

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



From: ashish [mailto:[EMAIL PROTECTED] 
Sent: 08 August 2008 14:39
To: flexcoders@yahoogroups.com
Cc: Gregor Kiddie
Subject: Re: [flexcoders] Force UI update during intense AS work

 

Hi Kiddie,

 

Thanks for your quick reply.

 

you are right and I also know this is the only solution. but problem is
that how to separate the workup into chunks. Actually I am reading tree
nodes recursively and unable to divide this recursive logic into chunks.
Infect I have to make a XML by scanning all the file system files like
this 

 

  
   









   
   
   
   
   
 

how can I divide the scanning logic into chunks. pls guide me for the
same and any code regarding this would be highly appreciated.

 

Thanks & Regards

Ashish Verma

 

- Original Message - 

From: Gregor Kiddie   

To: flexcoders@yahoogroups.com 

Sent: Friday, August 08, 2008 5:43 PM

Subject: RE: [flexcoders] Force UI update during intense AS work

 

The only real solution for this (as I'm sure you've discovered)
is to try and separate the work up into chunks, allowing the UI to be
updated in between these chunks.

Until we get multiple threading, you have to limit the amount of
work you are doing at any one time if you want the UI to keep up.

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

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

Registered Number: 1788577

Registered in the UK

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

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





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of verma.java
Sent: 08 August 2008 06:40
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Force UI update during intense AS work

Hello All,

I am Ashish. I am working in Adobe Flex & AIR from last six
months 
only. I have a problem that anyone will have been faced in
flex/air of 
updaing UI during the intense AS work before. Actually I am
reading the 
OS File System and making a XML file that would work as data
provider 
for a Tree control which will render in AdvancedGrid. I am able
to read 
each and every node but thing is that UI is not updating during 
scanning; the same problem like i read in this post
(http://www.mail-
archive.com/flexcoders@yahoogroups.com
 /msg06477.html) and
also approach 
for solution, but i am unable to implement it. 

Could anyone please guide me in this situation? if anyone have
any code 
regarding that would be more appriciated. 

Looking for forward response.

Best Regards,
Ashish Verma 

 



[flexcoders] Flex is time consumming

2008-08-08 Thread litesh_b321
Hi guys,
I am facing a problem while working on flex builder 3.0

Problem description :

My application consist around 4000 line of code where i am binding
2000 XML with different ids. now whenever i want to edit any line of
code  or if i want to delete any line of code flex is taking too much
time   for process.
And if the time out happen then flex is throwing the error of JVM
that "JVM terminated.Exit code = 1" 
i increased JVM memory till 512 MB by configuring JRE file 

Why this is happening 
Please help me out 
ThanX




[flexcoders] Re: WindowedApplication custom close / exit

2008-08-08 Thread marcel.panse
There is a close and closing event on windowedApplication. You could
probably just catch those and use something like
event.preventDefault() when you don't want it to close.

This works:

http://www.adobe.com/2006/mxml";>





grtz,
marcel

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I think you want:
>  
> flash.events.Event.EXITING
>  G>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of aphexyuri
> Sent: Thursday, August 07, 2008 2:16 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] WindowedApplication custom close / exit
> 
> 
> 
> Hi
> I need some help preventing window close, on system chrome close
> button click.
> 
> Basically, what I would like to do, is check for a condition when the
> user clicks the system chrome close btn. It the condition states its
> ok, I'd like to call app.exit(), and if not, perform other actions.
> 
> Any help will be appreciated.
>




[flexcoders] Re: Multiple Builder instances / windows?

2008-08-08 Thread Amy
--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Thursday 07 Aug 2008, Amy wrote:
> > If you use the Help a lot it can go much higher, especially if you 
have
> > more than one Help window open at a time.
> 
> Oh, right.
> I use the online help because it'll be more up to date, and possibly 
have some 
> useful comments.

But, as I've said before, it's impossible to search with any 
precision :-).  For me, it's all about getting the information fast.  
You probably have less need of the help anyway.



[flexcoders] Re: Force UI update during intense AS work

2008-08-08 Thread marcel.panse
Yeah try to break up large for-loops. Use
Application.application.callLater() to call a method, that will give
the UI time to update before calling the method.

For example you could like loop through 1000 items and use the
callLater method every 100 items to update the UI.

gr
marcel


--- In flexcoders@yahoogroups.com, "Gregor Kiddie" <[EMAIL PROTECTED]> wrote:
>
> The only real solution for this (as I'm sure you've discovered) is to
> try and separate the work up into chunks, allowing the UI to be updated
> in between these chunks.
> 
> Until we get multiple threading, you have to limit the amount of work
> you are doing at any one time if you want the UI to keep up.
> 
> Gk.
> 
> Gregor Kiddie
> Senior Developer
> INPS
> 
> Tel:   01382 564343
> 
> Registered address: The Bread Factory, 1a Broughton Street, London SW8
> 3QJ
> 
> Registered Number: 1788577
> 
> Registered in the UK
> 
> Visit our Internet Web site at www.inps.co.uk
> http://www.inps.co.uk/> 
> 
> The information in this internet email is confidential and is intended
> solely for the addressee. Access, copying or re-use of information in it
> by anyone else is not authorised. Any views or opinions presented are
> solely those of the author and do not necessarily represent those of
> INPS or any of its affiliates. If you are not the intended recipient
> please contact [EMAIL PROTECTED]
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of verma.java
> Sent: 08 August 2008 06:40
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Force UI update during intense AS work
> 
>  
> 
> Hello All,
> 
> I am Ashish. I am working in Adobe Flex & AIR from last six months 
> only. I have a problem that anyone will have been faced in flex/air of 
> updaing UI during the intense AS work before. Actually I am reading the 
> OS File System and making a XML file that would work as data provider 
> for a Tree control which will render in AdvancedGrid. I am able to read 
> each and every node but thing is that UI is not updating during 
> scanning; the same problem like i read in this post (http://www.mail-
> archive.com/flexcoders@yahoogroups.com
>  /msg06477.html) and
> also approach 
> for solution, but i am unable to implement it. 
> 
> Could anyone please guide me in this situation? if anyone have any code 
> regarding that would be more appriciated. 
> 
> Looking for forward response.
> 
> Best Regards,
> Ashish Verma
>




Re: [flexcoders] Force UI update during intense AS work

2008-08-08 Thread George
You cannot do anything if you do not ask Flex to update.

If you want to 'display something' before you finally update data 
provider, give an early collection of data provider (smaller and fast) 
to ask DataGrid could update.

George

verma.java wrote:
>
> Hello All,
>
> I am Ashish. I am working in Adobe Flex & AIR from last six months
> only. I have a problem that anyone will have been faced in flex/air of
> updaing UI during the intense AS work before. Actually I am reading the
> OS File System and making a XML file that would work as data provider
> for a Tree control which will render in AdvancedGrid. I am able to read
> each and every node but thing is that UI is not updating during
> scanning; the same problem like i read in this post (http://www.mail-
> archive.com/flexcoders@yahoogroups.com 
> /msg06477.html) and 
> also approach
> for solution, but i am unable to implement it.
>
> Could anyone please guide me in this situation? if anyone have any code
> regarding that would be more appriciated.
>
> Looking for forward response.
>
> Best Regards,
> Ashish Verma
>
> _



[flexcoders] Re: Resizing a Loader object image

2008-08-08 Thread marcel.panse
Just put the loader loaded data into a Image object and show the Image
object in your canvas, set the height and with in your Image object to
make it scale.

If you really want to actual resize the bitmapdata you can do
something like: 

public static function resizePhotoBitmapData(bitmapData:BitmapData,
targetWidth:Number):BitmapData { 
//get the scale factors
var scale:Number = targetWidth / bitmapData.width;

//create the new bitmapdata with the new width/height
var bmd:BitmapData = new BitmapData(bitmapData.width * scale,
bitmapData.height * scale);
var m:Matrix = new Matrix(); 
m.scale(scale, scale); //create a scaling matrix
bmd.draw(bitmapData, m, null, null, null, true); //and draw the new
picture to the bitmapdata

return bmd;
}


grtz,
marcel panse


--- In flexcoders@yahoogroups.com, "Joy" <[EMAIL PROTECTED]> wrote:
>
> Hi
>   I have a loader() object, which is loading "new URLRequest(
> thumbSmall )" image. But I am not able to resize the width n height of
> this. Please let me know how we can do it.
> Thanks in advance.
>




[flexcoders] Re: LCDS: how to fetch the items from lazy collection

2008-08-08 Thread marcel.panse
This is a backend problem not a flex problem. Your java backend
application fetches the data lazily from the database, which means he
doesn't fetch it at all until you need it at runtime. When you send
this lazily loaded object through LCDS over the line to your flex
application it loses the ability to runtime fetch the lazy collection
from the database (because you are already on the client machine, not
on the server anymore, not in session). 

Just make sure whatever you send through LCDS over the wire is not
lazily loaded. So load all collection explicitly with hibernate before
you send them. Or better yet don't send hibernate objects of the wire
at all, create DTO (Data Transfer Objects; search for DTO design
pattern) objects instead. Load everything you need in your flex
application into the DTO and send that over to your flex app.

gr
marcel



--- In flexcoders@yahoogroups.com, "zdenekmikan" <[EMAIL PROTECTED]> wrote:
>
> I was able to solve my problem with following async loop, but I
wonder if there is some 
> simpler solution.
> 
> private var itemArray:ArrayCollection
> private var index:int;
> private var count:int;
> private var noIPE:Boolean;
> 
> public function execute(cgEvent:CairngormEvent):void
> {
>   count = itemArray.length;
>   index = 0;
>   noIPE = true;
>   
>   start();
> }
> 
> private function start():void
> { 
>   try
>   {
>   trace("start: " + index);
>   while((noIPE == true) && (index < count))
>   {
>   processItem(null, itemArray.getItemAt(index) as 
> ItemDTO);
>   }
>   }
>   catch(ipe:ItemPendingError)
>   {
>   noIPE = false;
>   trace("item pending error: " + index);
>   ipe.addResponder(new ItemResponder(processItem, fetchError));
>   }
> }
>   
> private function fetchError(message:ErrorMessage):void
> {
>   trace("error fetching item: " + message.faultString);
> }
> 
> private function processItem(data:Object, item:ItemDTO = null):void
> {
>   trace("processItem: " + index);
>   if(item == null)
>   item = itemArray.getItemAt(index) as ItemDTO;
>   
>   .
>   
>   index++;
>   if(index < count)
>   {
>   if(noIPE == false)
>   {
>   noIPE = true;
>   start();
>   }
>   }
>   else
>   {
>   finish();
>   }
> }
> 
> 
> --- In flexcoders@yahoogroups.com, Zdenek Mikan  wrote:
> >
> > I have an ArrayCollection which is filled from the LCDS/Hibernate 
> > destination with lazy=true. For display it is OK, but for export I
need 
> > to go through all items to send them to output. Is there any way
how to 
> > force fetch all items from the server?
> > 
> > BTW the sample in LCDS ES 2.6 Developer Guide on page 242-243 is
wrong - 
> > you will get the ipe exception on line with ipe.addResponder in catch 
> > clause.
> > 
> > Zdenek M
> >
>




[flexcoders] Resizing a Loader object image

2008-08-08 Thread Joy
Hi
  I have a loader() object, which is loading "new URLRequest(
thumbSmall )" image. But I am not able to resize the width n height of
this. Please let me know how we can do it.
Thanks in advance.



[flexcoders] Re: New to Adobe AIR - SQLite

2008-08-08 Thread tech.sivakami
i got output.thank u.
--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Thursday 07 Aug 2008, tech.sivakami wrote:
> > i tried some simple
> > examples on using this SQLite but i couldnt retrieve data from that or
> > even to update database.anyone knows about this or having any idea pls
> > let me know.
> 
> You forgot to include the code or the error.
> 
> -- 
> Tom Chiverton
> 
> 
> 
> 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. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  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] Event Handling

2008-08-08 Thread Gregor Kiddie
The example you've given isn't a parent / child scenario, it is two
components at the same level.

If you add the listener and dispatch the event to / from the component
which contains the two components, you may have more luck.

i.e. parent.addEventListener( ... ) and parent.dispatchEvent( ... )

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

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

Registered Number: 1788577

Registered in the UK

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

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



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mekaprakashraju
Sent: 08 August 2008 09:16
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Event Handling

 

Hi All,

Is there a way that parent will push an event to its child.

for example



.
.
this.dispatchEvent( XEvent );



this.addEventListener( XEvent, onXEvent );

function onXEvent( XEvent ) : void {
I need XEvent here


} 



any ideas ?

 



RE: [flexcoders] Re: Set background color of special dates in DateField

2008-08-08 Thread Gregor Kiddie
Possibly DateField.selectableRange is what Tom meant?

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

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

Registered Number: 1788577

Registered in the UK

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

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



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kruse.morten
Sent: 08 August 2008 13:10
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Set background color of special dates in
DateField

 

--- In flexcoders@yahoogroups.com 
, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Thursday 07 Aug 2008, kruse.morten wrote:
> > Is this possible?
> 
> selectedRanges
> 
> -- 
> Tom Chiverton
> 

Hi Tom,

There is no selectedRanges property on the DateField!

 



RE: [flexcoders] Force UI update during intense AS work

2008-08-08 Thread Gregor Kiddie
The only real solution for this (as I'm sure you've discovered) is to
try and separate the work up into chunks, allowing the UI to be updated
in between these chunks.

Until we get multiple threading, you have to limit the amount of work
you are doing at any one time if you want the UI to keep up.

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

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

Registered Number: 1788577

Registered in the UK

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

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



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of verma.java
Sent: 08 August 2008 06:40
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Force UI update during intense AS work

 

Hello All,

I am Ashish. I am working in Adobe Flex & AIR from last six months 
only. I have a problem that anyone will have been faced in flex/air of 
updaing UI during the intense AS work before. Actually I am reading the 
OS File System and making a XML file that would work as data provider 
for a Tree control which will render in AdvancedGrid. I am able to read 
each and every node but thing is that UI is not updating during 
scanning; the same problem like i read in this post (http://www.mail-
archive.com/flexcoders@yahoogroups.com
 /msg06477.html) and
also approach 
for solution, but i am unable to implement it. 

Could anyone please guide me in this situation? if anyone have any code 
regarding that would be more appriciated. 

Looking for forward response.

Best Regards,
Ashish Verma 

 



[flexcoders] Re: Set background color of special dates in DateField

2008-08-08 Thread kruse.morten
--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Thursday 07 Aug 2008, kruse.morten wrote:
> > Is this possible?
> 
> selectedRanges
> 
> -- 
> Tom Chiverton
> 

Hi Tom,

There is no selectedRanges property on the DateField!



[flexcoders] Force UI update during intense AS work

2008-08-08 Thread verma.java
Hello All,

I am Ashish. I am working in Adobe Flex & AIR from last six months 
only. I have a problem that anyone will have been faced in flex/air of 
updaing UI during the intense AS work before. Actually I am reading the 
OS File System and making a XML file that would work as data provider 
for a Tree control which will render in AdvancedGrid. I am able to read 
each and every node but thing is that UI is not updating during 
scanning; the same problem like i read in this post (http://www.mail-
archive.com/flexcoders@yahoogroups.com/msg06477.html) and also approach 
for solution, but i am unable to implement it. 

Could anyone please guide me in this situation? if anyone have any code 
regarding that would be more appriciated. 

Looking for forward response.

Best Regards,
Ashish Verma   



[flexcoders] Sub-Objects in AdvancedDataGrid?

2008-08-08 Thread tudsy
I seem to recall seeing this issue discussed, but can't find it right
now...

I want to display properties of a sub-object of an object in my
dataProvider as a column in my AdvancedDataGrid. The data is hierarchical.

Something like (not the actual code):

public class House{
  public function House(){}
  public var rooms:ArrayCollection=new ArrayCollection /*contains
names of rooms*/
  public var data:HouseStats 
}

public class HouseStats{
  public function HouseStats(){}
  public var squareFeet:int
  public var address:String
}

I want to use an ArrayCollection containing objects of type House for
the adg, (and use rooms as the childrenField).  Primarily, I want to
have columns for the data.squareFeet and data.address fields.

I realize I could include these properties as part of the House
object, but it's more complicated and I have reasons for wanting to
keep things seperate.





[flexcoders] Event Handling

2008-08-08 Thread mekaprakashraju
Hi All,

Is there a way that parent will push an event to its child.

for example


  
.
.
this.dispatchEvent( XEvent );
  

  
this.addEventListener( XEvent, onXEvent );

function onXEvent( XEvent ) : void {
  I need XEvent here
  
  
}  
  



any ideas ?





[flexcoders] Re: Different separator line colors on AdvancedDatagrid

2008-08-08 Thread Pun Sophany
I have resolved my problem by overriding  drawRowBackgrounds() in
AdvancedDatagrid. This method is called each time I make a vertical
scroll.

 public class MyADG extends AdvancedDataGrid
 {
 public function MYADG()
 {
 super();
 }

  override protected function drawRowBackgrounds():void {
  super.drawRowBackgrounds();

 var rowBGs:Sprite =
Sprite(listContent.getChildByName("rowBGs"));
 var lineCol:uint = getStyle("horizontalGridLineColor");

 if (!rowBGs)
 {
 rowBGs = new FlexSprite();
 rowBGs.mouseEnabled = false;
 rowBGs.name = "rowBGs";
 listContent.addChildAt(rowBGs, 0);
 }
 var g:Graphics=rowBGs.graphics;
 var curRow:int = 0;
 var n:int = listItems.length;

 while (curRow < n)
 {
 try {
 var myObj:Object = listItems[curRow][0].data;
 if (myObj.phone == "555-219-2270") {
 g.lineStyle(1, 0x00ff00);
 } else {
 g.lineStyle(1, lineCol);
 }
 g.moveTo(0,rowInfo[curRow].y+1);
 g.lineTo(width,rowInfo[curRow].y+1);
 } catch (e:Error) {
 trace(e.getStackTrace());
 }
 curRow++;
 }
 while (rowBGs.numChildren > 0)
 {
 rowBGs.removeChildAt(rowBGs.numChildren - 1);
 }
 }

 }

Sophany


--- In flexcoders@yahoogroups.com, "Pun Sophany" <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I want to draw horizontal separators between rows with different line
> colors depending on the row data.
> I tried to use optimized item renderers but the performance was still
> too slow during vertical scrolling.
> I also tried to extend AdvancedDatagridItemRenderer and set border at
> true. But I couldn't choose border sides and I only want a border on
the
> bottom side.
> Next I attempted to override the drawHorizontalLine method from
> AdvancedDatagrid class:
> drawHorizontalLine is called from drawHorizontalSeparators().
>
> override protected function drawHorizontalLine(s:Sprite, rowIndex:int,
> color:uint, y:Number):void {
>  if(indexToItemRenderer(rowIndex) != null) {
>  var myObj:Object = indexToItemRenderer(rowIndex).data;
>  var g:Graphics = s.graphics;
>  if (myObj.name == "John") {
>  g.lineStyle(1, 0xff);
>  g.moveTo(0, y);
>  g.lineTo(width, y);
>  } else {
>  g.lineStyle(1, 0x00);
>  g.moveTo(0, y);
>  g.lineTo(width, y);
>  }
>  }
> }
>
> The first display is correct. But after a vertical scroll, horizontal
> lines keep their position and are not redrawn no matter what the row
is,
> because drawHorizontalSeparators() is not recalled.
> So I tried to call drawHorizontalSeparators() on Scroll event:
failure,
> separator lines on top and bottom rows disappear during the vertical
> scroll.
>
> Is there a way I can draw different horizontal separators depending on
> data without using item renderers?
>
> Thanks in advance.
>
> Sophany
>




Re: [flexcoders] Re: Using Create App from DB - Saving decimal number 123.123??

2008-08-08 Thread Blair Cox
Ha, too funny ;) I thought it was a simple matter of changing the script. It
is set to Number on the flex side and int of the php. Sorry, did you say to
set it to Œlong¹? (or is that log?) I¹ll look up the options within php, but
I¹m not familiar with this one.

Cheers! Thanks for the assistance.

-- 
Blair 




From: Tim Hoff <[EMAIL PROTECTED]>
Reply-To: 
Date: Thu, 07 Aug 2008 20:26:02 -
To: 
Subject: [flexcoders] Re: Using Create App from DB - Saving decimal number
123.123??

 
 


No, you're stuck using just int for the rest of your programming
existence.  Ha, just kidding.  :)  Just change it to a long on the php
side.  And change it to a Number on the flex side.

-TH

--- In flexcoders@yahoogroups.com  ,
"cox.blair" <[EMAIL PROTECTED]> wrote:
>
> I'm using the Create Application from database for testing and I'm
> just wondering on earth it appears to only update whole numbers to the
> table? It will not pass a decimal number to the database? I see in the
> php 'int', can I change this to allow it to store 123.123 instead?
>
> Really, whole numbers are pretty useless, I must be missing something,
> right?
>
> Thanks,
>




Re: [flexcoders] Set background color of special dates in DateField

2008-08-08 Thread Tom Chiverton
On Thursday 07 Aug 2008, kruse.morten wrote:
> Is this possible?

selectedRanges

-- 
Tom Chiverton



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

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

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



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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



Re: [flexcoders] Re: Multiple Builder instances / windows?

2008-08-08 Thread Tom Chiverton
On Thursday 07 Aug 2008, Amy wrote:
> If you use the Help a lot it can go much higher, especially if you have
> more than one Help window open at a time.

Oh, right.
I use the online help because it'll be more up to date, and possibly have some 
useful comments.

-- 
Tom Chiverton



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

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

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



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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



Re: [flexcoders] Re: Multiple Builder instances / windows?

2008-08-08 Thread Tom Chiverton
On Thursday 07 Aug 2008, Daniel wrote:
> 200MB? javaw.exe can take up to 700MB when running builder for a
> couple of hours... That's a lot of memory...

Are you using a recent JVM ?

-- 
Tom Chiverton



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

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

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



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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Re: LCDS: how to fetch the items from lazy collection

2008-08-08 Thread zdenekmikan
I was able to solve my problem with following async loop, but I wonder if there 
is some 
simpler solution.

private var itemArray:ArrayCollection
private var index:int;
private var count:int;
private var noIPE:Boolean;

public function execute(cgEvent:CairngormEvent):void
{
count = itemArray.length;
index = 0;
noIPE = true;

start();
}

private function start():void
{   
try
{
trace("start: " + index);
while((noIPE == true) && (index < count))
{
processItem(null, itemArray.getItemAt(index) as 
ItemDTO);
}
}
catch(ipe:ItemPendingError)
{
noIPE = false;
trace("item pending error: " + index);
ipe.addResponder(new ItemResponder(processItem, fetchError));
}
}

private function fetchError(message:ErrorMessage):void
{
trace("error fetching item: " + message.faultString);
}

private function processItem(data:Object, item:ItemDTO = null):void
{
trace("processItem: " + index);
if(item == null)
item = itemArray.getItemAt(index) as ItemDTO;

.

index++;
if(index < count)
{
if(noIPE == false)
{
noIPE = true;
start();
}
}
else
{
finish();
}
}


--- In flexcoders@yahoogroups.com, Zdenek Mikan <[EMAIL PROTECTED]> wrote:
>
> I have an ArrayCollection which is filled from the LCDS/Hibernate 
> destination with lazy=true. For display it is OK, but for export I need 
> to go through all items to send them to output. Is there any way how to 
> force fetch all items from the server?
> 
> BTW the sample in LCDS ES 2.6 Developer Guide on page 242-243 is wrong - 
> you will get the ipe exception on line with ipe.addResponder in catch 
> clause.
> 
> Zdenek M
>





[flexcoders] LCDS: how to fetch the items from lazy collection

2008-08-08 Thread Zdenek Mikan
I have an ArrayCollection which is filled from the LCDS/Hibernate 
destination with lazy=true. For display it is OK, but for export I need 
to go through all items to send them to output. Is there any way how to 
force fetch all items from the server?

BTW the sample in LCDS ES 2.6 Developer Guide on page 242-243 is wrong - 
you will get the ipe exception on line with ipe.addResponder in catch 
clause.

Zdenek M



[flexcoders] Re: filtering a flex datagrid using a slider with two thumbs

2008-08-08 Thread stinasius
hi guys i hope am not being a pain, but how can i use a combo box and
a slider (two thumbed) to fliter a datagrid? a small code sample will
do it. thanks.