Reply to Re: Problems with displaying a flash movie in a showing / hiding div

Your name:

Reply:


Posted by cwdjrxyz on 06/17/07 16:40

On Jun 17, 9:00 am, Daan <daanst...@gmail.com> wrote:
> On one of my websites, I have a menu in the same style as the menu onhttp://codeigniter.com/user_guide/However, when I replace the text
> content with a flash menu, the behaviour becomes broken: Firefox won't
> display the flash movie until you click on the place where it should
> appear, and Safari still displays part of the movie, even when the
> menu is not expanded.
>
> I tried to create a workaround using the following javascript code:
>
> function toggleMenu() {
> myHeight.toggle();
> if (menuShowing) {
>
> document.getElementById('objectFlashMenu').style.visibility='hidden';
> menuShowing = false;
> } else {
>
> setTimeout("document.getElementById('objectFlashMenu').style.visibility='visible';",
> 500);
> menuShowing = true;
> }
>
> }
>
> In Safari 3 on OS X this works fine, however, in Firefox it still
> won't display the flash movie until it is clicked on and in IE7 the
> behaviour is 'weird', sometimes it works, sometimes not.
>
> Does anyone have experience with this kind of behaviour and perhaps
> know of a fix or workaround? Thanks for any help.

I had some problems a long time ago with using visibility to switch a
flash movie on and off. The movie had sound, and although the visuals
would switch on and off(at least on a browser or two I tried) the
sound always played on some browsers. I also once had some problems
with a video(don't remember if it was flash or some other format) that
was loaded hidden and then switched on at some point, the problem
being that it did not switch on. The solution was to load the video as
visible and then use a very short time delay to switch it off at once.
Then the movie would switch on again when instructed to do so at some
time.

You might be able to get around this if you can remake the movie using
the modern flv/swf approach. The actual video is a separate flv(flash
video) file. The swf is a container file that links to the swf video.
You can generate all kinds of players and actions in the swf container
file including auto start or not, various control bars, logos, text,
etc. More recent official flash authoring programs can do this, and
there are some other programs at a more reasonable price that will do
most things that people need for flv/swf.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация