[flexcoders] Any difference between instantiating in declaration vs. init()

2011-10-12 Thread luvfotography
Hi, 
Is there any difference between initializing a variable in the declarations vs. 
in the creationComplete function?

private var scrollTimer:Timer = new Timer(500,1);
 
 or

private var scrollTimer:Timer;

private function init():void {
 scrollTimer = new Timer(500,1);
}

When/Why should I use one vs. the other?
thanks,




Re: [flexcoders] Time Difference between two columns in DataGrid using itemrenderer

2009-07-01 Thread Angelo Anolin
I think you would find it better to do the calculation on the database itself.

All database have a lot of date/time diff functions which you can use. That 
way, you all simply bind the data retrieved in your datagrid without the need 
for calculating it.

hth





From: Don Kerr fusionp...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Monday, 29 June, 2009 8:51:22
Subject: [flexcoders] Time Difference between two columns in DataGrid using 
itemrenderer





I have two columns in a datadrid, startTime (e.g. 04:30 PM) and endTime (e.g. 
06:00 PM). Both are strings and  varchar in the database.

I want to add a column to the datagrid that displays the difference between 
these two times expressed in hours (e.g. 1.5 Hours).

I'm trying to use an itemrenderer to do this calculation, but I've yet to be 
successful.  Having trouble converting the strings to date, then calculate the 
hours.  Can anyone help?

Thanks,
Don


   


  

Re: [flexcoders] Time Difference between two columns in DataGrid using itemrenderer

2009-07-01 Thread Tom McNeer
You could also look at using the Flex Date Utils on RIAForge.

But you'll still need to turn the strings into valid date objects first.



-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] Time Difference between two columns in DataGrid using itemrenderer

2009-06-28 Thread Don Kerr
I have two columns in a datadrid, startTime (e.g. 04:30 PM) and endTime (e.g. 
06:00 PM). Both are strings and  varchar in the database.

I want to add a column to the datagrid that displays the difference between 
these two times expressed in hours (e.g. 1.5 Hours).

I'm trying to use an itemrenderer to do this calculation, but I've yet to be 
successful.  Having trouble converting the strings to date, then calculate the 
hours.  Can anyone help?

Thanks,
Don







[flexcoders] Re: difference between stage and application?

2009-04-24 Thread michaeljonknight
I've used the Flash/Flex Component Kit and add my flash controls to a Canvas.  
But the Canvas will not change size with I set it's height and width.  Is this 
expected?


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

 You should use the Flash/Flex Component Kit to wrap your Flash content.  
 Flash content won't work well in Flex without being wrapped in some fashion.  
 The minimum thing you could do is stick in an mx:UIComponent of the 
 appropriate size in the application and addChild the sprite to it.
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of michaeljonknight
 Sent: Wednesday, April 22, 2009 2:33 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] difference between stage and application?
 
 
 
 
 
 Hello,
 
 I am somewhat new to flex. We are working on a project that uses an exported 
 swc from Flash and running into some problems getting everything we want to 
 show up layered correctly.
 
 I want to add a menu bar (mx.controls.MenuBar) on top of some content from 
 the flash swc (flash.display.Sprite). I can only get the menu bar to show up 
 if I call application.addChild and the sprite to show up if I call 
 application.stage.addChild. But the menu bar popups are behind the sprite.
 
 I don't really understand the difference between the application and the 
 stage either. Can anyone help? And is there an established way to work with 
 mx.controls and flash.display.sprite data?
 
 thanks in advance,
 madmik3





RE: [flexcoders] Re: difference between stage and application?

2009-04-24 Thread Alex Harui
What is it?  The Canvas or one of your controls?  The Canvas may not expand 
depending on how its properties are set.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of michaeljonknight
Sent: Thursday, April 23, 2009 3:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: difference between stage and application?





I've used the Flash/Flex Component Kit and add my flash controls to a Canvas. 
But the Canvas will not change size with I set it's height and width. Is this 
expected?

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

 You should use the Flash/Flex Component Kit to wrap your Flash content. Flash 
 content won't work well in Flex without being wrapped in some fashion. The 
 minimum thing you could do is stick in an mx:UIComponent of the appropriate 
 size in the application and addChild the sprite to it.

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

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of michaeljonknight
 Sent: Wednesday, April 22, 2009 2:33 PM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] difference between stage and application?





 Hello,

 I am somewhat new to flex. We are working on a project that uses an exported 
 swc from Flash and running into some problems getting everything we want to 
 show up layered correctly.

 I want to add a menu bar (mx.controls.MenuBar) on top of some content from 
 the flash swc (flash.display.Sprite). I can only get the menu bar to show up 
 if I call application.addChild and the sprite to show up if I call 
 application.stage.addChild. But the menu bar popups are behind the sprite.

 I don't really understand the difference between the application and the 
 stage either. Can anyone help? And is there an established way to work with 
 mx.controls and flash.display.sprite data?

 thanks in advance,
 madmik3




[flexcoders] Re: difference between stage and application?

2009-04-23 Thread michaeljonknight
With the Flash/Flex Component Kit work for cs4?  We are making a Flash 10 
compliant swf...


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

 You should use the Flash/Flex Component Kit to wrap your Flash content.  
 Flash content won't work well in Flex without being wrapped in some fashion.  
 The minimum thing you could do is stick in an mx:UIComponent of the 
 appropriate size in the application and addChild the sprite to it.
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of michaeljonknight
 Sent: Wednesday, April 22, 2009 2:33 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] difference between stage and application?
 
 
 
 
 
 Hello,
 
 I am somewhat new to flex. We are working on a project that uses an exported 
 swc from Flash and running into some problems getting everything we want to 
 show up layered correctly.
 
 I want to add a menu bar (mx.controls.MenuBar) on top of some content from 
 the flash swc (flash.display.Sprite). I can only get the menu bar to show up 
 if I call application.addChild and the sprite to show up if I call 
 application.stage.addChild. But the menu bar popups are behind the sprite.
 
 I don't really understand the difference between the application and the 
 stage either. Can anyone help? And is there an established way to work with 
 mx.controls and flash.display.sprite data?
 
 thanks in advance,
 madmik3





RE: [flexcoders] Re: difference between stage and application?

2009-04-23 Thread Alex Harui
I haven't heard that it doesn't, but I don't keep tabs on it either.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of michaeljonknight
Sent: Thursday, April 23, 2009 1:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: difference between stage and application?





With the Flash/Flex Component Kit work for cs4? We are making a Flash 10 
compliant swf...

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

 You should use the Flash/Flex Component Kit to wrap your Flash content. Flash 
 content won't work well in Flex without being wrapped in some fashion. The 
 minimum thing you could do is stick in an mx:UIComponent of the appropriate 
 size in the application and addChild the sprite to it.

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

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of michaeljonknight
 Sent: Wednesday, April 22, 2009 2:33 PM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] difference between stage and application?





 Hello,

 I am somewhat new to flex. We are working on a project that uses an exported 
 swc from Flash and running into some problems getting everything we want to 
 show up layered correctly.

 I want to add a menu bar (mx.controls.MenuBar) on top of some content from 
 the flash swc (flash.display.Sprite). I can only get the menu bar to show up 
 if I call application.addChild and the sprite to show up if I call 
 application.stage.addChild. But the menu bar popups are behind the sprite.

 I don't really understand the difference between the application and the 
 stage either. Can anyone help? And is there an established way to work with 
 mx.controls and flash.display.sprite data?

 thanks in advance,
 madmik3




[flexcoders] autocomplete difference in array vs httpservice

2009-04-02 Thread Jason B
I've been trying to use this autocomplete

http://examples.adobe.com/flex2/exchange/AutoComplete/CustomizeAutoComplete/CustomizeAutoComplete.html

and i got it working but httpservice loads a [object Object] on load of the 
app, and when i clear that out and start typing it works.

