Highlighted

Loading animation from external swf

New Here ,
May 03, 2019

Copy link to clipboard

Copied

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.

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

TOPICS
Discussions

Views

162

Likes

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

Loading animation from external swf

New Here ,
May 03, 2019

Copy link to clipboard

Copied

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.

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

TOPICS
Discussions

Views

163

Likes

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

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
May 04, 2019 0
kdmemory LATEST
Advocate ,
May 04, 2019

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
May 04, 2019 1