How to make my movieclip link button to a URL?

I have a movieclip and actionscript on a separate layer that controls the clip. However, I would like to be able to make a link to a URL when I click on the button. Based on what I have anyone know how teck my code? Allows to pretend is the site I want to make a link to "http://www.google.com/ig?hl=en'. '"

Here is the code:

ProductMarketingIcon_mc.onRollOver = function() {}

ProductMarketingIcon_mc.gotoAndPlay ("normal");

}

ProductMarketingIcon_mc.onRollOut = function() {}

ProductMarketingIcon_mc.gotoAndStop ("normal");

}

ProductMarketingIcon_mc.onPress = function() {}

ProductMarketingIcon_mc.gotoAndPlay ("over");

}

Thanks for your help!

It's as2:

ProductMarketingIcon_mc.onRollOver = function() {}

ProductMarketingIcon_mc.gotoAndPlay ("normal");

}

ProductMarketingIcon_mc.onRollOut = function() {}

ProductMarketingIcon_mc.gotoAndStop ("normal");

}

ProductMarketingIcon_mc.onPress = function() {}

getURL ("http://www.google.com/ig?hl=en");

ProductMarketingIcon_mc.gotoAndPlay ("over");

}

Tags: Adobe Animate

Similar Questions

  • How to make a clickable link?

    How to make a clickable link?

    Hi kolar123,

    To make a shortcut, all you need to know is that you make a shortcut to. If it's a file you want to link to, then just browse the file, right-click on it and choose Create shortcut. Then just move to the office or wherever you want to.
    A link to a web page, go to the web page you want and copy the contents of the address bar. employment insurance. www.Google.com. right-click on your desktop, place the cursor over "new" and choose the shortcut. In the box that appears, paste the address of the web page in the location field and click Next. Name the shortcut, and then click Finish. Now you have a link that will take you directly to any site you want to go.
    I hope this helps.
  • How to make a pdf link to open it in a new window?

    How to make a pdf link to open it in a new window?

    When you create your link, select "Custom link" and the tab Actions Add a "Run a JavaScript" command with the code.

  • How to make an anchor link also refresh the page?

    I'm trying new things with some widgets (compositions) and I would like to make some anchor links also refresh my page (on the mobile version of my site). I tried to put the link in full instead of simply select my anchor (#myanchor .com/mypage) but who works as the first (perhaps because the user is already on .com / my page #myanchor?)

    A bit of googling found me a way to do this:

    window.location.href = 'mypagetoreload.htm#jumptosection1';
    window.location.reload(true);

    but I don't know how to use it in Muse...

    Thanks in advance!

    OK, I think I understand what you're trying to do. You can use the scroll for this movement options as then your page reload. Feel free to post a link or send me a link in private message so I can see if I'm wrong in what I believe you are trying to do. But I'm sure if I understand that by using the movement of scrolling options should stop for you.

  • How to make a movieclip and import it into another fla file?

    Hello

    I'm having one of those moments of "self doubt mental health."

    Entering the melting below!

    I want to do a clip from a background of graphics card and some existing movieClips that reside in another .fla

    In this other .fla file clips are in the wrong layer in order to start over, I would like to put things away.

    How can I create a clip like this?

    Then I started thinking, how can we create a clip, and then get into another file?

    I even did a test that went: -.

    (1) create the new AS3 file

    (2) draw a box of

    (3) box and press F8 convertir convert to symbol, select movieclip and name it box_movieclip

    (4) box of d/click and consist of a classic Tween and box moving across the stage.

    (5) save under and the file named MovieClip_Boxtest.fla

    (6) open new AS3 file and import into the library of the BoxTween.fla and had a message saying one or several files not imported as their reading problems.

    So after doing the above steps 1 to 5 makes a movieclip, how to do that in another fla file?

    having done this before that I'm panicking that I lost some brain cells!

    Envirographics.

    When I want to move a movieclip of one fla to another I just right click in the library and select copy.  Then, I go to the library of the FLA, library (off the coast of any other symbol) right click and select Paste.

  • How to make the script a buttons previous and next to navigate between fields using the navigation sequence?

    I want to put in "next" as well as "Previous section" buttons on the top of my page, aside from the arrows in the table of contents. I put a browse sequence. But I am unalbe to describe the buttons. Can anyone help please.

    Thank you.

    Hello

    You're definitely on the right track. The problem is that you cannot use a path "hard" for images. It may work for the subjects to the root, the directory images can exist. It may not work for the subjects, because the correct path would be something like '... /... / Images /'.

    In addition, you must add the images as baggage files to your project. If you only use the images in a script, RoboHelp does not recognize them as resources.

    I've updated you above the article. He now understands how to use images like browse buttons in the sequence.

    Take a bow

    Willam

  • How to make an image link to a specific slide in a slideshow cycle2?

    Hello.  I would like to make my thumbnail images become links to larger images on another page.  Larger images will be in a slide show, which will be manual or interactive with buttons front and rear. But I would like the visitor to be able to go directly to the enlarged image, rather than to the beginning of the slide show.   I practiced by applying the following information on my existing cycle2 slideshow that goes automatically to the next slide.

    Page slideshow cycle2

    "< a name ="large"id ="large"> < /a > < img src="images/home_page/foodscale_web.jpg ">

    Page of thumbnails

    < digital_page_thumbnail li >

    "< a href ="#big index.html"> < img src="images/digital_page/foodscale_thumbnail.jpg "> < / a >

    < / digital_page_thumbnail li >

    But it was not effective.  So, I tried the following...

    "< a name ="large"id ="large"> < img src="images/home_page/foodscale_web.jpg "> < / a >

    Placing the < /a > tag at the end took the image in the slideshow and makes visible under it.  If using the symbol # is correct, I would be happy to know how to use it for this purpose to allow the visitor to directly access a specific location in a slide show.  Thank you very much.

    Page slideshow cycle2

    data-cycle-hash 'big' =>

    Page of thumbnails

    #big">

  • How to make a text the buttons in DVD Maker

    On the menu screen, I can't find how to add text to each title, or scenes button as it is called. Sorry I can't find a way to identify the version of my Vista DVD authoring program. Thank you, Audres.

    The following article might be worth a visit:

    How to burn DVDs with Windows DVD Maker
    http://www.7tutorials.com/how-burn-DVDs-Windows-DVD-Maker
    (scroll down to: how to customize the DVD menu)

    FWIW for number of version... try will help / about.

  • rounded buttons by default? How to make square and flat buttons?

    I'm creating a mobile application on Dreamweaver CS6. Each type of button, I tried all the rounded corners and drop shadow default. I want to make buttons square and flat. I tried all of the following methods:

    < input type = "button" / >

    < button > < / button >

    < a href = "~" > < / a >

    < a class = "button" href = "#AccommodationPage" data-role = "button" > accommodations < /a > (mobile insert Jquery)

    All of these methods show a round button in Dreamweaver CS6 direct mode by default and show also like rounding by default when I connect phone Gap to my Dreamweaver and upload app on my android device. Can anyone offer advice on how I can make my buttons square and flat? I played with the CSS to try to intentionally square, and I tried to use no css at all, because to my knowledge when you insert buttons, they should be square and flat by default and you must change, and dropshadow border radius properties to give effects that Dreamweaver uses by default.

    I thought about it, Jquery mobile has a problem where it's all buttons in dreamweaver rounded, so you must put$('a').buttonMarkup({ corners: false }); to make them square

  • How to make a text link open a lightbox?

    I don't want the light therapy device to be on the page, but only to open if you click on a link?  How do I do that in Muse?

    You can adjust the opacity of your thumbnail image to 0. Make the text behind it. In this way, it seems that you click on the text, but in reality you still click on the image. If the thumbnail with a 0 opacity does not work. You can drag the image borders. In this way, you don't see the image either.

  • How to make a hyper link in AS3

    Hello

    I'm just new to Flash (AS) and I want to make a hyperlink of http://www.fruitdieet.net...

    I don't want to paste the whole but just like this fruitdieet and clickable URL on my scene...

    Can someone help me?

    Thank you very much!

    You can use a button:

    yourbutton.addEventListener (MouseEvent.CLICK, f);

    or a textfield

    yourtextfield.htmlText = "your link";

    yourtextfield.addEventListener (TextEvent.LINK, f);

    function f(e:Event):void {}
    navigateToURL ("http://www.fruitdieet.net");

    }

  • Web links open in a new tab or a new window, how to make the web link open in my current tab?

    I could find ways to do the reverse of this and make the links to open in new tabs, but none that answered this question

    It is difficult because the links in a page can work in several ways:

    • no attribute "target" - open in the same tab
    • the value of attribute 'target ':

      • "_blank" - open in a new tab
      • 'name1' (used before and currently open)-replace the page on the tab 'name1 '.
      • 'name2' (not used before or already closed) - open in a new tab
    • script attached to the link to override her normal behavior - a variety of outcomes are possible, including a whole new window

    You can try the settings of parameters in this old thread: https://support.mozilla.org/questions/985943

    Who do you want?

  • How to make a completely transparent button in Flash Builder

    Hello, I am building an app and need for a completely transparent button, Ive tried to make one but nothing would happen when you clicked on it.

    Thanks for the help.

    Try this alpha = "0.001".
    Also add = "true" useHandCursor and buttonMode = "true" If you wish to have the hand cursor appear in the overview.

    example x = "10" y = "10" width = "169" height = "54" label = "Button" alpha = "0.001" useHandCursor = "true" buttonMode = "true".

    HTH

  • How to make a movieclip to play as long as you press a key?

    This is the code that I use, I did what flash, after I released the button, it starts to play the 'walking' frames - I include only the gotoAndStop ("idle") so it's not the chance to play 'works '.

    But what I want to do is play the market only when the button is pressed and stop when you release.

    onClipEvent (enterFrame) {}

    If (Key.isDown (Key.RIGHT)) //68

    {

    This moveSpeed ._x +=;

    this.legs.gotoAndPlay ("walking");

    This ._xscale = 100;

    }

    Else if (Key.isDown (Key.LEFT)) //65

    {

    This ._x moveSpeed-=;

    this.legs.gotoAndPlay ("walking");

    This ._xscale = - 100;

    }

    on the other

    {

    this.legs.gotoAndStop ("idle");

    }

    }

    It should work... When let you go of left or right, he should go to the movieclip.legs slowed down frame

    The only slightly odd thing is:

    this.legs.gotoAndPlay ("walking");

    because he goes to which frame, as long as the button is pressed, so that it remains on the frame of Tournay and it does not play, you could stop and do a new mc within this framework of market animation of legs.

  • How to make so that the button to show what video showing / loading

    I have a homepage with a video background and a button that returns the user to another page.

    I just have a problem, and it is when you see the page online for a split of a second, you see only the button on a black background before the video is loaded and begins to play. Not really how to on this subject... I recon the button must be visible when the video is displayed or are charged... ?

    I have the following. 'Mybtn' is my button.

    videos of the var: Array = new Array("videos/video.flv");

    Stop();

    stage.scaleMode = StageScaleMode.NO_SCALE;

    internship. Align = StageAlign.TOP_LEFT;

    stage.addEventListener (Event.RESIZE, position);

    BG.video.addEventListener (ProgressEvent.PROGRESS, function() {removeChild (preloader) ;});

    BG.video.addEventListener (Event.COMPLETE, function (e) {BG.video.play ;});)

    BG.video.source = videos [Math.floor (Math.random () * videos.length)];

    BG.video.getVideoPlayer (BG.video.activeVideoPlayerIndex) .smoothing = true;

    position (Event);

    function position (Event): void {}

    var SH = stage.stageHeight;

    var SW = stage.stageWidth;

    var SF = (BG.width)/(BG.height);

    var SS = (SW) / (SH);

    BG.x = SW/2;

    BG.y = HS/2;

    BG.video.x=-BG.video.width/2;

    BG.video.y=-BG.video.height/2;

    If (SS > SF) {}

    BG.width = (SW);

    BG.height = /SF (SW);

    } else {}

    BG.width = (HS) * SF;

    BG.height = (SH);

    }

    Mybtn

    Mybtn.x = SW/2;

    Mybtn.y = HS/2;

    Mybtn.buttonMode = true

    }

    Mybtn.addEventListener (MouseEvent.CLICK, MinFunktion);

    function MinFunktion (Event): void {}

    navigateToURL (new URLRequest ("index3.html"));

    BG.video.stop)

    Mybtn.gotoAndStop (68)

    trace ("you pushed Mybtn");

    }

    use:

    Import fl.video.VideoEvent;

    Mybtn.Visible = false;

    videos of the var: Array = new Array("videos/video.flv");

    Stop();

    stage.scaleMode = StageScaleMode.NO_SCALE;

    internship. Align = StageAlign.TOP_LEFT;

    stage.addEventListener (Event.RESIZE, position);

    BG.video.addEventListener (VideoEvent.READY, readyF);

    BG.video.addEventListener (ProgressEvent.PROGRESS, function() {removeChild (preloader) ;});

    BG.video.addEventListener (Event.COMPLETE, function (e) {BG.video.play ;});)

    BG.video.source = videos [Math.floor (Math.random () * videos.length)];

    BG.video.getVideoPlayer (BG.video.activeVideoPlayerIndex) .smoothing = true;

    position (null);

    function readyF(e:Event):void {}

    Mybtn.Visible = true;

    }

    function position(e:Event):void {/ /}<-you had="" a="" typo="">

    var SH = stage.stageHeight;

    var SW = stage.stageWidth;

    var SF = (BG.width)/(BG.height);

    var SS = (SW) / (SH);

    BG.x = SW/2;

    BG.y = HS/2;

    BG.video.x=-BG.video.width/2;

    BG.video.y=-BG.video.height/2;

    If (SS > SF) {}

    BG.width = (SW);

    BG.height = /SF (SW);

    } else {}

    BG.width = (HS) * SF;

    BG.height = (SH);

    }

    Mybtn

    Mybtn.x = SW/2;

    Mybtn.y = HS/2;

    Mybtn.buttonMode = true

    }

    Mybtn.addEventListener (MouseEvent.CLICK, MinFunktion);

    function MinFunktion (Event): void {}

    navigateToURL (new URLRequest ("index3.html"));

    BG.video.stop)

    Mybtn.gotoAndStop (68)

    trace ("you pushed Mybtn");

    }

Maybe you are looking for