I just want to use an httpservice and avoid the object object on load it should 
just be blank on load.
it works fine with an ARRAY just trouble when i try to use httpservice like 
this 

mx:HTTPService id=autocomplete url=/test.php method=POST 
showBusyCursor=true requestTimeout=40  fault=defaultFault(event) 
resultFormat=object/

I've tried to add resultformat to array on httpservice and i get no results.

I also tried to use ArrayUtil.toArray(





[flexcoders] Re: Difference between specifying remoteObject in mxml and in actionscript ?

2008-09-02 Thread valdhor
You may find this thread useful:

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


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

 I'm sure I'm missing something here, but It would be good if anyone
 could point out exactly what it is!
 
 I'm attempting to configure a remoteObject *without* the compiler option
 of-services \\someServer\Path\WEB-INF\flex\services-config.xml or
 similar 
 
 I initally thought it would be a question of merely specifying an
 endpoint, so I started off with this in my actionscript class :
 
 _remoteObj = new RemoteObject();
 _remoteObj.makeObjectsBindable = true;
 _remoteObj.destination = fluorine;
 _remoteObj.source = ppRemoteService;
 // add the endpoint, all the code above works fine with the compiler -
 services option
 _remoteObj.endpoint = http://localhost/ppBackend/Gateway.aspx;;
 
 Which errors out at runtime with :
 
 Cannot assign operations into an RPC Service (endpoint)
 
 Yet, if I define the service in my main Application mxml in what looks
 to me like identical parameters , like this :
 
 mx:RemoteObject id=testRemoteMxml 
   makeObjectsBindable=true 
   destination=fluorine 
   source=ppRemoteService 
   
 endpoint=http://localhost/ppBackend/Gateway.aspx; /
 
 then just use  _remoteObj = Application.application.testRemoteMxml into
 my actionScript class (apologies for bad form there)
 
 it works just fine.
 
 This is in flexbuilder 3.0 with the default Flex 3 SDK, I should
 mention.
 
 So what am I missing? A timing / initialisation error would be my first
 thought, but if so then I can't see quite how.
 
 I'm probably just being a bit stupid, anyone got any ideas or relevant
 experience?
 
 Many thanks,
 
 Jim.
 
 (p.s. I notice that there is no autocomplete suggestion in flexbuilder
 for remoteObjectInstance.endpoint in actionScript yet it compiles fine.
 This is probably a clue that I'm doing something wrong, I would say. If
 only I knew what it was!)
 
 __
 This communication is from Primal Pictures Ltd., a company
registered in England and Wales with registration No. 02622298 and
registered office: 4th Floor, Tennyson House, 159-165 Great Portland
Street, London, W1W 5PA, UK. VAT registration No. 648874577.
 
 This e-mail is confidential and may be privileged. It may be read,
copied and used only by the intended recipient. If you have received
it in error, please contact the sender immediately by return e-mail or
by telephoning +44(0)20 7637 1010. Please then delete the e-mail and
do not disclose its contents to any person.
 This email has been scanned for Primal Pictures by the MessageLabs
Email Security System.
 __





Re: [flexcoders] Performance difference between ArrayCollection.removeAll() and ArrayCollection.source = []

2008-02-16 Thread Arpit Mathur
Hi Alex,

Thanks for responding. Should this be tracked as a bug? I think there may be
a better way of handling this:

On removeAll() you can set a flag like removeEventListenersPending = true,
copy the old elements to a temporary new array and run through the it in
smaller sized increments (removing event listeners from say 40 objects every
enterframe using something like calllater). In the meanwhile if a property
change event is fired, you can see if the flag is set and if so make sure
the item is in the current source array and not the temp array. When all
objects in the temp have had their event listeners removed, set the
removeEventListenersPending = false.

I think the current implementation may be causing a lot of performace issues
since a lot of people may be using ArrayCollections for large data sets
(thats what Flex is great for :) ) and may not know of the penalty of the
removeAll().

thanks
-arpit


On 2/15/08, Alex Harui [EMAIL PROTECTED] wrote:

Because of the way GC works, I still think it is best for us to remove
 the listeners.  GC is only on allocation so again, if someone had a handle
 to an object that got removed and twiddled a value, the notification code
 would run needlessly until GC kicked in.



 However, I think you've come up with a great optimization for folks who
 know they are destroying everything all at once.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Arpit Mathur
 *Sent:* Thursday, February 14, 2008 9:39 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Performance difference between
 ArrayCollection.removeAll() and ArrayCollection.source = []



 Hmm, maybe I am missing something here? The only place I see
 addEventListener being called is



  protected function startTrackUpdates(item:Object):void
 {
 if (item  (item is IEventDispatcher))
 {
 IEventDispatcher(item).addEventListener(
 PropertyChangeEvent.PROPERTY_CHANGE,
 itemUpdateHandler, false, 0,
 true);
 }
 }



 which has the weak-keys boolean flag turned on. Shouldnt that allow
 garbage collection to run without explicitly calling removeEventListener ?



 On Thu, Feb 14, 2008 at 11:54 PM, Alex Harui [EMAIL PROTECTED] wrote:

 Our code has to look like that otherwise if someone kept a reference to
 one of the objects that got removed, it would keep the ArrayList from being
 GC'd.  We added listeners, so we should remove them.  If the data objects
 are going away too, then you can probably reset the source, but if you see a
 memory leak later, I'd definitely check in that area.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Arpit Mathur
 *Sent:* Thursday, February 14, 2008 8:27 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Performance difference between
 ArrayCollection.removeAll() and ArrayCollection.source = []



 I was trying to debug an issue with the LogBook application we released a
 couple of days back. If you take a look at the interface on the main page at
 http://cimlogbook.googlecode.com (or if you have installed the
 application), you will see a clear logs button. Clicking on that clears an
 ArrayCollection that holds a series of LogObjects by calling a removeAll()
 function. However we got a bug saying the application would almost hang if
 it tried to clear a lot of messages. A quick patch was to reset the source
 like so:  arrayCollection.source = [] . The performance became lightning
 fast.

 Looking deeper into the removeAll function and following the hierarchy to
 the ArrayList class, I see that the removeAll loops through the entire
 array, looking at each member to see if its an event dispatcher and if so
 calling a function to remove the propertyChange listener.
 Why is this implemented this way ? Is there any reason I shouldnt just use
 source = [] to reset the array ?

 Thanks


 --
 Arpit Mathur
 Lead Software Engineer,
 Comcast Interactive Media
 ---
 post your flex tips on
 http://flextips.corank.com




 --
 Arpit Mathur
 Lead Software Engineer,
 Comcast Interactive Media
 ---
 post your flex tips on
 http://flextips.corank.com

 




-- 
Arpit Mathur
Lead Software Engineer,
Comcast Interactive Media
---
post your flex tips on
http://flextips.corank.com


Re: [flexcoders] Performance difference between ArrayCollection.removeAll() and ArrayCollection.source = []

2008-02-15 Thread Tom Chiverton
On Friday 15 Feb 2008, Arpit Mathur wrote:
 the ArrayList class, I see that the removeAll loops through the entire
 array, looking at each member to see if its an event dispatcher and if so
 calling a function to remove the propertyChange listener.
 Why is this implemented this way ? Is there any reason I shouldnt just use

I'd say it's for the effects in Flex 3, which will animate the removal of 
items from a Repeater or whathave you.

-- 
Tom Chiverton
Helping to heterogeneously engineer attention-grabbing synergies
on: http://thefalken.livejournal.com



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.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


RE: [flexcoders] Performance difference between ArrayCollection.removeAll() and ArrayCollection.source = []

2008-02-15 Thread Alex Harui
Because of the way GC works, I still think it is best for us to remove
the listeners.  GC is only on allocation so again, if someone had a
handle to an object that got removed and twiddled a value, the
notification code would run needlessly until GC kicked in.

 

