Results 1 to 2 of 2

Thread: flash and ajax

  1. #1
    Join Date
    Jan 2007
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default flash and ajax

    Hi im new here and not a programmer so please be patient with me i put the ajax script into a html page and created a container put a link to abutton in the html page and everything works fine trouble is im trying to do the same with a flash swf file in the same html page but nothing happens below is what ive put on the button in flash

    on (release) {
    getURL("javascript:ajaxpage('hometext.htm', 'contentarea')");
    }

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    You need the JS script in the HEAD section of your page telling the JS to open new window based on those stats. The button is currently looking for a function definition for ajaxpage()

    Try adding this to your HTML page:

    Code:
    <SCRIPT language=JavaScript>
    var newwin;
    function ajaxpage(winurl,winname,winfeatures)
    {
    //This launches a new window
    newwin = window.open(winurl,winname,winfeatures);
    }
    </SCRIPT>
    If that doesn't work take a look at these examples:

    http://www.flash-db.com/PopUp/ //nothing in the html...

    http://www.kirupa.com/developer/mx/centered_popup.htm //Flash & html
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

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