Javascript pop-ups and loadMovie

  • Brian99_1
  • Born
  • Born
  • User avatar
  • Posts: 2

Post 3+ Months Ago

Hi everyone I've been a little frustrated with some other boards (not going to name names) So I went searching and this one seems to be about 10 times more helpful then most. I hate for my first post to be about a problem but this one is just driving me crazy!

here goes

I have a main movie clip that loads another one(nests another) using loadmovie. This movie has a link on it to open up a new javascript window with the normal method described on the Macromedia site

I place this in my html


Code: [ Select ]
<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>
  1. <script language="JavaScript">
  2. function openNewWindow(URLtoOpen, windowName, windowFeatures) {
  3. newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
  4. </script>



and then call it from the flash like so

Code: [ Select ]
getURL("javascript:openNewWindow('plot_magnetic.htm','plotwindow','600','450')");


Now this works perfectly the first time you load the movieclip into the main timeline but if I "close it"(meaning go to a part in the maintimline where it isn't there) or even unload it through action script as soon as I load it and try to click on the link again it makes the page go white and puts the
javascript penNewWindow('plot_magnetic.htm','plotwindow','600','450')
in the url line of the browser.

Anyone encountered this before?? anyone with any ideas!??

Thanks
Brian99_1 - slightly stumped
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Brian99_1
  • Born
  • Born
  • User avatar
  • Posts: 2

Post 3+ Months Ago

Well as most fixes tend to be this one is really dumb!!!

There were two frames in the maintimeline that had the Named anchor option turned on. when I shut them off it all worked prefectly I don't understand it but it all worked.

Thanks to all who read and wasted anytime even thinking about this one!

Brian99_1 - who is a little embarassed at the simplicity of this fix :oops:

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 20 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.