Solved

Manually Trigger Flash Movie on Website

Posted on 2003-12-04
2
230 Views
Last Modified: 2010-04-03
I would like to put a button on my website that plays a flash movie.  But, I want the movie to slide out from the left, directly over the banner and then automatically slide back off when the flash movie ends.  (an example is www.hostrocket.com) I can't get it to work.  FYI - I use Dreamweaver MX for my HTML editor.  I've tried manipulating layers and using different events but no luck, so please be as specific as possible with solution.
0
Comment
Question by:charming
2 Comments
 
LVL 39

Expert Comment

by:blue-genie
Comment Utility
hi, from the looks of it, the hostrocket.com site's banner is in flash as well.

thus, not a layer problem at all, build it all in flash and embed the whole thing in html.
0
 
LVL 2

Accepted Solution

by:
sexyrexy earned 220 total points
Comment Utility
To allow a Flash movie to slide in and out overtop of non-Flash elements in a page:

You can place the Flash movie in a DIV, and make the base movie (that is, what is always seen when it is NOT "expanded") the size of the movie in Flash. For example, 120 pixels wide. Then make the additional animation play off the edge of the stage in Flash. When the animation starts, put an actionscript call to execute a javascript function which will resize the DIV to the appropriate width. Set the embedded Flash movie's attributes to 100% width of the DIV, and scale to default/show all. Another javascript function can also be invoked to set the DIV width back to the original size.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now