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

Problem with a HTML5 canvas

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

 

Views

2.5K

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
community guidelines

correct answers 1 Correct answer

Community Expert , May 12, 2020 May 12, 2020

you can use exportRoot or this.parent

Votes

Translate

Translate
Community Expert ,
May 12, 2020 May 12, 2020

Copy link to clipboard

Copied

you can use exportRoot or this.parent

Votes

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

 

Votes

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
community guidelines
Engaged ,
May 12, 2020 May 12, 2020

Copy link to clipboard

Copied

I had the same problem sometimes
Add

var root = this;

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


And it works

Votes

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
community guidelines
Community Beginner ,
May 12, 2020 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.

Votes

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

Copy link to clipboard

Copied

Thanks a lot!

Votes

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
community guidelines
Community Expert ,
May 12, 2020 May 12, 2020

Copy link to clipboard

Copied

you're welcome.

Votes

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
community guidelines
Participant ,
May 15, 2020 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.

Votes

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
community guidelines
Community Expert ,
May 15, 2020 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).

Votes

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
community guidelines
Participant ,
May 15, 2020 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.

Votes

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
community guidelines
Community Expert ,
May 16, 2020 May 16, 2020

Copy link to clipboard

Copied

access denied for pics 2,3,4

Votes

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
community guidelines
Participant ,
May 20, 2020 May 20, 2020

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines