Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Flash Professional CC - How do I run Zinc (a SWC file)

Community Beginner ,
Feb 13, 2014 Feb 13, 2014

I have posted this to the MDM Zinc forum but as it involves a SWC file I am hoping someone here can help.

I am trying to get Zinc to work in Flash Professional CC, but when I build a project with just a single line of code ... mdm.Application.init(); ... I get the error message ... Access of undefinded property mdm.

So far I have tried...

Based on this post on the Zinc forum ... http://www.mdmforum.com/forum/index.php?showtopic=29717 ... I have added the path to the folder containing mdm_swc.swc to the Library paths (as Merged into code).

I have also used the 'Reload Components' option on the components window (nothing happens).

I have tried dragging the swc file into the Library window (nothing happens if I drag into the top window, and I get an error message "One or more files were not imported because there were problems reading them" if I drag it into the bottom one)

... so what should I be doing?

TOPICS
ActionScript
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 13, 2014 Feb 13, 2014

you only need to add mdm.packager to the fla library, import and use:

import mdm.*;

mdm.Application.init(this);

Translate
Community Expert ,
Feb 13, 2014 Feb 13, 2014

you only need to add mdm.packager to the fla library, import and use:

import mdm.*;

mdm.Application.init(this);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 13, 2014 Feb 13, 2014

Oh - Simple when you know how.

Being used to Action Script 2 i would never have thought that you would have to include a line of code to include a library, I assumed that setting up the path in the ActionScript settings would do that - but it makes sense if you think of them more as C++ type libraries where you do need to import.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Feb 14, 2014 Feb 14, 2014
LATEST

You had to use imports in AS2 as well...?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines