[flexcoders] drag drop tree to tree onto node, not between nodes

2009-05-10 Thread Mic
Will Flex recognize a drop onto a node? The visual position bar when moving the 
drop up and down the destination tree displays between nodes. When we first add 
a mgr to the HR tree, that mgr is a leaf. Want to trap a drop directly onto the 
mgr so can turn him/her into a branch and add people reporting to him/her. 
Cannot drop beneath as that would be a legal peer. TIA,

Mic.



[flexcoders] After successful URLRequests then ioerrors - no more requests possible.

2009-05-10 Thread beamprosoftware
I'm basically doing a post to a webserver in my local lan and it works 
perfectly until the server resets etc and then my code fires the IOErrorEvent 
from my listener and as this routine is on a timer (set for 30 seconds) it runs 
through the code again after 30 seconds and falls into a try catch and stays 
this way until the app is restarted. The server is sometimes glitches for a 
minutes and it's back on, i can test it with another app i have and it's 
responding just fine so i know it's in the as code. When i run through the 
routine and use what's below.

My question is what happens to the url loader etc after a failed ioerror. I've 
noticed this error is different if i unplug the server from the lan i get an 
ioerror and when i plug it back in then it continues to work fine, it's when 
the server is running and does/sends something different but i get the stream 
error in the ioerror listener This error.. but it's the same as the error for 
disconnecting the server cat5 line. This error is what gets repeated over and 
over based on the 30 second time. Like i said if i restart the app then it 
works fine again.

It appears that the server is sending somthing back other than 20* commands, so 
what happens to flex after then occurs and it will create a new loader and 
request but will not send it after the error even though the server is ready 
for the requests. after some searching it appears this is a big issue and I'm 
looked at a site with this 
http://code.google.com/p/as3httpclientlib/wiki/Examples ,
but i'm getting somewhat tired of using 3rd party stuff to get where i'm trying 
to go in flex. '' already using assql and another to unzip files etc.. 

Please Help !

ioErrorHandler: [IOErrorEvent type=ioError bubbles=false cancelable=false 
eventPhase=2 text=Error #2032: Stream Error. URL: http://192.168.0.105/rpc; 
errorID=2032] datetime: 2009-05-09 14:32:32






loader = new URLLoader();
request = new URLRequest(http://; + boxip.text + /rpc);

it seems these are goofed up as I can do a watch on the loader and it's got 
it's basic info no different that when it's succesful as is the request.

Here's my code.

above it snippets from .as file

public var what_run:String = ;
public var what_run_number:int;

private var loader:URLLoader;
private var obj:MyObject;
private var what_to_send:String;
private var header:URLRequestHeader;
private var request:URLRequest;
private var header2:URLRequestHeader;


private function CallWebService(whattorun:String):void
{

what_run = whattorun; //global variable solar plant name.

loader = new URLLoader();
obj = new MyObject;
header = new URLRequestHeader(Content-Type, application/json);
header2 = new URLRequestHeader(pragma, no-cache);

//clear all the text boxes
output_txt2.text = ;
misc.text = ;

configureListeners(loader);

request = new URLRequest(http://; + boxip.text + /rpc);
request.requestHeaders.push(header);
request.requestHeaders.push(header2);
request.method = URLRequestMethod.POST;


var okhere:String = n;


obj.version = 1.0;
obj.proc = GetPlantOverview;
obj.id = 1;
obj.format = JSON;
okhere = y;
request.data = 'RPC='+JSON.encode(obj);
test.text = JSON.encode(obj);



trace(Sending:  + request.data);

loader.dataFormat = URLLoaderDataFormat.TEXT;



try {
loader.load(request);

} catch (error:Error) {
deleteListeners(loader);
try {
loader.close();
} catch (e:Error) {
trace('Loader manually closed.');
}

trace('Unable to user loader.');
}



private function completeHandler(event:Event):void
{



//var loader:URLLoader = URLLoader(event.target);

loader = URLLoader(event.target);

deleteListeners(loader);



//send recieved data to the text area.
output_txt.text = loader.data;

//ok let's work with the strings.

var jsonstring:String = loader.data;

DO Processing here..

}




private function configureListeners(dispatcher:IEventDispatcher):vo id
{
dispatcher.addEventListener(Event.COMPLETE, completeHandler);
dispatcher.addEventListener(SecurityErrorEvent.SEC URITY_ERROR, 
securityErrorHandler);
dispatcher.addEventListener(HTTPStatusEvent.HTTP_S TATUS, httpStatusHandler);
dispatcher.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
}

private function deleteListeners(dispatcher:IEventDispatcher):void
{
dispatcher.removeEventListener(Event.COMPLETE, completeHandler);
dispatcher.removeEventListener(SecurityErrorEvent. SECURITY_ERROR, 
securityErrorHandler);
dispatcher.removeEventListener(HTTPStatusEvent.HTT P_STATUS, httpStatusHandler);
dispatcher.removeEventListener(IOErrorEvent.IO_ERR OR, ioErrorHandler);

}










private function securityErrorHandler(event:SecurityErrorEvent):voi d
{
pac_text.text = 0;
output_txt.text = securityErrorHandler:  + event;

}

private function httpStatusHandler(event:HTTPStatusEvent):void
{
output_txt.text = httpStatusHandler:  + event;

}

private function ioErrorHandler(event:IOErrorEvent):void
{

trace(ioErrorHandler:  + event);



}



[flexcoders] Exception Processing Message on Vista

2009-05-10 Thread christophe_jacquelin
Hello, 

I have the messages : 

Windows no disk

Exception Processing Message 0xc013 Parameters etc

error when trying to compile Flex 3, ActionScript Project on Flex Builder 3 on 
Vista

What is the solution,
Thank you,
Christophe



RE: [flexcoders] drag drop tree to tree onto node, not between nodes

2009-05-10 Thread Tracy Spratt
I hope someone has a solution for this, I do not.  The tree drop feedback
lines will show above or below a child node, and will get longer to indicate
a drop point at the level above those, but I have found no way to drop a
first child node onto an empty node.

 

Now, I have not researched this in the last year, so maybe someone will have
a fix.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Mic
Sent: Sunday, May 10, 2009 2:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] drag drop tree to tree onto node, not between nodes

 






Will Flex recognize a drop onto a node? The visual position bar when moving
the drop up and down the destination tree displays between nodes. When we
first add a mgr to the HR tree, that mgr is a leaf. Want to trap a drop
directly onto the mgr so can turn him/her into a branch and add people
reporting to him/her. Cannot drop beneath as that would be a legal peer.
TIA,

Mic.





RE: [flexcoders] Exception Processing Message on Vista

2009-05-10 Thread Tracy Spratt
I have seen this myself, and found that if you just click through the error
messages, it goes away and does not come back.

 

Have you recently imported a project or a third party library?

 

Also, when in doubt, Clean the project.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of christophe_jacquelin
Sent: Sunday, May 10, 2009 8:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Exception Processing Message on Vista

 






Hello, 

I have the messages : 

Windows no disk

Exception Processing Message 0xc013 Parameters etc

error when trying to compile Flex 3, ActionScript Project on Flex Builder 3
on Vista

What is the solution,
Thank you,
Christophe





[flexcoders] can I get flv duration metadata without playing the flv file?

2009-05-10 Thread hoytlee2000
Hello,

I've seen all the examples on getting duration information from an flv file 
using the netstream function, but they all require you to play the flv first.

I was wondering if you could get the info without having to play the flv file.

The situation I have is I am ingesting an xml file with a list of flv files in 
a directory.  I want to display that list of files in a datagrid with the 
duration in another column.  So I want to use a labelfunction that will read 
the flv file and then calculate the duration.

However I am concerned that the examples I have seen to retrieve this metadata 
requires me to play each video to get the data which might be too slow.  Is 
there a different approach to this?

I would do this once and after getting the duration I would write it back into 
the xml file but the flvs in the directory keep changing.  Any ideas or hints 
would be appreciated.

thanks,
Hoyt



RE: [flexcoders] how to know the AIR version in my local pc?

2009-05-10 Thread Jim Hayes
In as3 (I'm pretty sure this is undocumented, and probably unsupported)
-
 
var pm:ProductManager = new ProductManager(airappinstaller);
trace (AIR version is :  + pm.installedVersion);
 
There may be easier or better ways, mind you.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of markflex2007
Sent: 10 May 2009 06:11
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how to know the AIR version in my local pc?
 




Please give me a idea,thanks

Mark


__
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] .csv import stuff

2009-05-10 Thread Jim Hayes
I did this in as3 last week, in just the way Tracy described.
Worked fine, at least for the data I was using - which was admitedly small and 
fairly simple.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Tracy Spratt
Sent: 10 May 2009 06:22
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] .csv import stuff




You will have two delimiters.  One, the row delimiter is a newline or 
carriage-return or both.  The other is the field delimeter, often but not 
always a comma.
 
Google this and I think you will find some examples.  I haven't parsed a csv 
file in actionscript myself.  In .net, you actually read the file one line at a 
time, then parse that.  
 
I do not know if the best wasy to do it inas would be to parse the rows into an 
array using split() with the newline(maybe chr(13))?, then in a nested loop 
using split(,).
 
Like I said, google this.
 
Tracy Spratt,
Lariat Services, development services available

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of khaled hafez
Sent: Saturday, May 09, 2009 8:27 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] .csv import stuff
 




