ActionScript 1/2 :: Loader & ProgressBar Does Not Work On IE?
Jan 4, 2009
looking for solution for this problem. i was looking all over forwritten solution, but nothing came up. so, here i go once again..i have build a flash project where the most of the contentexternally loads in to the main movie. for each chapter i made a"Loader" component, and a "progressBar" connected to the "Loader".during buildng i was re checking that all is working well (testmovie with "simulate download"). then, i was uploading it to myserver and when i view it on "fireFox", or "Safari" , it allworking. but, when trying to view it on "IE", i never see the"progressBar" and, all the Actions that relate to the "on
View 1 Replies
Similar Posts:
Jun 17, 2009
The progress bar doesn't work if the .swf movie that's being loaded is being loaded into another movie. If the loader is on the main stage it works fine both in testing and on the internet.For example, I created a parent movie and a child movie with a loader and progressBar. The child movie works perfectly by itself. If I load the child movie into the parent movie the progressBar doesn't work.
View 3 Replies
Jan 5, 2004
This is wierd. My AS for frame 1:
[AS]
loader.autoLoad = false;
loader.contentPath = "anmalning.swf";
pBar.source = _root.loader;
loader.load();
[Code]...
now, it works when I run it on my computer, but when I upload it to my webserver, the progressbar doesn't move and it doesn't disapper after the swf is loaded either. The two swf's is in the same catalog, both on my computer and on the webserver...
View 12 Replies
Apr 2, 2007
im having trouble adding a progressbar components to a loader...all the images load and the progress bars too but the progress bars only change when they reach 100% and they do not disapper either..
View 2 Replies
Jan 5, 2004
This is wierd. My AS for frame 1:
[AS]
loader.autoLoad = false;
loader.contentPath = "anmalning.swf";
pBar.source = _root.loader;[code].....
now, it works when I run it on my computer, but when I upload it to my webserver, the progressbar doesn't move and it doesn't disapper after the swf is loaded either.The two swf's is in the same catalog, both on my computer and on the webserver...
View 12 Replies
Jan 17, 2009
I am preloading a .swf file using the Loader class (myLoader) and a ProgressBar (pb). When the progress is complete I would like to press the button (es_btn) to enter the site(make the externatl .swf visible). Currently, what it does is, the external file is loading and starts playing in the background before I press the "enter site" button, before I call addChild(myLoader);. How do I stop the external file from autoplay -ing and make it play only when I press the "enter site" button?
Here is the code:
Select allstop();
import fl.controls.ProgressBar;
import fl.controls.ProgressBarMode;
es_btn.visible = false;
var myRequest:URLRequest = new URLRequest("christianfm.swf");
[Code] .....
View 2 Replies
Aug 4, 2006
I have use percentage loader script with Horizontal progressbar clip. Which shows the % with progressbar here is the code.
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay("Scene 1", 1);
}
Now I change the movie for loader like circle type MC and want to complete 100 % when my Circle Movie completes it's rotation say frm 0 to 360 degree.
View 3 Replies
Aug 19, 2010
I have a two movie clips (preload.swf and index.swf).Starting with preload.swf. Preload movie clip loading index.swf.But nothing works on index movie clip (stage resizing, mouse events).
View 1 Replies
Sep 22, 2009
why DoubleClick not work in mc with Loader?
Code:
package {
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.display.Loader;
[Code].....
View 1 Replies
Dec 31, 2010
I'm working on a flash template, and when I publish the site, the loader dosnt work. I check the code in the actions menu of the .fla and I can't find an error. This is the code.
onClipEvent (load) {
total = _root.getBytesTotal();
} onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded / total * 100);
text = percent + "%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(4);
} // end if }
This is the complete flash template. with the .fla and all the files. [URL]
View 2 Replies
May 31, 2009
I have a preloader with the following code
stop();
this.loaderInfo.addEventListener(ProgressEvent.PRO GRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
function onProgress(erogressEvent):void {
var loaded:Number = e.target.bytesLoaded;
[Code] .....
It works great with Firefox and Safari on a mac but when viewing in internet explorer on a pc, the loader does not work at all.
View 1 Replies
Feb 12, 2010
I'm trying to get a simple random SWF loader to work. and I'm close...I have 10 movies saved as movie1.swf to movie10.swf saved in a directory.For my index file (swf file that will load one of the 10 movies randomly) I have one single frame with this in the actions:
stop();
var movieArray : Array = ['movie1','movie2','movie3','movie4','movie5','movi e6','movie7','movie8','movie9','movie10'];
var loader : Loader = new Loader();
loader.load(new URLRequest(movieArray[Math.round( Math.random() * movieArray.length-1 )] + '.swf'));
addChild(loader);
For the most part it works. But every now and then the screen comes up empty on a refresh. My guess is the math might be slightly off and is calling a file that is not there.
View 9 Replies
Jul 18, 2011
I want to unload my loader when i click the unload button, and to check if it unloaded successfully, i typed a trace command [trace("unloaded")] in the eventListener "EVENT.UNLOAD", but when i click the unload button, it doesn't unload.[code]any help on how to make unload work?
View 5 Replies
Jul 9, 2011
In the first frame of that movieclip, I'm importing an external swf with Loader class,(Using actionscript2 but my main flash page using Actionscript3),It is loading well but when i pass to second frame and return to the first frame again, the Loader doesn't work. (i'm using addChild(); to show external swf)
View 9 Replies
Jan 15, 2010
I have a strange problem
ActionScript Code:
checkLoad = setInterval (intervalOfLoading, 100);
function intervalOfLoading(){ [code]..........
works OK in Mozilla but dose not work at all in Explorer? How is this possible?
for swf integration in html I am using a swfobject.js
View 7 Replies
Sep 12, 2011
The MovieClip art Gallery is added to the stage just fine, but it's .as class can't even display a simple image 'elephant.jpg'.
ActionScript Code:
package
{
import flash.display.MovieClip;
[Code].....
View 3 Replies
Mar 16, 2008
i am truly a newbie in as2, i have test the script in local flash "Test Movie" everything was perfect, however when i try to put the files into my remote server, the getBytesLoaded()return to "0" and getBytesTotal() return to "-1" and the loader componentscaleContent=true function was not working also,until i press "F5" refresh button, then everything back to normal, i dont know what is going wrong with my scripti am using Flash CS3, as2.0 and ie7 and the dimension of my loader is 100x100 px
Code:
import mx.controls.Loader;
my_ldr.scaleContent = true;
[code]......
View 1 Replies
Jun 1, 2009
have a preloader with the following code
[Code]...
It works great with Firefox and Safari on a mac but when viewing in internet explorer on a pc, the loader does not work at all.
View 2 Replies
Sep 4, 2009
HelloI was just wondering, is there a way to change the way the ProgressBar component looks like? for example I'd like to keep its functionality but change its progress bar to a circular animation maybe?
View 2 Replies
Nov 10, 2009
How can I set a progress bar that may start when an HTTPService is sent and stop when the HTTPService ends?I followed code given here but encountered following error Type was not found or was not acompile-time constant: ProgressWin.Don't know whether ProgressWin.mxml is a component or module or what. I just created a new ProgressWin.mxml file and pasted the code you posted but following error popped out before
View 1 Replies
Jan 5, 2011
What is wrong with the following code,I get the progress bar as loading only.
<?xml version="1.0" encoding="utf-8"?>
!-- http://blog.flexexamples.com/2009/02/01/setting-the-bar-color-on-the-progressbar-control-in-flex/ -->
[code].....
View 1 Replies
Jun 16, 2010
Component progressbar is striped when size is unknown but I have:
root.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
function onProgress(event:ProgressEvent):void
{
progressbar1.setProgress((event.bytesLoaded/event.bytesTotal)*100, 100);}
So I use setProgress() so size is known - so why I have striped progressbar ?
View 1 Replies
Sep 29, 2010
I wanna set a custom skin on my progressBar, but it's not working out the way I want it to. My skin has 3 different colors on it (green, yellow, red) and green should show until it's about 50%, then I want the yellow to appear after green and the red at 90% after green and yellow. So at 100% they should all show.The problem is that the ProgressBar only sets the width of my skin so all colors are showing at all times. But if I use the indeterminateSkin but dont set indeterminate to true that doesn't happend.How can I make a skin that doesn't just change width? Atm I'm just using a MovieClip for a skin.
View 1 Replies
Nov 23, 2011
I have a function that when called takes about 10 seconds to run. like to add a simple progress bar to show the user something is happening but the progressBar dot run until the function is finished
btn.addEventListener("click",bigFunction);
private function bigFunction(event:Event):void{
var progress:ProgressBar = new ProgressBar();
[code].....
View 3 Replies
Aug 27, 2009
I have two different part of a file, I am downloading them together, and i want 1 progressbar to track the progress! i have tried:
ActionScript Code:
private function progressHandler(event:ProgressEvent):void
{
[Code]....
View 2 Replies
Oct 2, 2009
I am using ProgressBar Component i have upladed the flash file to my site.firefox 3.0 show the progressBar moving but ie7.0 doesn't.
View 0 Replies
Jun 25, 2008
I've got a child SWF that loads images from XML. in that child I've got a progress bar component tied to the loading if the image.When I test that child on it's own, the progress bar displays as it should.The problem comes when I load that child into it's parent SWF file. The progress bar magically disappears, and I get this message
Code:
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/addChildAt()
[code].....
View 2 Replies
Feb 16, 2011
I want to make a progressbar. I got a blanc bar and I want to let a red bar grow (from left to right).
I got this code so far:
Code:
var StartDatum:Date = new Date(2011, 01, 16, 12, 38, 15, 0);
var EindDatum:Date = new Date(2011, 01, 16, 12, 59, 15, 0);
var TotaleTijd = EindDatum.getTime() - StartDatum.getTime();
[code]....
There is no error so the code is ok...
View 1 Replies
Feb 28, 2012
i have code for save image in server via php:
Code:
private function saveIntoServer (event:MouseEvent):void
{
[code]......
View 2 Replies
Jun 9, 2004
I'm trying to use the MediaPlayback component with an external .flv The video shows fine, but for some reason the progressbar isn't working.
View 1 Replies