[flexcoders] [Important] Simultaneous HTTPService in the same component

2011-08-05 Thread isa_loyer
Dear Flexer,

I created an Air application.
On loading my component, I'd to make simultaneous request to my database to 
load some data to my component.

My component is a form with several comobobox and and text field.

But to do that I have two major problem.
- Sometimes, my form (my component) is loaded but there no information in my 
text field, perhaps request is not finished? but how to verify that and how to 
solve.
- Other question, as requests with http service is for different table, one to 
load sudent, other to load note, other to load teaching , is it possible to do 
this request in the same php file and to get all thos informations with the 
same E4X file.

Thanks for help



[flexcoders] Re: [Important] Simultaneous HTTPService in the same component

2011-08-05 Thread isa_loyer
Find below my source code
[Code]
?xml version=1.0 encoding=utf-8?
windowSkin:NativeTitleWindow xmlns:fx=http://ns.adobe.com/mxml/2009;
  
xmlns:s=library://ns.adobe.com/flex/spark
  
xmlns:mx=library://ns.adobe.com/flex/mx
  
xmlns:windowSkin=fr.intersystemes.ui.windowSkin.*
  
xmlns:skins=fr.intersystemes.ui.skins.*
  
xmlns:tabBarClasses=flexlib.controls.tabBarClasses.*
  minWidth=800 
minHeight=800 borderVisible=false
  
creationComplete=onLoad(event) 
  currentState=tb1
  
dropShadowVisible=false
  
skinClass=fr.intersystemes.ui.windowSkin.NativeTitleWinSkin
windowSkin:states
s:State name=tb1/
s:State name=tb2/
s:State name=tb3/
s:State name=tb4/
s:State name=tb5/
s:State name=tb6/


/windowSkin:states




fx:Declarations
!-- Placer ici les éléments non visuels (services et objets de 
valeur, par exemple). --
s:HTTPService id=phpPatientDetail
   showBusyCursor=true
   useProxy=false
   resultFormat=e4x
   method=POST
   result=detailPatient(event)
   fault=trace(this + 
event.fault.toString());   

/s:HTTPService

s:HTTPService id=phpLoadTypeDossier
   showBusyCursor=true
   useProxy=false
   resultFormat=e4x
   method=POST
   result=allDossier(event)
   fault=trace(this + 
event.fault.toString());   

/s:HTTPService

s:RadioButtonGroup id=rbsex/


/fx:Declarations

fx:Metadata
[Event(name=myEventClose, 
type=fr.intersystemes.ui.windowSkin)]
/fx:Metadata

