Groups | Blog | Home
all groups > flash (macromedia) > october 2005 >

flash (macromedia) : links and buttons / components


treybraid
10/12/2005 11:33:13 PM
i cant seem to get this answered so i thought id ask again... ive got 2 drop
down menu's in my movie--how do i link them to a url... and how do i link my
buttons to a url as well... flash newbie here... also this is a question that
is a little out there...help me out if you can..im going back and forth with
doing the site totally in flash and html... im building a site for an indoor
football team and one of the characteristics of the site is that it will be
updated constantly... is there a way something can be set up; so, i can enter
in say daily new's article's and have them populate the page...etc... example
lay out the page in word and link it to a flash page... so when im updating the
word doc - layout/ strucuture etc...the flash page mirrors it if that make's
any sense....
trey
Equan
10/13/2005 12:00:00 AM
for the button, this goes on the button itself, highlight the button and put
this code in the action panel
on(release){
getURL("http://www.yourpage.com",_blank);
as for the drop menu assuming it's the combo box
give the combo box an instance name of "my_cb" and put this code on the
timeline

//Add items to combo box
my_cb.addItem("excite.com");
my_cb.addItem("google.com");
// Create Listener Object.
var cbListener:Object = new Object();
// Assign function to Listener Object.
cbListener.change = function(event_obj:Object) {
getURL("http://www."+my_cb.selectedItem.label);
};
// Add Listener.
my_cb.addEventListener("change", cbListener);

treybraid
10/13/2005 12:00:00 AM
when you say timeline what are you saying... im so new to this... i dont
understand... am i supposed to go to the component inspector and enter this
info in ... if not where do i need to enter the info at...
trey
Equan
10/15/2005 12:00:00 AM
AddThis Social Bookmark Button