Skip to main content
Participating Frequently
February 26, 2020
Question

privatePkg camera error when load external swf

  • February 26, 2020
  • 9 replies
  • 1338 views

hi 

help please 😞

im tired really

when i load external swf (animation) in main fla 

get this error and dont load my swf with camera correctly in main fla

---------------------------------------------------------------

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at privatePkg::___Camera___()[C:\Program Files\Adobe\Adobe Animate 2020\Common\Configuration\Camera\Flash\privatePkg\___Camera___.as:66]
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()

------------------------------------------------------------

------------------------------------------------------------

now i check this file  ___Camera___.as :

line 66: centerX = parent.stage.stageWidth / 2;
line 67: centerY = parent.stage.stageHeight / 2;

 

what is problem 😞 ?

This topic is closed to new replies. Start a new post to keep the conversation going.

9 replies

Participating Frequently
March 1, 2020

hey guys please help 😞

Inspiring
March 13, 2020

Hi samangraphic,

 

I am also getting a bunch of errors when using Virtual Canmera with Animate CC 2020 and AS3.

I had to use the virtual camera code in the actions pane for  frame 1 on the timeline rather than a Main document class to get it to work at all.

But it works - but now whenever I add a child to the display list it throws an error. Doesn't upset the application but still.

 

Best Tommy Banana

JoãoCésar17023019
Community Expert
Community Expert
February 28, 2020

Thanks for the files.

 

It seems to me this is a bug and I don't know how to solve it.

 

Your options are:

- Report the bug here: https://www.adobe.com/products/wishform.html;

- Remove the Virtual Camera and nest the animation in a Graphic or Movie Clip instance and animate it to act like a cam;

- Use some third party AS3 vcam like this one: https://www.newgrounds.com/bbs/topic/716647;

- Wait for someone else that knows how to solve this problem.

 

 

Regards,

JC

Participating Frequently
February 28, 2020

thank you man

guys please helppp 😞

JoãoCésar17023019
Community Expert
Community Expert
February 28, 2020

Hi.

 

There used to be some conflicts when using the advanced layers mode - needed for the camera - in AS3 documents.

 

I believe if you upgrade your software to the latest release, this problem will probably go away.

 

Please let us know.

 

 

Regards,

JC

Participating Frequently
February 28, 2020

yes i use in my animation from advanced layer and camera and want camera load correctly in main swf when load my animation file

my software is up to date

i used from adobe animate 2020

 

JoãoCésar17023019
Community Expert
Community Expert
February 28, 2020

Hi.

 

It's because your error points out to a 2019 version path.

 

Anyway, can you provide your files/source so we can investigate?

Participating Frequently
February 27, 2020

please help guys