RE: [flexcoders] Flex 2 Loader in Flex 3

2009-05-31 Thread ajayashish

I have tried that... but after that it gives a lot more compilation errors...
if possible can u try the mxmls i have attached.. 



Alex Harui wrote:
> 
> It is possible we eliminated the flash.display components from the mx:
> namespace in Flex3.  Maybe you should just use SWFLoader there instead.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of ajayashish
> Sent: Saturday, May 30, 2009 9:45 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Flex 2 Loader in Flex 3
> 
> 
> 
> 
> 
> It says it cannot find the component LOADER... it works in Flex 2
> though...
> 
> if u see the attachment i send then u will understand it better...
> 
> Alex Harui wrote:
>>
>> You're not telling us what errors you are getting.
>>
>> Alex Harui
>> Flex SDK Developer
>> Adobe Systems Inc.
>> Blog: http://blogs.adobe.com/aharui
>>
>> From: flexcoders@yahoogroups.com
>> [mailto:flexcoders@yahoogroups.com]
>> On
>> Behalf Of ajayashish
>> Sent: Saturday, May 30, 2009 1:43 PM
>> To: flexcoders@yahoogroups.com
>> Subject: RE: [flexcoders] Flex 2 Loader in Flex 3
>>
>>
>>
>>
>>
>> see the attachment... 2 mxmls are there... one uses the loader component
>> to
>> load the swf... i cannot get this working in flex3.
>>
>> Alex Harui wrote:
>>>
>>> You can't load a Flex2 SWF into a Flex3 app.
>>>
>>> Other than that, Loader and SWFLoader did not change that much so they
>>> should still load SWFs of the correct version. What kinds of errors do
>>> you get?
>>>
>>> Alex Harui
>>> Flex SDK Developer
>>> Adobe Systems Inc.
>>> Blog: http://blogs.adobe.com/aharui
>>>
>>> From:
>>> flexcoders@yahoogroups.com
>>> [mailto:flexcoders@yahoogroups.com]
>>> On
>>> Behalf Of ajayashish
>>> Sent: Friday, May 29, 2009 9:44 PM
>>> To:
>>> flexcoders@yahoogroups.com
>>> Subject: [flexcoders] Flex 2 Loader in Flex 3
>>>
>>>
>>>
>>>
>>>
>>> I am working on a project whcih is done in flex 2. It uses a component
>>> called
>>> Loader which takes a SWF as a source file.
>>>
>>> I need this done in flex3 now. but there loader in flex3 is not similar
>>> to
>>> what it was in flex2 and the swfloader in flex3 is also not functioning
>>> properly with that. please suggest me
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Flex-2-Loader-in-Flex-3-tp23766591p23766591.html
>>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>>
>>>
>>>
>> http://www.nabble.com/file/p23797186/maps.zip maps.zip
>> --
>> View this message in context:
>> http://www.nabble.com/Flex-2-Loader-in-Flex-3-tp23766591p23797186.html
>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>
>>
>>
> 
> --
> View this message in context:
> http://www.nabble.com/Flex-2-Loader-in-Flex-3-tp23766591p23799749.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Flex-2-Loader-in-Flex-3-tp23766591p23810635.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] FilterFunction creating duplicate items in the list

2009-05-31 Thread Rohit Sharma
  Hi Srinivas,

   I tried using creating a different data provider from the roomlist and
applying filter functions on that.
   And then assigning the filtered dataprovider to the roomlist. But still I
am seeing the issue.
   Can you provide some code snippets for what you mean?

  Thanks,
  Rohit

On Mon, Jun 1, 2009 at 8:12 AM, Srinivas Sandur Madhu Murthy <
s.m.srini...@gmail.com> wrote:

>
>
> Longtime back I did face similar issue. I probably believe, you have binded
> the array collection with data grid or list directly & applying filter on
> this binded array collection. If it is true, then trying not binding them
> using "{}", use flags and commitProperties() method and apply filter
> function if not applied already on collection & then assign dataProvider for
> grid/list. Probably this might remove or resolve duplication problem.
>
> Srinivas
>
> On May 31, 2009, at 12:16 PM, Rohit Sharma wrote:
>
>  Hi All,
>
> I am stuck up with this problem. Please provide some insight into
> it.
>
> " I have a list component which shows all the game rooms currently
> existing. As soon as some property of the room changes,
> I update the corresponding item in the dataprovider using setItemAt. (I
> typecast dataprovider as Arraycollection).
>   Recently I added some filters to the room list using
> filterfunction. As soon as I start applying filters, I see few items getting
> duplicated in the list. Some items exist with old values as well as new
> values.
> I also tried making the filtering and updating actions mutually
> exclusive using flags hoping that two different actions taking
> place on the same data might cause duplication of items. But the
> duplication is still taking place.
>  In fact I tried using itemUpdate() also in place of setItemAt but the
> problem still persists.
> I have also tried modifying only the source array during updates because
> the filtering takes place only on the ArrayCollection and
> not on the source array but this also failed."
>
>   Any inputs will be appreciated.
>
> Thanks,
> Rohit
>
>
>  
>


RE: [flexcoders] Flex 2 Loader in Flex 3

2009-05-31 Thread Alex Harui
It is possible we eliminated the flash.display components from the mx: 
namespace in Flex3.  Maybe you should just use SWFLoader there instead.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of ajayashish
Sent: Saturday, May 30, 2009 9:45 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex 2 Loader in Flex 3





It says it cannot find the component LOADER... it works in Flex 2 though...

if u see the attachment i send then u will understand it better...

Alex Harui wrote:
>
> You're not telling us what errors you are getting.
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On
> Behalf Of ajayashish
> Sent: Saturday, May 30, 2009 1:43 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Flex 2 Loader in Flex 3
>
>
>
>
>
> see the attachment... 2 mxmls are there... one uses the loader component
> to
> load the swf... i cannot get this working in flex3.
>
> Alex Harui wrote:
>>
>> You can't load a Flex2 SWF into a Flex3 app.
>>
>> Other than that, Loader and SWFLoader did not change that much so they
>> should still load SWFs of the correct version. What kinds of errors do
>> you get?
>>
>> Alex Harui
>> Flex SDK Developer
>> Adobe Systems Inc.
>> Blog: http://blogs.adobe.com/aharui
>>
>> From: 
>> flexcoders@yahoogroups.com
>> [mailto:flexcoders@yahoogroups.com]
>> On
>> Behalf Of ajayashish
>> Sent: Friday, May 29, 2009 9:44 PM
>> To: 
>> flexcoders@yahoogroups.com
>> Subject: [flexcoders] Flex 2 Loader in Flex 3
>>
>>
>>
>>
>>
>> I am working on a project whcih is done in flex 2. It uses a component
>> called
>> Loader which takes a SWF as a source file.
>>
>> I need this done in flex3 now. but there loader in flex3 is not similar
>> to
>> what it was in flex2 and the swfloader in flex3 is also not functioning
>> properly with that. please suggest me
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Flex-2-Loader-in-Flex-3-tp23766591p23766591.html
>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>
>>
>>
> http://www.nabble.com/file/p23797186/maps.zip maps.zip
> --
> View this message in context:
> http://www.nabble.com/Flex-2-Loader-in-Flex-3-tp23766591p23797186.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>
>

--
View this message in context: 
http://www.nabble.com/Flex-2-Loader-in-Flex-3-tp23766591p23799749.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Sorting in AdvancedDataGrid happens only once, please help

2009-05-31 Thread yossi.baram
Hi guys,
My AdvancedDataGrid shows a tree, 
I set sortableColumns="true" sortExpertMode="true",
But when I click on one of the columns, they are sorted in descending way, when 
I click again  - Nothing happens,
Why
Why doesnt the default sorting work in my AdvancedDataGrid?
Do I need a custom sorter? and if so, what functions should I override?

Thanks for the help
Jo



Re: [flexcoders] Error 2044 - 2038 file io exceptions..

2009-05-31 Thread [p e r c e p t i c o n]
Yes...in addition to that..it'll only perform the upload if I have a proxy 
running like Charles...is this problem related to the debug version of the 
player?
[-percy-]

-Original Message-
From: g...@alchemy.com.au

Date: Mon, 01 Jun 2009 15:15:12 
To: 
Subject: Re: [flexcoders] Error 2044 - 2038 file io exceptions..


Have you put in place the necessary crossdomain.xml files?

Quoting "[p e r c e p t i c o n]" :

