Javascript :: IE Won't Pause Flash SWF File When Switching Tabs?

May 30, 2011

I have a simple HTML page that contains two tabs that show/hide content in the same space.The first tab contains an SWF file that is embedded using SWFObject.js.When switching between tabs, I would like the SWF file to pause or stop. This works fine on all browsers except IE7+, which is a known problem.What could be possible resolutions?A simple solution would be to remove the SWF file from the DOM and re-insert it every time the first tab is selected and loadedThe SWF file is generated using Adobe Captivate 5. Do I need to expose a pause/stop method using ExternalInterface API that Javascript/jQuery can call? Or, is there a standard method for pause/stop that is exposed for all SWF files that I can simply call?

View 2 Replies


Similar Posts:


Flash :: Html - Movies In Inactive Browser Tabs Pause Or Don't Execute In Real Time

Apr 7, 2010

I'm noticing some unexpected behavior. Some time in the last few months, a change in either Firefox, the Flash player, or both, has made it so that Flash movies that are in inactive browser tabs no longer execute in real time. They appear to still execute, but only in bursts, and not in a predictable way. This is a problem because I develop a Flash-based (Actionscript 2.0, Flash CS3) multiplayer game that maintains a network connection and allows players to chat, etc.

[Code]...

View 2 Replies

ActionScript 2.0 :: Pause A Game When Switching Windows?

Oct 20, 2010

I've noticed since the last few version of flash player that when your main view isn't focused on the flash game, it tends to mess the game up.How do I make it so the game automatically pauses when I switch to a new window or lose focus.

View 6 Replies

Javascript :: Switching A Flash Video Player's Color Scheme Based On Set Cookie

May 3, 2011

I've got a web site up and running that allows the user to choose a dark or light color scheme

But on the project detail pages, there are Flash videos that also change slightly based on which color scheme is selected.

[URL]

If you start playing the video, and change color schemes, the flash player will change to the right color, but on refreshing, it doesn't remember that change. How do I modify to code below so that the Flash player reads the correct color scheme and takes action?

