adding text to javascript pop up window from Flash

need help in adding text to javascript pop up windows that are being o

Page 1 of 1

1 Replies - 1831 Views - Last Post: 26 March 2009 - 11:19 AM

#1 taankk  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 21-March 09

adding text to javascript pop up window from Flash

Post icon  Posted 21 March 2009 - 05:19 AM

I am opening a pop up windows with javascript from my Flash movie that works fine. Each opening window has a video in it. Now what I'd like to do is add text under/above the quick time movie inside the pop up windows. I'm not very savvy with programming and I've tried to look all over but can't find a simple direct answer, so any help would be greatly appreciated.
Thanks!


Here's the code I have inside the Flash movie:

btn_rebecca.onRelease = function() {
getURL("java script:openNewWindow('Videos/rebecca.mov','thewin','width=500,height=400,toolbar=no,scrollbars=no')");
}

And here's the code I have in the html:

<script language="Javascript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>

Is This A Good Question/Topic? 0
  • +

Replies To: adding text to javascript pop up window from Flash

#2 BetaWar  Icon User is offline

  • #include "soul.h"
  • member icon

Reputation: 1147
  • View blog
  • Posts: 7,134
  • Joined: 07-September 06

Re: adding text to javascript pop up window from Flash

Posted 26 March 2009 - 11:19 AM

If you want to have text with your movie you will have to change it so you have the .mov embeded in an HTML file and have text above/ below the embeded movie.

Your final actionscript will look something like so:

getURL("java script:openNewWindow('Videos/rebeccaMovie.html','thewin','width=500,height=400,toolbar=no,scrollbars=no')");


Where rebeccaMovie.html is the file I outlined above.

Hope that helps.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1