Highlighted

privatePkg camera error when load external swf

New Here ,
Feb 26, 2020

Copy link to clipboard

Copied

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

Views

463

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

privatePkg camera error when load external swf

New Here ,
Feb 26, 2020

Copy link to clipboard

Copied

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

Views

464

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
Feb 26, 2020 0
New Here ,
Feb 27, 2020

Copy link to clipboard

Copied

please help guys

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...
Feb 27, 2020 0
Adobe Community Professional ,
Feb 27, 2020

Copy link to clipboard

Copied

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

__________________________________________
HTML5, JSFL, and AS3 samples: http://bit.ly/2mJgDoG

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

Copy link to clipboard

Copied

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

 

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...
Feb 28, 2020 0
Adobe Community Professional ,
Feb 28, 2020

Copy link to clipboard

Copied

Hi.

 

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

 

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

__________________________________________
HTML5, JSFL, and AS3 samples: http://bit.ly/2mJgDoG

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

Copy link to clipboard

Copied

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

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...
Feb 28, 2020 0
Adobe Community Professional ,
Feb 28, 2020

Copy link to clipboard

Copied

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

__________________________________________
HTML5, JSFL, and AS3 samples: http://bit.ly/2mJgDoG

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

Copy link to clipboard

Copied

thank you man

guys please helppp 😞

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...
Feb 28, 2020 0
New Here ,
Mar 01, 2020

Copy link to clipboard

Copied

hey guys please help 😞

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...
Mar 01, 2020 0
Participant ,
Mar 13, 2020

Copy link to clipboard

Copied

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

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...
Mar 13, 2020 0