473,513 Members | 2,752 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

flash

Hey guys, have searced within this group and havent found an answer to
what i want to do.

Here is the problem

I have the a hovering div, within that div i have settings that people
can change, but for some reason there needs to be a smal flash
animation with a continual sound clip. When a user clicks close the
hovering div should be removed from the domtree thus removing the div
and the flash movie.

In FF this works fine.

In IE it also works, in that the div is deleted, but for somereason the
sound continues to play on the page. Even though the flash element
doesnt exist. Have done a document.getElementById(flashmovie) to
determine if its there.

I am removing the node from the tree using
document.body.removeChild(hoveringdiv); where hoveringdiv is the
element itself.

Now as you can imagine the continuous sound is an annoyance. How do i
stop flash playing, and hence remove the sound, or how do i mute the
flash. Is this possible in Javascript? I cant access the swf or
actionscript.

Also if this isnt possible can someone point me to where i can learn
about how IE handles sound within a webpage so i can see if there is
some pointers in there. Much appreciated.

Andy

Nov 7 '06 #1
1 1748
daveyand wrote:
Hey guys, have searced within this group and havent found an answer to
what i want to do.

Here is the problem

I have the a hovering div, within that div i have settings that people
can change, but for some reason there needs to be a smal flash
animation with a continual sound clip. When a user clicks close the
hovering div should be removed from the domtree thus removing the div
and the flash movie.

In FF this works fine.

In IE it also works, in that the div is deleted, but for somereason the
sound continues to play on the page. Even though the flash element
doesnt exist. Have done a document.getElementById(flashmovie) to
determine if its there.

I am removing the node from the tree using
document.body.removeChild(hoveringdiv); where hoveringdiv is the
element itself.

Now as you can imagine the continuous sound is an annoyance. How do i
stop flash playing, and hence remove the sound, or how do i mute the
flash. Is this possible in Javascript? I cant access the swf or
actionscript.

Also if this isnt possible can someone point me to where i can learn
about how IE handles sound within a webpage so i can see if there is
some pointers in there. Much appreciated.

Andy
Hi Andy,

I think you should just stop the Flashmovie before closing/destroying the
div it lives in.
I expect something like this should work:
var myFlash = document.getElementById("flashmoviename");
myFlash.stop();

(Not tested)

Also, have a look at this simple utility:
http://www.schillmania.com/project/soundmanager

It allows you to play sounds through flash with a simple JS-api.

Regards,
Erwin Moller
Nov 7 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
8557
by: Keith Rowe | last post by:
Hello, I am trying to reference a Shockwave Flash Object on a vb code behind page in an ASP.NET project and I receive the following error: Guid should contain 32 digits with 4 dashes...
8
4052
by: Ben Bartsch | last post by:
Looking for opinions on the use of Flash with ASP.NET. Has anyone here seen or conducted any implementations of Flash that are actually useful or otherwise complement ASP.NET?
4
21831
by: vivek | last post by:
I am new to flash and want someone to guide me, Is it possible to create a UI entirely in Flash and that will inetract with C# components (backend) and these components will in return interact...
1
2207
by: dscriv | last post by:
Hello, I have Netscape 8.0.4 (in Firefox mode) and Flash 8.0.24.0. I also have IE and Firefox installed. If I go to this page, which contains a Flash detection movie:...
115
13184
by: post2google | last post by:
I was thinking about where to go for lunch the other day, so I went to hardees.com to see what the menu looked like these days. What comes up is a big note that my flash version is not new enough...
10
29873
by: Steve Cook | last post by:
Hi, I have an upload application written in PHP and Flash. The PHP page gets the file information via $_POST. Moreover, the user never actually visits the PHP page, rather Flash sends the...
8
5871
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
1
2707
by: critchey1 | last post by:
Hey everyone, i've been playing around with trying to get some scripts to work with detecting whether flash player is installed on your computer or not. I found a flash detection kit on the adobe...
2
8047
dream party
by: dream party | last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I...
0
7257
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7379
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7521
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1591
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.