How do you link buttons in Flash?

MainFramed

Diamond Member
May 29, 2002
5,981
1
0
<MainFramed>

How do I link my buttons in flash so that when a use clicks the link is launched? I also need to know how to make the links target (where it opens/launchs) in the "content" area. :blink:

Hope this is not to diffacult to understand, please help!

TIA :)
</MainFramed>


PS: If it matters, I have FlashMX2004
 

rh71

No Lifer
Aug 28, 2001
52,844
1,049
126
I think they removed the "easy mode" in the later releases of Flash so you have to code it by hand. There's documentation for it all though...

- make sure your button is really a button (converted symbol) and that it is currently selected.. in the actionscript editor:

on(release){
getURL("http://www.blah.com/test.html","_self");
}

That's how to launch links. Use _blank for it to open in a new page (which is the case with most Flash sites).

Regarding opening in a content area, many people use MovieClips. That's way too complicated to get into here, but you will find people with more patience at flashkit.com boards. But basically you would use the loadMovie() function instead of getURL(). The loaded-movieclip would have a "container" which loads your .html.

You can find the language reference here.