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

are there any way to do this?????

Participant ,
Oct 19, 2008 Oct 19, 2008

Copy link to clipboard

Copied

hi
I need a code or style of programming that do this:
before leave this frame do something

anybody can help?

thanks a lot.
TOPICS
ActionScript

Views

359

Translate

Translate

Report

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 ,
Oct 20, 2008 Oct 20, 2008

Copy link to clipboard

Copied

I don't think you can. Frame is a scheduled screen refresh and all the code is already executed. I believe Flash looses reference to the current frame's code when screen refreshes. In other words, Flash already left the frame even if movie is stopped.

Votes

Translate

Translate

Report

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 ,
Oct 20, 2008 Oct 20, 2008

Copy link to clipboard

Copied

I see you point

Votes

Translate

Translate

Report

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 ,
Oct 21, 2008 Oct 21, 2008

Copy link to clipboard

Copied

there is a way to do this if you know what are the possible reasons of leaving the frame. I mean if the only way to leave the frame is to press a particular button, add the code to the button's listener.

You could also try to attach some code to your desired frame's parent, for ex:

//PARENT's LISTENER
if(child.currentFrame != someFrame)
{
doSomething
}

There could be planty ways to do it, but it all depends on your project's architecture.

Votes

Translate

Translate

Report

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 ,
Oct 21, 2008 Oct 21, 2008

Copy link to clipboard

Copied

LATEST
Flash 10 has added Event.EXIT_FRAME, that might do what you need.

Strangely though the Flash 10 help says it came with Flash Player 9. Maybe it's a new ability that can still work with the older player?


Votes

Translate

Translate

Report

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