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 5 of 5
  1. #1
    Regular Coder
    Join Date
    Dec 2002
    Location
    Ontario, Canada
    Posts
    183
    Thanks
    0
    Thanked 1 Time in 1 Post

    Using javascript with flash

    I have a very simple javascript

    window.open "test.htm", "_blank", "width=750,height=520,top=0,left=0,scrollbars=NO,menubar=NO,toolbar=NO")

    that I can call from an onClick.

    However, I would like a button in a flash file to do the same thing. I have a bit of experience with flash but none with ActionScript. Is it possible to get a button in flash to do this, using actionscript or is there a way to call the javascript. Any help would be great.
    Thanks
    if ( atfirst != succeed)
    tryagain();

  • #2
    New Coder
    Join Date
    Sep 2003
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://www.dotdragnet.com
    http://www.kevinleitch.co.uk

  • #3
    Regular Coder
    Join Date
    Dec 2002
    Location
    Ontario, Canada
    Posts
    183
    Thanks
    0
    Thanked 1 Time in 1 Post
    Thanks for the reply, it was very helpful
    if ( atfirst != succeed)
    tryagain();

  • #4
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ive got something a step further...

    Im building a site that will have a flash calendar on the index page. I need to be able to click on a date on that calendar and have it load an html file into an iframe on the events page of the site...

    Do I need to build some sort of JS file to be able to communicate between the two? I know how to chat with an iframe housed on the same page, but not on a different page...

    Any ideas would be appreciated...

  • #5
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Oh man, check out this thread about External Interface in Flash, that will help you mediate between Flash and JS. You'll probably have to ask in the JS forum about how to mediate between the frames, I'm not that good with JS.

    http://codingforums.com/showthread.php?t=152181
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.


  •  

    Posting Permissions

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