Groups | Blog | Home
all groups > flash actionscript > february 2005 >

flash actionscript : Button Path


myckelh
2/23/2005 10:04:38 PM
setup:: // on main timeline actions frame I have scripted the following code.
Sets the path of my Help button on main timeline to nothing. ButtonHelpURL=' ';
// in a MC called Menu, I have a button which sets the path for the 'Help'
button. on(release){
_root.ButtonHelpURL='http://dssweb.sac.flextronics.com/escalation/FlashHelp/shor
tage_escalation.htm', '_blank' } //on help button I have on(release){
getURL(ButtonHelpURL); } when I press the help button, once its been set to
the correct path it works. It finds teh URL.. except it doesent open it up in a
new window.(_blank) any suggesstions? also, can the same thing work with PopUp
-- so I can controll the window.
myckelh
2/23/2005 10:15:46 PM
I alos tried the following to make it pop up
getURL('javascript:popUpWindow(\'(ButtonHelpURL)\', 550, 400);'); pops up but
it doesent find the URL path. Does anyone know what the correct synatx is to
pass the variable inside the popupcomand. I tried it with teh () and
without... it just doesent seem to except the varialble passed to it.
myckelh
2/28/2005 9:35:28 PM
maybe my question is confusing. Let me try to clerify. Since no one has taken a
stab at it. So I have 2 buttons. Button 1 is on main time line, it has the
following action script: (on(release){ getURL(ButtonHelpURL); } Button 2 is
inside of a moviclip on the main time lime it is suppose to tell button 1 where
to go. on(release){ _root.ButtonHelpURL='http://www.myckelh.com', '_blank' }
on maintimeline I have writtem the following to set up the variable for
button2. ButtonURL=' '; // Problem: everything works fine, the web page
called comes up, the only problem is, it doesent open it up in a new window
(_blank)
AddThis Social Bookmark Button