[Flashcoders] fscommand Issue.

2010-12-12 Thread Omar Fouad
Hello all,

I'm trying to call a function in JavaScript from a SWF file (AS3).
fscommand(start, 1);
This function works fine. However, when I pass a variable to the fscommand
parameters argument, JavaScript doesn't work:
fscommand(start, myString); // this doesn't work.

Am I missing something?

Thanks in advance.

Cordially.

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


Re: [Flashcoders] fscommand Issue.

2010-12-12 Thread Henrik Andersson

Omar Fouad skriver:

Hello all,

I'm trying to call a function in JavaScript from a SWF file (AS3).
fscommand(start, 1);
This function works fine. However, when I pass a variable to the fscommand
parameters argument, JavaScript doesn't work:
fscommand(start, myString); // this doesn't work.

Am I missing something?



How about the ExternalInterface class?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] fscommand Issue.

2010-12-12 Thread Omar Fouad
That doesn't work at all :D I already tried it...

On Sun, Dec 12, 2010 at 8:55 PM, Henrik Andersson he...@henke37.cjb.netwrote:

 Omar Fouad skriver:

  Hello all,

 I'm trying to call a function in JavaScript from a SWF file (AS3).
 fscommand(start, 1);
 This function works fine. However, when I pass a variable to the fscommand
 parameters argument, JavaScript doesn't work:
 fscommand(start, myString); // this doesn't work.

 Am I missing something?


 How about the ExternalInterface class?
 ___
 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] fscommand Issue.

2010-12-12 Thread Omar Fouad
Anyone??

On Sun, Dec 12, 2010 at 9:01 PM, Omar Fouad omarfouad@gmail.com wrote:

 That doesn't work at all :D I already tried it...


 On Sun, Dec 12, 2010 at 8:55 PM, Henrik Andersson 
 he...@henke37.cjb.netwrote:

 Omar Fouad skriver:

  Hello all,

 I'm trying to call a function in JavaScript from a SWF file (AS3).
 fscommand(start, 1);
 This function works fine. However, when I pass a variable to the
 fscommand
 parameters argument, JavaScript doesn't work:
 fscommand(start, myString); // this doesn't work.

 Am I missing something?


 How about the ExternalInterface class?
 ___
 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] fscommand Issue.

2010-12-12 Thread Cor
import flash.external.*;
readout.text = ExternalInterface.call(function(){ return 
myGlobalJavaScriptVariable; });

Grz,
Cor van Dooren

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Omar Fouad
Sent: zondag 12 december 2010 20:56
To: Flash Coders List
Subject: Re: [Flashcoders] fscommand Issue.

Anyone??

On Sun, Dec 12, 2010 at 9:01 PM, Omar Fouad omarfouad@gmail.com wrote:

 That doesn't work at all :D I already tried it...


 On Sun, Dec 12, 2010 at 8:55 PM, Henrik Andersson 
 he...@henke37.cjb.netwrote:

 Omar Fouad skriver:

  Hello all,

 I'm trying to call a function in JavaScript from a SWF file (AS3).
 fscommand(start, 1);
 This function works fine. However, when I pass a variable to the
 fscommand
 parameters argument, JavaScript doesn't work:
 fscommand(start, myString); // this doesn't work.

 Am I missing something?


 How about the ExternalInterface class?
 ___
 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


-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1170 / Virus Database: 426/3306 - Release Date: 12/09/10


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