Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Windows 窗体中的 Flash 控件。我想知道是否有办法获取其中的所有变量。我知道我可能可以使用 getValue(variablename) “猜测”(蛮力)变量,但如果有办法获得变量而不必猜测它们,我更喜欢。
你可以试试
foreach(objectType flashVar in axShockwaveFlash1.FlashVars) { System.Console.WriteLine(flashVar.VarName + " = " + flashVar.VarValue); }