However, I think you've come up with a great optimization for folks who
know they are destroying everything all at once.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Arpit Mathur
Sent: Thursday, February 14, 2008 9:39 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Performance difference between
ArrayCollection.removeAll() and ArrayCollection.source = []

 

Hmm, maybe I am missing something here? The only place I see
addEventListener being called is

 

 protected function startTrackUpdates(item:Object):void
{
if (item  (item is IEventDispatcher))
{
IEventDispatcher(item).addEventListener(
PropertyChangeEvent.PROPERTY_CHANGE, 
itemUpdateHandler, false, 0,
true);
}
}

 

which has the weak-keys boolean flag turned on. Shouldnt that allow
garbage collection to run without explicitly calling removeEventListener
?

 

On Thu, Feb 14, 2008 at 11:54 PM, Alex Harui [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Our code has to look like that otherwise if someone kept a reference to
one of the objects that got removed, it would keep the ArrayList from
being GC'd.  We added listeners, so we should remove them.  If the data
objects are going away too, then you can probably reset the source, but
if you see a memory leak later, I'd definitely check in that area.

 



From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Arpit Mathur
Sent: Thursday, February 14, 2008 8:27 PM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] Performance difference between
ArrayCollection.removeAll() and ArrayCollection.source = []

 

I was trying to debug an issue with the LogBook application we released
a couple of days back. If you take a look at the interface on the main
page at http://cimlogbook.googlecode.com
http://cimlogbook.googlecode.com/  (or if you have installed the
application), you will see a clear logs button. Clicking on that clears
an ArrayCollection that holds a series of LogObjects by calling a
removeAll() function. However we got a bug saying the application would
almost hang if it tried to clear a lot of messages. A quick patch was to
reset the source like so:  arrayCollection.source = [] . The performance
became lightning fast.

Looking deeper into the removeAll function and following the hierarchy
to the ArrayList class, I see that the removeAll loops through the
entire array, looking at each member to see if its an event dispatcher
and if so calling a function to remove the propertyChange listener.
Why is this implemented this way ? Is there any reason I shouldnt just
use source = [] to reset the array ?

Thanks


-- 
Arpit Mathur
Lead Software Engineer,
Comcast Interactive Media
---
post your flex tips on 
http://flextips.corank.com http://flextips.corank.com/  




-- 
Arpit Mathur
Lead Software Engineer,
Comcast Interactive Media
---
post your flex tips on 
http://flextips.corank.com http://flextips.corank.com/  

 



[flexcoders] Performance difference between ArrayCollection.removeAll() and ArrayCollection.source = []

2008-02-14 Thread Arpit Mathur
I was trying to debug an issue with the LogBook application we released a
couple of days back. If you take a look at the interface on the main page at
http://cimlogbook.googlecode.com (or if you have installed the application),
you will see a clear logs button. Clicking on that clears an ArrayCollection
that holds a series of LogObjects by calling a removeAll() function. However
we got a bug saying the application would almost hang if it tried to clear a
lot of messages. A quick patch was to reset the source like so:
arrayCollection.source = [] . The performance became lightning fast.

Looking deeper into the removeAll function and following the hierarchy to
the ArrayList class, I see that the removeAll loops through the entire
array, looking at each member to see if its an event dispatcher and if so
calling a function to remove the propertyChange listener.
Why is this implemented this way ? Is there any reason I shouldnt just use
source = [] to reset the array ?

Thanks


-- 
Arpit Mathur
Lead Software Engineer,
Comcast Interactive Media
---
post your flex tips on
http://flextips.corank.com


[flexcoders] Performance difference between ArrayCollection.removeAll() and ArrayCollection.source = []

2008-02-14 Thread Arpit Mathur
I was trying to debug an issue with the LogBook application we released a
couple of days back. If you take a look at the interface on the main page at
http://cimlogbook.googlecode.com (or if you have installed the application),
you will see a clear logs button. Clicking on that clears an ArrayCollection
that holds a series of LogObjects by calling a removeAll() function. However
we got a bug saying the application would almost hang if it tried to clear a
lot of messages. A quick patch was to reset the source like so:
arrayCollection.source = [] . The performance became lightning fast.

Looking deeper into the removeAll function and following the hierarchy to
the ArrayList class, I see that the removeAll loops through the entire
array, looking at each member to see if its an event dispatcher and if so
calling a function to remove the propertyChange listener.
Why is this implemented this way ? Is there any reason I shouldnt just use
source = [] to reset the array ?

Thanks


-- 
Arpit Mathur
Lead Software Engineer,
Comcast Interactive Media
---
post your flex tips on
http://flextips.corank.com


RE: [flexcoders] Performance difference between ArrayCollection.removeAll() and ArrayCollection.source = []

2008-02-14 Thread Alex Harui
Our code has to look like that otherwise if someone kept a reference to
one of the objects that got removed, it would keep the ArrayList from
being GC'd.  We added listeners, so we should remove them.  If the data
objects are going away too, then you can probably reset the source, but
if you see a memory leak later, I'd definitely check in that area.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Arpit Mathur
Sent: Thursday, February 14, 2008 8:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Performance difference between
ArrayCollection.removeAll() and ArrayCollection.source = []

 

I was trying to debug an issue with the LogBook application we released
a couple of days back. If you take a look at the interface on the main
page at http://cimlogbook.googlecode.com
http://cimlogbook.googlecode.com  (or if you have installed the
application), you will see a clear logs button. Clicking on that clears
an ArrayCollection that holds a series of LogObjects by calling a
removeAll() function. However we got a bug saying the application would
almost hang if it tried to clear a lot of messages. A quick patch was to
reset the source like so:  arrayCollection.source = [] . The performance
became lightning fast.

Looking deeper into the removeAll function and following the hierarchy
to the ArrayList class, I see that the removeAll loops through the
entire array, looking at each member to see if its an event dispatcher
and if so calling a function to remove the propertyChange listener.
Why is this implemented this way ? Is there any reason I shouldnt just
use source = [] to reset the array ?

Thanks


-- 
Arpit Mathur
Lead Software Engineer,
Comcast Interactive Media
---
post your flex tips on 
http://flextips.corank.com http://flextips.corank.com  

 



Re: [flexcoders] Performance difference between ArrayCollection.removeAll() and ArrayCollection.source = []

2008-02-14 Thread Arpit Mathur
Hmm, maybe I am missing something here? The only place I see
addEventListener being called is

 protected function startTrackUpdates(item:Object):void
{
if (item  (item is IEventDispatcher))
{
IEventDispatcher(item).addEventListener(
PropertyChangeEvent.PROPERTY_CHANGE,
itemUpdateHandler, false, 0, true);
}
}

which has the weak-keys boolean flag turned on. Shouldnt that allow garbage
collection to run without explicitly calling removeEventListener ?


On Thu, Feb 14, 2008 at 11:54 PM, Alex Harui [EMAIL PROTECTED] wrote:

Our code has to look like that otherwise if someone kept a reference to
 one of the objects that got removed, it would keep the ArrayList from being
 GC'd.  We added listeners, so we should remove them.  If the data objects
 are going away too, then you can probably reset the source, but if you see a
 memory leak later, I'd definitely check in that area.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Arpit Mathur
 *Sent:* Thursday, February 14, 2008 8:27 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Performance difference between
 ArrayCollection.removeAll() and ArrayCollection.source = []



 I was trying to debug an issue with the LogBook application we released a
 couple of days back. If you take a look at the interface on the main page at
 http://cimlogbook.googlecode.com (or if you have installed the
 application), you will see a clear logs button. Clicking on that clears an
 ArrayCollection that holds a series of LogObjects by calling a removeAll()
 function. However we got a bug saying the application would almost hang if
 it tried to clear a lot of messages. A quick patch was to reset the source
 like so:  arrayCollection.source = [] . The performance became lightning
 fast.

 Looking deeper into the removeAll function and following the hierarchy to
 the ArrayList class, I see that the removeAll loops through the entire
 array, looking at each member to see if its an event dispatcher and if so
 calling a function to remove the propertyChange listener.
 Why is this implemented this way ? Is there any reason I shouldnt just use
 source = [] to reset the array ?

 Thanks


 --
 Arpit Mathur
 Lead Software Engineer,
 Comcast Interactive Media
 ---
 post your flex tips on
 http://flextips.corank.com
 




