Derek,

thanks a lot! it works perfectly, now. :)

best regards,
oliver



Am 28.02.2006 um 18:36 schrieb Derek Vadneau:

This:
<a href="asfunction:openExe(path/to/exe-file.exe);">
should be:
<a href="asfunction:openExe,path/to/exe-file.exe">

The first part of the string after asfunction: is the path to the function
you are calling.  After the comma is the parameter the function will
receive.

Btw, your subject is a little misleading since your actual problem is with asfunction. If the trace isn't happening then the fscommand has no chance
of working.

And to that, make sure your EXE is in a folder called fscommand, and that
folder is in the same folder as your SWF/EXE.


Derek Vadneau

----- Original Message -----
From: "Oliver Quas" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, February 28, 2006 12:12 PM
Subject: [Flashcoders] fscommand("exec","...") in a standalone app


hi there,

i know there have been a lot of posts about this topic, but i didn't
find any information related to the case i'm currently dealing with,
and the deadline for the job is pretty soon, so please forgive me, if
this has been discussed before:

i have implemented a flash movie (1 file), that should run offline as
a standalone-app/projector from cd (Windows only). the contents get
loaded dynamically using xml-files. the app contains a movieclip
(box_mc) that contains a textfield (text_tf) showing html-text
provided by the xml-files.


in the text displayed inside text_tf, i want to show some links,
opening .wmv- and .exe-files. for the links, i'm using something like
this in the xml:

<?xml version="1.0" encoding="UTF-8"?>
<text>
   <![CDATA[...<a href="asfunction:openExe(path/to/exe-
file.exe);"><u>link text</u></a>...]]>
</text>


inside box_mc i implemented the following function:

public function openExe(path:String):Void
{
     trace("works");
     fscommand("exec", path);
}

unfortunately, when i click the link, the function doesn't get
called. does anyone see/know what i am doing wrong?

thanks in advance!

best regards,
oliver


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to