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 5946095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:46:27+00:00 2026-05-22T16:46:27+00:00

I just started to read the book Learning ActionScript 3.0. So in the 3rd

  • 0

I just started to read the book Learning ActionScript 3.0. So in the 3rd chapter the author covers EventLinsteners.

There’s a sub-heading Event Propagation. From the beginning author creates to Folders on the Stage, with instance names Folder0 and Folder1 and explains Mouse_Over event. Than it says if you have 100 of such folders on your stage you’ll have to write EventListener for every Folder instance. So they introduce some “strange for me” type of instance with name folder_group, and it’s like 1 MovieClip but with several MovieClips inside (I guess MovieClip is the correct reference).

So, shortly, in the next part of this chapter there’s Frame Events sub-heading where Author has Unicycle. That unicycle is a single MovieClip too. It has to instances in it, when you double click it. The body instance and wheel instance.

So, how the hell should I do that. How to create such movieclip that has several different parts in it. When you double click it, you move from Scene1 -> “Some Name”.

Please someone, explain how to do that… I tried to google it but to clue yet.

and one more thing. What’s the difference between the separate ActionScript file and FLA-s ActionScript mode (I mean F9)

Thanks in advance

  • 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-22T16:46:28+00:00Added an answer on May 22, 2026 at 4:46 pm

    regarding event propagation you can look at this link, the example swf shows bubbling/propagation and stoping propagation

    by default, the click event will propagate, so as long as you attach the event to the top-level movieClip, you can set the action there.

    you can try this simple test. Create a MovieClip with a name “mc” and and put some other movie clips in there, using this code, any time you click on anything that is within that mc, an event will fire. if you name these movieClips, you’ll see the names pop up, otherwise you should see names that are something like this “instance#”

    mc.addEventListener(MouseEvent.CLICK,onHit);
    
    function onHit(e:MouseEvent):void{
        trace(e.target.name);
    }
    

    having the code in an .as file makes it a lot easier to code. For example I do 99.7% of the coding in an external editor, and only use flash to create my graphic resources.
    You can use what’s called a documentClass, which extends the default MovieClip that acts as the stage, most examples in adobe help are using these. For quick tests I just use the code panel(F9). The big difference really is that coding this way (using .as files) is a lot easier and faster, especially with an IDE like FlashDevelop, FlashBuilder, FDT etc.


    for the fla you provided, you could use this for the doc class

    package {
    
        import flash.display.MovieClip;
        import flash.events.MouseEvent;
    
        public class FrameEvents extends MovieClip {
    
            public function FrameEvents() {
                cycle.addEventListener(MouseEvent.CLICK,onHit);
            }
    
            public function onHit(e:MouseEvent):void{
                trace(e.target.name);
            }
        }
    }
    

    you should see body traced when you click on the body, and wheel when you click on wheel

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

Sidebar

Related Questions

I just started to read about this new technology... Does someone have some knowledge
I'm in the early stages (read:just started yesterday) of a project, and I'm setting
I just started developing a multilingual webpage which site users can read and post
I just started learning how to use SwiftMailer and I am having trouble sending
Just started getting a bunch of errors on our C# .Net app that seemed
Have just started using Google Chrome , and noticed in parts of our site,
I just started thinking about creating/customizing a web crawler today, and know very little
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I just started using GNU Emacs as my text editor and I am concerned
I just started using the WPF WebBrowser that is included in Net 3.5 SP1.

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.