Solved

VERY simple one

Posted on 2003-12-09
7
200 Views
Last Modified: 2010-04-03
i made a banner.
how can i activate it as link .
i want that it will go to some url in new window
0
Comment
Question by:eladr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
7 Comments
 
LVL 5

Accepted Solution

by:
zenlion420 earned 20 total points
ID: 9907321
In the last frame of your banner, draw a rectangle over your banner over the area you want to be clickable.  Convert it to a button.  Click on the button and open the actions panel.  Enter this, changing the url to the one you'd like to direct to (you can also set what window the url will be displayed in here, but I didn't do that):

on (release) {

getURL(www.something.com);

}


After that's done, click once on your rectangle button, and give it an alpha of 0 in the color section of the properties inspector.

j
0
 
LVL 1

Author Comment

by:eladr
ID: 9907578
hi
10x but...
its seems it doesnt work.
i did exactly like your answer but the cursor is switching to link only for 1 seconds
in the end of the animation and its not redirecting me to the url.

0
 
LVL 5

Expert Comment

by:zenlion420
ID: 9907685
Okay, then do this (I figured you had a (stop) at the end of your banner animation):

Right click on the frame that contains the invisible button, choose "cut frames"  Go to frame one of the same layer, right click and choose "paste frames.  Then go to the last frame of the layer, right click : "remove frames".  then left click in the frame you just cleared and hit F5 to extend the frames.  

j
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Expert Comment

by:zenlion420
ID: 9908540
I just realized that you specified you would like the link to open in a new window, in which case the code on the button would be:

on (release) {

getURL(www.something.com,_blank);

}

j
0
 
LVL 1

Author Comment

by:eladr
ID: 9910542
it is not working 4me...
if the rectangle is in the last frame how the link will be active in the first frame's
also i have 2 layers in the animation (i dont know if this matter)

e.
0
 
LVL 5

Expert Comment

by:zenlion420
ID: 9910980
Please see my second comment :)
0
 
LVL 5

Expert Comment

by:zenlion420
ID: 9910981
BTW, put the rectangle button on its own layer.

j
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question