Pertinant code is here (full JS file is here: http://www.centerline.net/lib/js/site-unmin.js):
//Switches color of Flash Video player on detail pages
function updateColor(color) {

[Code].....

View 1 Replies

Pause Flash Game Using Javascript

Feb 17, 2010

I'm working on a flash gaming site, BeardedGames.com. I just recently implemented a "Panic" button that makes the entire site display: none and display: block's a iframe with a allowed in school website of the user's choice.It works well so far, but the user's flash game still runs in the background while hidden. Is there a way to pause (not reset) the game, that will work on most, if not all, flash games? It needs to be accessible from javascript (possibly just javascript, or a flash wrapper?), and it has to work in IE 6 and greater (I know... I know. Can't help it.).Failed to make it clear that the user must be able to "un-pause" their game after the unpanic button is pressed.I haven't made these games, these are already made games like linerider.

View 3 Replies

Javascript :: Implement Play Or Pause A Flash?

Jul 26, 2010

I used a webkit to show a flash , but now I want to add a play button and control the flash , How to do ?

View 1 Replies

Javascript :: Insert Javascript Functions To An HTML Document From The Child Flash Swf File?

Jan 29, 2012

I need to execute some javascript string code from flash swf file using actionscript 3.
I read that it could be done by passing the javascript code to the parent html document , using externalinterface.call function. Then I assume it will be faster if I can declare functions in the javascript code in the HTML document in the first use of externalinterface.call funtion ; if flash code calls the javascript code repeatedly. So let me ask you how to do that. For details , any javascript to be loaded is unknown in design time and I can not prepare a javascript file to be loaded.

View 2 Replies

Javascript :: Passing File Paths From Flash To JavaScript For Upload?

Sep 29, 2010

Is it possible to pass file names from a running Flash application, which only purpose is to enable multiple-file-selection, to a JavaScript application which handles upload of all files to the server?I have examined various Flash upload solutions (like SWFUpload, Uploadify, etc.) and none of them meets my needs. I want an easy to implement solution (like Uploadify) which also lets me specify various parts of the HTTP request.

The reason I need this is because my upload form uses session cookies (for user authentication) and an CSRF token both passed to the server when uploading files.Is it technically possible to pass filenames (+ paths) to a JavaScript application which then handles the upload?

View 1 Replies

Javascript :: Flash - Call A Javascript Function From An Embedded .swf File

Apr 16, 2009

I'd like to call a javascript function from an embedded .swf file. Specifically, I'd like to call a function in one of my externally linked javascript files from within: function loadTrack(){

[Code]...

which is in an .as file which I assume somehow becomes the swf file. How would I go about this and 're-compile' the .as file?

View 3 Replies

Javascript :: Use Javascript To Call Method Within A Flash (.swf) File?

Dec 19, 2010

I have a flash file that contains a package "game" which has a class "Scores" and a method setValue(). I want to write some lines of Javascript that allow me to call that method. Someone directed me to this tutorial, but I am still a bit confused.

Javascript: alert("start"); var so; so = document.embeds[0];
so.addParam("allowScriptAccess","always"); import flash.external.ExternalInterface;
ExternalInterface.call("setValue[2600]");

displays an alert to tell me that it has indeed began to execute saves the embedded flash file into a variable and sets access imports that class calls the method.I am not sure about how this class thing works? This is just the bits and pieces I was able to come up with from that site, but I don't really understand how it all works (but certainly hope to eventually).This is the site: http:[url]...how-do-i-access-flash-function-using-javascript.When I execute the code with the importation nothing happens, but the alert does come up when I don't have that statement?

View 1 Replies

Javascript :: Pause/resume/manipulate A Swiffyobject?

Aug 2, 2011

There seems to be little support or discussion around regarding Google Swiffy [URL]

Is it possible to effectively pause/resume/manipulate a swiffyobject from JS?

Using standard Google output, I noticed the swiffyobject could be found in console with a few properties; notably frameRate.

View 1 Replies

Professional :: Switching FLV Source File Mid-playback

Nov 22, 2010

I have a number of different videos (all of the same duration and resolution) encoded with almost the same content - however they have different colour schemes, etc., and I require my FLV player to be able to switch seamlessly between them.

That is, if the player is currently playing "test1.flv" and the user presses the 'switch' button, I want to switch over to playing "test2.flv" in the same player, picking up at the same point in time.
 
I used to have a server-side solution that could fake this, but that isn't a long-term solution. Might I ask how you experts would handle something like this?
 
Do I need Flash Media Server, or can it be done with just Flash?

View 5 Replies

Flash :: Access A Variable In A Child File Through A Parent Flash File Using Javascript?

Feb 22, 2010

I have the need to change a variable in a child Flash file.

The setup is a parent Flash file, that has called a child Flash, and placed it in a movieClip.

I can send a variable using Javascript to the parent Flash file, but not directly to the child Flash file. Is there a way that I can access the child Flash file directly with Javascript?

Or do I need to send the variable to the parent Flash file, and then have the parent send the variable to the child Flash file? Is there a sort of dot notation that I can use with Javascript to get to the child Flash file without first accessing the parent, when the child is added to the parent using the loadClip function in flash?

View 2 Replies

Javascript :: Flash Library For File Upload With File Size Limit And Progress Bar?

Jan 13, 2012

Is there any "mainstream" library used for this purpose? Commonly spread, well maintained, documented etc.I found these (using flash):

Uploadify - not many releases, latest 12/2010, no documentation (!)
SWFUpload - latest release 03/2010, documentation
fancyupload - looks buggy.

phpfileuploader - looks heavyweight, and looks commercial (?) I cannot read the licence (you can download it but are you allowed to use it forever without paying?) plupload New version of pure javascript (no flash) Valums' ajax upload claims to handle file size limit and progress bar, which is quite suspicious to me: these features require to guess the file size before the upload, which seems impossible in javascript (look also here). Or can it work?

View 2 Replies

ActionScript 2.0 :: Pull Back A True Or False Value From An Associated Javascript File To A Flash File?

Aug 23, 2005

is there a simple way to just pull back a true or false value from an associated javascript file to a flash file? here is what i have:

Code:
var bincheck:Boolean = fscommand("eval", "parent.check_bins(\'"+img+"\')");
if (!bincheck){return false;}
return true;

check_bins(img) is a function in my javascript file that simply iterates through an array, returning false if "img" is found. im simply trying to get the true or false value back into flash, but its not proving that simple. i added a couple alerts so that i could see what the "bincheck" value was, and i keep getting an 'undefined' value for "bincheck" in flash.

View 1 Replies

ActionScript 3.0 :: Avoiding Delay In Flv Player While Switching To Other File

May 25, 2009

I am working on a project where basically dealing with flv player and videos, am trying to play multiple flv videos of a 3d human character who is speaking out a number like 3550.Here we are using multiple video files and joining them like videos where character says 3 then 1000 then  5 then 50.The issue here is after every video there is a fraction of second where the character is disappearing from the stage which we can't afford because all the numbers have to be played at once to show it as one single digit.I know that this is not a script error but this is how the flv player plays, after one file there will be a delay to play the other.What can I do to achieve  my goal and also can how we can download all the required flv files from  server to client machine to avoid a streaming delay (All the videos are of 50 to 60 kb files).

View 2 Replies

ActionScript 2.0 :: Slideshow Flash File - Pause / Play Buttons

May 3, 2004

Having some trouble with a slideshow flash file. The snippet of AS is attached below. The play functionality is working fine, but when the slideshow is running, the pause button won't work.

NextFrame = function(){
if (whichPic<NumCount) {
bLoad = true;
whichpic++;
} else {
if (whichPic==NumCount){
[Code] .....

View 3 Replies

ActionScript 3.0 :: Flash Preloader Pause After External File Loaded?

Aug 24, 2010

I have a preloader.swf that loads another swf (main.swf). It all works fine, however I would like the loading bar to stay on 100 (once it gets there) for 2-3 seconds before the main.swf opens, currently as expected from the code below, as soon as it gets to 100% it flicks straight over to the main.swf.

I am using tweener, and I could achieve this easily using the onComplete code to call this.addChild(loader);, however, the problem is, both my preloader and my main swf are liquid layouts, and if I were to call the this.addChild(loader); at the end in its own function, then it throws a

TypeError: Error #1009: Cannot access a property or method of a null object reference.

. The only way to get around this error is to put the this.addChild(loader); so that it loads upfront. After a bit of google research, i found this error occurs due to the stage properties already been set in the preloader.swf (from liquid layout)then once the main.swf loads it tries to set them again...So is there another way i can cause a delay for 2-3 seconds once my preloader hits 100?

Below is my preloader code with liquid layout settings

Code:
//LIQUID LAYOUT
stage.align=StageAlign.TOP_LEFT;
stage.scaleMode=StageScaleMode.NO_SCALE;
stage.addEventListener(Event.RESIZE, resizeHandlerLoading);

[Code]....

1. using my tweener onComplete method and fixing the error caused by preexisting stage properties

2. Thinking of an alternate way to delay the main.swf from opening straight away (keeping in mind that this.addChild(loader); would need to stay where it is...

PS - here is a link to a person who was getting the #1009 error with preloader and liquid layout, their solution works, but won't allow me to use a tweener delay...[URL]

View 2 Replies

ActionScript 3.0 :: Flash - Add A Play/pause Btn That Will Pause Both Pictures And Sound?

Dec 16, 2010

I have a timeline of 30 frames, each it's own mc (page01_mc, etc.). In each mc I show a picture or two and hear narration.I have a first, prev and next nav on the main timeline. I need to add a play/pause btn that will pause both pictures and sound. I assume I do that in each mc, but do not know where to find the code.Here is what is in each mc now:

var mySound:Sound = new Sound();
mySound.load(new URLRequest("english/Intro01.mp3"));
mySound.play()

View 1 Replies

ActionScript 2.0 :: Adding Pause,Play,FastForward,Rewind Controls To A Swf File Via A Loaded Swf File?

Jan 19, 2012

I will try to be as clear as I can. I have an existing swf file that I want to add Play,Pause, FF and Rewind via an externally loaded swf file that has the controls contained in it.I am loading an external swf file that has all of the controls on it via this code:

// Set up the Mouse to use a listener
var mouseListener = new Object();
Mouse.addListener(mouseListener);

[code].....

View 1 Replies

ActionScript 2.0 :: Adding Pause,Play,FastForward,Rewind Controls To A Swf File Via A Loaded Swf File

Mar 25, 2012

I have an existing swf file that I want to add Play,Pause, FF and Rewind via an externally loaded swf file that has the controls contained in it.

I am loading an external swf file that has all of the controls on it via this code:

// Set up the Mouse to use a listener
var mouseListener = new Object();
Mouse.addListener(mouseListener);

[Code]....

I am doing this so I can rollover the viewing window and have it appear. I cannot get any code to work to control the timeline (which is broken down into sections with individual MC's in each section.

What I am looking for is the code to apply to the buttons on the external swf file that has the controls to control the playing of the movie.

View 5 Replies

Flash Selects The Tabs In The Next Line?

Jun 14, 2009

I can't really understand how can Adobe let the developers release such a messy embedded Flash editor. Please, fix the line copying, it drives me mad. In every normal editor, when u get to the start of the line and press shift+downarrow, the whole line is selected. Flash selects the tabs in the next line also. So pasting is a horrible nightmare.

View 1 Replies

Professional :: FLASH CS4 - Tabs In Text Object?

Apr 6, 2010

Just learning Flash CS4 and I can't believe you can't create or set tabs in a text object.You can set tabs for editing actionscript, but not in a text object. Are you kidding me? Even wordpad can do this.

View 5 Replies

Flash :: Flex - Builder 4 Spaces Instead Of Tabs?

Jun 10, 2011

Is it possible to configure Flash Builder 4 to indent using spaces instead of tabs?

I've enabled Preferences > General > Editors > Text Editors > Insert spaces for tabs but it still inserts tabs. I've tried editing files with no tabs but it still inserts tabs.

What's strange is that Insert spaces for tabs works in Eclipse but not Flash Builder, which is built on Eclipse. Perhaps there's a bug in Adobe's portion of Flash Builder.

I'm running Flash Builder 4.0.0.272416 on Mac OS X 10.6.

View 1 Replies

Flash :: Change Style Of Tabs In Flex 3

Mar 16, 2012

I am new to Flex 3.4. I want to change style of few tabs (highlight them) on click of a button. I came from a javascript background and not able interpret in Flex's way.

View 1 Replies

IDE :: Possible To Make Social Networking Tabs In Flash?

Jun 15, 2010

You know how you always see Twitter and Facebook buttons on peoples websites? If they click a button, it spits out a link which will appear in their FB or Twitter messages. Wondering if anything like this is possible in flash?

View 1 Replies

Javascript :: Unable To Fullscreen This Swf File Using Javascript

Dec 10, 2010

I have a swf file and i want to able to fullscreen this swf file using javascript. I have a button to access function inside of swf but it gives me error. I searched over google but nothing good i found. Is it impossible or i do something wrong?

View 3 Replies

ActionScript 2.0 :: Pausing A Flash Movie When User Tabs Away?

Jun 12, 2009

im creating a presentation that has a bunch of links to websites and pdf files. right now the presentation opens fullscreen when first opened but if the user clicks one of the pdf or web links the clip minimizes and if the user tries to maximize the flash window the menu bar at the top is visible and cuts off some of the content.

is it possible to detect when the user tabs away from the presentation so the clip will pause automatically and i can tell the user to click to continue? i know this code will work fscommand ("fullscreen", "true"); that will make the presentation fullscreen again but i need the movie to pause if the user clicks a link. i have seen this before in games where the game will pause if i tab to another program and i have to click to continue.

View 2 Replies

ActionScript 2.0 :: Flash Keeps Opening Hundreds Of New Tabs In The Browser

Aug 25, 2010

I have found solution for my previous problem:

onClipEvent (load) {
_root.hitz = 0;
this._alpha = 0;

[Code]....

but now I have a new one! After fifth click browser keeps opening hundreds of new tabs! I think it's because flash keeps playing movie. There must be some kind of loop and every loop flash opens new tab. I tried to add stop(); in few different places but still no result.

View 4 Replies

Javascript :: Cannot Get CSS Drop-Down Above Flash File

Nov 13, 2009

I have searched everything and tried every method I can get my hands on and cannot get my CSS drop-down menus to display above my Flash file.

You can go to: [URL] and username is 'riverlife' and password is 'flow' (without the quotes on both).

I am using swfObject and have the <param name="flashvars" value="wmode=opaque"/> set. The div around the drop down is absolute position with z-index of 9999 and the div around the flash file is relative position with z-index of -1

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved