Jump to content
GreenSock

ngrinchenko

Can I remove eventListeners from the loaded SWF on main time line

Recommended Posts

 

My main time line is sectioned into two labeled keyframed sections.

In section1 I have a button called "APPLICATIONS" which colors blue on roll over and discolors on roll out.

In this section1 there is an SWF loader which loads additional buttons. These buttons when clicked bring user to section2, where the button "APPLICATIONS" should be staying colored in. However it does not happen.

My idea was to play the timeLine which is set up is section1 in the main file by a command in the loaded SWF file, which works now.

However I still need to make sure that evenListeners are disabled as well.

I dabbled in a code attempt, but it did not seem to work.

Is it possible to accomplish?

playTimeLineOutOfLoadedSWF_test 3.zip

Link to comment
Share on other sites

create a function in main.fla that removes the eventListeners, call it:

 

removeApplicationsBtnEventListeners()

 

from the rgb buttons in your loadedSWF do

 

MovieClip(parent.parent.parent).removeApplicationsBtnEventListeners()

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×