A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: someone smart..actionscript/HTML

  1. #1
    Senior Member
    Join Date
    Oct 2000
    Location
    Kansas City MO
    Posts
    231
    glenn_a_m, helped me with this earier....however its doesent totally work.

    simpley this is a regular html Java button, that works. It launches a full screen window and replaces itself with a thanks html. Meaning when i close the full screen window the thanks html is there. if i hit the back button its the original window that started everything. ok.

    Now. I want to reproduce the same effect in F5. I can spawn the full screen with :

    on (press) {
    getURL ("javascript:MM_openBrWindow('main.html','main')") ;
    }

  2. #2
    Senior Member
    Join Date
    Oct 2000
    Location
    Kansas City MO
    Posts
    231

    rest of the post...didnt get in

    what i can't do is bring the thanks.html window into the window that spawned the full screen html. This is about as easy as i can explane it...can somone help me with the secound part of the script?

    Orignal Html script on button that works:

    <map name="enterIntroButton">
    <area shape="rect" coords="358,19,422,49" href="thanks.html" onclick="MM_openBrWindow('main.html','main')" onmouseover="(window.status='Enter THESITE'); return true">

    Thanks

    m
    </map>

  3. #3
    Member
    Join Date
    Mar 2000
    Location
    Madrid, Spain
    Posts
    51
    I guess you should just add another getURL command into de On (release) statement .. something like this :
    ---

    on (press) {
    getURL ("javascript:MM_openBrWindow('main.html','main')") ;
    getURL("thanks.htm",_self);
    }

    ---

    I think the order here is important, since if you call the thanks.htm page before opening the new window, it will not process the second command, and you'd only get the thanks.htm page ..

    hope it works for you..

  4. #4
    Senior Member
    Join Date
    Oct 2000
    Location
    Kansas City MO
    Posts
    231
    This is not working....its one or the other but not both.
    Do have any more suggestions on this Timun?

    Anyone

    Also i took out _self once and nothing at all happed, im really at loss on this one.


    m

  5. #5
    Senior Member
    Join Date
    Feb 2001
    Posts
    475
    Well u use JavaScript right?

    just modify the MM_openBrWindow('main.html','main') JS function to load the thanks-page...
    insert the following code like shown below:

    MM_openBrWindow() {
    //.... whatever Macromedia guys did here ...
    window.location = "thanks.htm";
    }

    Yours
    HTD

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center