A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: make entire movie clickable into a link

  1. #1
    Registered User paul1537's Avatar
    Join Date
    Dec 2007
    Posts
    0

    I would like to make entire banner into a clickable link:

    I have created a web banner in flash and it works fine except I want it clickable and to link to a web page. I only want it to load the webpage in a new window once it is clicked. I have tried converting it to a button and using this action:

    on (press) {
    getURL("http://www.mywebsite.com/",_blank);
    }

    Every time I do that it distorts the graphics and has all kinds of problems. Anyone got any hints?

    Here is my fla and swf without this change if anyone wants a go at it.
    banner.fla
    banner.swf

    Thanks for your help.
    Last edited by paul1537; 12-06-2007 at 01:11 PM.

  2. #2
    anyone else hear that? flashpipe1's Avatar
    Join Date
    Jan 2003
    Location
    Upstate NY
    Posts
    1,930
    Just create an invisible button (one with only a hit state) the size of your stage, place it on the top layer and put the actionscript on it.

    Hope that helps!
    Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.

  3. #3
    anyone else hear that? flashpipe1's Avatar
    Join Date
    Jan 2003
    Location
    Upstate NY
    Posts
    1,930
    I think this is what you're looking for?

    Looked like you had everything right, you just had to resize your button hit area and put the getURL in an on(release) function on the button instead in a frame script.

    Hope that helps!
    Last edited by flashpipe1; 03-13-2008 at 09:33 AM.
    Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center