473,399 Members | 3,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

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 3332
["Followup-To:" header set to alt.fan.mozilla.]
On 2006-08-19, ma*********@email.com <ma*********@email.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.org)
Aug 19 '06 #2

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

Similar topics

11
by: Paminu | last post by:
Is there something like system("PAUSE") for linux?
8
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...
6
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...
2
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...
1
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...
7
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...
2
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...
19
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...
5
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...
0
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
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,...
0
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...

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.