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
you can use exportRoot or this.parent
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
I had the same problem sometimes
var root = this;
And it works
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.
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.
you're almost certainly doing something wrong (eg, trying to access a variable/object before it's defined).
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.
access denied for pics 2,3,4
I hadn't unlocked it for everyone in Google Drive and so now it works.