pop up windows...need help

  • Jpellizzi
  • Novice
  • Novice
  • User avatar
  • Joined: Jul 08, 2005
  • Posts: 27
  • Status: Offline

Post July 18th, 2005, 1:14 pm

I have buttons in my swf, that are scripted to open pop up windows in an html site - the pop ups work...but how do I restrict the size? I have tried javascripting it, but its not working.

The pic pops up, but is fullscreen and not conforming to the javascript i wrote in the html. I have also tried to write the javascript into the actionscripting, but to no avail -

If someone could tell me the code, or what i need to do -i would appreciate it - thanks!
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 18th, 2005, 1:14 pm

  • R.L.D.
  • Student
  • Student
  • User avatar
  • Joined: Apr 07, 2005
  • Posts: 83
  • Loc: Astoria,Queens
  • Status: Offline

Post July 18th, 2005, 3:13 pm

what action are you using on your button?

this code works:

Code: [ Select ]
on (release) {

getURL("javascript:open

('URL','FullView','width=420,height=540,scrollbars=no'); void('');");

}
  1. on (release) {
  2. getURL("javascript:open
  3. ('URL','FullView','width=420,height=540,scrollbars=no'); void('');");
  4. }


but for some reason IE blocks it.
  • Tchuki
  • Mastermind
  • Mastermind
  • No Avatar
  • Joined: Sep 30, 2004
  • Posts: 1774
  • Loc: Edinburgh
  • Status: Offline

Post July 19th, 2005, 7:50 am

http://www.flash-db.com/PopUp/PopUp.html
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post July 19th, 2005, 8:35 am

Make sure you are putting the picture you want to open into an html document and resizing the image to be the exact size it should be in the html. If you just open a window with an image targeted most modern browsers will attempt to resize the image itself based on your window size. If it does that then you have to rather dymanic numbers attempting to look at each other to figure out what size the image should be.
  • Jpellizzi
  • Novice
  • Novice
  • User avatar
  • Joined: Jul 08, 2005
  • Posts: 27
  • Status: Offline

Post July 19th, 2005, 11:25 am

All images are 500x500 px -
  • Jpellizzi
  • Novice
  • Novice
  • User avatar
  • Joined: Jul 08, 2005
  • Posts: 27
  • Status: Offline

Post July 19th, 2005, 11:29 am

thanks eigmatic - that page is golden

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 36 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.