CBT Cafe Logo  

CBT Cafe > Flash > ActionScript

Part 2: Editing the HTML

I'm going to use Dreamweaver to edit the HTML file published by Flash, but obviously you could use any editor or even notepad.

Step 1: Editing the popup.html

This is the file published by Flash. Using Dreamweaver, go to File>Open...and select the popup.html.

Step 2: Pasting the Javascript code

In the Code View in Dreamweaver, paste the following code BETWEEN the head tags:

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

Step 3: Create the Pop-up Page

Next, create a new HTML page and call it "test.html". Obviously it could be named anything but it has to be the same name referenced in the Get URL action in Flash.

Flash code:

javascript:openNewWindow('test.html','thewin', 'height=200,width=250,toolbar=no,scrollbars=no')

Step 4: Testing Your Movie

Save your popup.html file and your test.html file (make sure all files are in the same directory as your popup.swf since that's the path structure we used in the example). Test your popup.html movie and click the Flash button to test the page.


If you make ANY changes to your flash movie and republish it, you will HAVE TO go back and paste in the code into the HTML page published by Flash. When Flash publishes the HTML page it will overwrite the existing one so you'll need to drop in the code again.

Page 1 | Page 2



We've added 4 New Movies to our Flash 5 source files cd! These include detailed videos on:

1. Tell Target/With
2. Dynamic Text 1
3. Dynamic Text 2
4. Animated Fly Out menu Part 2

About the CDROM:
These movies are the SAME content found in our Flash 5 tutorials, but the quality is clearly better than the streaming, web-compressed format we have online with Frame Rates up to 20 TIMES FASTER and CD-ROM quality AUDIO!

More Info...



Home | Dreamweaver | Fireworks | Flash | Photoshop | Elements | PowerPoint| Ebay | QuickTime Pro | Flash 5 CD | Fireworks MX CD | QuickTime Support | Contact

Copyright © 1999-2011 CBT Cafe, All rights reserved

Flash®, Fireworks™, and Dreamweaver® are registered trademarks of Macromedia, Inc. in the United States and/or other countries
Photoshop®, Photoshop Elements® and Illustrator® are registered trademarks of Adobe Systems, Inc.
QuickTime® is a registered trademark of Apple Computer, Inc.
Ebay® is a registered trademark

CBT Cafe | Multimedia Learning | Interactive Graphics