Disable AutoPlay or switch divs?

If it's in the wrong section please pardon my noobishness, and feel free to move it there where it should be.

I am currently working on a Web site and the client asked me to include an swf on its new Web site animation. It was not made by me, nor do I have the .fla file.

It's easy enough to view the file, the problem is that he asked me to disable automatic playback.

I was wondering if it was possible by editing the Javascript file? I was wondering it was possible to call the first div, leaving the "webvideo" div "playagain" hidden until the button is clicked.

Please could someone tell me if this is possible. I don't know javascript, so I'm really at a loss. Thank you.

Here's the javascript code, I'll call my html page...

If (typeof video == "undefined") {}

video = new Object();

}

Video.params = {}

Width: 280

height: 360.

left: '6px.

right: 'auto',

AutoPlay: 'false. '

top: 'auto',

bottom: "0px"

"vidlink ',:

opening: "_blank"

FLV: "video."

xmlPath: "data1.xml".

};

video.drawVideo = function() {}

Var markup = ";

Markup += '< style type = "text/css" >';

Markup += ' #webvideo {position: fixed; width:'+ video.params.width +'px; height:'+ video.params.height +'px; left:'+ vi deo.params.left +'; right:'+ video.params.right +'; top:'+ video.params.top +'; bottom: '+ video.par + ams.bottom'; z-index: 500;}';

Markup += ' #playagain {position: fixed; left: 1px; right: auto; top: auto; low: 2px; z-index: 2; visibility: hidden}';

Markup += ' < / style > ";

Markup += '< div id = "webvideo" >';

Markup += ' < object id = "objvideo" style = "" outline: none; "type =" application/x-shockwave-flash"width ="280"height ="360"wmode ="transparent"data =" videopresenter.swf "> ';"

Markup += ' < param name = "movie" value = "videopresenter.swf" / > ";

Markup += ' < param name = "quality" value = "high" / > ';

Markup += ' < param name = "flashvars" value = "vurl ='+ video.params.flv + '.flv & amp; vwidth =' + video.params.width +" & amp; "vheight = '+ blank + o.params.height' & amp; vlink ='+ video.params.vidlink + '& amp; openin =' + video.params.openin + ' & am p; xmlPath ='+ video.params.xmlPath + '" / > ";

Markup += ' < param name = 'wmode' value = 'transparent' / > ";

Markup += ' < param name = "allowscriptaccess" value = "always" / > ";

Markup += ' < param name = "swfversion' value = '9.0.45.0' / >";

Markup += ' < / object > ";

Markup += ' < / div > ';

Markup += '< div id = "playagain" >';

"Markup += ' < a href ="javascript:showDiv ()"> < img src="videopresenter/images/playBtn.gif "width ="82"height ="32"border ="0"/ > < / a > ';

Markup += ' < / div > ';

document. Write (markUp);

}

function thisMovie (movieName) {}

If (navigator.appName.indexOf ("Microsoft")! = - 1) {}

return window [movieName]

}

else {}

return document [movieName]

}

}

function closeDiv() {}

document.getElementById('webvideo').style.visibility = 'hidden ';

}

function showPlayAgainButton() {}

document.getElementById('webvideo').style.zIndex = '-100';

document.getElementById('playagain').style.visibility = "visible";

}

function showDiv() {}

thisMovie("objvideo").showPlayer ();

document.getElementById('webvideo').style.zIndex = '1';

document.getElementById('webvideo').style.visibility = "visible";

document.getElementById('playagain').style.visibility = 'hidden ';

}

function Chassisoff () {}

$("div#mainBody").animate ({opacity: 0.3}, 500);

Returns false;

}

function lightsOn() {}

$("div#mainBody").animate ({opacity: 100}, 500);

Returns false;

}

video.drawVideo ();

Thank you, but I'm afraid that did not stop the video playback. In my opinion, because he had built in controls.

I managed to understand even if... That's what I came up with for anyone interested. As I said I'm new to flash, so maybe someone could tell me if is there something messy on the subject?

Thank you

If (typeof video == "undefined") {}

video = new Object();

}

Video.params = {}

Width: 280

height: 360.

left: '6px.

right: 'auto',

top: 'auto',

bottom: "0px"

"vidlink ',:

opening: "_blank"

FLV: "video."

xmlPath: "data1.xml".

};

video.drawVideo = function() {}

Var markup = ";

Markup += ' ';

Markup += '

';

Markup += ' ';

Markup += ' ';

Markup += ' ';

Markup += ' ';

Markup += ' ';

Markup += ' ';

Markup += ' ';

Markup += '

';

Markup += '

';

Markup += '

';

Markup += '';

Markup += '

';

document. Write (markUp);

}

function thisMovie (movieName) {}

If (navigator.appName.indexOf ("Microsoft")! = - 1) {}

return window [movieName]

}

else {}

return document [movieName]

}

}

function closeDiv() {}

document.getElementById('webvideo').style.visibility = 'hidden ';

}

function showPlayAgainButton() {}

document.getElementById('webvideo').style.zIndex = '-100';

document.getElementById('playagain').style.visibility = "visible";

}

function showDiv() {}

document.getElementById('webvideo').style.display = 'inline ';

document.getElementById('webvideo').style.zIndex = '1';

document.getElementById('webvideo').style.visibility = "visible";

document.getElementById('playagain').style.visibility = 'hidden ';

thisMovie("objvideo").showPlayer ();

}

function Chassisoff () {}

$("div#mainBody").animate ({opacity: 0.3}, 500);

Returns false;

}

function lightsOn() {}

$("div#mainBody").animate ({opacity: 100}, 500);

Returns false;

}

video.drawVideo ();

Tags: Adobe Animate

Similar Questions

  • WT176EA: WiFi is disabled by hardware switch

    Hello
    My WiFi does not, when I discovered the WiFi settings (where I turn it on), he said that the WiFi is disabled by the switch hardware. I'm on Ubuntu 14.04, a linux distribution, and I don't know what happened. I use a HP 620 Notebook Laptop. Can someone help me figure out this problem or help me find the hardware switch?

    Resolved:
    (1) remove the battery and leave nothing connected.
    2) press the power button for 15-20 seconds (40 favorite seconds)
    (3) restart the laptop.
    * This will restore your hardware parameters.

  • Disable AutoPlay of CD and USB with XP Pro

    It is possible to:

    Disable AutoPlay of CD and USB with XP Pro

    How is it made?

    Greetings from Jørn Rudolph to the Denmark

    It is possible to:

    Disable AutoPlay of CD and USB with XP Pro

    How is it made?

    Greetings from Jørn Rudolph to the Denmark

    Sorry about the quote lol

    but here ya go

    • Click Start
    • Click on run
    • Enter GPEDIT. MSC
      The mmc group policy will appear. On the left panel:
    • Double-click Computer Configuration to open the submenu
    • Double-click Administrative Templates to open the submenu
    • Double-click system to open the submenu
    • Double-click autoplay Turn off option that will be near the bottom of the list in the right panel.

    The default value is not configured. Set it to "Enabled".

    The credit goes to www.windowsnetworking.com
    hope I helped :)

  • F2 key is no longer active / disable the wifi switch card

    I have laptop Dell mini. The F2 key is no longer active / disables the power switch wifi card. It is always disabled. The device is present, it seems to be a software problem. I uninstalled the drivers and them was reinstalled. I even completely reinstalled Windows 7. Nothing will get my F2 key works again.

    Happy, it's kind of better.

    Consider going to Dell support for new copies of their public services - things with names like

    Dell Wireless enable / disable

    Dell function keys

    that is, no matter what the equivalents are for your system. I just had a peek at one of the Minis because I didn't know you had and these names seem to be utilities controlling the special Dell configured keyboard keys [including F2 is a].

    If you sign in with your Service tag, it just goes to show that you updated utilities & drivers but at the top of the list, right next to a label with your serial number on will be a tab for all models of type - leaf through as you don't care if something is an updated version you need to replace a utility that does not work properly.

    Good luck

  • How can I disable autoplay video on Firefox on my phone?

    I open tabs on Firefox on my phone and video autoplays in tabs in the background. I have no data unlimited, and I don't like him screaming audio suddenly when I am trying to be discreet.
    Is it possible to stop this?
    Other this question, I like firefox.
    Thanks in advance for your help.

    On 41 of Firefox that will allow us to release next Tuesday, you can use an option in the settings to disable automatic playback of the video.

    • Firefox 3 dot the menu or the menu button on the phone
    • Parameters
    • view
    • Uncheck the box next to allow autoplay
  • I want to disable the feature ' switch to ' sometimes I NEED the same site opened in 2 or more locations. How can I disable it?

    I am a travel agent and for example, I may have a client, ask questions about flights from southwest of 2 different cities to coordinate the arrival in a city. I often open the site in 2 different tabs, so I can quickly and effectively gives the customer responses. I don't want that it redirect me to the first tab! How can I disable this feature?

    You can duplicate a tab by holding down the control key, and then dragging the tab you want to duplicate on the tab bar.

    You can use the switch to the tab not more add-on to disable the switch to the functionality of the tab - https://addons.mozilla.org/firefox/addon/switch-to-tab-no-more/

  • Re: Satellite Pro L300 - disable physical wireless switch.

    I work in ICT in schools and kids turn off the switch (small physical switch lower front left on laptop) wireless to annoy the teachers. Does anyone know of a way I can disable the switch.
    I want the wireless on but the switch didn't do. I checked in the bios but nothing appears.

    Thank you.

    Hey,.

    AFAIK it of not possible to disable the switch because he based material s.

    Sorry but I can t say more but hardware switch can t be disabled.

  • Satellite A200-1GC (PSAE3E) how to disable the WLAN switch?

    Hello everyone,
    is it possible to disable this stupid wlan switch, which prevents any new wlan card working properly? I tried to install several different wireless network cards: Intel 5100, Intel 5300 etc. Each card was working properly (Device Manager), but the wlan led not lit. Windows 7 64 bit always says, I should switch. But the switch is already turined. I installed the additional package of value also. The Fn + F8 key combination just doesn't work. When I install the old WiFi Intel 3945 card, then everything works well: the wlan led beds and so on. All reviews of toshiba in charge of people maybe?
    Kind regards
    Igor

    I found a solution by myself. I cut the wire on my WIFI 5100 leading to pin 20 on the map. Still, the switch does not, now, does not prevent my card work nomally. Now I have plenty of 300 Mbps speed. :)
    Another option would be to cover the pin 20 on the map with a tape for example.

  • Yoga 2 Pro - how to disable notifications from switch mode - for example mode "attempts", "tablet mode", etc.?

    Anyone know how to disable the notifications that appear in the upper right say you that you have just changed from one configuration to another - for example switch from the tent to the Tablet mode?

    It is not enough to uninstall the "Yoga Picks" modern application, you will need to uninstall the office by going to the desktop control panel > programs and features > uninstall a program > Yoga Picks > Uninstall.

  • Disable AutoPlay in window 2007

    How to disable auto run CD, DVD, USB drive etc permanently in Home Basic window 2007?
    as there is no gpedit.msc file or folder.
    How can I stop AutoPlay in my system

    Start > default programs > Change AutoPlay settings
    Choose a default action that doesn't take any action for individual device CD/DVD or a content type.

    or

    Clear the check box Use AutoPlay for all media and devices

    and finally click on the Save button to commit these changes. -Ramesh Kumar http://www.WindowsValley.com

  • USB mouse disabled / freezes on switch or on-screen user screen once I disconnect

    So just like the topic says my USB mouse is disabled and the cursor hangs in the middle of the screen after selecting "change user" or "quit".

    I want to emphasize that the keyboard works very well and the issue seems to be the mouse only.

    Things, I already tried to do and failed:

    Connect the mouse to a usb 2.0 port - tried but the problem persists.

    verification of updates of driver to make sure that everything is up to date - done via windows update, everything is up-to-date

    It is not the drivers.

    ***

    I need to reconnect the mouse each time to operate after I log off the coast or change user and

    It's quite annoying so I really need to get this one solved.

    Thanks in advance!

    ****

    Edit

    ****

    I forgot to add that the mouse is a chrome of razer deathadder

    Hello

    Thanks for posting your query on the Microsoft Community.

    According to the description, I understand that your mouse freezes.

    This could be due to hardware conflicts.

    I first suggest you to run the tool and troubleshooting hardware devices and check.

    Check out the link:

    http://Windows.Microsoft.com/en-us/Windows7/open-the-hardware-and-devices-Troubleshooter

    You can also check the suggestions of Vinod N responded on April 15, 2010 and check if that helps.

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-hardware/mouse-and-keyboard-freeze-after-switching-user/080ab7df-7014-42F8-89a5-e5fda945460b

    Hope this information helps. Please let us know if you need any other help with Windows in the future. We will be happy to help you.

  • You can disable "Fast user switching" in window 7 Professional?

    Windows Help on the 'Welcome' screen, said that "Fast User Switching is enabled by default," which means that it can be disabled.  But Windows Help does not say how this could be done.  Can someone explain?

    I also want to turn off the display of the names of user accounts available on the 'Welcome' screen, as we did to the XP, but it seems that it's not possible.  True? -JCW2

    See if it's what you want.

    http://www.SevenForums.com/tutorials/61650-log-user-name-password.html

  • Impact security to disable the content switch SSL closure alert?

    HI: I have a few problems troubleshooting of applications at the level of the SSL layer. Based on a few known bugs of IE with Cisco solutions for the content switch with SSL accelerator, we intend to disable the

    where to pass the content of the feature sends not SSL closure alert.

    Wondering if anyone out there have ideas if this (disable SSL closure alert to the server) will have an impact or if there are security holes?

    Thank you

    Ravi

    For the CSM = "close-Protocol No" tells the SSL module not

    for sending the SSL close notify alert all by closing the connection.

    One of the ramifications of this could be that IE browser client might

    not to negotiate the resumption of the SSL session for later ssl

    connection...

    This does not impair the functionality, could result in gradient

    performance from the SSL module should establish more new sessions

    instead of the resumed session.

  • Disable AutoPlay on an external USB drive

    I installed a new external firewire hard drive which I store & access my photo files. When the computer between Saver screen, then re - starts later, AutoPlay starts & open Adobe Lightroom.

    I was able to stop Lightroom to open, but Autoplay initiates always when the computer wakes up after the screen saver turns on.

    I want to disable THIS SPECIFIC PLAYER ONLY to launch the Autorun. Can you help me?

    Hi jimmyg50,

    I suggest you follow the procedure in order to disable autorun on an external USB drive below.
     
    1. open AutoPlay by clicking the Start button, then Control Panel. In the search box, type autoplay, and then click AutoPlay.
     
    2. If you want to never see the AutoPlay dialog box, click on take no action next to the device or disc. To choose an action each time you plug in a device or insert a disc, click on ask me every time.
     
    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • Enter key - disable AutoPlay

    Hi, I'm a newbee in Premiere Pro and I have question I can't Google an answer for. Please help :-)

    After adding a few clips, I always liked in preview mode. So I use the 'Enter' key to render, but the problem is preview starts at the beginning, so I have to scroll around in the place I really want to see. Is it possible to disable this feature of AutoPlay from the beginning after you hit Enter? Thank you!

    Edit > Preferences > General...

Maybe you are looking for