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

Previous frame without resetting

New Here ,
Sep 10, 2013 Sep 10, 2013

As2

How do you go back to a previous labeled frame and have that fame the same as you left it without it resetting that frame.

I really want the x y positions of a MovieClip to stay where I moved the MovieClip to previously so I can go back to it.

These did not work because of resetting.

_root.prevFrame();

_root.gotoAndStop("here");

_root.gotoAndPlay("here");

I could only pick one place and not what I wanted.

_root.mc._x=224.9;

_root.mc._y=124.5;

I been stuck on this for a long time and would really appreciate some help on this.

TOPICS
ActionScript
513
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
LEGEND ,
Sep 10, 2013 Sep 10, 2013

What is in the frame that causes it to revert to some other condition?  If you need to have the position of the object retained, then you need to assign it when you enter that frame, otherwise it will return to whatever the timeline condtions defined for it.

Normally to have something not change when you enter a frame you need to implement conditional logic that says if(something) { make it so }

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
New Here ,
Sep 10, 2013 Sep 10, 2013
LATEST

Thanks, How do you assign the MovieClip position before entering the frame?

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