> I've looked all over the net and can't find a solution to this
> problem...seriously...why did I begin getting this error when it worked
> before...no i can't make any progress whatsoever...does anyone have any
> insight into why i can't do a simple file upload? i'm running the app from a
> localhost server (RoR) and calling another localhost (apache) to run the
> upload script (it's a long story)...even if i run a ruby script i get the
> same error so it's not the script...please help...
> please
>




This message was sent using IMP, the Internet Messaging Program.




[flexcoders] Binding question

2009-05-31 Thread steve horvath

I am trying to bind the checkbox selected property as written below. 
The value of selected should be triggered whenever currentPresentation
changes or whenever albumIncluded(data) returns a different value.  The
checkbox is in a List itemRenderer component.

ItemRenderer

 

 
 
 

The albumIncluded function is in a class called Media and is coded as
follows:

Media class (the class is marked [Bindable])
-
 private var _includedAlbums:ArrayCollection /* of Albums */ =new
ArrayCollection();

 public function includeAlbum(album:Album):void {
 _includedAlbums.addItem(album);
 if (!currentAlbum)
 currentAlbum = album;
 dispatchEvent(new Event("albumToggledEvent"));
 }

 [Bindable(event="albumToggledEvent")]
 public function albumIncluded(album:Album):Boolean {
 return _includedAlbums.getItemIndex(album) >= 0;
 }

Apparently the albumIncluded function doesn't fire when includeAlbum()
function is called.

So I put a read-only property called includedAlbums in Media which is
supposed to be triggered when _includedAlbums changes.

Media class (class is Bindable)

 private var _includedAlbums:ArrayCollection /* of Albums */ =new
ArrayCollection();

 public function includeAlbum(album:Album):void {
 _includedAlbums.addItem(album);
 if (!currentAlbum)
 currentAlbum = album;
 dispatchEvent(new Event("albumToggledEvent"));
 }

 [Bindable(event="albumToggledEvent")]
 public function albumIncluded(album:Album):Boolean {
 return _includedAlbums.getItemIndex(album) >= 0;
 }

 [Bindable(event="none")] // handles runtime binding warnings
 public function get includedAlbums():ArrayCollection /* of
Albums */ {
 return _includedAlbums;
 }

And added a helper function to the ItemRenderer component, with the idea
that if either currentPresentation or includedAlbums changed it would
fire the helper function which would return the correct value for the
checkbox selected property.

ItemRenderer
---

 

 
 
 

But it looks like the includedAlbums property is never firing an event. 
How do I get my checkbox selected to set to the right value?

(Note: I also tried setting the bindable event tag to
event="albumToggledEvent" for the includedAlbums getter property, and it
still didn't work.)

ascii




Re: [flexcoders] Error 2044 - 2038 file io exceptions..

2009-05-31 Thread guy
Have you put in place the necessary crossdomain.xml files?

Quoting "[p e r c e p t i c o n]" :

> I've looked all over the net and can't find a solution to this
> problem...seriously...why did I begin getting this error when it worked
> before...no i can't make any progress whatsoever...does anyone have any
> insight into why i can't do a simple file upload? i'm running the app from a
> localhost server (RoR) and calling another localhost (apache) to run the
> upload script (it's a long story)...even if i run a ruby script i get the
> same error so it's not the script...please help...
> please
>




This message was sent using IMP, the Internet Messaging Program.



Re: [flexcoders] FilterFunction creating duplicate items in the list

2009-05-31 Thread Srinivas Sandur Madhu Murthy
Longtime back I did face similar issue. I probably believe, you have  
binded the array collection with data grid or list directly & applying  
filter on this binded array collection. If it is true, then trying not  
binding them using "{}", use flags and commitProperties() method and  
apply filter function if not applied already on collection & then  
assign dataProvider for grid/list. Probably this might remove or  
resolve duplication problem.


Srinivas

On May 31, 2009, at 12:16 PM, Rohit Sharma wrote:




Hi All,

I am stuck up with this problem. Please provide some insight  
into it.


" I have a list component which shows all the game rooms currently  
existing. As soon as some property of the room changes,
I update the corresponding item in the dataprovider using setItemAt.  
(I typecast dataprovider as Arraycollection).
  Recently I added some filters to the room list using  
filterfunction. As soon as I start applying filters, I see few items  
getting
duplicated in the list. Some items exist with old values as well as  
new values.
I also tried making the filtering and updating actions  
mutually exclusive using flags hoping that two different actions  
taking
place on the same data might cause duplication of items. But the  
duplication is still taking place.
 In fact I tried using itemUpdate() also in place of setItemAt  
but the problem still persists.
I have also tried modifying only the source array during updates  
because the filtering takes place only on the ArrayCollection and

not on the source array but this also failed."

  Any inputs will be appreciated.

Thanks,
Rohit





[flexcoders] extract data from advancedDataGrid. Please help.

2009-05-31 Thread scorptique

I know http://forums.adobe.com/thread/131416 has the answer inside but i dont
understand what it means (hierarchy and cursor thingies)  and how to use it.
I dont know where to go after "var itemFromCursor:Object = cursor.current;". 
Only manage to understand until the getting selected index, and I got it.
But I dont know how to use it to extract the data from that row and trace it
out. please help me add on to my doubleClickHandler function. These are my
codes.

 

my xml file.














 

 

my actionscript code in the main mxml file

private function doubleClickHandler():void
{  
var item:Object = agd.selectedItem;
var index:int = agd.selectedIndex;
   
if (!item || index == -1)
return ;
Alert.show("Double Clicked item index:" + index);
}

 


 








-- 
View this message in context: 
http://www.nabble.com/extract-data-from-advancedDataGrid.-Please-help.-tp23798641p23798641.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Cairngorm 3 (extension)

2009-05-31 Thread mhagmajer
Hi,

Please take a while to review my cotribution to Cairngorm that deals with GUI 
responsiveness issue.

I have written an article to introduce the changes:

http://students.mimuw.edu.pl/~mhagmajer/cairngorm3/

Waiting for feedback.

Kind regards,

Marcin Hagmajer



[flexcoders] Error 2044 - 2038 file io exceptions..

2009-05-31 Thread [p e r c e p t i c o n]
I've looked all over the net and can't find a solution to this
problem...seriously...why did I begin getting this error when it worked
before...no i can't make any progress whatsoever...does anyone have any
insight into why i can't do a simple file upload? i'm running the app from a
localhost server (RoR) and calling another localhost (apache) to run the
upload script (it's a long story)...even if i run a ruby script i get the
same error so it's not the script...please help...
please


[flexcoders] How to make FTE text selectable and editable?

2009-05-31 Thread Manish Jethani
I have this program (Flash Player 10):

var elementFormat:ElementFormat = new ElementFormat();
elementFormat.fontSize = 48;
var textElement:TextElement = new TextElement("Hello,
world", elementFormat)
var textBlock:TextBlock = new TextBlock(textElement);
var textLine:TextLine = textBlock.createTextLine();
textLine.y = textLine.ascent;
addChild(textLine);

How do I make the text selectable and editable?

(Note: I'm not using the Text Layout Framework.)

Manish


[flexcoders] FileReference RemoteObject

2009-05-31 Thread [p e r c e p t i c o n]
Hi Flexy People.
I'm trying to send the file name and filedata to a service using
RemoteObject...can anyone tell me how to access the files data to pass to my
service...

thanks

percy


Re: [flexcoders] Font types getting Over written

2009-05-31 Thread Guy Morton
That sounds like a caching issue to me. Things don't generally fail  
"sometimes".


On 01/06/2009, at 3:14 AM, sony antony wrote:




Hi there..

I had a problem with font types in ma application

I am using both "Plain" and "Caps" types of the same font.

Formerly only the "Plain" was there. Now when I used "Caps" along  
with.


At times it's working fine, but, sometimes  when I clean the  
project, all the "Plain" types of the same font family is getting  
converted to "Caps" type of the same font family.


and I tried removing the font embedding from the stylesheet which  
was common to the project, and embedded the font in the separate  
pages where, I needed the particular fonts. again it is working fine  
at sometimes only.


Please do help me to sort out this...

:)
Sony.





Explore and discover exciting holidays and getaways with Yahoo!  
India Travel Click here!







Re: [flexcoders] Re: HTTPService.send(params) and nothing happens?

2009-05-31 Thread Guy Morton
send(params) will do either a GET or a POST to the URL with the params  
sent as name=value pairs either as a query string (GET) or in the body  
of the request (POST). By default it uses GET. The form you post to  
has to look for the variables in the right place.


Are you able to see what URL is actually being requested on the server  
(ie, do you have access to the server logs)? Looking at what is  
actually being requested via either Firebug or Fiddler is then your  
next step.


Guy

On 01/06/2009, at 5:49 AM, ciminop wrote:




I tried that and the page does the same thing, which is why I tried  
the HTML calling the login script. I thought the problem on the http://www.postgradmed.com/index.php?page=login 
 is that there are multiple forms in the page. But if you paste the  
url into my application in the URL text input, you'll see the post  
Grad med page code. Even with a correct ID Password, the page source  
still shows the login form.


However, my point is still valid, or maybe I'm just confused  
(happens). If I point to my test login page and perform "send" is  
this supposed to return the page or try to submit the form? If it's  
supposed to submit the form, how come all I get back is the blank  
form/html code? If it supposed to submit, why don't I get back  
something different?


--- In flexcoders@yahoogroups.com, Pedro Sena  wrote:
>
> Your URL should point to http://www.postgradmed.com/index.php?page=login
> instead of http://www.translunardesigns.com/postgradmed/testlogin.html
>
> You need to point to the same page/script that the html does.
>
> HTH
>
> On Sun, May 31, 2009 at 10:53 AM, ciminop  wrote:
>
> >
> >
> > Not exactly nothing, I get the contents of the URL that I'm  
trying to send

> > the data to, and have it submit a form.
> >
> > I created a simple login form which logs into a remote site. If  
you submit
> > it, wven with no data or incorrect data it will take you to the  
remote site.

> > Here's the form:
> > http://www.translunardesigns.com/postgradmed/testlogin.html
> >
> > Next, I have a Flex app that uses the HTTPService to call my  
test HTML.
> > Whether I submit this with data, no data, incorrect data, the  
result is the
> > same: response code 200 (OK), and the results, which i expect to  
have the
> > html of the remote site, instead contain the html of the  
testlogin.html.

> >
> > The application is here, source viewable with right-click:
> > http://www.translunardesigns.com/postgradmed/PostGradMed.html
> >
> > So my question(s) is(are): Why is this not redirecting to the  
remote site
> > and how can I get this to actually get the response form the  
submitted form?

> >
> >
> >
>
>
>
> --
> /**
> * Pedro Sena
> * Systems Architect
> * Sun Certified Java Programmer
> * Sun Certified Web Component Developer
> */
>






[flexcoders] Re: HTTPService.send(params) and nothing happens?

2009-05-31 Thread ciminop
I tried that and the page does the same thing, which is why I tried the HTML 
calling the login script. I thought the problem on the 
http://www.postgradmed.com/index.php?page=login is that there are multiple 
forms in the page. But if you paste the url into my application in the URL text 
input, you'll see the post Grad med page code. Even with a correct ID Password, 
the page source still shows the login form.

However, my point is still valid, or maybe I'm just confused (happens). If I 
point to my test login page and perform "send" is this supposed to return the 
page or try to submit the form? If it's supposed to submit the form, how come 
all I get back is the blank form/html code? If it supposed to submit, why don't 
I get back something different?

--- In flexcoders@yahoogroups.com, Pedro Sena  wrote:
>
> Your URL should point to http://www.postgradmed.com/index.php?page=login
> instead of http://www.translunardesigns.com/postgradmed/testlogin.html
> 
> You need to point to the same page/script that the html does.
> 
> HTH
> 
> On Sun, May 31, 2009 at 10:53 AM, ciminop  wrote:
> 
> >
> >
> > Not exactly nothing, I get the contents of the URL that I'm trying to send
> > the data to, and have it submit a form.
> >
> > I created a simple login form which logs into a remote site. If you submit
> > it, wven with no data or incorrect data it will take you to the remote site.
> > Here's the form:
> > http://www.translunardesigns.com/postgradmed/testlogin.html
> >
> > Next, I have a Flex app that uses the HTTPService to call my test HTML.
> > Whether I submit this with data, no data, incorrect data, the result is the
> > same: response code 200 (OK), and the results, which i expect to have the
> > html of the remote site, instead contain the html of the testlogin.html.
> >
> > The application is here, source viewable with right-click:
> > http://www.translunardesigns.com/postgradmed/PostGradMed.html
> >
> > So my question(s) is(are): Why is this not redirecting to the remote site
> > and how can I get this to actually get the response form the submitted form?
> >
> >  
> >
> 
> 
> 
> -- 
> /**
> * Pedro Sena
> * Systems Architect
> * Sun Certified Java Programmer
> * Sun Certified Web Component Developer
> */
>




[flexcoders] Font types getting Over written

2009-05-31 Thread sony antony
Hi there..
 
I had a problem with font types in ma application
 
I am using both "Plain" and "Caps" types of the same font.
 
Formerly only the "Plain" was there. Now when I used "Caps" along with. 
 
At times it's working fine, but, sometimes  when I clean the project, all the 
"Plain" types of the same font family is getting converted to "Caps" type of 
the same font family.
 
and I tried removing the font embedding from the stylesheet which was common to 
the project, and embedded the font in the separate pages where, I needed the 
particular fonts. again it is working fine at sometimes only. 
 
Please do help me to sort out this...
 
:)
Sony.
 
 
 
 


  Explore and discover exciting holidays and getaways with Yahoo! India 
Travel http://in.travel.yahoo.com/

[flexcoders] Re: FilterFunction creating duplicate items in the list

2009-05-31 Thread Tim Hoff

Sounds like your itemRenderer might not be clearing out old data
correctly.  Check out Question 2 in Amy's FAQ:

http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf


-TH

--- In flexcoders@yahoogroups.com, Rohit Sharma 
wrote:
>
> Hi All,
>
> I am stuck up with this problem. Please provide some insight into
> it.
>
> " I have a list component which shows all the game rooms currently
existing.
> As soon as some property of the room changes,
> I update the corresponding item in the dataprovider using setItemAt.
(I
> typecast dataprovider as Arraycollection).
> Recently I added some filters to the room list using
> filterfunction. As soon as I start applying filters, I see few items
getting
> duplicated in the list. Some items exist with old values as well as
new
> values.
> I also tried making the filtering and updating actions mutually
> exclusive using flags hoping that two different actions taking
> place on the same data might cause duplication of items. But the
duplication
> is still taking place.
> In fact I tried using itemUpdate() also in place of setItemAt but the
> problem still persists.
> I have also tried modifying only the source array during updates
because the
> filtering takes place only on the ArrayCollection and
> not on the source array but this also failed."
>
> Any inputs will be appreciated.
>
> Thanks,
> Rohit
>




[flexcoders] FilterFunction creating duplicate items in the list

2009-05-31 Thread Rohit Sharma
Hi All,

I am stuck up with this problem. Please provide some insight into
it.

" I have a list component which shows all the game rooms currently existing.
As soon as some property of the room changes,
I update the corresponding item in the dataprovider using setItemAt. (I
typecast dataprovider as Arraycollection).
  Recently I added some filters to the room list using
filterfunction. As soon as I start applying filters, I see few items getting
duplicated in the list. Some items exist with old values as well as new
values.
I also tried making the filtering and updating actions mutually
exclusive using flags hoping that two different actions taking
place on the same data might cause duplication of items. But the duplication
is still taking place.
 In fact I tried using itemUpdate() also in place of setItemAt but the
problem still persists.
I have also tried modifying only the source array during updates because the
filtering takes place only on the ArrayCollection and
not on the source array but this also failed."

  Any inputs will be appreciated.

Thanks,
Rohit


Re: [flexcoders] HTTPService.send(params) and nothing happens?

2009-05-31 Thread Pedro Sena
Your URL should point to http://www.postgradmed.com/index.php?page=login
instead of http://www.translunardesigns.com/postgradmed/testlogin.html

You need to point to the same page/script that the html does.

HTH

On Sun, May 31, 2009 at 10:53 AM, ciminop  wrote:

>
>
> Not exactly nothing, I get the contents of the URL that I'm trying to send
> the data to, and have it submit a form.
>
> I created a simple login form which logs into a remote site. If you submit
> it, wven with no data or incorrect data it will take you to the remote site.
> Here's the form:
> http://www.translunardesigns.com/postgradmed/testlogin.html
>
> Next, I have a Flex app that uses the HTTPService to call my test HTML.
> Whether I submit this with data, no data, incorrect data, the result is the
> same: response code 200 (OK), and the results, which i expect to have the
> html of the remote site, instead contain the html of the testlogin.html.
>
> The application is here, source viewable with right-click:
> http://www.translunardesigns.com/postgradmed/PostGradMed.html
>
> So my question(s) is(are): Why is this not redirecting to the remote site
> and how can I get this to actually get the response form the submitted form?
>
>  
>



-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


[flexcoders] HTTPService.send(params) and nothing happens?

2009-05-31 Thread ciminop
Not exactly nothing, I get the contents of the URL that I'm trying to send the 
data to, and have it submit a form.

I created a simple login form which logs into a remote site. If you submit it, 
wven with no data or incorrect data it will take you to the remote site. Here's 
the form: 
http://www.translunardesigns.com/postgradmed/testlogin.html

Next, I have a Flex app that uses the HTTPService to call my test HTML. Whether 
I submit this with data, no data, incorrect data, the result is the same: 
response code 200 (OK), and the results, which i expect to have the html of the 
remote site, instead contain the html of the testlogin.html.

The application is here, source viewable with right-click:
http://www.translunardesigns.com/postgradmed/PostGradMed.html

So my question(s) is(are): Why is this not redirecting to the remote site and 
how can I get this to actually get the response form the submitted form?