Search the web
Sign In
New User? Sign Up
flexcoders · RIA Development with Adobe Flex
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
appending to a dataprovider in actionscript   Message List  
Reply | Forward Message #130904 of 149659 |
Re: appending to a dataprovider in actionscript


Maciek, thanks for all your help. Here is the code snippet arround line 1403


else if (cache[i][field] is Date)
{
for (; i < n; i++)
{
v = cache[i];
v[convertedField] = v[field].getTime(); // line 1403
}
}







Fri Nov 21, 2008 7:28 pm

netdeep
Offline Offline
Send Email Send Email

Forward
Message #130904 of 149659 |
Expand Messages Author Sort by Date

I am still trying to iron out the problems with data binding in actionscript an server push. If I just replace the old array with a new one, it updates ok,...
netdeep
Offline Send Email
Nov 20, 2008
6:41 pm

Use trace() to debug instead of Alert. Using Alert can cause UI/focus problems in some circumstances. Also, have you tried using ChangeWatcher instead of...
Tracy Spratt
nts333rd
Offline Send Email
Nov 20, 2008
9:08 pm

A quick solution would probablt be to receive the new data, clone the old array, append the new data to the cloned array and reasign the bound array to the...
Fotis Chatzinikos
fotis.chatzi...
Offline Send Email
Nov 20, 2008
11:48 pm

if u want to listen a ArrayCollection when some of its elements are changed. u could write like this: ...
Fu Di
i_am_so_show
Offline Send Email
Nov 21, 2008
1:46 am

Well, I tried this approach and while I didn't work, at least I finally got an error from flash instead of the whole program just hanging: TypeError: Error...
netdeep
Offline Send Email
Nov 21, 2008
3:18 pm

What does your code look like (the .addEventListener call and the definition of your listener)? -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com ... ...
Maciek Sakrejda
msakrejda@...
Send Email
Nov 21, 2008
3:34 pm

The code for the event listener is pretty much what was suggested previously: private function updateHandler(event:CollectionEvent):void { Alert.show("...
netdeep
Offline Send Email
Nov 21, 2008
5:38 pm

I think this error is unrelated to your original question. Are you setting the parseFunction of your axis? Can you show us that code? -- Maciek Sakrejda ...
Maciek Sakrejda
msakrejda@...
Send Email
Nov 21, 2008
5:45 pm

Ok, I'm not sure what code you're looking for, so here is the function which I believe is triggering the error. I've edited out as much as I could (things like...
netdeep
Offline Send Email
Nov 21, 2008
6:35 pm

Hmm, I don't see it a problem. The core issue is here: TypeError: Error #1006: value is not a function. at...
Maciek Sakrejda
msakrejda@...
Send Email
Nov 21, 2008
7:19 pm

Maciek, thanks for all your help. Here is the code snippet arround line 1403 else if (cache[i][field] is Date) { for (; i < n; i++) { v = cache[i]; ...
netdeep
Offline Send Email
Nov 21, 2008
7:28 pm

Hey I think I finally figured out what was going on. The initial data for the chart was read from the database and the points were in the form of Timestamp,...
netdeep
Offline Send Email
Nov 21, 2008
8:08 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help