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

Loading animation from external swf

New Here ,
May 03, 2019 May 03, 2019

Hello,

I'm doing a school project and I want to load an external swf with an frame by frame animation inside of it and then load it into a loader within a movieclip. I get no error messages when I test the code but the animation doesn't show up. It's just a black screen. I'm using the newest version of Animate and I'm on a Windows 10.

This is the code I use for calling the URL:

var tieURL:URLRequest = new URLRequest ("externalkillingme.swf");

var tieLoader:Loader= new Loader();

tieLoader.load(tieURL);

loader_mc.addChild(tieLoader);

Am I missing something?

Thank you.

584
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

Advocate , May 04, 2019 May 04, 2019

Hi

The code looks fine.

Is everything alright with the external file "externalkillingme.swf" ? Not that it is an AVM1 swf and your host swf is AVM2?

(Read more ...)

Is "externalkillingme.swf" really located in the same folder as your host swf?

Is everything okay with your loader_mc ? Not that it is set to invisible or something.

Is your loader_mc an empty movieclip with the registration point set to default or x = 0, y = 0 ?

Klaus

Translate
Advocate ,
May 04, 2019 May 04, 2019

Hi

The code looks fine.

Is everything alright with the external file "externalkillingme.swf" ? Not that it is an AVM1 swf and your host swf is AVM2?

(Read more ...)

Is "externalkillingme.swf" really located in the same folder as your host swf?

Is everything okay with your loader_mc ? Not that it is set to invisible or something.

Is your loader_mc an empty movieclip with the registration point set to default or x = 0, y = 0 ?

Klaus

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
Advocate ,
May 04, 2019 May 04, 2019
LATEST

some more ..

Read this tutorial from Republic of Code Using the Loader Class in AS3 . In particular the stuff that is written under Using the LoaderInfo Events with the Loader Class.

It explains how you can create eventListeners for different loading stages like Event.COMPLETE, Event.INIT and ProgressEvent.PROGRESS. These you could use to trace() where your problem sits.

Klaus

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