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

How to play swc main or document timeline?

Community Beginner ,
Sep 14, 2016 Sep 14, 2016

Copy link to clipboard

Copied

I'm pretty sure that swc contain the complete swf embedded inside it, but how we can get access of it?

so we can play the main timeline.

Views

686

Translate

Translate

Report

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
LEGEND ,
Sep 19, 2016 Sep 19, 2016

Copy link to clipboard

Copied

How are you loading the SWF, via a standard Loader? If so then the Loader object (upon loading) has a .content property that is a reference to SWF. You could simply run a "yourloadername.content.play();" to have the content play.

Votes

Translate

Translate

Report

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 ,
Sep 26, 2016 Sep 26, 2016

Copy link to clipboard

Copied

LATEST

Thank you sinious for your explanation,

I just try to manage a large project through producing many swc files acting as sub projects and I set a document class for every one of them, after that I point the main project to the path of these swc from library path inside actionscript settings.

From coding the script hint show these classes names and no problem to declare new instances of them and access other classes inside these swc, but accessing the main timeline is not working or adding these instances as movieclip to stage nothing of timeline content appear on the stage.

Can you help me regarding this issue, to manage such a big project?

Now I'm using the embedding statement to embed swf files inside man project, and loading or playing external swf files is not an option for me because we need all assets (played from inside the main project), and no external assets allowed.

Thanks agian,

Votes

Translate

Translate

Report

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