-- 
Arpit Mathur
Lead Software Engineer,
Comcast Interactive Media
---
post your flex tips on
http://flextips.corank.com


Re: [flexcoders] Re: Difference in player behaviour between IE and Firefox with SSL?

2007-09-14 Thread Tom Chiverton
 There is a difference in the browsers, but not in the player.  IE
 requires that the add-no-cache-headers property is set in the AMF
 channel definition, Firefox doesn't care:

There's a popular Adobe tech note that explains all this and suggests a few 
other things you could do, ID is fdc7b5c :
http://kb.adobe.com/selfservice/viewContent.do?externalId=fdc7b5csliceId=2

We've not had problems with self signed ones though, just the cache headers 
one.

-- 
Tom Chiverton
Helping to ambassadorially extend synergistic clusters
on: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


RE: [flexcoders] Re: Difference in player behaviour between IE and Firefox with SSL?

2007-09-14 Thread Seth Caldwell
I had the same issue (I think I posted it to this list before, solved it and
posted my solution, but never saw my solution sent).

Anyway, I'm running php, and I did the following before outputting anything:

  ob_start();

  ob_get_clean();

  header(Cache-Control: );

  header(Pragma: );

  session_cache_limiter('public'); 

  

  session_start();

And that solved my problems entirely.

Took me 2 days to figure this out =(

Good luck all!

 

Seth

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of simonjpalmer
Sent: Thursday, September 13, 2007 3:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Difference in player behaviour between IE and
Firefox with SSL?

 

I think I have solved this (with much pain and a m oment of exhileration).

There is a difference in the browsers, but not in the player. IE
requires that the add-no-cache-headers property is set in the AMF
channel definition, Firefox doesn't care:

add-no-cache-headersfalse/add-no-cache-headers

Here is what mine looke like...

channel-definition id=dsl-amf
class=mx.messaging.channels.SecureAMFChannel
endpoint
uri=https://{server.name}:8443/{context.root}/messagebroker/amf;
class=flex.messaging.endpoints.SecureAMFEndpoint/
properties
polling-enabledfalse/polling-enabled
add-no-cache-headersfalse/add-no-cache-headers
/properties
/channel-definition

Suddenly both IE and FF work just fine over https. 

I'm posting in the hope that some other poor soul won't spend 4 days
staring at this issue and might just bump into this post.

Other keywords for the search engine:
HTTP 500
HTTPS
IE
MSIE
Internet Explorer
SSL
JBOSS

SP

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

 I have just implemented ssl in my application and I am getting some
 strange results. I use both IE and Firefox for my testing. 
 
 I have a JBoss server and use RemoteObject's to pass data back and
 forth between my Flex client and my server code via amf channels. I
 have reconfigured my channels to use https and have reset my project
 settings to refer to my new https port and recompiled and re-deployed
 my app.
 
 In Firefox, everything works exactly the same as before I implemented
 the SSL layer, just via an http URL, but on IE I get asked if I want
 to accept the certificate, the swf installs itself and then everything
 goes silent. I get no traffic bewteen my swf and the server at all
 and nothing in any logs. Just total silence.
 
 The really weird thing is that if I run IE as the default browser in a
 debug session it works fine. It only seems to be when I connect to my
 server directly from IE that it doesn't work. I have tried several
 other machines connecting to the same server instance and I get the
 same thing, Firefox is fine, IE doesn't work.
 
 Anyone encountered behaviour like this? Could there be some stupid IE
 security issue stopping the swf from talking to the amf channels?
 
 As much as I hate to say it, life stops without IE...
 
 Any ideas?
 
 Simon


 

image001.jpgimage002.jpg

[flexcoders] Re: Difference in player behaviour between IE and Firefox with SSL?

2007-09-13 Thread simonjpalmer
I think I have solved this (with much pain and a m oment of exhileration).

There is a difference in the browsers, but not in the player.  IE
requires that the add-no-cache-headers property is set in the AMF
channel definition, Firefox doesn't care:

add-no-cache-headersfalse/add-no-cache-headers

Here is what mine looke like...

channel-definition id=dsl-amf
class=mx.messaging.channels.SecureAMFChannel
endpoint
uri=https://{server.name}:8443/{context.root}/messagebroker/amf;
class=flex.messaging.endpoints.SecureAMFEndpoint/
properties
polling-enabledfalse/polling-enabled
add-no-cache-headersfalse/add-no-cache-headers
/properties
/channel-definition

Suddenly both IE and FF work just fine over https.  

I'm posting in the hope that some other poor soul won't spend 4 days
staring at this issue and might just bump into this post.

Other keywords for the search engine:
HTTP 500
HTTPS
IE
MSIE
Internet Explorer
SSL
JBOSS

SP

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

 I have just implemented ssl in my application and I am getting some
 strange results.  I use both IE and Firefox for my testing.  
 
 I have a JBoss server and use RemoteObject's to pass data back and
 forth between my Flex client and my server code via amf channels.  I
 have reconfigured my channels to use https and have reset my project
 settings to refer to my new https port and recompiled and re-deployed
 my app.
 
 In Firefox, everything works exactly the same as before I implemented
 the SSL layer, just via an http URL, but on IE I get asked if I want
 to accept the certificate, the swf installs itself and then everything
 goes silent.  I get no traffic bewteen my swf and the server at all
 and nothing in any logs.  Just total silence.
 
 The really weird thing is that if I run IE as the default browser in a
 debug session it works fine.  It only seems to be when I connect to my
 server directly from IE that it doesn't work.  I have tried several
 other machines connecting to the same server instance and I get the
 same thing, Firefox is fine, IE doesn't work.
 
 Anyone encountered behaviour like this?  Could there be some stupid IE
 security issue stopping the swf from talking to the amf channels?
 
 As much as I hate to say it, life stops without IE...
 
 Any ideas?
 
 Simon





[flexcoders] Re: Difference in ActionScript File and ActionScript Class

2007-05-23 Thread haravallabhan

So as you guys say can I change all my ActionScript file to a Classs 
file ? I hate refering the ActionScript file with a long hard coded 
path. If I refer with a package it looks good. Can I change those 
ActionScript file to classes?  I just wanted to use the functions and 
constants from it? Is it worth changing??
Will there be any performance issue if I change it? That is if I 
change it I need to instantiate them and create new objects to use it 
to refer to the method or function in the class. Will it not degrade 
the performance of the flex application? 
Already flex itslef swallow lot of memory?. Do you guys advise me to 
proceed. Or its better to be with actionscript file.

Thanks again in advance
Cheers
Hara


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

 AS File:
 Just a file that contains functions that run when needed. Similar 
to how u use a JS file.
  
 AS Class:
 Like a Java class, define properties and methods, create instances 
of it and use as needed. OOP style.
  
 I always use AS classes.
  
 Dimitrios Gianninas
 Developer
 Optimal Payments Inc.
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of haravallabhan
 Sent: Wednesday, May 23, 2007 9:40 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Difference in ActionScript File and 
ActionScript Class
 
 
 
 Hi All,
 
 What is the difference when using an ActionScriptFile and 
ActionScript 
 Class? Is it that the difference lies only in the way of 
referencing 
 it? When do we use ActioScript File and ActionScript Class.
 
 Can somebody help me? I am just confused in the usage.
 
 Thanks in advance
 Cheers
 Hara
 
 
 
  
 
 -- 
 WARNING
 ---
 This electronic message and its attachments may contain 
confidential, proprietary or legally privileged information, which is 
solely for the use of the intended recipient.  No privilege or other 
rights are waived by any unintended transmission or unauthorized 
retransmission of this message.  If you are not the intended 
recipient of this message, or if you have received it in error, you 
should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or 
other use of this message or its attachments by unintended recipients 
is unauthorized and may be unlawful.  If you have received this e-
mail in error, please notify the sender.
 
 AVIS IMPORTANT
 --
 Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés 
destinés au seul usage du destinataire visé.  L'expéditeur original 
ne renonce à aucun privilège ou à aucun autre droit si le présent 
message a été transmis involontairement ou s'il est retransmis sans 
son autorisation.  Si vous n'êtes pas le destinataire visé du présent 
message ou si vous l'avez reçu par erreur, veuillez cesser 
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces 
jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des 
personnes autres que le destinataire visé ne sont pas autorisés et 
pourraient être illégaux.  Si vous avez reçu ce courrier électronique 
par erreur, veuillez en aviser l'expéditeur.





RE: [flexcoders] Re: Difference in ActionScript File and ActionScript Class

2007-05-23 Thread Dimitrios Gianninas
Performance will not be affected, your MXML files get turned into AS classes 
anyways (yup every single one of them). I suggest going with AS classes, its 
will feel better, trust me :)
 
Dimitrios Gianninas
Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
haravallabhan
Sent: Wednesday, May 23, 2007 11:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Difference in ActionScript File and ActionScript Class




So as you guys say can I change all my ActionScript file to a Classs 
file ? I hate refering the ActionScript file with a long hard coded 
path. If I refer with a package it looks good. Can I change those 
ActionScript file to classes? I just wanted to use the functions and 
constants from it? Is it worth changing??
Will there be any performance issue if I change it? That is if I 
change it I need to instantiate them and create new objects to use it 
to refer to the method or function in the class. Will it not degrade 
the performance of the flex application? 
Already flex itslef swallow lot of memory?. Do you guys advise me to 
proceed. Or its better to be with actionscript file.

Thanks again in advance
Cheers
Hara

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

 AS File:
 Just a file that contains functions that run when needed. Similar 
to how u use a JS file.
 
 AS Class:
 Like a Java class, define properties and methods, create instances 
of it and use as needed. OOP style.
 
 I always use AS classes.
 
 Dimitrios Gianninas
 Developer
 Optimal Payments Inc.
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On 
Behalf Of haravallabhan
 Sent: Wednesday, May 23, 2007 9:40 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Difference in ActionScript File and 
ActionScript Class
 
 
 
 Hi All,
 
 What is the difference when using an ActionScriptFile and 
ActionScript 
 Class? Is it that the difference lies only in the way of 
referencing 
 it? When do we use ActioScript File and ActionScript Class.
 
 Can somebody help me? I am just confused in the usage.
 
 Thanks in advance
 Cheers
 Hara
 
 
 
 
 
 -- 
 WARNING
 ---
 This electronic message and its attachments may contain 
confidential, proprietary or legally privileged information, which is 
solely for the use of the intended recipient. No privilege or other 
rights are waived by any unintended transmission or unauthorized 
retransmission of this message. If you are not the intended 
recipient of this message, or if you have received it in error, you 
should immediately stop reading this message and delete it and all 
attachments from your system. The reading, distribution, copying or 
other use of this message or its attachments by unintended recipients 
is unauthorized and may be unlawful. If you have received this e-
mail in error, please notify the sender.
 
 AVIS IMPORTANT
 --
 Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés 
destinés au seul usage du destinataire visé. L'expéditeur original 
ne renonce à aucun privilège ou à aucun autre droit si le présent 
message a été transmis involontairement ou s'il est retransmis sans 
son autorisation. Si vous n'êtes pas le destinataire visé du présent 
message ou si vous l'avez reçu par erreur, veuillez cesser 
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces 
jointes, de votre système. La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des 
personnes autres que le destinataire visé ne sont pas autorisés et 
pourraient être illégaux. Si vous avez reçu ce courrier électronique 
par erreur, veuillez en aviser l'expéditeur.




 


[flexcoders] Re: Difference between getChild and getAtomationChild

2007-05-18 Thread pmotzfeldt
I understand that it is a method of the IAutomationObject. But there
is still something that I do not figure out.

I have created an adapter that enables me to take advantage of the
automation package and replay events on a Flex application I have
created. With this application all the display components have
automation children. But with a mock class I have used to test the
adapter, where I just create a class that extends Application and add
some panels and buttons, none of those have automation children only
regular children. (Both projects implements the automation.swc and
automation_agent.swc. And all components are UIComponents, which
implements IAutomationObject)

What in Flex decides if a object has automation children or regular
children? 

Thank you


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

 Correct. getAutomationChild() is a method of the IAutomationObject
 interface, and only returns children that also implement that interface.
 IAutomationObject is part of the mx.automation package, which is
designed
 for automated testing. So basically, it's a filter for testing tools
so they
 only have to look at objects that can be automated. The Flex
extension for
 Mercury QTP is currently (I think) the only commercial tool that
makes use
 of it.
 
 Peter
 
 On 5/15/07, Johannes Nel [EMAIL PROTECTED] wrote:
 
my guess its the interface for QTP
 
 
  On 5/15/07, Tom Chiverton [EMAIL PROTECTED] wrote:
  
   On Tuesday 15 May 2007, pmotzfeldt wrote:
Hi, I am wondering what the difference between a regular child
and an
automation child of for instance an UIComponent.
  
   guess
   Some children are for purely GUI purposes, such as a title bar
or label.
  
   --
   Tom Chiverton
   Helping to administratively repurpose bricks-and-clicks clusters
   on: http://thefalken.livejournal.com
  
   
  
   This email is sent for and on behalf of Halliwells LLP.
  
   Halliwells LLP is a limited liability partnership registered in
England
   and Wales under registered number OC307980 whose registered
office address
   is at St James's Court Brown Street Manchester M2 2JF.  A list
of members is
   available for inspection at the registered office. Any reference
to a
   partner in relation to Halliwells LLP means a member of
Halliwells LLP.
   Regulated by the Law Society.
  
   CONFIDENTIALITY
  
   This email is intended only for the use of the addressee named
above and
   may be confidential or legally privileged.  If you are not the
addressee you
   must not read it and must not use any information contained in
nor copy it
   nor inform any person other than Halliwells LLP or the addressee
of its
   existence or contents.  If you have received this email in error
please
   delete it and notify Halliwells LLP IT Department on 0870 365 8008.
  
   For more information about Halliwells LLP visit www.halliwells.com.
  
  
  
   --
   Flexcoders Mailing List
   FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives:
   http://www.mail-archive.com/flexcoders%40yahoogroups.com
   Yahoo! Groups Links
  
  
  
  
 
 
  --
  j:pn
  http://www.lennel.org
 
   
 





[flexcoders] The difference...

2007-04-11 Thread Ed Capistrano
Im a newbie in flex but I did studied developing flash
apps(mainly for the web)including its language as2.0.
I wonder whats with flex and flash appz? Any
significant diff. between the two?


   

Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121


Re: [flexcoders] The difference...

2007-04-11 Thread Paul Andrews
- Original Message - 
From: Ed Capistrano [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, April 11, 2007 1:18 PM
Subject: [flexcoders] The difference...


 Im a newbie in flex but I did studied developing flash
 apps(mainly for the web)including its language as2.0.
 I wonder whats with flex and flash appz? Any
 significant diff. between the two?

I think you would get your best answer by spending ten minutes on the adobe
web site looking at the examples that are presented there including the
walkthroughs of making a simple application.

Flex has a markup language (similar in some respects to JSP, though
different in others) that you can use to create applications and components,
in preference to the timeline (which it doesn't have).

If you code Flash actionscript and don't use the timeline, the main
difference will be Actionscript 3 versus Actionscript 2 and a different
class library/API.

Paul





 Be a PS3 game guru.
 Get your game face on with the latest PS3 news and previews at Yahoo!
Games.
 http://videogames.yahoo.com/platform?platform=120121


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







RE: [flexcoders] The difference...

2007-04-11 Thread Peter Farland
There should be a ton of articles online discussing this and I see Abdul
gave a good summary before. Here's my quick summary here... both Flex
and Flash applications are ultimately compiled down to a SWF file and
run in the Flash Player. They both use ActionScript to write
programmatic logic and they can make use of graphic, video and audio
assets. However, the way in which the applications are built is very
different. Flash applications are typically built with the Flash
Authoring tool and focus around stages, timelines, labels and script
blocks to control program flow. Flex applications are typically built
with Flex Builder; the concept of a timeline is effectively absent.
Developing Flex applications should feel like a hybrid between web
development and traditional GUI application development, but with a rich
set of pre-built components. The Flex developer uses an XML language to
declaritively layout the UI and writes formal classes to extend existing
components or write completely new logic. From Flex 2 we target Flash
Player 9 and ActionScript 3.0.
 
Pete
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ed Capistrano
Sent: Wednesday, April 11, 2007 8:18 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] The difference...



Im a newbie in flex but I did studied developing flash
apps(mainly for the web)including its language as2.0.
I wonder whats with flex and flash appz? Any
significant diff. between the two?

__
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo!
Games.
http://videogames.yahoo.com/platform?platform=120121
http://videogames.yahoo.com/platform?platform=120121 


 


Re: [flexcoders] The difference...

2007-04-11 Thread Abdul Qabiz

There has been a lot of confusion among Flash developer/designers. Some of
them even said, during early days of Flex, that Flex is flash killer. Which
was totally misconception.

I posted something around Macromedia MAX 2005,

http://www.abdulqabiz.com/blog/archives/macromedia_flex/macromedia_flex_and_flash.php

It's old post, should answer some of the questions.

-abdul


On 11 Apr 2007 06:43:39 -0700, Peter Farland [EMAIL PROTECTED] wrote:


   There should be a ton of articles online discussing this and I see
Abdul gave a good summary before. Here's my quick summary here... both Flex
and Flash applications are ultimately compiled down to a SWF file and run in
the Flash Player. They both use ActionScript to write programmatic logic and
they can make use of graphic, video and audio assets. However, the way in
which the applications are built is very different. Flash applications are
typically built with the Flash Authoring tool and focus around stages,
timelines, labels and script blocks to control program flow. Flex
applications are typically built with Flex Builder; the concept of a
timeline is effectively absent. Developing Flex applications should feel
like a hybrid between web development and traditional GUI application
development, but with a rich set of pre-built components. The Flex developer
uses an XML language to declaritively layout the UI and writes formal
classes to extend existing components or write completely new logic. From
Flex 2 we target Flash Player 9 and ActionScript 3.0.

Pete


 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Ed Capistrano
*Sent:* Wednesday, April 11, 2007 8:18 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] The difference...

 Im a newbie in flex but I did studied developing flash
apps(mainly for the web)including its language as2.0.
I wonder whats with flex and flash appz? Any
significant diff. between the two?

__
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo!
Games.
http://videogames.yahoo.com/platform?platform=120121

 



[flexcoders] The difference...(cleared)

2007-04-11 Thread Ed Capistrano
Yeah, thanks for lending bit of your time clearing up
vougue matter regarding flash  flex!

-Ed
proud  a happy member of flexcoders


   

Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel 
bargains.
http://farechase.yahoo.com/promo-generic-14795097


[flexcoders] The difference...(cleared)

2007-04-11 Thread Ed Capistrano
Yeah, thanks for lending bit of your time clearing up
vougue matter regarding flash  flex!

-Ed
proud  a happy member of flexcoders


   

Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 


[flexcoders] Browser-difference Netconnection AMF0

2007-01-18 Thread wesubotnix
Hi,

After compiling old (Flex 2.0) classes within the 2.01 framework, our
 amfphp-connection stops working in some client browsers. A
NetConnection.Call.BadVersion. error is thrown. The strange thing is
that it works fine in Internet Explorer 6, but not IE7, or Firefox2.
Could there be a difference in the amf0-interpretation between the
flashplayers? Anyone know, or would like to guess, why this happens?

Thanks,
Fredrik Sandberg



Re: [flexcoders] Browser-difference Netconnection AMF0

2007-01-18 Thread Igor Costa

Frederick

This happens not because of your browser but some configuration into your
amfphp. Did you tried with the last update of amfphp 1.9 , that in also
supports
amf3

best.

On 1/18/07, wesubotnix [EMAIL PROTECTED] wrote:


  Hi,

After compiling old (Flex 2.0) classes within the 2.01 framework, our
amfphp-connection stops working in some client browsers. A
NetConnection.Call.BadVersion. error is thrown. The strange thing is
that it works fine in Internet Explorer 6, but not IE7, or Firefox2.
Could there be a difference in the amf0-interpretation between the
flashplayers? Anyone know, or would like to guess, why this happens?

Thanks,
Fredrik Sandberg

 





--

Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta


[flexcoders] Re: Difference between two dates

2006-06-26 Thread Tim Hoff
Hi Kelly,

For simple comparisons there is are compare() and dateCompare() 
functions in the mx.utils.ObjectUtil class.

-TH

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

 Yes thank you, this is helpful.  I did already have some routines 
built to
 do this but this one is a bit better.  Never-the-less I still 
believe the
 language would be improved by making a Date primitive.  
  
 Just because we have workarounds does not mean we should settle 
for them.
 The fact still remains that this requires extra code, especially 
if your
 trying to do a comparison between 2 variables whose actual types 
you don't
 know (or care) and just want to know if they are equivalent or not.
  
 I understand that it's way too late in the Flex 2.0 game for any 
of this,
 but here's hoping for Flex 2.1
  
 - Kelly 
 
   _  
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Douglas Knudsen
 Sent: Monday, June 26, 2006 11:56 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Difference between two dates
 
 
 http://jeff.mxdj.com/datediff_for_actionscript.htm
 
 perhaps this would be helpful.
 
 DK
 
 
 On 6/26/06, Kelly Birr [EMAIL PROTECTED] wrote: 
 
 If you do not wish to change the Date class so it will conform to a
 (terrible) standard, I can sort of understand that.  
  
 Would you please consider the possibility of adding a DateTime or 
Date2
 class in Flex 2.1 that works like a primitive type.  Or better 
yet, make the
 new class be Date and the standards-compliant one called EcmaDate 
or EDate
 or CDate or something like that. :)
  
 - Kelly
 
   _  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Daniel Tuppeny
 
 Sent: Monday, June 26, 2006 1:03 AM
 To: flexcoders@yahoogroups.com
 
 Subject: RE: [flexcoders] Difference between two dates
 
 
 
  Since the Date class is specified by the EcmaScript-262 
standard, we're
 not going to change it
  
 That's fair enough, but as things are (without a utility class to 
do this
 stuff), I can see there being a whole bunch of buggy 
implementations of
 date stuff in Flex over the coming months, which will be spread 
