Skip to main content
Participant
January 10, 2024
Question

Parent layers don't work when debug to air mobile

  • January 10, 2024
  • 1 reply
  • 100 views

Can someone tell me if layer parenting is possible when outputted to mobile app?

Works in interface and when played,but all parents are lost when in debug mode or published to phone. I need to set up a simply mobile app. that allows users to drag object on a cell phone screen with a multiple levels of hierarchy.

 

 

 

Code:

this.Layer1.myMovieClip.addEventListener(MouseEvent.MOUSE_DOWN, fnDown1);
function fnDown1(event: MouseEvent): void {
this.Layer1.myMovieClip.startDrag();

 

addEventListener(MouseEvent.MOUSE_UP, fnUp1);
function fnUp1(event: MouseEvent): void {
stopDrag();
}
}

this.Layer2.myMovieClip1.addEventListener(MouseEvent.MOUSE_DOWN, fnDown2);
function fnDown2(event: MouseEvent): void {
this.Layer2.myMovieClip1.startDrag();

addEventListener(MouseEvent.MOUSE_UP, fnUp2);
function fnUp2(event: MouseEvent): void {
stopDrag();
}
}

this.Layer3.myMovieClip2.addEventListener(MouseEvent.MOUSE_DOWN, fnDown3);
function fnDown3(event: MouseEvent): void {
this.Layer3.myMovieClip2.startDrag();

 

addEventListener(MouseEvent.MOUSE_UP, fnUp3);
function fnUp3(event: MouseEvent): void {
stopDrag();
}
}

 

I tried to attach FLA but it kept being denied.

Thanks for you time!

    This topic has been closed for replies.

    1 reply

    kglad
    Community Expert
    Community Expert
    January 10, 2024

    you have to upload your fla to a file server and post a link here.

    Havoc379Author
    Participant
    January 10, 2024