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

privatePkg camera error when load external swf

New Here ,
Feb 26, 2020 Feb 26, 2020

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 😞 ?

TOPICS
ActionScript , Error , Publish package
1.3K
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
New Here ,
Feb 27, 2020 Feb 27, 2020

please help guys

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
Community Expert ,
Feb 27, 2020 Feb 27, 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

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
New Here ,
Feb 28, 2020 Feb 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

 

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
Community Expert ,
Feb 28, 2020 Feb 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?

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
New Here ,
Feb 28, 2020 Feb 28, 2020

no this error is for 2019 version

but in 2020 to give this

i upload test file for you

please check

tnx

https://gofile.io/?c=11YUkE

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
Community Expert ,
Feb 28, 2020 Feb 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

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
New Here ,
Feb 28, 2020 Feb 28, 2020

thank you man

guys please helppp 😞

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
New Here ,
Mar 01, 2020 Mar 01, 2020

hey guys please help 😞

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
Participant ,
Mar 13, 2020 Mar 13, 2020
LATEST

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

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