Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3872474
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T21:55:47+00:00 2026-05-19T21:55:47+00:00

I have a class where i create my navigation bar. Then i have created

  • 0

I have a class where i create my navigation bar.
Then i have created a movieclip on stage, not with AS.
In this movieclip is on every frame a different content.

Now i want to pass a number from the navigation class to my movieclip on stage.
So i can call “movieclip.gotoAndStop(number)” from an actions layer.
But i dont know what the easiest solution would be.

I have this problem because i switch from one menu to another.
And the new menu is linked with an external class.
So i have already a lot of code on my stage and i do not want to change that.

greets Max

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T21:55:48+00:00Added an answer on May 19, 2026 at 9:55 pm

    You can use events (you can read about them here, at adobe.com livedocs, and last is probably better place to start). First you need to add event listener to your movieClip:

    movieclip.addEventListener(YourEvent, eventHandler);
    

    and than in navigation bar dispatch event:

    dispatchEvent(YourEvent);
    

    The system is pretty easy, you dispatch event in one place and listen it in other. The complication could be in listening event, because you can dispatch them only up or down, So in a case when you want to dispatch event from a child of some MoviClip, to the child of other MovieClip you probably will need to dispatch a bubble event to your root object, and there redispatch it back to all children. But it depends on you architecture, how you should build system of event listners and event dispatchers.

    Also I usually create MyEvent classes for every type of specific events that i use, so i can send different variables in event, and it helps to read the code in the future.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this class that have a function to load other classes and create
I want to create a navigation bar that cna be used on every page.
I have created a simple UL/LI navigation bar. It looks perfectly fine in both
I have a UIViewController class with a navigation bar shown and a button on
I have a class which would create a bean and the bean has few
I know in the MVC Framework, you have the Html Class to create URLs:
I have been curious about dynamically create class at runtime in C# and stumbled
I currently have a class and I'm trying to create an easy GUI to
Suppose we have a class. We create an object from the class and when
I have a class: class One def initialize; end end I need to create

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.