ifFrameVisitedOn

Please complete the following questions!

Has this feature been suggested before?
don’t think

Is your feature request related to a problem? Please describe.
OS Project gets bloated with extra frames just for a 2nd wallpaper option,

Describe the solution you’d like
The ifFrameVisitedOn Trigger, what it does is loads up the same content as if it wasn’t there but can make certain things like a close window button go back to the other wallpaper, saving space compared to remaking windows altogether, and providing a more stable experience.
Here’s how it might work
ifFrameVisitedOn(251) - If the new content was loaded from frame 251
exampleButton.goToAndStop(251) - make exampleButton redirect back to frame 251 instead of 101
it will load content as normal, just make certain buttons and frames act differently.

Describe alternatives you’ve considered
Well, there was the project-bloating remaking everything route.
systematix660a.wick (3.9 MB)
Project GammaRay1-27-2021_16-28-17.wick (3.2 MB) UNFINISHED
Here are the files that i want to modify to have these triggers if they get implemented, would be useful for the 2nd file in making a dark/light mode UI for the main menu.

I’m not really sure I understand correctly but…
you have a frames sequence (or a clip)
you can enter this sequence starting from many different locations
you want your back button take you back from where you came from.

One solution could be
when you leave a frame to enter your sequence you store that starting frame number or frame name in a variable. (for example: project.takeMeBack= this.currentFrameNumber; or project.takeMeBack= this.currentFrameName;)
on the back button you set an action like: gotoAndPlay(project.takeMeBack);

it works tysm