attaching Javascript to Flash button in Dreamweaver.
Hello all.
As stated I'm trying to add a javascript to a Flash button but I'm not exactly sure how to, by hand or via dreamweaver ultradev. I already have a popup on my site from a link so I know how to do them, it's attaching them to Flash buttons that confuses me.
javascriptopUp('http://www.whatever.html') is what I've put for the link for the flash button + I have the necessary code in the <head> tag but a regular sized window opens with javascriptopUp('http://www.whatever.html') in the location bar, and it says that the page cannot be found. If anyone would be so gracious as to tell me what I am doing wrong it would be greatly apprecitated. Thank You in advanced.
Chryssi
Last edited by supernova82; 08-22-2003 at 03:18 PM..
In DreamWeaver UltraDev you should be able to click on the flash button in your window, and, in the behaviors panel on the right hand side, click the '+' button and add any javascript element they let you. Did you try that?
__________________
// Art is what you can get away with. <-- Andy Warhol
...:.:::: bradyjfrey.com : htmldog : ::::.:...
I didn't think additional behaviors could be applied to Flash text via Dreamweaver. So I figured it would be possible to do it manually. the article says I could apply more behaviors with Flash, but I don't have flash and was looking for a work-around. But thank you so much bradyj for taking the time out to even read and reply, I really appreciate it.
Hmm... that is unusual, but it does make sense. I know I can use ActionScript in Flash to do similiar things, but I was unaware that the <embed> would not work otherwise with javascript.
Are you on a PC or Mac?
Any of you JavaScript junkies know if there's a work around?
__________________
// Art is what you can get away with. <-- Andy Warhol
...:.:::: bradyjfrey.com : htmldog : ::::.:...
Kev@DDN, thank you for replying. I will keep that code for future reference but since my post I have scrapped the idea of adding popup windows to Flash buttons. lol, I couldn't figure out, but now I have a completely new layout devoid of the buttons period.. But thank you so much for helping, whether the code works or not, I really appreciate your time.