pop-up windows for display a swf file

  • trouble!me
  • Newbie
  • Newbie
  • trouble!me
  • Posts: 5

Post 3+ Months Ago

Hi there,

I'm making a flash movie, and I need to open a swf file at a pop-up window when I click the flash button.

The problem is - the pop-up window is shown, but it's close immediately.

Code: [ Select ]
on (release) {
getURL ("javascript:NewWindow=window.open ('puzzle.swf','newWin','width=400,height=300,left=0,top=0,toolbar=Yes,location=Yes,scrollbars=Yes,status=Yes,resizable=Yes,fullscreen=No'); NewWindow.focus(); void(0);");
}
  1. on (release) {
  2. getURL ("javascript:NewWindow=window.open ('puzzle.swf','newWin','width=400,height=300,left=0,top=0,toolbar=Yes,location=Yes,scrollbars=Yes,status=Yes,resizable=Yes,fullscreen=No'); NewWindow.focus(); void(0);");
  3. }



Anyone can help! :cry:
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • roarmeow
  • Professor
  • Professor
  • User avatar
  • Posts: 861
  • Loc: BKNY

Post 3+ Months Ago

two suggestions:

1) instead of referring the browser to 'puzzle.swf', make a puzzle.html with puzzle.swf loaded into it. i think you'll have better luck with a browser knowing what to do with that.

2) if that doesn't work, put the javascript in the html document that's housing the original swf and call it from the getURL command...

aside from that, i'm not sure...
  • trouble!me
  • Newbie
  • Newbie
  • trouble!me
  • Posts: 5

Post 3+ Months Ago

I already tried both earlier, but still doesn’t work. :( Anyway, thank you for your suggestions and reply. I appreciate it very much! :)
  • roarmeow
  • Professor
  • Professor
  • User avatar
  • Posts: 861
  • Loc: BKNY

Post 3+ Months Ago

sorry, but yo... check out this tut and hopefully it'll have the answers you're looking for.

all the best.

Post Information

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