Skip to main content
Participant
February 13, 2014
Answered

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

  • February 13, 2014
  • 1 reply
  • 1447 views

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?

This topic has been closed for replies.
Correct answer kglad

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

import mdm.*;

mdm.Application.init(this);

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
February 13, 2014

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

import mdm.*;

mdm.Application.init(this);

MartinPTAuthor
Participant
February 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.

Amy Blankenship
Legend
February 14, 2014

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