RE: [Flashcoders] Writing to text file

2010-05-06 Thread Merrill, Jason
Ah - new in Flash player 10!  I didn't know that.  Ok -my mistake.  Was never 
possible before - good to know.


Jason Merrill 

Bank of  America  Global Learning 
Learning & Performance Solutions

Join the Bank of America Flash Platform Community  and visit our Instructional 
Technology Design Blog
(note: these are for Bank of America employees only)






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of ekameleon
Sent: Thursday, May 06, 2010 8:14 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Writing to text file

Hello :)

in the FP10 see the FileReference.save() method

http://blog.everythingflex.com/2008/10/01/filereferencesave-in-flash-player-10/

EKA+ :)

2010/5/6 Lehr, Theodore 

> Is it possible to use flash to write to a text file (maybe an xml 
> file)?
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Writing to text file

2010-05-06 Thread Henrik Andersson

Merrill, Jason wrote:

in the FP10 see the FileReference.save() method


That's a bit misleading.  You might want to also tell him what else he needs on 
the server side to use that. You can't just use FileReference to save an XML 
file on anyone's computer.  FileReference won't let you write files locally 
from the Flash player - security restrictions.  Use FileReference to save a XML 
file on a server using server-side scripting in addition.  Or skip 
FileReference and call a webservice on the server to write the XML.


Now you are the one being misleading. That exact method allows you to 
save a file on the client.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Writing to text file

2010-05-06 Thread Merrill, Jason
>> in the FP10 see the FileReference.save() method

That's a bit misleading.  You might want to also tell him what else he needs on 
the server side to use that. You can't just use FileReference to save an XML 
file on anyone's computer.  FileReference won't let you write files locally 
from the Flash player - security restrictions.  Use FileReference to save a XML 
file on a server using server-side scripting in addition.  Or skip 
FileReference and call a webservice on the server to write the XML.


Jason Merrill 

Bank of  America  Global Learning 
Learning & Performance Solutions

Join the Bank of America Flash Platform Community  and visit our Instructional 
Technology Design Blog
(note: these are for Bank of America employees only)


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Writing to text file

2010-05-06 Thread Henrik Andersson

Lehr, Theodore wrote:

not in a php environment - pretty much has to be a pure flash solution - if 
possible...



Flash has no server power at all. It can make HTTP requests and do 
socket connections, that's it. No random file writing on other computers.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Writing to text file

2010-05-06 Thread Lehr, Theodore
not in a php environment - pretty much has to be a pure flash solution - if 
possible...


From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki 
[edole...@gmail.com]
Sent: Thursday, May 06, 2010 8:34 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Writing to text file

Use PHP or something like that as middleware. However can more than one app
instance run at the same time?

On Thu, May 6, 2010 at 8:24 AM, Lehr, Theodore wrote:

> Perhaps my methodology is wrong - here is what I want to do:
>
> Say I have 100 links... I want to track which ones get clicked the most and
> have something like "Top 10 links" and have those be the ones that get
> clicked the most. My thought was to have a text file on the server that I
> can add to whenever a link gets clicked - so I would need to open and edit
> the text file when something is linked...
>
> This would all be easier with a database but that is not an option so I am
> trying to mimick on with a text file. any thoughts on how I could do
> this?
>
> 
> From: flashcoders-boun...@chattyfig.figleaf.com [
> flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of ekameleon [
> ekamel...@gmail.com]
> Sent: Thursday, May 06, 2010 8:13 AM
> To: Flash Coders List
> Subject: Re: [Flashcoders] Writing to text file
>
> Hello :)
>
> in the FP10 see the FileReference.save() method
>
>
> http://blog.everythingflex.com/2008/10/01/filereferencesave-in-flash-player-10/
>
> EKA+ :)
>
> 2010/5/6 Lehr, Theodore 
>
> > Is it possible to use flash to write to a text file (maybe an xml
> > file)?
> >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



--
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Writing to text file

2010-05-06 Thread Eric E. Dolecki
Use PHP or something like that as middleware. However can more than one app
instance run at the same time?

On Thu, May 6, 2010 at 8:24 AM, Lehr, Theodore wrote:

> Perhaps my methodology is wrong - here is what I want to do:
>
> Say I have 100 links... I want to track which ones get clicked the most and
> have something like "Top 10 links" and have those be the ones that get
> clicked the most. My thought was to have a text file on the server that I
> can add to whenever a link gets clicked - so I would need to open and edit
> the text file when something is linked...
>
> This would all be easier with a database but that is not an option so I am
> trying to mimick on with a text file. any thoughts on how I could do
> this?
>
> 
> From: flashcoders-boun...@chattyfig.figleaf.com [
> flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of ekameleon [
> ekamel...@gmail.com]
> Sent: Thursday, May 06, 2010 8:13 AM
> To: Flash Coders List
> Subject: Re: [Flashcoders] Writing to text file
>
> Hello :)
>
> in the FP10 see the FileReference.save() method
>
>
> http://blog.everythingflex.com/2008/10/01/filereferencesave-in-flash-player-10/
>
> EKA+ :)
>
> 2010/5/6 Lehr, Theodore 
>
> > Is it possible to use flash to write to a text file (maybe an xml
> > file)?
> >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Writing to text file

2010-05-06 Thread Eric E. Dolecki
import flash.net.FileReference;
var s:XML = Hello;
var file:FileReference = new FileReference();
file.save( s, "testing.xml" );

On Thu, May 6, 2010 at 8:13 AM, ekameleon  wrote:

> Hello :)
>
> in the FP10 see the FileReference.save() method
>
>
> http://blog.everythingflex.com/2008/10/01/filereferencesave-in-flash-player-10/
>
> EKA+ :)
>
> 2010/5/6 Lehr, Theodore 
>
> > Is it possible to use flash to write to a text file (maybe an xml
> > file)?
> >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Writing to text file

2010-05-06 Thread Lehr, Theodore
Perhaps my methodology is wrong - here is what I want to do:

Say I have 100 links... I want to track which ones get clicked the most and 
have something like "Top 10 links" and have those be the ones that get clicked 
the most. My thought was to have a text file on the server that I can add to 
whenever a link gets clicked - so I would need to open and edit the text file 
when something is linked...

This would all be easier with a database but that is not an option so I am 
trying to mimick on with a text file. any thoughts on how I could do this?


From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of ekameleon 
[ekamel...@gmail.com]
Sent: Thursday, May 06, 2010 8:13 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Writing to text file

Hello :)

in the FP10 see the FileReference.save() method

http://blog.everythingflex.com/2008/10/01/filereferencesave-in-flash-player-10/

EKA+ :)

2010/5/6 Lehr, Theodore 

> Is it possible to use flash to write to a text file (maybe an xml
> file)?
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Writing to text file

2010-05-06 Thread ekameleon
Hello :)

in the FP10 see the FileReference.save() method

http://blog.everythingflex.com/2008/10/01/filereferencesave-in-flash-player-10/

EKA+ :)

2010/5/6 Lehr, Theodore 

> Is it possible to use flash to write to a text file (maybe an xml
> file)?
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Writing to text file

2010-05-06 Thread Henrik Andersson

Lehr, Theodore wrote:

Is it possible to use flash to write to a text file (maybe an xml file)?


You can write to user chosen files using the FileRefernce class. You can 
also use network comunication/ExternalInterface to cause other 
applications to write to files. If you use AIR, you have full freedom to 
write to any file without user intervention.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders