Results 1 to 12 of 12

Thread: Problem in IE - swf sound not switching off when change to new div

  1. #1
    Join Date
    Aug 2008

    Unhappy Problem in IE - swf sound not switching off when change to new div

    i have flash gallery - hidden DIVs containing flash movies. thumbnail images at bottom that when clicked switch to different flash movies at top.

    problem is that IE keeps playing movie when click on different thumbnail, so that all the movies sounds get overlapped

    any suggestions, thank you

  2. #2
    Join Date
    Feb 2008
    NW Washington State
    So are you saying that other browsers like FF do not have this problem? And when you say <div>s which contain Flash movies and the .swf sound not switching off, are there separate .swfs in each <div> and selecting a different thumbnail selects a different <div> and .swf? Is that .swf loading and playing a .flv video file or is just the .swf playing?
    If you are just switching .swfs and not playing .flvs, then you may want to incorporate a
    as the first part of any function on click event used to switch movies.
    Another way around the problem if you are using an array to choose movie from (such as an xml list) is to call a non-existing array element (a number higher than the highest number in the array). This should start a new, non-existent sound, stopping the old sound. Then immediately call the real, intended movie.
    Good luck on this,
    Eye for Video

  3. #3
    Join Date
    Aug 2008

    overlapping sound

    FF don't have dat problem. there are separate hidden DIVs containing swf's which play flv's.

    and not using arrays

  4. #4
    Join Date
    Feb 2008
    NW Washington State
    Well then it sounds like a problem with the html or javascript code on the Web page and not something in the AS of the movie. How is the .swf placed on the page (<object> or swfobject or some other .js). What coding is used to select from movie to the next?
    A link to the page may help us figure this out.

  5. #5
    Join Date
    Aug 2008


    i'm just using the old plain object embed tags. cant show you da work cuz you need a VPN connect. the only javascript is the gallery function

  6. #6
    Join Date
    Feb 2008
    NW Washington State
    By "using the old plain object embed tags", that means both <object> with a classid="... for the IE browser and <embed> for FF, correct?
    Well you might try:
    <object type="application/x-shockwave-flash" data="filename.swf" width="#" height="#">
    <param name="movie" value="filename.swf">
    Edit to fit your situation of course.
    Does your IE browser have the correct Flash plugin?...can you display other Flash?

  7. #7
    Join Date
    Aug 2008

    tried it

    still, the sound overlaps. think some type javascript might do the trick?

    thank u

  8. #8
    Join Date
    Feb 2008
    NW Washington State
    It sounds like when you click to start another movie you are simply opening that movie on top of the one already running. Is there a way you can spread out the movies on a test page to see if more than one is playing at a time? So without seeing the code, it's pretty hard to tell what the problem is. Have you validated the page?
    Then post a link or post the code you are using to switch and play the movies. Why are the <div>s hidden anyway?
    If you want to try another method of placing the swf on the Web page, you should try swfobject. This is a js based method that has the advantage of being able to provide alternate content (to the Flash) that can be indexed by Google and other search engines. Here is a link on a number of different ways to implement swfobject, maybe one would work for your application.
    Best wishes,

  9. #9
    Join Date
    Aug 2008


    hello my friend,

    let me show you a sample of what i'm working on so you can clearly see what's happening.

    just click on thumbnails and you will see that the sound keeps overlapping



  10. #10
    Join Date
    Feb 2008
    NW Washington State
    Well from what I gleaned from the code and follow-up info at dynamicdrive.com, it looks like you are trying to adapt that Tab Content script for something it was not quite intended for. The examples that I saw at dynamicdrive are all for (more or less) static content, that is, text or perhaps images but not for video. The fact that it works in FF is just lucky I think.
    However, the link you posted is not a full Web page and it has no Doc Type, so that may be preventing IE from correctly parsing the page. On the other hand, looking at the source code shows 4 Flash players on the same page…. A very unusual arrangement. Not that it won’t work but in any swapping from one video to another, you’ll have to find a way to “turn off” the current movie when you switch to a second one or the first movie simply keeps playing concurrently with the second movie. That is why the sound is overlapping. When selecting a second movie, switching the display on the first movie to style="DISPLAY: none" does not stop the first movie from playing, it just makes it invisible.
    To test this (in IE anyway), get the first movie running then click a thumbnail and get a second movie going. Now right click on the Flash player and unclick “Play” from the menu. The currently playing, top movie stops playing but the other invisible movie, which you cannot unclick “Play” keeps playing.
    So in my opinion, not the best application for this Tab Content script. I would suggest using a Flash player that uses an xml file to populate a playlist. The coding is much cleaner, just one Flash player on the page, not 4…. Imagine a page with 20 videos on it! The xml file would be much easier to update (less code required) and could include thumbnails and text.
    Best wishes,

  11. #11
    Join Date
    Aug 2008
    yes i did manipulate the code to display images at first then i used it for flash videos.

    DOCTYPE got nothing to do with. i'm showing you simplified version of original that has DOCTYPE.

    yes, i'm trying to make videos stop playing when hidden. i didn't create the flash movie. that's what i was given. but going to check out using XML playlist. hopefully that might do the trick


  12. #12
    Join Date
    Aug 2008


    my friend,

    i found a good tutorial on making this xml plalist


    the thing is that i am not flash developer, i'm actually a web developer. i thought using javascript was the way to go. obviously not.

    but i thank you for directing in the right direction


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.38198 seconds
  • Memory Usage 2,967KB
  • Queries Executed 15 (?)
More Information
Template Usage (33):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (12)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (12)postbit
  • (12)postbit_onlinestatus
  • (12)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates