A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: html pg opens fixed size swf window (only blue title bar)

  1. #1
    Junior Member
    Join Date
    May 2002
    Posts
    15

    Talking

    can any one help?

    i'd like to know how to publish a flash html page that has a link to an swf movie that opens in a fixed size/non-scalable window with only the blue title bar and a save disable.

    ive read posts in the archive and found some answers but have no clue about html. can any one give me an idiots walkthrough?

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Seoul, South Korea
    Posts
    1,310
    Hi there,
    You need to open your swf. in a javascript window.
    eg.
    Code:
    on (release) {
        getURL ("javascript:window.open('http://www.your.swf','name','width=350,height=500,scrollbars=yes,top=0,left=0'); void(0);");
    }

  3. #3
    Junior Member
    Join Date
    May 2002
    Posts
    15

    Talking ok then..

    on (release) {
    getURL ("javascript:window.open('http://www.*****.***','****','width=***,height=***,scroll bars=yes,top=0,left=0'); void(0);");
    }

    so this code goes in the button of the flash movie i publish as an html page. where the stars are i've put in, i put my own details?

    is this correct?

  4. #4

    Thumbs up reply

    if u want to open the page in a popup then search for some code for popups..or look for chromeless windows in http://www.microbians.com. u can open the chrome less popups from flash also . there in the above site u can find the kit for download and use them free of cost..

    see ya

  5. #5
    Senior Member
    Join Date
    Aug 2000
    Location
    Seoul, South Korea
    Posts
    1,310
    That's correct...you onlt need the scrollbars=yes (or "1") if you want it to scroll, otherwise the default value is "0" or "no".

  6. #6
    Junior Member
    Join Date
    May 2002
    Posts
    15

    Angry thats done it

    thanks micmac

    got it sorted. only thing now is the window always opens in the corner of the screen instead of the middle.

    if ne1 knows a code to fit in with the above to make it open in the middle, that would be great.

    no? ok then

  7. #7
    Senior Member
    Join Date
    Aug 2000
    Location
    Seoul, South Korea
    Posts
    1,310
    Hi there,
    You can change the position by changing the values for top and left.

    Code:
    top=100,left=150
    I think there is a script to center it as well...i'll have a look for it.

    Cheers,
    micmac

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