Hey,
 
I am not an Expert in Flex but i do know that .csv files are Easy to handle 
using a Paser on ',' that's the separator in the .csv files (Comma Separated 
Value). If i were you, i would take the .csv file and convert it to a Well 
formated XML file then send it in an AJAX request to PHP to insert it into 
database.
 
Good Luck
 

From: Vikram Singh vikisingh...@yahoo.in
To: Flex Coders flexcoders@yahoogroups.com
Sent: Saturday, May 9, 2009 12:59:32 PM
Subject: [flexcoders] .csv import stuff
is there any nice and easy way to 'Browse' .csv file on flex
and after that send 'Import Request' to php and php will import this .csv 
file's data to database.?
 
any thought on this stuff!!?
 
 

From Chandigarh to Chennai - find friends all over India. Click here. 
 


__
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] how to know the AIR version in my local pc?

2009-05-10 Thread Jim Hayes


In as3 (I'm pretty sure this is undocumented, and probably unsupported)
-

var pm:ProductManager = new ProductManager(airappinstaller);
trace (AIR version is :  + pm.installedVersion);

There may be easier or better ways, mind you.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jim Hayes
Sent: 10 May 2009 23:52
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] how to know the AIR version in my local pc?


__
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.
__


[flexcoders] Re: Dynamic datasource in ColdFusion via LCDS ES

2009-05-10 Thread Brendan Meutzner
Tom Jordahl provided the answer on this for me.  Here's the solution:

1) Prior to implementing this solution, it's important to realize that because 
LCDS manages the data, switching datasources dynamically could potentially 
cause issues if there is overlap between identifiers on the records you are 
retrieving.  In my case, I'm using GUID fields as primary key and identifiers 
in my destinations, so this is not a problem.  However, for example, if you 
were to use an incrementing integer for the identifier, then you could feasibly 
have LCDS managing a record, which would match identifiers with a record if you 
switched datasources on the fly.

2) I'm using ColdFusion as my middle-tier layer, but this could be applied to 
any form by accessing the flex.messaging.FlexContext class within your solution 
of choice.

3) The solution involves extracting the ID value of Flex client which makes 
calls against your Destination.  Grab the identifier by calling 
FlexContext.getFlexClient().getId() to get a unique key for the session.  I 
use the term session loosely, as it's really just representative of the 
particular swf instance which has been loaded with your Flex Application.  
However, the ID doesn't change and persists across all calls you make against 
your destinations.  

4) On application load, make a call to your CF layer which gets the ID, and 
sets it to the Application scope of the CF server as follows:

 cffunction name=set access=remote
  cfargument name=datasource type=string required=yes default=
  cfset var clientID=
  cfscript
   clientID = CreateObject('java', 
'flex.messaging.FlexContext').getFlexClient().getId();
   APPLICATION[clientID] = arguments.datasource;
  /cfscript
   /cffunction

The function above receives a unique string which I want to be my datasource of 
choice.  You could call this set function again anytime to reset the 
Application variable for this session.

5) The only other thing to do, is now access this Application variable for each 
datasource.

 datasource=#APPLICATION[CreateObject('java', 
'flex.messaging.FlexContext').getFlexClient().getId()]#

6) The last consideration is that each connection that is made via Flex will be 
setting a new variable in the Application scope on the Coldfusion server.  This 
is a pretty minor concern for me, and I'll just run a schedule to clear the 
Application scope once a day, but if you have a high volume of users, a better 
solution would have to be found.

--- In flexcoders@yahoogroups.com, Brendan Meutzner bmeutz...@... wrote:

 Hi All,
 
 
 
 I'm hitting a wall on a requirement for a Flex application which utilizes
 the LCDS version included with ColdFusion.
 
 
 
 I have the project setup to use DAO's, Assemblers and ValueObject (cfc's)
 which I call from Flex via DataService implmentation and the fill(),
 getItem(), etc... methods.
 
 
 
 I need to setup my ColdFusion layer to access multiple datasources from the
 same Flex application.  However, because of the way LCDS gets called from
 Flex, it doesn't seem that Application or Session variables in ColdFusion
 persist when I set them.  I was thinking I could just have the HTML (cfm)
 wrapper page for my Flex application set that, but it is not recognized when
 I go to make a fill or get call against the assembler.
 
 
 
 I thought about passing the datasource as a parameter each time a call is
 made, but while that would work when I initiate fill and get methods, the
 sync methods are invisible and I wouldn't be able to append an argument to
 them.
 
 
 
 So my issue is... how do I go about having ColdFusion read a dynamic
 variable to define it's datasource?
 
 
 
 
 
 Thanks in advance for the help.
 
 
 
 
 
 Brendan
 
 -- 
 Brendan Meutzner
 http://www.meutzner.com/blog/
 http://www.riajobs.com





[flexcoders] Re: Anyone using Flex with LCDS ColdFusion

2009-05-10 Thread Brendan Meutzner
Hi Joao,

Well, I'm glad there's someone else out here :-)

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


I got some help with Tom Jordahl figuring it out.  I'd actually posted a 
comment on your blog post which related to dynamic destinations setup through 
CF, but I'm guessing it got lost in the spam world.  For this particular 
problem, Tom's help provided the best possible solution for my issue... 
however, dynamic destinations might have been a workaround, but one that 
involved a lot more work.

So are you aware of anyone else struggling with CF+LCDS, or is it just us two 
:-(


Brendan



--- In flexcoders@yahoogroups.com, João Fernandes 
joaopedromartinsfernan...@... wrote:

 Brendan, I daily fight against LCDS + CF problems too. Sorry if I missed 
 any previous emails but flexcoders is quite heavy in email traffic.
 
 I'm currently running with CF8.0.1 and LCDS 2.6. Didn't upgrade to 2.6.1 
 since it seems there are a lot of new bugs.
 So, what issues do you have with this combo?
 
 
 
 -- 
 
 João Fernandes
 
 Adobe Certified Expert
 Adobe Community Expert
 http://www.onflexwithcf.org
 http://www.riapt.org
 Portugal Adobe User Group (http://aug.riapt.org)





[flexcoders] Re: drag drop tree to tree onto node, not between nodes

2009-05-10 Thread Mic
Thanks Tracy - for the moment I am having to put a Peer/Child radio button 
group so I know what the user wants to do. Next question :-)

New mgr is a leaf, rb set to child, rep dropped below mgr ... need to change 
mgr to branch with new rep as leaf. Does one manipulate the xml to do this and 
then invalidate something so the tree reconfigures itself, or does one 
manipulate the tree gui? Thanks,

Mic.


--- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote:

 I hope someone has a solution for this, I do not.  The tree drop feedback
 lines will show above or below a child node, and will get longer to indicate
 a drop point at the level above those, but I have found no way to drop a
 first child node onto an empty node.
 
  
 
 Now, I have not researched this in the last year, so maybe someone will have
 a fix.
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Mic
 Sent: Sunday, May 10, 2009 2:08 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] drag drop tree to tree onto node, not between nodes
 
  
 
 
 
 
 
 
 Will Flex recognize a drop onto a node? The visual position bar when moving
 the drop up and down the destination tree displays between nodes. When we
 first add a mgr to the HR tree, that mgr is a leaf. Want to trap a drop
 directly onto the mgr so can turn him/her into a branch and add people
 reporting to him/her. Cannot drop beneath as that would be a legal peer.
 TIA,
 
 Mic.





[flexcoders] Re: drag drop tree to tree onto node, not between nodes

2009-05-10 Thread Mic
Think I answered this myself - isBranch looks like it will turn the leaf into 
branch, which is exactly what I need to do.

--- In flexcoders@yahoogroups.com, Mic chigwel...@... wrote:

 Thanks Tracy - for the moment I am having to put a Peer/Child radio button 
 group so I know what the user wants to do. Next question :-)
 
 New mgr is a leaf, rb set to child, rep dropped below mgr ... need to change 
 mgr to branch with new rep as leaf. Does one manipulate the xml to do this 
 and then invalidate something so the tree reconfigures itself, or does one 
 manipulate the tree gui? Thanks,
 
 Mic.
 
 
 --- In flexcoders@yahoogroups.com, Tracy Spratt tracy@ wrote:
 
  I hope someone has a solution for this, I do not.  The tree drop feedback
  lines will show above or below a child node, and will get longer to indicate
  a drop point at the level above those, but I have found no way to drop a
  first child node onto an empty node.
  
   
  
  Now, I have not researched this in the last year, so maybe someone will have
  a fix.
  
   
  
  Tracy Spratt,
  
  Lariat Services, development services available
  
_  
  
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
  Behalf Of Mic
  Sent: Sunday, May 10, 2009 2:08 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] drag drop tree to tree onto node, not between nodes
  
   
  
  
  
  
  
  
  Will Flex recognize a drop onto a node? The visual position bar when moving
  the drop up and down the destination tree displays between nodes. When we
  first add a mgr to the HR tree, that mgr is a leaf. Want to trap a drop
  directly onto the mgr so can turn him/her into a branch and add people
  reporting to him/her. Cannot drop beneath as that would be a legal peer.
  TIA,
  
  Mic.
 





Re: [flexcoders] Re: drag drop tree to tree onto node, not between nodes [1 Attachment]

2009-05-10 Thread Alan Rother
Yves Riel (r...@cae.com) sent this file to me when I had a similar problem
some time back, it totally saved my life.
If it helps, drop him(her, not sure...) an email and thank them.

=]


On Sun, May 10, 2009 at 6:19 PM, Mic chigwel...@yahoo.com wrote:



 Think I answered this myself - isBranch looks like it will turn the leaf
 into branch, which is exactly what I need to do.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Mic
 chigwel...@... wrote:
 
  Thanks Tracy - for the moment I am having to put a Peer/Child radio
 button group so I know what the user wants to do. Next question :-)
 
  New mgr is a leaf, rb set to child, rep dropped below mgr ... need to
 change mgr to branch with new rep as leaf. Does one manipulate the xml to do
 this and then invalidate something so the tree reconfigures itself, or does
 one manipulate the tree gui? Thanks,
 
  Mic.
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tracy
 Spratt tracy@ wrote:
  
   I hope someone has a solution for this, I do not. The tree drop
 feedback
   lines will show above or below a child node, and will get longer to
 indicate
   a drop point at the level above those, but I have found no way to drop
 a
   first child node onto an empty node.
  
  
  
   Now, I have not researched this in the last year, so maybe someone will
 have
   a fix.
  
  
  
   Tracy Spratt,
  
   Lariat Services, development services available
  
   _
  
   From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com[mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
   Behalf Of Mic
   Sent: Sunday, May 10, 2009 2:08 AM
   To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   Subject: [flexcoders] drag drop tree to tree onto node, not between
 nodes
  
  
  
  
  
  
  
  
   Will Flex recognize a drop onto a node? The visual position bar when
 moving
   the drop up and down the destination tree displays between nodes. When
 we
   first add a mgr to the HR tree, that mgr is a leaf. Want to trap a drop
   directly onto the mgr so can turn him/her into a branch and add people
   reporting to him/her. Cannot drop beneath as that would be a legal
 peer.
   TIA,
  
   Mic.
  
 

  




-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org


[flexcoders] ADG header appearance

2009-05-10 Thread Richard Rodseth
In an ADG with non-sortable columns, how does one eliminate the vertical bar
within the column header (the one that normally gets the sort indicator to
the right of it).

sortable=false doesn't seem to do the trick.

Thanks.


Re: [flexcoders] create a file in system using AIR

2009-05-10 Thread kanu kukreja
Thanks for the reply Sam.
But it doesn't has the answer of my query.

I know how i can create directories at desktop and documents.
But i want to create a text file at the location i want lets say
C:\test\test1\hello.txt

How i can achieve that?

Thanks,
kanu

On Sun, May 10, 2009 at 4:52 AM, Sam Lai samuel@gmail.com wrote:


 See 'the second way' under the 'Referencing a file or directory' section.

 http://labs.adobe.com/wiki/index.php/AIR:Articles:Adobe_AIR_Local_File_System_Access#Reading_and_writing_files

 2009/5/10 kanu kukreja kanukukr...@gmail.com:

 I know how i can create a file in documentsDirectory,
 applicationStorageDirectory, desktopDirectory  userDirectory.
 but how i can create a file using file system in AIR in the path like
 c:\kanu\test\Hello.txt


 

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




 


Re: [flexcoders] create a file in system using AIR

2009-05-10 Thread Sam Lai
Whoops, that link had a bookmark to the wrong section. Try this:

The second way involves setting the nativePath property of a File
instance to the specific file or directory:

// Create a new file instance first
var file:File = new File();
// Use the string path to the file to get a reference to it via nativePath.
file.nativePath = C:/Documents and Settings/Darron/Desktop/example.txt;

Now that you have a reference, you should be able to write to it using
the stream methods.

2009/5/11 kanu kukreja kanukukr...@gmail.com:
 Thanks for the reply Sam.
 But it doesn't has the answer of my query.

 I know how i can create directories at desktop and documents.
 But i want to create a text file at the location i want lets say
 C:\test\test1\hello.txt

 How i can achieve that?

 Thanks,
 kanu

 On Sun, May 10, 2009 at 4:52 AM, Sam Lai samuel@gmail.com wrote:


 See 'the second way' under the 'Referencing a file or directory' section.

 http://labs.adobe.com/wiki/index.php/AIR:Articles:Adobe_AIR_Local_File_System_Access#Reading_and_writing_files

 2009/5/10 kanu kukreja kanukukr...@gmail.com:

 I know how i can create a file in documentsDirectory,
 applicationStorageDirectory, desktopDirectory  userDirectory.
 but how i can create a file using file system in AIR in the path like
 c:\kanu\test\Hello.txt


 

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







 

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






RE: [flexcoders] ADG header appearance

2009-05-10 Thread Tracy Spratt
Set sortExpertMode=true.

 

Not exactly intuitive, is it?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Richard Rodseth
Sent: Sunday, May 10, 2009 11:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ADG header appearance

 






In an ADG with non-sortable columns, how does one eliminate the vertical bar
within the column header (the one that normally gets the sort indicator to
the right of it). 

sortable=false doesn't seem to do the trick.

Thanks.