Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Aug 2003
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #2
    New to the CF scene
    Join Date
    Aug 2003
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ^ I think you all know what goes there in place of the smiley face! it's : P without the space. Oops!

  • #3
    Senior Coder
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    2,469
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 : ::::.:...

  • #4
    New to the CF scene
    Join Date
    Aug 2003
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://www.macromedia.com/support/dr..._behaviors.htm


    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.

  • #5
    Senior Coder
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    2,469
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You're more than welcome!

    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 : ::::.:...

  • #6
    New Coder
    Join Date
    Sep 2003
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try this code:

    Code:
    on (release) { getURL("javascript:var mypopup = window.open('http://www.google.com','mySite','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=500,height=300,top='+eval((screen.availHeight - 300) / 3)+',left='+eval((screen.availWidth - 500) / 2));mypopup.focus();"); }
    http://www.dotdragnet.com
    http://www.kevinleitch.co.uk

  • #7
    New to the CF scene
    Join Date
    Aug 2003
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #8
    New Coder
    Join Date
    Sep 2003
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by supernova82
    Kev@DDN, thank you for replying.
    np feller
    http://www.dotdragnet.com
    http://www.kevinleitch.co.uk


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •