A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Guess I wun be sleeping tonite...

  1. #1
    Member
    Join Date
    Jul 2000
    Posts
    85
    PLS HELP..
    Hi all,

    I am writing this to appeal all flashers to help me. I just canit make things rite.

    I have a flash menu. This flash menu supposed to open (POP UP) up windows without scrollbars. However, I do not want to control everything in the menu (index.html) file. Cos.. there are many buttons inside the menu. I want to have a control, such that some buttons will open up windows that have NO SCROLL BARS... while some of them, there ARE scroll bars. I figured out that the only way to do is use javascript using parameters..

    Therefore, i uses this in my index.html.

    <SCRIPT LANGUAGE="JavaScript1.2">
    </SCRIPT>
    <!-- Begin

    function openNewWindow(windowURL, windowParameters)
    {
    window.open(windowURL, "", windowParameters);
    }
    <//End-->
    </SCRIPT>

    In my buttons.. i will enter this;
    On (Release)
    Get URL ("javascriptpenNewWindow('play.htm','theplay','400 ','400',toolbar=no,scrollbars=no,align=center' )")
    End On

    So far SO SAD. I always got an error. Run Time Error "Object not expected"
    Issit that its becos i am running on my PC and it will be ok when i post to net?
    I have trying to source for scripts. but still unable to debug. Will you all help me?

    Pls?

    Devastated,
    Sherraine


  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    in the get URL it should read javascript:window.open('play.htm','theplay','400,4 00,toolbar=no,scrollbars=no,align=center'); void(0);


    Just add that and have nothing on the web page.

    If you were wanting to make that a function you have done it wrong and it will return an error.

    http://www.webmonkey.com has a good script library as does zd net

  3. #3
    Senior Member
    Join Date
    Aug 2000
    Posts
    1,317
    you can check out my popUp Window Creator @ http://www.aspalliance.com/bellis

  4. #4
    Member
    Join Date
    Jul 2000
    Posts
    85

    You finally make my day!

    Thanks all for ya kind reply!!!

    You finally make my day..

    However, i have one question..

    According to Johnie.. whats the purpose of putting the void(O) there?

    Hhehee,.. just wanna learn more...

    Thanks all..
    i really appreciate it.

    I finally able to see day light... in my dreams as well..

    Luving urs,
    Sherraine

  5. #5
    Senior Member
    Join Date
    Aug 2000
    Posts
    1,317
    it's kind of like using href="#" in a <a> tag.it returns the function but doesn't go anywhere.

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