This content has been marked as final. Show 5 replies
What you are doing now is just creating a new html window that contains the QT movie. If you want to add text then you will have to alter the html of that window. Is there any reason why you can't format an html document to contain the text and the QT movie and then open that document?
Thanks for your message Rob! Hmmm... good question. I guess I could do that as well... I'm not sure exactly how to do that, in a way that lets me define the window size, not having scroll bars etc. like it is now, so that it looks like a pop up window and not a whole page? Also, I need to have about 20 of them, one for each QT movie, so I thought I would have been easier if I could do it with the code, and not have to create 20 pages and do all the linking etc. Any ideas how that would be done? Do I need to create those pages in dreamweaver and then link to the pages in Flash? Can I still define the window sizes and format exactly the same? Thanks!!
An html document is an html document. If you create a document that has a line of text, then the QT movie, and then another line of text, you have the basic layout of the movie. If you just open this document in a browser, it will work as a normal html document. If you open that same page using the window.open() JS method, then you can define the chrome and size of the window.
If you don't want to create all 20 pages and load then on your server, then you could write a JS function to write the content to an html document on the fly. You might do this by:
1. Use window.open() to open up a blank html document,
2. Use document.write() to write the html content that you want in that document.
That way you can create as many custom windows with unique content as you want.
If all of the content is static, then it really is a whole lot less work to just make the html documents and open them as needed.
Can you give me an example code and tell me where to put it? I'm a super beginner in actionscript or any programming, and don't know how to do that... I would really appreciate it! I tried to look on the Flash help section, but I'm not savvy enough to figure it out based on that. Thanks!!!