Home  |  Free Templates (NEW)  |  Premium Website Templates  |  Tutorials  |  Privacy Policy  |  Link Exchange  |  Contact Us
Tutorials
Photoshop Tutorials
Flash Tutorials
3D Graphics Tutorials
Partners
Free Website Templates
Flash Templates Today
Web Sites
Free Shape
Photoshop Tutorials
Flash Tutorials
Illustrator Tutorials
HTML Tutorials
Flash Templates
Free Web Templates
Free Flash Templates
Web Templates Forum
Recommended Hosting:
Host Unlimited Domains on 1 Account
1500GB storage and 15000GB bandwidth for $6.95/mo!
Recommended Hosting:
Host Unlimited Domains on 1 Account
1500GB storage and 15000GB bandwidth for $6.95/mo!
Free Website Templates: 123456789101112131415
Preview & Download Preview & Download Preview & Download

Welcome To NewFreeTemplates.com Flash Tutorials Area - Popup a PDF file

Display Adobe PDF file in a new window by clicking a link in a Flash movie.

  1. Launch Flash Designer and choose "Blank".
  2. Copy and paste this icon into Flash Designer document. (Right click on the image and choose "Copy", in Flash Designer choose "Edit" > "Paste")

  3. Choose "Item" > "Actions" > ""OnClick", check "Get URL" and type the link to your PDF file. The link must be absolute (begin with http://) The PDF file must be available online. Select "_blank" as the target.

  4. Click OK and hit F9 to test the movie. Click the link to open the PDF in a new window. Hit "Alt+F4" to close preview.

Download source projects t1047.zip (2 kb)

Version with a sprite

Play a sprite when the user moves the mouse over the icon.

  1. Choose "Rectangle" tool and draw a small rectangle over the icon (the rectangle should be smaller than the icon so we can hide it beneath)
  2. Choose "Item" > "Sprite Animation" to create a loop
  3. Select "Zoom Out & Fade" and speed medium.

  4. Choose "Item" > "Placement Properties", rename the item to "Rectangle3" and check "ActionScript Target".

  5. Put the rectangle behind with "Edit" > "Send to Back" command.
  6. Hit F9 to test the movie.

Now it's time to add some scripts

  1. Choose "Frame" > "ActionScript" and type:

    Rectangle3.stop();

    it will make the sprite not playing initially

  2. Select the icon image (PDF icon) and choose "Item" > "Actions" > "On Over". Select "ActionScript" and type:

    Rectangle3.play();

    it will start the sprite after the mouse enters the icon

  3. Select the icon image (PDF icon) and choose "Item" > "Actions" > "On Out". Select "ActionScript" and type:

    Rectangle3.gotoAndStop(1);

    it will rewind the sprite after the mouse is out of the icon

  4. Hit F9 to test the movie.

Download source project t1047.zip (5 kb)

Advertisements
 
Home  |  Free Templates  |  Premium Website Templates  |  Tutorials  |  Privacy Policy  |  Contact Us
All Rights Reserved 2007-2008 by NewFreeTemplates.com