VEGAS Creative Software Community
The Vegas Creative Software Support Community – Find help here
  • Forum
  • Tutorials
  • Support New
  • Sign in / register
  • Search ...
  • Help
  • Forum
  • Vegas Pro
  • Scripting
  • JS to C#

JS to C#

Rosebud wrote on 3/29/2007, 7:02 AM
I have this Jscript code I’m trying to convert in C# :
…
var audioEvent : AudioEvent = AudioEvent(evnt);
…
It work fine.


In C#, I’m trying this (and it don't work):
…
AudioEvent audioEvent = AudioEvent(evnt);
…


I don’t understand What I’m doing wrong.
Thx for your help.
Follow Thank You Quote
More
  • Direct link
  • Report
2 Answers Go to solution
Back to post

Comments

jetdv wrote on 3/29/2007, 6:58 PM
Try this:

AudioEvent audioEvent = (AudioEvent)evnt;
Signature
Thank You Quote
More
  • Direct link
  • Report

Edward Troxel

http://www.jetdv.com

Home of Excalibur & Montage Magic

Rosebud wrote on 3/29/2007, 11:56 PM
Many thx jetdv !

Is it simply a syntax difference between JS and C# ?

Btw, I found another way:
AudioEvent audioEvent = evnt as AudioEvent;
Thank You Quote
More
  • Direct link
  • Report
  • Forum
  • Vegas Pro
  • Scripting
  • JS to C#

Report as questionable

Are you sure you want to report this commentpostuser as questionable?
You may be blocked if you misuse this feature!

Dialog

Follow us on
  • Community rules
  • Imprint
  • Privacy policy
  • Terms and conditions
United States
  • Additional offers
  • VEGAS Forum
  • MAGIX Magazine
(C) 2007 - 2025 MAGIX Software GmbH