Highlighted

Problem with a HTML5 canvas

Community Beginner ,
May 12, 2020

Copy link to clipboard

Copied

Hello all,

I m trying to convert my old AS3 animation in html5.

But i have a problem when i try to access from one children movieclip to my root timeline.

In as3 i did in the past with MovieClip(parent or root).

So my question is: how can i navigate and moving between different nested movieclip? is there some kind of instruction that do same as MovieClip do in AS3?

 

Hope my question is clear enough

Thanks a lot

 

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

you can use exportRoot or this.parent

Views

1.2K

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

Problem with a HTML5 canvas

Community Beginner ,
May 12, 2020

Copy link to clipboard

Copied

Hello all,

I m trying to convert my old AS3 animation in html5.

But i have a problem when i try to access from one children movieclip to my root timeline.

In as3 i did in the past with MovieClip(parent or root).

So my question is: how can i navigate and moving between different nested movieclip? is there some kind of instruction that do same as MovieClip do in AS3?

 

Hope my question is clear enough

Thanks a lot

 

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

you can use exportRoot or this.parent

Views

1.2K

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 12, 2020 0
Adobe Community Professional ,
May 12, 2020

Copy link to clipboard

Copied

you can use exportRoot or this.parent

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 12, 2020 1
Community Beginner ,
May 12, 2020

Copy link to clipboard

Copied

So i want to read and check a variable that is on the "parent" moviclip but if i use 

this.parent.VN is not working.

i tried to print with console.log and return undefined.

 

Thansk for your reply

 

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 12, 2020 0
Participant ,
May 12, 2020

Copy link to clipboard

Copied

I had the same problem sometimes
Add

var root = this;

this.parent..........


And it works

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 12, 2020 0
Community Beginner ,
May 12, 2020

Copy link to clipboard

Copied

i am trying with this :

 

this.parent.p2.val.text = " READY "  (this is ok p2 is a movieclip and val is a textbox) 

but if i try with

this.parent.xAx = "value 2" (var is a variable declared like this on parent clip  var xAx= "TEST")

and not working.

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 12, 2020 0
Community Beginner ,
May 12, 2020

Copy link to clipboard

Copied

Thanks a lot!

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 12, 2020 0
Adobe Community Professional ,
May 12, 2020

Copy link to clipboard

Copied

you're welcome.

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 12, 2020 0
Explorer ,
May 15, 2020

Copy link to clipboard

Copied

Also I've tested with exportRoot and parent from the nested MovieClip symbol to the main timeline but it doesn't seem to work. There is a lot of wrong in the Adobe Animate program developing. It was much better before with Flash and Macromedia than Adobe.

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 15, 2020 0
Adobe Community Professional ,
May 15, 2020

Copy link to clipboard

Copied

you're almost certainly doing something wrong (eg, trying to access a variable/object before it's defined).

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 15, 2020 0
Explorer ,
May 15, 2020

Copy link to clipboard

Copied

pic1.jpg 
pic2.jpg 
pic3.jpg 
pic4.jpg 

Above I enclose four pictures how I did in Animate
as I've done in my slideshow that you see. Here is the description:
In picture pic1.jpg I have put this.stop; as an action where i in picture pic2.jpg where put label pt in the same action.
In picture pic3.jpg has in layer the name image1 where in frame 142 I have the Movieclip object inxs.
In image pic4.jpg this is how Movieclip inxs looks where the last frame of the action codes says this.parent.gotoAndStop ("pt");
This not works in either Chrome och Microsoft Edge browser.

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 15, 2020 0
Adobe Community Professional ,
May 16, 2020

Copy link to clipboard

Copied

access denied for pics 2,3,4

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 16, 2020 0
peor LATEST
Explorer ,
May 20, 2020

Copy link to clipboard

Copied

I hadn't unlocked it for everyone in Google Drive and so now it works.

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 20, 2020 0