473,789 Members | 2,060 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Pause flash activity

I've noticed a subtle yet cool feature in Safari and I'm wondering how
they did it. If you go to YouTube and open one of the videos in a new
tab (Command-click), the page will load in the new tab but the video
won't start loading or playing. Then if you click on the tab, the video
will start playing and loading. If you immediately click back to
another tab, the video will continue loading but will stop playing.

It seems pretty clear how Safari could stop the flash animation from
loading the first time, but how does it distinguish between preloading
activity and video-playing activity when you switch back to the other
tab? Is it possible to emulate this by interacting with the flash
animation with javascript?

I only have limited experience with Flash, which is probably why I'm
puzzled by this. I'm a programmer though so don't spare the details.

Thanks
MP

Aug 19 '06 #1
1 3350
["Followup-To:" header set to alt.fan.mozilla .]
On 2006-08-19, ma*********@ema il.com <ma*********@em ail.comwrote:
I've noticed a subtle yet cool feature in Safari and I'm wondering how
they did it. If you go to YouTube and open one of the videos in a new
tab (Command-click), the page will load in the new tab but the video
won't start loading or playing. Then if you click on the tab, the video
will start playing and loading. If you immediately click back to
another tab, the video will continue loading but will stop playing.

It seems pretty clear how Safari could stop the flash animation from
loading the first time, but how does it distinguish between preloading
activity and video-playing activity when you switch back to the other
tab? Is it possible to emulate this by interacting with the flash
animation with javascript?
Yup. You can tweak Mozilla/Firefox/IE to do the same:

http://www.squarefree.com/bookmarklets/flash.html

--

John (jo**@os2.dhs.o rg)
Aug 19 '06 #2

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

Similar topics

11
39908
by: Paminu | last post by:
Is there something like system("PAUSE") for linux?
8
36466
by: Wim | last post by:
My GUI application starts a process (a console program) when the user hits Play. I would like to add an option to pause that process. The code I've added to detect if the user hit pause/unpause seems to work. But I have no clue how to pause/suspend the process. As far as I can see the Process class doesn't offer anything for this. So it's probably the thread the process is running on that should be suspended or put to sleep. But just...
6
2288
by: Zytan | last post by:
I have code running in the debugger as I type. I press pause, and it pauses on: Application.Run(new myForm()); *I believe* a worker thread is in deadlock (it's in a lock, but calls another function that tries to use the same lock). If the main thread was deadlocked, I think the debugger would stop right on that spot. So, I assume that it is a worker thread that is deadlocked.
2
2149
by: vernstalker | last post by:
hi all im new with flash...and i need to create a presentation using flash. So in my presentation i need an interval for each slide for aprox. 5 seconds. i use this actionscript ..it work on the 1st run but it seems to continue pausing at the end of the movie(it will continue to loop back to the beginning) as what i actually want is to end the presentation. could anyone please help me asap..i need to present this presentation tmrrw!...
1
1539
by: kimiraikkonen | last post by:
Hi, i have 2 forms, first form has a button that brings user to toggle second form, and second form contains a integrated web-browser component which has a auto-start flash (the flash contains audio) file. The problem is: When i run the program, the next form which contains sound-containing flash file inside its browser, launches file immediately without waiting for my button click to prompt. How to avoid this and pause the second...
7
6085
eragon
by: eragon | last post by:
hello good people. i have a chatroom on my website and i was looking for a script that would make the little icon for the browser flash when there is new activity, or make a popup, or something. is there a javascript code i can make that lets the browser know when there is activity. i use a div that is updated with AJAX to hold the content. when a new message is sent i would like to have something blink, a visual notification, and a little ding...
2
14976
by: keeplearning | last post by:
Hi Friends ! Please view this ANIMATION . I want to control this animation with a play and pause button . when clicked on play button , the animation should start playing . and when clicked on pause button , the animation should stop on the frame on which pause button has been clicked . Please help friends .
19
4006
by: dave.zoltan | last post by:
Hi everybody, I am awfully new to programming in C and all I have had to work with so far have been tutorials that I've found online. In my searching, however, I have not found a solution to a problem I have been facing. Ideally, I would like the program to wait 5 minutes before executing the rest of the code. Is there some way that I can use time.h and just run a for loop that waits until 5 minutes has passed to continue down the...
5
16277
by: mukeshrasm | last post by:
Hi I want to play/pause a movie clip when I click a button and the value of button should changed to play when it is paused and pause when it is playing. I am new to flash so how can I do it.
0
9504
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10400
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10134
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9977
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9011
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7523
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6754
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4084
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 we have to send another system
2
3692
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.