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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:19:53+00:00 2026-06-18T04:19:53+00:00

I am stuck on a Movie Clip which i make on rollover effect then

  • 0

I am stuck on a Movie Clip which i make on rollover effect then put link inside in this movie clip
now the problem is that onrollover work but on release not any solution ??

code m using

on(release){
getURL("name.html")
}

sample file link

http://escribir.biz/nb1/sample.fla

http://escribir.biz/nb1/sample.swf

the main box have on rollover and on rollout effect and link is in this movie on layer 2 and box in layer 1
in actual movie there are many boxes like this which have links but when rollover work link on release not work

Thanks a lot for help

  • 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-06-18T04:19:54+00:00Added an answer on June 18, 2026 at 4:19 am
    1. Create a MovieClip and give it a name “button1”
    2. Dublicate that MovieClip as many Buttons you want and give names as “button2” “button3” etc
    3. Create another MovieClip and give it the name “main” put it in your Layer 1 and add “Main” as an instanceName
    4. Inside the “Main” MovieClip add the two Buttons and add “Button1” and “Button2” as an Instancename each
    5. Create a Class file for main MovieClip
    6. Copy paste the following code as class

    or download the examples.zip to see it http://www.comvos.net/downloads/examples.zip

        class main extends MovieClip
        {
            function main() { super(); }
            function onLoad()
            {
                this.ControlMyMC();
            }
            function ControlMyMC()
            {
                //Turn OFF the HandCursor of Main MC
                this.useHandCursor = false;
    
                this.onRollOver = function()
                {
                    this["AnimatedBG"].gotoAndPlay(2);
                    trace("RollOver Main MC");
                }
    
                this.onRollOut = function()
                {
                    this["AnimatedBG"].gotoAndPlay(21);
                    trace("RollOut Main MC");
                }
    
                var ButtonInstanceNames:Array = [
                                        "Button1",
                                        "Button2"
                                        ];
    
    
                for(var i:Number = 0; i < ButtonInstanceNames.length; i++)
                {
    
                    this[ButtonInstanceNames[i]].onEnterFrame = function()
                    {
                        if (this.hitTest(_root._xmouse, _root._ymouse, true))
                        {
                            //ROLL OVER BUTTON
                            if (!this.isRollOver) 
                            { 
                                this.isRollOver = true; 
                                trace("RollOver " + _name);
                            }
                        }
                        else
                        {
                            //ROLL OUT BUTTON
                            if (this.isRollOver) 
                            { 
                                this.isRollOver = false; 
                                trace("RollOut " + _name);
                            }
                        }
                    }
    
    
                    //ON RELEASE ---(if you want to use onPress .... just replace the onMouseUp wit onMouseDown
                    this[ButtonInstanceNames[i]].onMouseUp = function()
                    {
                        if (this.hitTest(_root._xmouse, _root._ymouse, true))
                        {
                            switch (_name)
                            {
                                case "Button1": trace("You Clicked on Button 1 ... replace me with --->   this.getURL(\"page1.html\");"); break;
                                case "Button2": trace("You Clicked on Button 2 ... replace me with --->   this.getURL(\"page2.html\");"); break;
    
                                //example
                                case "Button3": this.getURL("name.html"); break;
                                default: trace("aa"); break;
                            }
                        }
                    }               
                }
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm designing a database that stores movie related information. I'm stuck on a problem
Im stuck with this little project in C# but basically my problem is this:
Hi all been stuck on this for a while now, not too sure where
Im stuck I got this flash that need's to be configured in a certain
I'm very new to AS3 and I have been stuck with this problem for
The problem I'm facing is that I'm trying to manipulate (in this particular case
Been stuck on this for ages. Currently learning Django and done some bits on
I stuck with problem of mail application , i am developing a website for
im stuck with a problem im basically trying to create a function where I
Got stuck here: http://jsfiddle.net/UFkg8/ Right now the animation is top-down. What do I need

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.