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

Problem with a HTML5 canvas

Community Beginner ,
May 12, 2020 May 12, 2020

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

 

3.1K
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

correct answers 1 Correct answer

Community Expert , May 12, 2020 May 12, 2020

you can use exportRoot or this.parent

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

you can use exportRoot or this.parent

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

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

 

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

I had the same problem sometimes
Add

var root = this;

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


And it works

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

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.

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

Thanks a lot!

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

you're welcome.

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

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.

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

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

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

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.

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 ,
May 16, 2020 May 16, 2020

access denied for pics 2,3,4

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 ,
May 20, 2020 May 20, 2020
LATEST

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

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