A Flash Developer Resource Site

Results 1 to 11 of 11

Thread: HOW DOES IT POP UP?

  1. #1
    Junior Member
    Join Date
    May 2001
    Posts
    22
    hi, i was wondering if anybody could explain to me how i get a window to pop up. i want to open a scene/page and automatically have a window pop-up displaying a message.
    thanks for you`re help.
    -FLASHPETE

  2. #2
    Drum & Bass Addict
    Join Date
    Dec 2000
    Posts
    519
    it depends on what u want, u can make a browser window pop up, a javawindow pop up...give me more info and ill tell u how to do it

  3. #3
    Senior Member
    Join Date
    Jun 2000
    Posts
    242


    i'm trying to get a window to pop-up also. you can view the message here. i explained exactly what i am trying to do if you could help.

    http://board.flashkit.com/board/show...hreadid=153631

  4. #4
    Drum & Bass Addict
    Join Date
    Dec 2000
    Posts
    519
    k..this would be the code youd use in the flash to open a popup window..u change the url and the height and width to what u want
    Code:
        getURL ("javascript:window.open('http://','NameofWindow','width=100,height=100,top=0,left=0'); void(0)");
    and heres the html for opening a browser window with all of the features..u just add the features you want into the above code and it should open with them
    Code:
    ('http://','nameofwindow','width=100,height=100,left=0,top=0,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,directories=yes,copyhistory=yes',1)
    hopefuly you understand on how to do this...email me or reply if u need more help

  5. #5
    Senior Member
    Join Date
    Jun 2000
    Posts
    242
    i tried using this code:

    getURL ("javascript:window.open('ie/index.html','NameofWindow','width=100,height=100,t op=0,left=0'); void(0)");

    and when i click the link i get one full window opening up entirely blank and then a pop-up window opening that says it can't find the requested file. i don't understand why it will not open the file and why an extra window is opening. i do have the file named correctly and in the right dirctory.

  6. #6
    Drum & Bass Addict
    Join Date
    Dec 2000
    Posts
    519
    you have the wrong code..the first code is perfect,
    Code:
     javascript:window.open('http://','NameofWindow','width=100,height=100,top=0,left=0'); void(0)
    u can add the little things you want into that, but dont mess the code up..u had like open ie something that was wrong

  7. #7
    Senior Member
    Join Date
    Jun 2000
    Posts
    242
    sorry i'm confused. you don't want me to edit the code at all?

    i thought i needed to change the URL so it would open the page i want.

  8. #8
    Member
    Join Date
    Jan 2001
    Posts
    66
    Tnx, code works great, just what i needed

  9. #9
    Drum & Bass Addict
    Join Date
    Dec 2000
    Posts
    519
    k sorry..ill try to make it more clear.,
    this is the code to make a popup with no menu or anything(which u place in the get url area
    Code:
    javascript:window.open('http://','NameofWindow','width=100,height=100,top=0,left=0'); void(0)
    k and this is the code to make a window pop up with all the buttons and menu items
    Code:
    javascript:window.open('http://','nameofwindow','width=100,height=100,left=0,top=0,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,directories=yes,copyhistory=yes',1)
    k..u see how the second one (the one that opens with all the features) has like the scrollbars=yes or copyhistory=yes, well all those that say ues that u dont want in the popup. you just take out of the code..like if i didnt want a scrollbar but wanted everything else id just subtract that from the code...u could also try pasting that exact code and instead of yes put no on the stuff u dont want, but ive never tried that so i dunno if it works.

  10. #10
    Senior Member
    Join Date
    May 2001
    Posts
    189

    sweet footer

    Originally posted by pokko
    Tnx, code works great, just what i needed
    \

    thats an awsome footer thing. this may seem stupid, but if its simple enough to explain and you will take the time, how did you make it?

  11. #11
    Drum & Bass Addict
    Join Date
    Dec 2000
    Posts
    519
    if u want the flashfile just ask..u can look at how its made

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