Forum Moderators: open

Message Too Old, No Replies

How to Hide flash movie inserted in html after it has finished playing

How to Hide a flash movie inserted in html after it has finished playing

         

Freedomaswell

4:11 pm on May 30, 2005 (gmt 0)

10+ Year Member



Hello,

we have a client that has sent us a tv ad, that we have converted into flash. We want to publish it in the website's home, and make it dissapear just when the video has finished (20 seconds), by just hiding itself, or maybe narrowing an table or so. We are not sure of what it is usually used in this cases.

After this, a gif file of the advertiser should be shown.
It is something like i.e. Yahoo doe in Yahoo! home with videos.
Do you know what should we use/do? How?
Maybe using a layer and make it dissapear or using DHTML.
Well, I ask for your advice, thanks a lot.

roycerus

4:25 pm on May 30, 2005 (gmt 0)

10+ Year Member



My guess is you can easily do it using javascript. Since you know the exact seconds the movie file will play you can possibly set a javascript code to sleep for that much time [+5 seconds] and then make that layer disappear and another layer appear in its place.

Freedomaswell

5:23 pm on May 30, 2005 (gmt 0)

10+ Year Member



Yes, taht's a good idea, but what I have seen usually is like a video window that closes itself progressibely making the the part is under the video - in the html column - go up until the video window is totally closed.
Any idea?

twist

6:39 pm on May 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hide flash to display a gif (animated or not) image?

Why not simply add the image(s) to the end of the flash and stop frames or in the case of an animated gif create a quick loop at the end of the flash.

Freedomaswell

7:26 pm on May 30, 2005 (gmt 0)

10+ Year Member



Because what I pretend is to resize the space in which flash appears. Or beter said, hide it.
thanks

twist

9:18 pm on May 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The average web surfer does not know the difference between flash and an animated gif ;)

Make the flash itself appear to diminish or hide by making it appear like the background of your page and then have the gif image inserted into the flash. It will seem like the flash disappeared and the image took it's place. Your trying to overcomplicate a simple situation. Then again your talking about placing flash on a homepage so i'm just going to stay out of this one.

Freedomaswell

8:49 am on May 31, 2005 (gmt 0)

10+ Year Member



thanks Twist,

Anyway, what I am trying to achieve is not new, I usually see many advertising campaigns with big flash -.flv - videos that appear in the middle of an html page, and when the video has finished the add dissapears creating an effect that seems to the user that the video "has gone" inside a banner (image) that doesn't have to be in the same place of the video (maybe in the top, for example).
Anyway, if I find an example of what I mean I'll post it here.

Sometimes, "overcomplicating" marks de difference in the positive way - mainly for advertisers -, if talking about advertising campaigns in a portal site.
;)