fx:Script
![CDATA[
import fr.intersystemes.VO.PatientVO;
import fr.intersystemes.config.urlManager;
import fr.intersystemes.util.DateUtility;
import fr.intersystemes.util.FileSerializer;
import fr.intersystemes.util.UserPrefs;

import mx.collections.ArrayCollection;
import mx.events.FlexEvent;
import mx.events.IndexChangedEvent;
import mx.events.ItemClickEvent;
import mx.rpc.events.ResultEvent;

import spark.events.IndexChangeEvent;
[Bindable]
public var monIdPatient:String;

private var pg:UserPrefs;
[Bindable]
public var PAT_TB_ARRAY:ArrayCollection = new 
ArrayCollection (
[{label:Personnelles},
{label:Assuré  Sécu. Soc},
{label:Compléments perso},
{label:Autres adresses},
{label:Cursus},
{label:Archives}]
);


[Bindable]
private var DP_PAT_CIVIL:ArrayCollection = new 
ArrayCollection (
[{label:Monsieur},
{label:Madame},
{label:Mademoiselle},
{label:Le Jeune}]

);

[Bindable]
private var DP_PAT_ADRDEF:ArrayCollection = new 
ArrayCollection (
  

Re: [flexcoders] Re: tree multiple select problem

2011-08-05 Thread Alex Harui
You will have to make a new array of the nodes you want selected.


On 8/4/11 9:45 PM, steveroger_flex steveroger_f...@yahoo.com wrote:






I am having list of nodes in array.
My problem is how should I use seletedItems with list of node id array.?

Data provider of tree component.

node name=Node 1 id=1
 node name=Node 1.1 id=2 /
 node name=Node 1.2 id=3
 node name=Node 1.2.1 id=4 /
 node name=Node 1.2.2 id=5 /
 /node
/node

Node id Array=(2,4,5).
I wanna select Node 1.1, Node 1.2.1  Node 1.2.2 by clicking on button.

tree.selectedItems = array;
is not working.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex 
Harui aharui@... wrote:

 Use selectedItems


 On 8/4/11 5:08 AM, steveroger_flex steveroger_flex@... wrote:






 Hello Friends,

 I am facing a problem and can't getting any idea to solve this.
 Problem is, I wanna select one or more tree nodes using actionscript.
 I have set allowMultipleSelection=true property of tree component.

 I succeed in selecting one node. But can't in multiple.
 I had used tree.selectedItem for single node.

 any idea to solve this?

 Thanks,

 Steve.






 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui







--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Re: URGENT: Need an *Expert (Alex?)* in Flex 4.5.1 Mobile Text

2011-08-05 Thread Alex Harui
Might just be a bug.  Please file a bug with a simple test case.


On 8/4/11 5:32 PM, nagaofthesea nagaofthe...@yahoo.com wrote:








Howdy Alex-

I am MORE than happy to send you my FXP if you need it.

I have played around with quite a few things and it appears to remain a problem 
with EmbeddedFontRegistry and its call (at 469) to SystemManager.callInContext 
(at 1912) by the autogenerated class.

I have dug through the variables at the error and the fonts are there, for sure.

In EmbeddedFontRegistry.getAssociatedModuleFactory() (at 395) is the problem 
with the module?  The only thing I can see that could be NULL is the var 
result:IFlexModuleFactory.

Anyways, I greatly appreciate you looking at this 

-Naga

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex 
Harui aharui@... wrote:

 If you use the default adobe skins do you have the same problem?


 On 8/4/11 11:35 AM, nagaofthesea nagaofthesea@... wrote:



 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui







--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Re: urgent: socket communications at port 443?

2011-08-05 Thread Alex Harui
I don’ t know much about this stuff, but I’d be suspicious about the warning 
you are getting.


On 8/4/11 3:30 PM, grimmwerks gr...@grimmwerks.com wrote:






Yes set it to be false:


OK: Root-level SWF loaded: http://mix.investlab.com/demo/MixClient.swf
OK: Searching for allow-access-from in policy files to authorize data loading 
from resource at xmlsocket://mix.investlab.com:443 by requestor from 
http://mix.investlab.com/demo/MixClient.swf
Warning: Ignoring 'secure' attribute in policy file from 
http://mix.investlab.com/crossdomain.xml.  The 'secure' attribute is only 
permitted in HTTPS and socket policy files.  See 
http://www.adobe.com/go/strict_policy_files for details.
OK: Policy file accepted: http://mix.inves! tlab.com/crossdomain.xml 
http://mix.investlab.com/crossdomain.xml
Warning: Timeout on xmlsocket://mix.investlab.com:443 (at 3 seconds) while 
waiting for socket policy file.  This should not cause any problems, but see 
http://www.adobe.com/go/strict_policy_files for an explanation.
Error: Request for resource at xmlsocket://mix.investlab.com:443 by requestor 
from http://mix.investlab.com/demo/MixClient.swf is denied due to lack of 
policy file permissions.
OK: Root-level SWF loaded: file:///Users/grimm/Library/Application 
Support/Firefox/Profiles/nw7lgsi8.default/extensions/flash...@coursevector.com/chrome/content/flas!
 hbug/version.swf
OK: Root-level SWF loaded: file:///Users/grimm/Library/Application !  
Support/Firefox/Profiles/nw7lgsi8.default/extensions/flash...@coursevector.com/chrome/content/flashbug/version.swf
OK: Root-level SWF loaded: http://community.adobe.com/help/badge/proxy/proxy.swf



On Aug 4, 2011, at 6:21 PM, nagaofthesea wrote:

Howdy-

A pure shot in the dark:  Have you tried also explicitly setting the secure 
attribute to what you it to be?

Cheers,
Naga

--- In flexcoders@yahoogroups.com, grimmwerks grimm@... wrote:


Is it possible to use a normal socket at 443 (apache not binding the port) 
while loading a crossdomain at 80 such as this:

cross-domain-policy
site-control permitted-cross-domain-policies=master-only/
allow-access-from domain=* to-ports=*/
/cross-domain-policy


We can't seem to get a connection:

grimmwerks
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox 
violation: http://mix.investlab.com/demo/Mi! xClient.swf 
http://mix.investlab.com/demo/MixClient.swf  cannot load data from 
mix.investlab.com:443.

Garry Schafer
grimmwerks
grimm@...
portfolio: www.grimmwerks.com/ http://www.grimmwerks.com/







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links



Garry Schafer
grimmwerks
gr...@grimmwerks.com
portfolio: www.grimmwerks.com/ http://www.grimmwerks.com/










--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Bindable query

2011-08-05 Thread Alex Harui
If you use [Bindable] it generates some code.  Otherwise, it just trusts that 
you’ll dispatch the event.


On 8/4/11 10:55 PM, jitendra jain jitendra_jain_2...@yahoo.com wrote:






Hi Guys,

Please let me know

Difference between

[Bindable]
[Bindable(event=modelUpdated)]
public function get model():RuleModel{
}


   VS

  [! Bindable(event=modelUpdated)]
public function get model():RuleModel{
}

Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798





--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Fw: Two way binding and stric mode compiler options

2011-08-05 Thread Alex Harui
No, it is probably of type Object.  Probably worth filing a bug if there isn’t 
one.  Not sure how we’d fix it though.


On 8/4/11 10:51 PM, jitendra jain jitendra_jain_2...@yahoo.com wrote:






Well ,  in data grid of spark component we have selectedItem:Object and in 
other spark components like List we have selectedItem:*, whenever my compiler 
runs in strict mode it throws the compiler error 1118: Implicit coercion of a 
value with static type Object to a possibly unrelated type 
com.objects.EventRule (while using datagrid)

RuleController.as
public class RuleController{
[Bindable]
public var selectedRule :EventRule;
}

In mxml

controller:RuleController id=controller/
s:DataGrid id=dg dataProvider={rules} width=100% height=100% 
selectedItem=@{controller.selectedRule} variableRowHeight=true
   



/s:DataGrid

  I had written some workaround and it works now.. Thanks. But i think in data 
grid the Flex SDK must have selectedItem:*;

Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798

From: Alex Harui aha...@adobe.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Wednesday, 3 August 2011 11:54 PM
Subject: Re: [flexcoders] Fw: Two way binding and stric mode compiler options



A test case and full text of the error are helpful things to post.


On 8/3/11 12:58 AM, jitendra jain jitendra_jain_2...@yahoo.com wrote:








This is working for other components like list but only creating problem with 
datagrid of spark library.

Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798
- Forwarded Message -
From: jitendra jain jitendra_jain_2...@yahoo.com
To: flex group flex flexcoders@yahoogroups.com
Sent: Wednesday, 3 August 2011 12:39 PM
Subject: Two way binding and stric mode compiler opt! ions

Hi Guys,

  Iam using one data grid in which in have written one inline selectedItem 
=@{employee} , it is throwing a strict mode compiler error. I dont want to 
change my compiler options .. Please help

Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798









--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [Bulk] Re: [flexcoders] Form Item Multiline

2011-08-05 Thread Isabelle Loyer Perso













[flexcoders] Re: tree multiple select problem

2011-08-05 Thread steveroger_flex
Thanks alex for reply..
but actually I do not getting how it implemented.

Can you please provide me any similar kind of example?
Is it possible using XMLList?

Steve

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

 You will have to make a new array of the nodes you want selected.
 
 
 On 8/4/11 9:45 PM, steveroger_flex steveroger_flex@... wrote:
 
 
 
 
 
 
 I am having list of nodes in array.
 My problem is how should I use seletedItems with list of node id array.?
 
 Data provider of tree component.
 
 node name=Node 1 id=1
  node name=Node 1.1 id=2 /
  node name=Node 1.2 id=3
  node name=Node 1.2.1 id=4 /
  node name=Node 1.2.2 id=5 /
  /node
 /node
 
 Node id Array=(2,4,5).
 I wanna select Node 1.1, Node 1.2.1  Node 1.2.2 by clicking on button.
 
 tree.selectedItems = array;
 is not working.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 Alex Harui aharui@ wrote:
 
  Use selectedItems
 
 
  On 8/4/11 5:08 AM, steveroger_flex steveroger_flex@ wrote:
 
 
 
 
 
 
  Hello Friends,
 
  I am facing a problem and can't getting any idea to solve this.
  Problem is, I wanna select one or more tree nodes using actionscript.
  I have set allowMultipleSelection=true property of tree component.
 
  I succeed in selecting one node. But can't in multiple.
  I had used tree.selectedItem for single node.
 
  any idea to solve this?
 
  Thanks,
 
  Steve.
 
 
 
 
 
 
  --
  Alex Harui
  Flex SDK Team
  Adobe System, Inc.
  http://blogs.adobe.com/aharui
 
 
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui





Re: [flexcoders] Several HTTP request in the same component

2011-08-05 Thread Isabelle Loyer Perso













Re: [flexcoders] Launch a .bat

2011-08-05 Thread Pete
Actually, there was something nagging at me all day yesterday and I 
remembered what it was today.


There is a windows specific way maybe...  Might only work in Air...

Check out
http://www.fluorinefx.com/

I use it to do AutoDial on voip phones using the appropriate command 
line options.  I guess it'd do a batch file too.  Windows specific 
because it needs you to install some dll's.


Regards
Pete

On 03/08/2011 15:54, cjacquel73 wrote:


Hello,

Is it possible to launch a .bat from the web application in Flex ?

Thx,
Chris,




Re: [flexcoders] loading socket policy files from port 80.

2011-08-05 Thread Peeyush Tuli
AFAIK, socket policy files are requested from the port 843 and or from the
port where traffic is intended to. So you can only do via 843 or 61613.


On Fri, Aug 5, 2011 at 12:41 AM, grimmwerks gr...@grimmwerks.com wrote:

 **


 Ok - slight modification to original question.

 Can I load a socket policy file (usually served on port 843) via port 80?
  ie

 Security.loadPolicyFile(http:domain.com/crossdomai**n.xml);

 And this will allow connectivity to ports 61613


 Garry Schafer
 grimmwerks
 gr...@grimmwerks.com
 portfolio: www.grimmwerks.com/





  



Re: [flexcoders] Re: tree multiple select problem

2011-08-05 Thread Alex Harui
SelectedItems must be an array.

If you have:

Var xml:XML = node name=Node 1 id=1
node name=Node 1.1 id=2 /
 node name=Node 1.2 id=3
 node name=Node 1.2.1 id=4 /
 node name=Node 1.2.2 id=5 /
 /node
/node
Var selectedIds:Array = [2, 4, 5];

Then you need something like:

Var selItems:Array = new Array();
For (var i:int = 0; I  n; i+++
{
var id:String = selectedIds[i].toString();
var node:XML = xml..node(@id == id)[0];
selItems.push(node);
}

Then assign selItems to the selectedItems.


On 8/5/11 1:12 AM, steveroger_flex steveroger_f...@yahoo.com wrote:






Thanks alex for reply..
but actually I do not getting how it implemented.

Can you please provide me any similar kind of example?
Is it possible using XMLList?

Steve

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex 
Harui aharui@... wrote:

 You will have to make a new array of the nodes you want selected.


 On 8/4/11 9:45 PM, steveroger_flex steveroger_flex@... wrote:






 I am having list of nodes in array.
 My problem is how should I use seletedItems with list of node id array.?

 Data provider of tree component.

 node name=Node 1 id=1
  node name=Node 1.1 id=2 /
  node name=Node 1.2 id=3
  node name=Node 1.2.1 id=4 /
  node name=Node 1.2.2 id=5 /
  /node
 /node

 Node id Array=(2,4,5).
 I wanna select Node 1.1, Node 1.2.1  Node 1.2.2 by clicking on button.

 tree.selectedItems = array;
 is not working.

 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
 mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote:
 
  Use selectedItems
 
 
  On 8/4/11 5:08 AM, steveroger_flex steveroger_flex@ wrote:
 
 
 
 
 
 
  Hello Friends,
 
  I am facing a problem and can't getting any idea to solve this.
  Problem is, I wanna select one or more tree nodes using actionscript.
  I have set allowMultipleSelection=true property of tree component.
 
  I succeed in selecting one node. But can't in multiple.
  I had used tree.selectedItem for single node.
 
  any idea to solve this?
 
  Thanks,
 
  Steve.
 
 
 
 
 
 
  --
  Alex Harui
  Flex SDK Team
  Adobe System, Inc.
  http://blogs.adobe.com/aharui
 






 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui







--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] (unknown)

2011-08-05 Thread sondang paruliant
pfinancial pressure was really taking over my life there was no way out this 
was my free ride ...bra 
href=http://alwa.com.pl/NicholasJones34.html;http://alwa.com.pl/NicholasJones34.html/a
 now im in this for the long run imagine the possibilitiesbrYou owe me 
one!/p


[flexcoders] Re: Center Image while rotating and keeping aspect ratio

2011-08-05 Thread Netaman

Wrote a function to center image it works, it maybe a starting point for you so 
that you can write your own function. using 4.01

public var oldImage:String;

private function centerImage(rImage:Image):void {

 
var capImg:Image = new Image();
var newImage:Bitmap = new Bitmap();
var ch:Number = 0;
var cw:Number = 0;
var ih:Number = 0;
var iw:Number = 0;
var mX:Number = 0;
var mY:Number = 0;

capImg = rImage;
/* the following is to reduce the image flicker in a list using 
an itemrenderer*/
if (oldImage != null  capImg.source == oldImage)
return;
else
oldImage = String(capImg.source);


newImage  = new Bitmap(Bitmap(capImg.content).bitmapData);

ch = HEIGHTNUMBER;
cw = WIDTHNUMBER;
ih = capImg.content.height;
iw = capImg.content.width;

if (ih iw){
cw = iw*ch/ih;   
} else if (ihiw){
ch = ih*cw/iw;  
}

mX = (WIDTHNUMBER - cw) /2;
mY = (HEIGHTNUMBER - ch) /2;

capImg.x = mX;
capImg.y = mY;
capImg.width = cw;
capImg.height = ch;
capImg.source = newImage;  
   

}



[flexcoders] Motion JPG and PCM Audio in AVI

2011-08-05 Thread Netaman
Is it possible to play an AVI with Motion JPG and PCM Audio(wav) in flex?

I know about standingwave3 to play audio, does anyone have an algorithm to 
parse the video and audio from the AVI in actionscript?

Randy 



[flexcoders] Re: URGENT: Need an *Expert (Alex?)* in Flex 4.5.1 Mobile Text

2011-08-05 Thread nagaofthesea
Alex-

Copy that.  Will do.

-Naga

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

 Might just be a bug.  Please file a bug with a simple test case.
 
 
 On 8/4/11 5:32 PM, nagaofthesea nagaofthesea@... wrote:
 
 
 
 
 
 
 
 
 Howdy Alex-
 
 I am MORE than happy to send you my FXP if you need it.
 
 I have played around with quite a few things and it appears to remain a 
 problem with EmbeddedFontRegistry and its call (at 469) to 
 SystemManager.callInContext (at 1912) by the autogenerated class.
 
 I have dug through the variables at the error and the fonts are there, for 
 sure.
 
 In EmbeddedFontRegistry.getAssociatedModuleFactory() (at 395) is the problem 
 with the module?  The only thing I can see that could be NULL is the var 
 result:IFlexModuleFactory.
 
 Anyways, I greatly appreciate you looking at this 
 
 -Naga
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 Alex Harui aharui@ wrote:
 
  If you use the default adobe skins do you have the same problem?
 
 
  On 8/4/11 11:35 AM, nagaofthesea nagaofthesea@ wrote:
 
 
 
  --
  Alex Harui
  Flex SDK Team
  Adobe System, Inc.
  http://blogs.adobe.com/aharui
 
 
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui





[flexcoders] (unknown)

2011-08-05 Thread Manoj Kumar
pits difficult to handle all the financial pressure it was time to start a 
new chapter now I can afford my lifestyle ...bra 
href=http://www.evolutiongroup.cz/redir.php?sifefim=mail.comamp;tatoqy=facebook.comamp;url=http://jobsadviser.net/esubmit/bizopp_ax.php;http://www.evolutiongroup.cz/redir.php?sifefim=mail.comamp;tatoqy=facebook.comamp;url=http://jobsadviser.net/esubmit/bizopp_ax.php/a
 now im on the way to the top I wouldnt make this upbrdid you know there was 
internet money like this?/p


[flexcoders] Re: tree multiple select problem

2011-08-05 Thread steveroger_flex
Thank you Alex.
Its really great help.

I have do one change.

I used var node:XML = xml.descendants().(@id == id)[0]; in place of
var node:XML = xml..node(@id == id)[0];

multiple selection is working perfectly.
But will this change affect to my application performance?

Steve.

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

 SelectedItems must be an array.

 If you have:

 Var xml:XML = node name=Node 1 id=1
 node name=Node 1.1 id=2 /
  node name=Node 1.2 id=3
  node name=Node 1.2.1 id=4 /
  node name=Node 1.2.2 id=5 /
  /node
 /node
 Var selectedIds:Array = [2, 4, 5];

 Then you need something like:

 Var selItems:Array = new Array();
 For (var i:int = 0; I  n; i+++
 {
 var id:String = selectedIds[i].toString();
 var node:XML = xml..node(@id == id)[0];
 selItems.push(node);
 }

 Then assign selItems to the selectedItems.


 On 8/5/11 1:12 AM, steveroger_flex steveroger_flex@... wrote:






 Thanks alex for reply..
 but actually I do not getting how it implemented.

 Can you please provide me any similar kind of example?
 Is it possible using XMLList?

 Steve

 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote:
 
  You will have to make a new array of the nodes you want selected.
 
 
  On 8/4/11 9:45 PM, steveroger_flex steveroger_flex@ wrote:
 
 
 
 
 
 
  I am having list of nodes in array.
  My problem is how should I use seletedItems with list of node id
array.?
 
  Data provider of tree component.
 
  node name=Node 1 id=1
   node name=Node 1.1 id=2 /
   node name=Node 1.2 id=3
   node name=Node 1.2.1 id=4 /
   node name=Node 1.2.2 id=5 /
   /node
  /node
 
  Node id Array=(2,4,5).
  I wanna select Node 1.1, Node 1.2.1  Node 1.2.2 by clicking on
button.
 
  tree.selectedItems = array;
  is not working.
 
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote:
  
   Use selectedItems
  
  
   On 8/4/11 5:08 AM, steveroger_flex steveroger_flex@ wrote:
  
  
  
  
  
  
   Hello Friends,
  
   I am facing a problem and can't getting any idea to solve this.
   Problem is, I wanna select one or more tree nodes using
actionscript.
   I have set allowMultipleSelection=true property of tree
component.
  
   I succeed in selecting one node. But can't in multiple.
   I had used tree.selectedItem for single node.
  
   any idea to solve this?
  
   Thanks,
  
   Steve.
  
  
  
  
  
  
   --
   Alex Harui
   Flex SDK Team
   Adobe System, Inc.
   http://blogs.adobe.com/aharui
  
 
 
 
 
 
 
  --
  Alex Harui
  Flex SDK Team
  Adobe System, Inc.
  http://blogs.adobe.com/aharui
 






 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui