How to create/set progress bar for loading flash intro
Hi,
I am having a falsh intro for my website.
But its taking time to download and play the intro when we try to access it.
I have seen many sites with progress bar indicating the status on the downloading of flash items.
Can anybody please tell me how should I go about this?
You can make a simple loader, it's a visual cue so your users wait for a moment.
Try this, get a GIF from one of these site: http://www.google.com/search?hl=en&client=safari&rls=en-us&q=loading+gif&btnG=Se arch
download it and name it as loader.gif
add it to you page, and add the following to the page using HTML Snippet:
<script type='text/javascript'>
var timerCount = 0;
var delayTimer = 5; // change this for the duration to show the loader.gif
var loaderName = 'loader.gif';
function stopLoader() {
_imgs = parent.document.getElementsByTagName('img');
for (ji = 0; ji< _imgs.length; ji++) {
if (_imgs[ji].src.indexOf(loaderName) != -1) {
loaderElement = _imgs[ji];
break;
if (timerCount == delayTimer) {
loaderElement.style.visibility = 'hidden';
clearInterval(_stopLoader);
timerCount++;
parent.iWLog(timerCount);
_stopLoader = setInterval('stopLoader()', 1000);
</script>
BTW, here is an example: http://hdl.50webs.com/Sample/Blank.html
Similar Messages
-
How to create a progress bar showing status on timeout of TCP Read function
Is there any way of creating a progress bar showing the status of a 'TCP Read timeout' time ... ?
I'm sending a data request to an intranet server via TCP Write, and then using TCP Read with a 2 min. timeout to receive the requested data. During this time i want to show the actual progress of the timeout in a progress bar.
Can this be done?
And do i have to implement some kind of multitasking to make it happen?
TIASoulstorm wrote:
> Is there any way of creating a progress bar showing the status of a
> 'TCP Read timeout' time ... ?
>
> I'm sending a data request to an intranet server via TCP Write, and
> then using TCP Read with a 2 min. timeout to receive the requested
> data. During this time i want to show the actual progress of the
> timeout in a progress bar.
> Can this be done?
> And do i have to implement some kind of multitasking to make it
> happen?
It can be done and you need to do some multitasking yes, but that is
quite easy in LabVIEW. A separate loop or subVI with loop will be
responsible for the progress bar. Set its scale to 0 and the number of
seconds of your timeout. In parallel to the TCP Read let this loop or VI
execute reading the time every few
seconds and calculating the
difference to its start time, passing this value to the progress bar
slider. Have an extra boolean global which aborts the loop and set this
boolean to FALSE before starting the loop/VI and TCP Read and setting it
to TRUE on return of the TCP Read.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
On previous versions of Firefox there was a progress bar when you were loading a page. It was in the lower right corner. How can I get it back? It would be very helpful if there was an add on for it for those of us still on dial up.
Be aware that the loading indication that you see doesn't represent a real indication of what is happening. It just starts increasing till about 50% of the bar is filled and if it takes too long then the steps get smaller (half what is left as available space in the end or stop at all).
There is also the Net tab on the Web Console that can show how long it takes to load content.
*Firefox > Web Developer > Web Console -
Hi -
I have a site with some pretty hefty FLV's and I want to show
the user that they are loading...the progress bar thing.
So I used the code right out of the livedocs for "Creating a
progress bar for loading FLV files with Actionscript". I used it
with their sample FLV and with my FLV and got the same result. I
saw a progress bar and percent text, I heard the audio, but no
video. Can anyone help me either fix the livedoc code or use some
other to get this to work??
Thanks,
Josh“…but no video.”
Ok. From the beginning;
1. CTRL+L to open up the library panel.
2. On the very top right corner there is an icon. Click on
it.
3. A menu will appear and then select “New
Video”.
4. Drag this instance from the library onto the stage.
5. Give it an instance name of “my_video”
6. Put the code from the livedocs into frame one.
That should work. If you can actually compile the code with
nothing on stage and you can hear the audio from that FLV. So that
means you don’t have a Video instance on stage or incorrect
instance name. Good luck. -
How to create "transition" while FLV Videos load before and during "chaining" or "looping"
The Status:
OK, I now have Action Script 3 that will work for chaining FLV videos... or Looping an FLV video.
But when one video ends there is a short pause before the next one loads and starts... the progress bar for the Flash Player displays diagional green lines... and it is simply not a smooth transistion.
This happens when chaining or when looping.
And, even though I'm doing a progressive download... where the video starts very quickly... and plays while it downloads... there is a short delay at the start. That is not as noticable as the break between videos or when looping back to replay the same video.
The Question:
Is there a way to create a visual transistion... say a rotating object... or something to keep the motion/action going during that short interval?
I've seen something like this before... like two (broken line) circles rotating in opposit directions... or something.
It show the "busy" status or whatever I guess.
Thanks for any help.That depends on how you're loading your videos. Assuming you're using a loader object, you would add/show and remove/hide this
animation while you're waiting for the load of the video to complete. If you're loading the file(s) directly into a FLVPlayback object then you'll want to do this:
import lash.events.VideoEvent;
FLVPlaybackObject.addEventListener(VideoEvent.bufferingStateEntered, showBufferState);
FLVPlaybackObject.addEventListener(VideoEvent.playingStateEntered, clearBufferAnimation);
function showBufferState(e:VideoEvent):void
//Do your busy animation here
function clearBufferAnimation(e:VideoEvent):void
//Hide/stop your busy animation here
However, I may be all wrong about your methods. Let me know if this works or if you need anymore help. Thanks,
-Jesse -
Progress bar for player?
Hi All,
I am developing a player,
I not able to get how to create a progress bar which shows download data and the player
Like YouTube which show the download as well as the player head.
Thanks in advance.if the video is a live stream, it's impossible to do it.
You can't work out your player position or amount downloaded because the end position and total file size are unknown.
I'm guessing you may actually mean you want the progress bars to be live and not manually controlled, in which case you could use a timer
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" verticalAlign="top"
horizontalAlign="center" paddingTop="0" applicationComplete="init()">
<mx:Script>
<![CDATA[
private var j:uint=1;
private var m:uint=1;
import flash.utils.Timer;
import flash.events.TimerEvent;
private const MS_MASK:String = "000";
private const TIMER_INTERVAL:int = 1;
private var baseTimer:int;
private var t:Timer;
private function init():void
t = new Timer(TIMER_INTERVAL);
t.addEventListener(TimerEvent.TIMER, updateTimer);
startTimer();
private function updateTimer(evt:TimerEvent):void {
var d:Date = new Date(getTimer() - baseTimer);
var ms:String = (MS_MASK + d.milliseconds).substr(-MS_MASK.length);
if (int(ms) > 100)
//Update & Calculation functions go here//
runit2();
runit();
stopTimer();
private function startTimer():void {
baseTimer = getTimer();
t.start();
private function stopTimer():void {
t.stop();
startTimer();
private function runit2():void
if(j<=100)
bar2.setProgress(j,100);
j+=2;
if(j>100)
j=0;
private function runit():void
if(m<=100)
bar.setProgress(m,100);
m+=1;
if(m>100)
m=0;
]]>
</mx:Script>
<mx:Panel title="ProgressBar Control" layout="absolute" color="0xffffff" borderAlpha="0.15"
paddingTop="10" paddingRight="10" paddingBottom="10" paddingLeft="10" horizontalAlign="center" x="307" y="297" height="152" width="409">
<mx:ProgressBar id="bar" labelPlacement="bottom" themeColor="#EE1122" minimum="0" visible="true" maximum="100"
color="0x323232" direction="right" mode="manual" width="100%" x="10" y="74"/>
<mx:ProgressBar id="bar2" labelPlacement="bottom" themeColor="#0088FF" minimum="0" visible="true" maximum="100"
color="0x323232" direction="right" label="" mode="manual" width="100%" x="10" y="74" alpha="0.1"/>
</mx:Panel>
</mx:Application>
a function you might find useful in doing this would be the PHP filesize function
http://php.net/manual/en/function.filesize.php
you could send off a script at the begging on the stream calculating the total filesize, and then compare that against amount downloaded in you AS3, what would be download progress sorted. -
The page load progress bar that was on the lower right of the window is no longer there. After updating to the latest version of Firefox on my Mac there is no progress bar for the page load. I really miss this feature and can't seem to find a way to obtain it. The tab has a circular progress wheel but this is useless for determining a stuck or slow loading page.
PLEASE NOTE: I am typing this in from a Windows based work computer but am asking about my Apple MacBook Pro that i use at home.Firefox 4 saves the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
You can use "Firefox > History > Restore Previous Session" to get the previous session at any time.<br />
There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.<br />
Another possibility is to use:
* [http://kb.mozillazine.org/Menu_differences Firefox (Tools) > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time" -
How to set local path for load library
Hi,
How do i set local path for native dll as i dont want to set the path in the environment variable.
can i do like this
System.loadLibrary("c:\abc");
ThanksI believe that System.load() does exactly the same thing, but accepts fully qualified filenames. So give that a try.
Failing that.... maybe you can add -Djava.library.path=
to your command line to explicitely override the path set ?
regards,
Owen -
How to use progress bar for Main and Subsequences in teststand
HI,
I have one main sequence in that I am calling different subsequences (Containing many steps and for loop).
I am trying to use progress bar for this sequence, but my requirement is progressbar is able to show the progress of all the steps containing in Main and subsequences.
I have developed sequence in that I am able to show the progress for only Main sequence steps not for subsequences steps.
Is it possible? If yes please let me know the suggestions.
Thank YouHi Santosh
Here you are
Greetings
Juergen
never Double Click on Submit
Message Edited by j_dodek on 08-05-2008 08:05 AM
=s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=
Attachments:
Progress_ts351.seq 52 KB -
Progress bar for report?
Hi there,
Does anyone have any advice on how to display a progress bar while a report is running (PDF report, web, using Reports 6, OAS)? We have the report output pop up in a new dialog browser window. The window pops up, but depending on the report, sometimes it takes a minute or so before the report output is actually displayed in the window. The users are requesting a progress bar to show them that it's working and how far they are from seeing the output.
Any ideas? Any built-in functionality? Should I bring Forms into the mix?
Thanks in advance
Daveuser-Rachna wrote:
I created a dynamic action on 'Before page submit' and showed an alert to see if it works or not. But it doesn't work for my report as the report gets refreshed without submitting the page.
Here is exactly what I have:
http://apex.oracle.com/pls/apex/f?p=54687:38:109840028367746
Thanks.
It would seem to be an obvious step to create additional dynamic actions on the Before/After Refresh events for the report region to show/hide the plug-in loading frame. -
Show progress bar before loading the applet or application
hi ,
My application size is large and take some time to load . Now i want that to show progress bar . how can i do this .Please Help me
sorry for my english.
ThanksDo everything in a seperate thread. Create a progress bar in the main thread, then create a new thread for initializing your app. Once the init is done, hide the progress bar and make your app visible.
-
How can i set a layout for MIGO screen
Hello all,
How can i set a layout for MIGO screen. & make that layout default. Like i want to drag Requistioner column next to quantity in MIgo screen. temporarily I can drag but is there a way to save as layout & save it.Hi
First you arrange however you want and then go to table settings which is there in the right corner of the item details and create a variant and save.
Find a button with blue yellow and white at the top end above the vertical drag bar when put the cursor it will show you as Configuration.
After creating the variant tick the check box use as standard setting below the variant
Hope it helps
Edited by: Girish Adaviswamy on Mar 3, 2010 1:27 PM -
How can i use Progress bar in IR Report
Hi ,
I have created IR Report based on the View so, it's been taking 10-15 mins of time to execute the IR Report. Here user want to see the Progress bar while executing the IR Report. How can i use Progress bar in IR Report.
Anybody have idea on Progress bar please help me.
Regards
Narender BHi ,
Thanks for your information.
I am new to the APEX.*i need to show Progress bar while opening the each page* then user can know some process is happening from the backside and i don't know where i need to add and call the below function.could you please provide the steps for the progress bar.
In my application there are almost 100 pages are there so, i need to show progress bar on each page while opening .could you please provide Global function to call on each page.
function html_url_Progress(pThis){
$x_Show('AjaxLoading');
window.setTimeout('$s("AjaxLoading",$x("AjaxLoading").innerHTML)', 100);
//doSubmit('APPLY_CHANGES');
redirect(pUrl);
Regards
Narender B -
How to Create Roaming Profile(s) For Windows Workgroups
This Tutorial Shows how to create roaming profile(s) for Windows Workgroups.
Here are the steps in order to do this:
On the host PC:
1. Goto 'Folder Options'>'View' and un-tick 'Use Simple File Sharing'.
2. Goto Network Connections and right click on the 'Local Area Connection' (Ethernet recommended)
3. Goto Properties>General, and tick 'File and Printer Sharing'.
Click Apply + Ok.
4. Goto Control Panel>User Accounts, add a new user.
5. Logon to this user, and open the profile folder properties.
5b. Share this folder.
6. Make the Share permissions so that 'everyone' has: Full Control, Read, Change.
Click Apply + Ok.
7. Click on 'Caching' and disable Caching for this Share.
Click Ok.
8. Now goto the 'Security' tab and give 'Administrator' and 'SYSTEM' 'Full Control'.
Click Apply + Ok.
On the remote PC(s):
1. Make the same User as on the Host.
1b.Logon to the account and log back out again. Delete the profile folder from 'Documents and Settings'.
3. Give 'SYSTEM': 'Read','Read and Execute','List Folder Contents' to the 'Administrators' Profile
4. Type 'lusrmgr.msc' into run, goto: 'Users', double click on the new user and goto the 'Profile' tab.
4b. In the 'Profile Path' box, type \\hostPCname\ProfileName.
Click Apply + Ok
*Note* Replace the \\path\ accordingly to what names are on your Host PC.
5. Goto regedit>HKLM\Software\Microsoft\Windows NT\CurrentVersion. Double click
on 'ProfileList'.
Find which key is for the new user. (Example S-1-5-21-58435627-18431725-18026167-1003)
6. Right click that key and goto: 'Permissions' and give 'SYSTEM' 'read'.
*Note* Once you logon to the roaming profile from the remote PC for the first time you can undo this step.
7. goto GPEdit>Computer Configuration/Administrative Templates/System/User Profiles:
Enable these settings:
'Do not check for user ownership of roaming profile folders'
'Delete cached copies of roaming profiles'
'Log users off when roaming profile fails'
"Add the Administrators security group to roaming profiles'
'Prevent roaming profile changes from propagating to the server'
7b. Make 'Timeout for dialog boxes' '1' (seconds)
8. goto: Computer Configuration/Security Settings/Local Policies/Security Options:
Make 'Number of previous logons to cache (if server is unavailable) '0'
Now you're ready to login to the Profile on the remote PC.
*Note* Sometimes, when windows loads it takes a minute for the profile folder to become shared again.
Thanks for reading.Hi,
I have replied to the below thread mentioning the FM's to create Profile sets, profiles and also target groups. This may be helpful to you.
Re: target group creation
Regards,
Priyanka -
Problem with a progress bar for downloading attachment
I display the progress bar for downloading attachments and it works fine … but when I am downloading some attachments I get the exception message:
Exception in thread "main" com.sun.mail.util.DecodingException: BASE64Decoder: Error in encoded stream: needed 4 valid base64 characters but only got 1 before EOF, the 10 most recent characters were: "Q3w5ilxj2P"
I found the explanation:
Certain IMAP servers do not implement the IMAP Partial FETCH
functionality properly. This problem typically manifests as corrupt
email attachments when downloading large messages from the IMAP
server. To workaround this server bug, set the
"mail.imap.partialfetch"
property to false. You'll have to set this property in the Properties
object that you provide to your Session.
http://java.sun.com/products/javamail/NOTES113.txt
So I turned off partial fetch:
Properties props = System.getProperties();
props.setProperty("mail.store.protocol", "imaps");
props.setProperty("mail.imaps.partialfetch", "false");
Session session = Session.getDefaultInstance(props, null);
Store store = session.getStore("imaps");
store.connect("imap.gmail.com", "<username>","<password>");this solved the problem ….however the method getInputStream() from the Part class blocks the thread until the attachment is completely downloaded and it is impossible to get the information about the number of bytes which have been already downloaded from mailbox.
Without this information it is impossible to display the progress bar. So is there a way to obtain this information and display the progress bar?
Edited by: 911161 on 2012-01-31 10:55Try the answer I provided to your post on stackoverflow.com:
http://stackoverflow.com/questions/9086700/how-to-displaly-progress-bar-for-downloading-attachment
Maybe you are looking for
-
PC h8-1330a with NVIDIA GeForce GT 630 after windows log in black window with only mouse cursor
Hi PC is an h8-1330a, and the video card is a NVIDIA GeForce GT 630 with driver version 9.18.13.270 dated 29/08/13. connected to a samsung TV via HDMI cable. It is running windows 8.1 OS. I have installed 1 additiona TV tuner card but otherwise the s
-
I'm replacing my 3rd gen 16gb Ipod Touch with a new 4th gen Ipod Touch. I'm wondering how I can delete all of the apps, photos, music, etc. from my old Ipod but still have all of the items available to install on my new Ipod? Help please!
-
Modifying SPRPS field in an infotype record
Hi experts, I have a requirement in which i need to modify the lock indicator value of an existing 2001 infotype record. That is, initially when a record is created, i need to update the lock inidicator field as 'X'. Then after few approvals, i need
-
I am creating a CD ROM whereby I have an series of links that play an animation of a train going to another section of the screen. I have a sound of a train for each of these, and realise that the novelty of this sound will wear thin after a while. I
-
I would like to use cf tags inside cfscript, for example cfquery and cflocation. What is the best way to achieve this. Cheers