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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:44:02+00:00 2026-05-24T10:44:02+00:00

I am trying to get bubble effect. I have did the maximum with the

  • 0

I am trying to get bubble effect. I have did the maximum with the help of freeactionscript.com.

Now, i want to display the anim for the particular area. I used the following code, but that is not working. How can I do that?

for (var i:uint = 0; i < noOfBubbles; i++) {
    var bubble:Bubble = new Bubble();
        bubbles.push(bubble);
        Layer_mc.mask = bubble;
        //i have used ENTER_FRAME handler for animation        
}
  • 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-24T10:44:03+00:00Added an answer on May 24, 2026 at 10:44 am

    Why not set up the mask from within your Bubble class, the following is an example of this:

    Main.as(document class):

    package 
    {
        import com.flashdevelopprojects.display.Bubble;
        import flash.display.Bitmap;
        import flash.display.Sprite;
        import flash.events.Event;
    
        [SWF(width="250", height="250", backgroundColor="0xFFFFFF", frameRate="32")]
        public class Main extends Sprite 
        {
            [Embed(source="assets/jellyfish.jpg")]
            private var JellyfishImage:Class;
    
    
            public function Main():void 
            {
                if (stage) init();
                else addEventListener(Event.ADDED_TO_STAGE, init);
    
            }// end function
    
            private function init(e:Event = null):void 
            {
                removeEventListener(Event.ADDED_TO_STAGE, init);
    
                var jellyfishImage:Bitmap = Bitmap(new JellyfishImage());
    
                var bubble:Bubble = new Bubble();
                bubble.addChild(jellyfishImage);
    
                addChild(bubble);
    
            }// end function
    
        }// end class
    
    }// end package
    

    Bubble.as:

    package com.flashdevelopprojects.display 
    {
        import flash.display.Bitmap;
        import flash.display.DisplayObject;
        import flash.display.Shape;
        import flash.display.Sprite;
    
        public class Bubble extends Sprite
        {
            [Embed(source="../assets/bubble.jpg")]
            private var BubbleImage:Class;
    
            private var _bubbleImage:Bitmap;
            private var _mask:Shape;
            private var _content:Sprite;
    
            public function Bubble() 
            {
                init();
    
            }// end function
    
            private function init():void
            {
                _content = new Sprite();
                super.addChild(_content);
    
                _bubbleImage = Bitmap(new BubbleImage());
                _bubbleImage.alpha = 0.5;
                super.addChild(_bubbleImage);
    
                _mask = new Shape();
                _mask.graphics.beginFill(0x000000);
                _mask.graphics.drawCircle(125, 125, 125);
                _mask.graphics.endFill();
                super.addChild(_mask);
    
                mask = _mask;
    
            }// end function
    
            override public function addChild(child:DisplayObject):DisplayObject 
            {
                child.width = 250;
                child.height = 250;
                child.alpha = 0.5;
                return _content.addChild(child);
    
            }// end function
    
        }// end class
    
    }// end package
    

    Here is an image of the flash application running:

    enter image description here

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

Sidebar

Related Questions

I have been trying to create a chat bubble for about a month now...
I'm trying to get a speech bubble effect similar to the one in Mac
Trying to get this example working from http://www.munna.shatkotha.com/blog/post/2008/10/26/Light-box-effect-with-WPF.aspx However, I can't seem to get
Trying to get comfortable with jQuery and I have encountered some sample code that
Trying to convert super(B, self).method() into a simple nice bubble() call. Did it ,
When trying get in memcache client, getting the below excepton. Caused by: java.io.IOException: com.fet.myclass.webservice.data.DataList
I'm trying get some licensing code from AndroidPit.com working, but I get Unable to
I am trying get my first simple project in rails to run. I have
I'm trying get to know decorators, and I have a problem with sharing value,
I'm trying to get an MKMapView to show a pin with a callout bubble.

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.