Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Url on movie

Status
Not open for further replies.

splang

Technical User
May 16, 2004
9
GB
I have made a simple movie.
A single image and at frame 15 I have inserted some text which shows until frame 30, that is it, so basically the text is flashing.
I want the whole picture to be a link, I have made frame 1-15 a symbol and inserted a url in actions but I have to repeat this in frame 15 to 30.
Is there an easier way to do this without repeating all the time, I tried to put a clear box over the whole thing but it still only highlights frame 1-15. Do I have to use a layer?
Thanks
 
Yes you can and should use a layer.

Create a new (invisible) button. Draw a rectangle (doesn't matter what color). Drag the keyframe to the "hit" frame and clear the Up, Over, and Down Frames. When you drag this button to the stage it will appear green. (so you can see it while editing).

Create a new layer for the invisible button. Drag it to frame 1. Click on frame 30 and press f5 (add frame(s)). Then add your getURL() action to the button.

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
pixl8r,
Sorry I'm a bit lost.
I have made the movie clip with the flashing text.
inserted a new layer after this I lost, there is no up,over,down or hit state.
Thanks for your time.
 
OK... in main timeline (not in your flashing text movie clip) add a new layer.

Press Ctrl+f8 to create a new symbol. In the popup window name it "invisiButton" and select "button" as a behavior.

When you click ok you will be presented with a new timeline for the button. The frames will be marked Up, Down, Over, Hit. Follow instructions above for drawing box. When you are done click on the "Scene 1" button in the top left corner of the stage.

Next press Ctrl+L to open the library. Make sure the new layer is active and drag your invisiButton from the library to the stage. Resize the button to cover the whole stage. Then complete the instructions above to make it available for the whole movie.

I hope that is a little easier for you. Let me know if you have any more questions.

BTW... If you are on a MAC replace the CTRL with CMD.

Wow JT that almost looked like you knew what you were doing!
 
The thing is I must be a thick s__t because there is only 1 time line, no other "main timeline is there?
Sorry to be so thick?
 
Ok so you did not creat a movie clip... you created a movie. You are probably not incredibly thick... more likely that I have assumed that you have more experience with Flash than you do.

A "movie" represents the main timeline (in your case the timeline). A "movie clip" represents a symbol within the "movie" that has a timeline that is independent of the main timline (a movie within your movie).

If you only have one timeline that's fine. Follow the instructions above. Create and Drag the invisible button on to your new layer as described and add the actionscript to the new button.

Code:
on(release){
   getURL("mypage.htm");
}

If you are looking for some good tutorial sites check out and Both have great tutorials for all skill levels.

Sorry for the disconnect. Hope it helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top