PDA

View Full Version : How do I add a link to a .swf file?


hawthorn
2-27-06, 06:10 AM
As you can tell by the question, Flash 8 is pretty new to me. I've created a simple .swf, containing two layers, one with an image, the other a logo; I use 'transition' effect to fade one out and the other in simultaneously, and vice versa. It works fine but I want to add a link to an external URL. Dreamweaver won't let me; how do I do it in Flash? When I tried adding a Press behaviour I lost the transition. :confused:

mpessoa
2-28-06, 10:43 AM
Create a third layer and add a button to this layer. Put the Goto Webpage behavior on this button.

oatesj77
2-28-06, 03:06 PM
create a button with nothing in up/over/down frame, then make the hit frame contain a box or area that will cover your image. put that button on to top layer. then click the button and add this action script;

on(release){
getURL("http://www.site.com");
}

lamaranderson
4-7-06, 04:35 PM
This is kinda of a piggy back question (meaning similar idea) funny thing is oatesj I think I asked you part of this question in the dreamweaver forum the other day, any who. This is the similar prob/situation im having:

{A} I want a button (contact me) that I have created in my swf to link to new blank browser window (contact me.html)
{B} I want that new blank window (contact me.html) to be SIZE specific (NO CONTROL OR MAXIMED VIEW)-which will contain 1 background image with check, text, radio etc.-user input buttons for forms to be emailed to me (i.e. contact.html=400x200 with name, email, subject mesg & submit button).
{C} I need to know what is the easiest/best way to have the form fields code created and working(i.e. front page/DRM WV or flash mx)

I want to use this idea for a number of pages. But I havent found out which is the best program to use to get this done- DRW or Flash, front page or all and how? can someone please help with this. I would think that I could/should be able to do this easily but cant get it. HELP

oatesj77
4-7-06, 09:28 PM
here ya go;
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14192#geturljs