Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Getting Info from File on Disk (Flash 4)
From: Muzak
Date: Mon, 18 Dec 2000 21:48:42 GMT

David,

It is possible. You can load about anything in Flash, but there's nothing you can do with it really, since Flash only reads plain
txt files and expects a certain encoding (&var1=blah&var2=woopy).
On WinNT or win2k, try this:

loadVariablesNum ("file://C:\\WINNT\\win.ini", 0);

then in test movie mode, debug > list variables (ctrl + alt + v).
You'll see the result, but it's not in the format Flash expects, so I really doubt you can do anything with it.

------------
Rick,

To load variables from a text file into a Flash movie, use the following action attached to a button or keyrame:

loadVariablesNum ("name_of_textfile.txt", 0);
The textfile can have any extension, as long as the content is in the standard MIME format application/x-www-urlformencoded
(meaning: plain text).
The previous example loads variables into level0, meaning the main timeline. You can also load variables into a different level, or
target a Movieclip. The following ActionScript, attached to a button or a keyframe loads variables from a textfile into a MovieClip
(Instance Name: mc_var):

loadVariablesNum ("name_of_textfile.txt", "mc_var");
hth,
Muzak
----- Original Message -----
From: "David Gee" <davidatpsysurgeons [dot] com>
To: <flasheratchinwag [dot] com>
Sent: Monday, December 18, 2000 9:21 PM
Subject: Re: FLASH: Getting Info from File on Disk (Flash 4)


> I'm pretty sure that this is impossible. If it isn't, Macromedia could get
> in a lot of trouble.
>
> Or do you mean "server's hard drive" instead of "user's hard drive"?
>
> david
>
> ----- Original Message -----
> From: "Melton, Richard A Contractor/NCCIM"
> <richard [dot] meltonatredstone [dot] army [dot] mil>
> To: <flasheratchinwag [dot] com>
> Sent: Monday, December 18, 2000 2:33 PM
> Subject: FLASH: Getting Info from File on Disk (Flash 4)
>
>
> > I am trying to read the content from a file on the user's hard drive, and
> if a
> > certain numeric or string value is in the file, take an action in Flash.
> >
> > I have looked at ReadURL and FSCommand, but haven't found the way to do
> this.
> >
> > How can this be done?
> >
> >
> > Rick



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Getting Info from File on Disk (F, Melton, Richard A Contrac
  Re: FLASH: Getting Info from File on Dis, David Gee

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]