amongst
 developers via sites like CodeProject!! :-(
 
   _  
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Gordon Smith
 Sent: 24 June 2006 00:01
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Difference between two dates
 
 
 
 Since the Date class is specified by the EcmaScript-262 standard, 
we're not
 going to change it. But it sounds like we should consider adding a
 flex.utils.DateUtils class in the future to make date manipulation 
easier.
 
  
 
 - Gordon
 
  
 
 
   _  
 
 
 From: flexcoders@yahoogroups.com [mailto:
 mailto:flexcoders@yahoogroups.com [EMAIL PROTECTED] On 
Behalf Of
 Pan Troglodytes
 Sent: Friday, June 23, 2006 8:53 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Difference between two dates
 
  
 
 Well, it helped when I figured out I could do things like 
date.date += 12
 and it would automatically correct for rolling over months/years.  
But at
 the very least, there needs to be a built-in daysBetween 
function.  Yes,
 yes, I know you can do the getTime() arithmetic.  But every time 
you have to
 fall back to that, it feels kludgy. 
 
 If I were redesigning it, it wold at least ook like this:
 
 dayOfWeek - what used to be called day
 day - day in month (used to be called date)
 month - 1 based like day (what used to be called date) is
 hour/minute/second/millisecond - singular (if hour is plural, why 
not
 months?)
 year - why fullYear?  I mean, c'mon, do people really expect 
something
 called year to be two digits or what?
 daysBetween(laterDate:date) - laterDate minus this in days 
 
 But, alas, it's too late.  There's no way they'll make the change 
at this
 late day.
 
 I mean date.
 
 Haha.
 
 On 6/23/06, Daniel Tuppeny   mailto:[EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
 
 I wouldn't disagree!
 
  
 
 There seems to be no useful functions for manipulating dates. They 
should
 copy all the methods and properties from the .NET DateTime 
class :o)
 
  
 
 
   _  
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Pan Troglodytes
 Sent: 23 June 2006 16:02
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Difference between two dates
 
 I swear, I really think the date class was designed by a crazy 
man.  You
 hear that Adobe? - CRAZY! :D
 
 On 6/23/06, Daniel Tuppeny   mailto:[EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote: 
 
 I was using .day instead of .date
 
  
 
 TFI Friday! =)
 
  
 
 
   _  
 
 
 From: flexcoders@yahoogroups.com [mailto:
 mailto:flexcoders@yahoogroups.com [EMAIL PROTECTED] On 
Behalf Of
 Daniel Tuppeny
 Sent: 23 June 2006 15:33
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Difference between two dates
 
 I think I need more coffee
 
  
 
 The following code (which I'm sure is correct

RE: [flexcoders] Re: Difference between two dates

2006-06-26 Thread Kelly Birr
Yes, but this still requires knowing if your variable is a date or not.  A
straight primitive == would not. To test for that would only be 2 extra
lines of code but it's still a special case that you have to put everywhere.

My point is only that having to treat Dates differently from Numbers and
Strings and use functions for comparison  is inconvenient, no matter how
simple it actually may be. This could be improved by making them (or a new
class) a primitive. 

Of course if a future version of ActionScript allows users to override
operators in custom classes, I can create my own [primitive-like] Date
class. Then no-one will have to hear me complain. :)

- Kelly 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tim Hoff
Sent: Monday, June 26, 2006 2:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Difference between two dates

Hi Kelly,

For simple comparisons there is are compare() and dateCompare() functions in
the mx.utils.ObjectUtil class.

-TH

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

 Yes thank you, this is helpful.  I did already have some routines
built to
 do this but this one is a bit better.  Never-the-less I still
believe the
 language would be improved by making a Date primitive.  
  
 Just because we have workarounds does not mean we should settle
for them.
 The fact still remains that this requires extra code, especially
if your
 trying to do a comparison between 2 variables whose actual types
you don't
 know (or care) and just want to know if they are equivalent or not.
  
 I understand that it's way too late in the Flex 2.0 game for any
of this,
 but here's hoping for Flex 2.1
  
 - Kelly
 
   _
 
 From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
 Behalf Of Douglas Knudsen
 Sent: Monday, June 26, 2006 11:56 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Difference between two dates
 
 
 http://jeff.mxdj.com/datediff_for_actionscript.htm
 
 perhaps this would be helpful.
 
 DK
 
 
 On 6/26/06, Kelly Birr [EMAIL PROTECTED] wrote: 
 
 If you do not wish to change the Date class so it will conform to a
 (terrible) standard, I can sort of understand that.  
  
 Would you please consider the possibility of adding a DateTime or
Date2
 class in Flex 2.1 that works like a primitive type.  Or better
yet, make the
 new class be Date and the standards-compliant one called EcmaDate
or EDate
 or CDate or something like that. :)
  
 - Kelly
 
   _
 
 
 
 From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
 Behalf Of Daniel Tuppeny
 
 Sent: Monday, June 26, 2006 1:03 AM
 To: flexcoders@yahoogroups.com
 
 Subject: RE: [flexcoders] Difference between two dates
 
 
 
  Since the Date class is specified by the EcmaScript-262
standard, we're
 not going to change it
  
 That's fair enough, but as things are (without a utility class to
do this
 stuff), I can see there being a whole bunch of buggy 
implementations of
 date stuff in Flex over the coming months, which will be spread
amongst
 developers via sites like CodeProject!! :-(
 
   _
 
 From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
 Behalf Of Gordon Smith
 Sent: 24 June 2006 00:01
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Difference between two dates
 
 
 
 Since the Date class is specified by the EcmaScript-262 standard,
we're not
 going to change it. But it sounds like we should consider adding a 
 flex.utils.DateUtils class in the future to make date manipulation
easier.
 
  
 
 - Gordon
 
  
 
 
   _
 
 
 From: flexcoders@yahoogroups.com [mailto:
 mailto:flexcoders@yahoogroups.com [EMAIL PROTECTED] On
Behalf Of
 Pan Troglodytes
 Sent: Friday, June 23, 2006 8:53 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Difference between two dates
 
  
 
 Well, it helped when I figured out I could do things like
date.date += 12
 and it would automatically correct for rolling over months/years.  
But at
 the very least, there needs to be a built-in daysBetween
function.  Yes,
 yes, I know you can do the getTime() arithmetic.  But every time
you have to
 fall back to that, it feels kludgy. 
 
 If I were redesigning it, it wold at least ook like this:
 
 dayOfWeek - what used to be called day day - day in month (used to be 
 called date) month - 1 based like day (what used to be called date) is 
 hour/minute/second/millisecond - singular (if hour is plural, why
not
 months?)
 year - why fullYear?  I mean, c'mon, do people really expect
something
 called year to be two digits or what?
 daysBetween(laterDate:date) - laterDate minus this in days
 
 But, alas, it's too late.  There's no way they'll make the change
at this
 late day.
 
 I mean date.
 
 Haha.
 
 On 6/23/06, Daniel Tuppeny   mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 wrote:
 
 I wouldn't disagree!
 
  
 
 There seems to be no useful functions for manipulating dates. They
should
 copy all the methods

RE: [flexcoders] Re: Difference between two dates

2006-06-26 Thread Gordon Smith










 if a future version of ActionScript allows users to override operators
in custom classes



I've heard that the committee designing the next version of Ecmascript
is considering this. If they add this language feature, we'll likely follow
their lead.



- Gordon











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Kelly Birr
Sent: Monday, June 26, 2006 3:06
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re:
Difference between two dates











Yes, but this still requires knowing if your variable
is a date or not. A
straight primitive == would not. To test for that would only be 2 extra
lines of code but it's still a special case that you have to put everywhere.

My point is only that having to treat Dates differently from Numbers and
Strings and use functions for comparison is inconvenient, no matter how
simple it actually may be. This could be improved by making them (or a new
class) a primitive. 

Of course if a future version of ActionScript allows users to override
operators in custom classes, I can create my own [primitive-like] Date
class. Then no-one will have to hear me complain. :)

- Kelly 

-Original Message-
From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
Behalf Of Tim Hoff
Sent: Monday, June 26, 2006 2:42 PM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Re: Difference between two dates

Hi Kelly,

For simple comparisons there is are compare() and dateCompare() functions
in
the mx.utils.ObjectUtil class.

-TH

--- In [EMAIL PROTECTED]ups.com,
Kelly Birr [EMAIL PROTECTED]. wrote:

 Yes thank you, this is helpful. I did already have some routines
built to
 do this but this one is a bit better. Never-the-less I still
believe the
 language would be improved by making a Date primitive. 
 
 Just because we have workarounds does not mean we should settle
for them.
 The fact still remains that this requires extra code, especially
if your
 trying to do a comparison between 2 variables whose actual types
you don't
 know (or care) and just want to know if they are equivalent or not.
 
 I understand that it's way too late in the Flex 2.0 game for any
of this,
 but here's hoping for Flex 2.1
 
 - Kelly
 
 _
 
 From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
 Behalf Of Douglas Knudsen
 Sent: Monday, June 26, 2006 11:56 AM
 To: [EMAIL PROTECTED]ups.com
 Subject: Re: [flexcoders] Difference between two dates
 
 
 http://jeff.mxdj.com/datediff_for_actionscript.htm
 
 perhaps this would be helpful.
 
 DK
 
 
 On 6/26/06, Kelly Birr [EMAIL PROTECTED]. wrote: 
 
 If you do not wish to change the Date class so it will conform to a
 (terrible) standard, I can sort of understand that. 
 
 Would you please consider the possibility of adding a DateTime or
Date2
 class in Flex 2.1 that works like a primitive type. Or better
yet, make the
 new class be Date and the standards-compliant one called EcmaDate
or EDate
 or CDate or something like that. :)
 
 - Kelly
 
 _
 
 
 
 From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
 Behalf Of Daniel Tuppeny
 
 Sent: Monday, June 26, 2006 1:03 AM
 To: [EMAIL PROTECTED]ups.com
 
 Subject: RE: [flexcoders] Difference between two dates
 
 
 
  Since the Date class is specified by the EcmaScript-262
standard, we're
 not going to change it
 
 That's fair enough, but as things are (without a utility class to
do this
 stuff), I can see there being a whole bunch of buggy 
implementations of
 date stuff in Flex over the coming months, which will be spread
amongst
 developers via sites like CodeProject!! :-(
 
 _
 
 From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
 Behalf Of Gordon Smith
 Sent: 24 June 2006 00:01
 To: [EMAIL PROTECTED]ups.com
 Subject: RE: [flexcoders] Difference between two dates
 
 
 
 Since the Date class is specified by the EcmaScript-262 standard,
we're not
 going to change it. But it sounds like we should consider adding a 
 flex.utils.DateUtils class in the future to make date manipulation
easier.
 
 
 
 - Gordon
 
 
 
 
 _
 
 
 From: [EMAIL PROTECTED]ups.com
[mailto:
 mailto:[EMAIL PROTECTED]ups.com
[EMAIL PROTECTED]ups.com]
On
Behalf Of
 Pan Troglodytes
 Sent: Friday, June 23, 2006 8:53 AM
 To: [EMAIL PROTECTED]ups.com
 Subject: Re: [flexcoders] Difference between two dates
 
 
 
 Well, it helped when I figured out I could do things like
date.date += 12
 and it would automatically correct for rolling over months/years. 
But at
 the very least, there needs to be a built-in daysBetween
function. Yes,
 yes, I know you can do the getTime() arithmetic. But every time
you have to
 fall back to that, it feels kludgy. 
 
 If I were redesigning it, it wold at least ook like this:
 
 dayOfWeek - what used to be called day day - day in month (used to be 
 called date) month - 1 based like day (what used to be called date) is 
 hour/minute/second/millisecond - singular (if hour is plural,
why
not
 months?)
 year

[flexcoders] Re: Difference between two dates

2006-06-23 Thread kellyb723
AMEN!!

(not terribly helpful, but feels good to say)

- Kelly

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

 I swear, I really think the date class was designed by a crazy man.  You
 hear that Adobe? - CRAZY! :D
 
 On 6/23/06, Daniel Tuppeny [EMAIL PROTECTED] wrote:
 
 I was using .day instead of .date
 
  TFI Friday! =)
 
   --
  *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On
  Behalf Of *Daniel Tuppeny
  *Sent:* 23 June 2006 15:33
  *To:* flexcoders@yahoogroups.com
  *Subject:* RE: [flexcoders] Difference between two dates
 
   I think I need more coffee
 
  The following code (which I'm sure is correct!), returns around
2.8 when
  I'm expecting around 3.2. Anyone spot my error?
 
 
 
  public static function getMonths(startDate:Date, endDate:Date):Number
{
 if (startDate  endDate)
 {
  var tmp:Date = endDate;
  endDate = startDate;
  startDate = tmp;
 }
 
 var numMonths:Number = 0;
 
 // Get number of months in years
 numMonths += (endDate.fullYear - startDate.fullYear) * 12
 numMonths += endDate.month - startDate.month;
 numMonths += (endDate.day - startDate.day) / 30; // This needs
fixing
 
 return numMonths;
}
 
  __
  This email has been scanned by the MessageLabs Email Security System.
  For more information please visit http://www.messagelabs.com/email
  __
 
  [Inbound Mail Scanned by MessageLabs]
 
 
  __
  This email has been scanned by the MessageLabs Email Security System.
  For more information please visit http://www.messagelabs.com/email
  __
 
   
 
 
 
 
 -- 
 Jason







 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

* 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] the difference between List.getItemAt and List.getChildAt

2005-04-08 Thread Krzysztof Szlapinski

Hi,

I wonder what is the difference between List.getItemAt() property and 
List.getChildAt() method.

When I create List items with addItem the List.getChildAt() gives me 
undefined value and getItemAt() gives me the correct item.

why?

krzysiek 




 
Yahoo! Groups Links

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

* 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] the difference between List.getItemAt and List.getChildAt

2005-04-08 Thread michael keirnan

the two APIs are not intended to be similar, although perhaps the names 
themselves might lead one to think they are related at first glance.

getItemAt() returns the specified item from the list's data provider. 
getChildAt() is inherited from View which is a base class that provides 
containment semantics. so MXML components that can have other MXML 
components within them extend View.

   /mgk

Krzysztof Szlapinski wrote:

Hi,

I wonder what is the difference between List.getItemAt() property and 
List.getChildAt() method.

When I create List items with addItem the List.getChildAt() gives me 
undefined value and getItemAt() gives me the correct item.

why?

krzysiek 




 
Yahoo! Groups Links



 





  



 
Yahoo! Groups Links

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

* 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] the difference between List.getItemAt and List. getChildAt

2005-04-08 Thread Abdul Qabiz

List.getItemAt(..) gives you item(data object) from dataprovider.  List
inherits from View, that's why you see getChildAt(..) method, which
essentially gives the reference of child at specified index. Not sure, how
it works in case of List..

Does it make sense?

-abdul



-Original Message-
From: Krzysztof Szlapinski [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 08, 2005 9:54 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] the difference between List.getItemAt and
List.getChildAt


Hi,

I wonder what is the difference between List.getItemAt() property and 
List.getChildAt() method.

When I create List items with addItem the List.getChildAt() gives me 
undefined value and getItemAt() gives me the correct item.

why?

krzysiek 




 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

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

* 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] the difference between List.getItemAt and List. getChildAt

2005-04-08 Thread Manish Jethani

On Apr 8, 2005 10:43 PM, Abdul Qabiz [EMAIL PROTECTED] wrote:

 List.getItemAt(..) gives you item(data object) from dataprovider.  List
 inherits from View, that's why you see getChildAt(..) method, which
 essentially gives the reference of child at specified index. Not sure, how
 it works in case of List..

The number of child objects in List needn't match the number of rows
being displayed.  There's no relation.  To see the number of child
objects, see the numChildren property.

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
Yahoo! Groups Links

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

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