  | |  | returning variables directly through loadvariables and a .vbs | returning variables directly through loadvariables and a .vbs
2004-02-18 - By ryanm
Back > hi i 'm just simply trying to get a directory structure by calling a .vbs
> file (for a projector file). I can call loadvariables to read a text file
> that a vbs creates(by running fscommand), but i haven 't found a way to
> directly do:
>
> this.loadVariables( 'directory.vbs ');
>
> i have a feeling it has something to do with my vbs file?
>
> i tried
>
> WSCript.Echo "&test=1 "
>
> but that doesn 't work. any help?
>
It is not executing the file, but reading it in. You can 't do that in
Flash without an extender like Screenweaver. To execute a .vbs file, you
would have to call a batch file using fscommand( "exec ") that runs the script
so that it is done on a command line. You certainly couldn 't do it using
loadVariables.
Something like Screenweaver would do exactly what you 're looking for.
ryanm
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104577
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |