Loadmovie - Jpg's - Cached?
Can I load a bunch of jpg's into any mc (like an invisible one on stage) and then later load one of these into a different mc and the jpg will already be cached and not have to reload?
I'm randomly loading 50 jpg's, one every 10 seconds. Currently, I'm loading them into two differernt movies on stage, one is loading while the other is displaying.
I thought that this would give me plenty of time to load a 50K jpg over highspeed access, but, from time to time, it turns out I have to wait longer for one to load.
My question is - can I load a jpg into one mc, then later into another and the jpg remains cached so it doesn't have to reload?
FlashKit > Flash Help > Flash MX
Posted on: 11-05-2002, 11:44 AM
View Complete Forum Thread with Replies
Sponsored Links:
Does LoadMovie Use Cached Copy?
I am using flashMX. I wrote a pre-load movie to load all of the jpgs that are going to be used in my flash animation. Unfortunately, I need to make use of these images within lots of different movie clips.
My question is: if I call loadMovie again, will it used a cached copy or will it go to the server to request a new copy?
Thanks,
Andrew
View Replies !
View Related
Xml Gets Cached I Think
I have created a .swf and in it contains a slideshow extention component called xml flash slideshow v3
Here is the url
http://therain.ca/mockupv2
the problem seems to be that when you click on another button on the site and then return to the gallery it duplicates. Maybe it takes it from cache as well as reloads the xml but im not sure.
Here is the code that I am using as this has been provided by the company that makes this extension.
// Create init object
var initObj:Object = {};
initObj.fillStage = false;
initObj.forceWidth = 300; // PUT WIDTH HERE
initObj.forceHeight = 300; // PUT HEIGHT HERE
initObj.initXML = unescape("");
initObj.xml = "http://therain.ca/mockupv2/datacomponent.php"; // PUT FULL XML
PATH HERE
initObj.preventCache = true; // IF LOADING FAILS, CHANGE TO FALSE
initObj.disableMultipleXML = false;
// Create the slideshow
createClassObject(com.ui.Slideshow, "slideshow_mc",
getNextHighestDepth(), initObj);
Is there anyway I can get this to stop duplicating that anyone can see.
View Replies !
View Related
XML Gets Cached I Think
I have created a .swf and in it contains a slideshow extention component called xml flash slideshow v3
Here is the url
http://therain.ca/mockupv2
the problem seems to be that when you click on another button on the site and then return to the gallery it duplicates. Maybe it takes it from cache as well as reloads the xml but im not sure.
Here is the code that I am using as this has been provided by the company that makes this extension.
// Create init object
var initObj:Object = {};
initObj.fillStage = false;
initObj.forceWidth = 300; // PUT WIDTH HERE
initObj.forceHeight = 300; // PUT HEIGHT HERE
initObj.initXML = unescape("");
initObj.xml = "http://therain.ca/mockupv2/datacomponent.php"; // PUT FULL XML
PATH HERE
initObj.preventCache = true; // IF LOADING FAILS, CHANGE TO FALSE
initObj.disableMultipleXML = false;
// Create the slideshow
createClassObject(com.ui.Slideshow, "slideshow_mc",
getNextHighestDepth(), initObj);
Is there anyway I can get this to stop duplicating that anyone can see.
View Replies !
View Related
Cached .swf
I have a .swf in my html page, but if I make changes to the movie and reupload it, the browser caches the old .swf, meaning I need to close all browsers and open them again - can i stop this?
monkey
View Replies !
View Related
Cached SWF Files
Hi All,
I'm loading an external SWF file in the background while the user is viewing a page. This cuts down on the preloading that I have set up for all the external SWF files. This approach seems to work well, except when the background loading SWF file contains sound. The sounds from the external SWF will play while the user is on a different page. I tried using a StopAllSounds command, but this doesn't work anymore after the SWF is in cache and the page is refreshed. Is there any way to turn sounds off while the external SWF is being loaded? Perhaps an if/else script with the ifFrameLoaded command. My actionscripting isn't that great. Any help would be appreciated.
-devoe
View Replies !
View Related
Cached XML Files...HELP
I know about adding a random variable at the end of a URL string to make sure that it's loading the file for the first time...everytime, but it doesn't seem to work with XML files. What gives? It's it the same thing?
Here's what I've been using:
mailinglist.new XML();
mailinglist.load("mailinglist3.xml?zz="+int(Math.r andom*100000));
Any ideas? PLEASE!!!
View Replies !
View Related
Swf Files Not Being Cached
has anyone ever had the problem of your swf files not being cached?
i just finished a site at work and i realized after a particular flash movie loaded, if i hit refresh or go back to it later, it has to load all over again like it was never cached in the first place. please advise, thanks.
View Replies !
View Related
Cached Files
Asking here first since its my best shot at a quick answer.
We're all familiar with loooking throught the cache/temporary internet files for the .swf (for whatever reason)
I noticed that it does not show up when looking at bigshotmedia.com.
How am I to hide an .swf file from the system folders?
thanks.
View Replies !
View Related
Cached Files
We're all familiar with loooking throught the cache/temporary internet files for the .swf (for whatever reason)
I noticed that it does not show up when looking at bigshotmedia.com.
How am I to hide an .swf file from the system folders?
thanks.
View Replies !
View Related
Cached Asp Pages
Hi,
I have a movie which is acalling an aspx script to return an xml document of bookings data. I seem to be having some caching problems. If I make some changes to the bookings and save them, via another aspx script and then reload them, the changes are not always reflected until a) I clear the internet cache or b) I run the script that returns the bookings manually in another browser.
I have tried to set the cache expiry in the aspx page to 1 second using the OutPutCahce directive as follows:
<%@ OutputCache Duration="1" VaryByParam="none" %>
Can anyone explain what might be going on here and if there is a way that I can force it to refresh the file every time it loads?
Thanks in advance.
View Replies !
View Related
SWF Menubar Cached
Dear All,
I have designed a menu bar with Flash, and it resides in an ASP page. My problem is the on the local server, I can see the changes I have done to the menubar, however, when I upload it on the server, the changes are not visible.
I tried to insert a ?cachebuster="+getTimer() after every link, and also tried to amend the asp file with this code:-
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
meta http-equiv="PRAGMA" value="NO-CACHE"
meta http-equiv="Expires" content="Mon, 01 Jan 1990 12:00:00 GMT"
link href="inc/frontstyle.css" rel="stylesheet" type="text/css"
'here we set some vars so that the page will refresh and will not be cached
Response.expires= 0
Response.Expires=-1
Response.Expiresabsolute = Now() - 1
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
However, I still cannot see any changes to the menubar. Can anybody help me please.
Thanks for your help
View Replies !
View Related
Cached Problem
We all know that a flash file gets cached when you view it on a web site.
So here is my problem:
I have a flash file that is loading dynamic text from a *.txt file, that works perfectly.
I have the *.txt file updating using PHP. That works perfectly.
But when I revisit the flash file after altering the *.txt file the flash displays the same text as it did be for updating the *.txt file. (yes, even after a refresh)
Is it possible to tell flash not be cached?
Or does any one know of any other options, I’m sure there is a way around it, because how do large companies with flash interfaces update their websites?
Any help would be tremendous.
Please!
View Replies !
View Related
How To Check If SWF Is Cached?
hello, i'm trying to write some code that goes through a list of files names (of SWFs) and checks if they've been cached. Is there a way to check (using actionscript) if a SWF has been cached without having to try to open that SWF?
View Replies !
View Related
Jpg Cached, But Not Always Displaying
I've got a movie that loads an external jpg. However, I'm often finding that although the filename is loaded and the image is actually cached by the browser, it is not displaying unti lI press refresh.
Can anyone see why this could be happening?
Code:
//stop the timeline
stop();
//we need to have some variables, this is manual
//this two can be automated if you use a server side script
//like php or asp
var lastImg = 9;
var firstImg = 0;
var imageLoaded = 0;
//just in case other formats are accepted
//or somebody find a way to load other formats
//just change this after adding their routine
var imageFileExt = ".jpg";
//let us have the main preload function
//MovieClip._holderCount = 0;
MovieClip.prototype.preloadjpg = function(movietobeLoaded) {
//trace(movietobeLoaded);
//create a controller mc for the preloading routine
var holder = this.createEmptyMovieClip("holder", 1);
//load the movie
holder.loadMovie(movietobeLoaded);
//check the loading on every enteframe of the controller mc
this.onEnterFrame = function() {
//make sure holder is not visible
holder._visible = false;
//define the bytes to be loaded and loaded ones
var tLoaded, tBytes;
tLoaded = holder.getBytesLoaded();
tBytes = holder.getBytesTotal();
var percentage = int(tLoaded * 100 / tBytes);
//the load indicator routine
percent_white.text = percentage + "%";
percent_drop.text = percentage + "%";
//Make sure stream has started
if (isNaN(tBytes) || tBytes < 4) {
return;
}
//jump out and play if fully loaded
if (tLoaded / tBytes >= 1) {
//now load it the placeholder and show it
_root.record.placeholder_mc.loadMovie(movietobeLoaded);
percent_white.text = "";
percent_drop.text = "";
delete this.onEnterFrame;
gotoAndStop(4);
}
if (tLoaded == tBytes) {
_root.record.gotoAndPlay(2);
}
};
};
//let us load the first default image
preloadjpg(_root.labelLoadPath);
View Replies !
View Related
[F8] Cached Flash
Is there any way to inprove flash so it does not cache so easely? Sometimes
I realy have problem with getting new content such as picture streamed in flash...
Is it any way to getting that problem solved?
View Replies !
View Related
Where Are Loaded Swf's Cached?
I've been using a design pattern for the past year or so where I run a preloader swf first that's only a few Kb, and use it to load my core swf.
Obviously that makes it pretty easy to cache and decompile the core swf and I don't care too much about that. But I'm working on a site that requires a higher level of obfuscation.
First off, the site will run only over ssl, which should make it harder to pick the core source out of the stream. But will it really? What I'm wondering is, is there any really safe way for my preloader to load another swf and keep it from being saved by the user? Specifically:
(1) Where are internally loaded swf's being cached, and for how long?
(2) Is there any way to keep them from being cached, say, by naming them randomly, streaming them through a PHP wrapper with no-cache headers, then deleting the file off the server?
(3) Does loading an swf over ssl have any real benefit as far as preventing the end user from saving the .swf?
An example of the preloader / core pattern I use is at http://www.mackwinston.com ...in case anyone's got a sec to check it out with firebug and see what's going on there...
Thanks!
Josh
View Replies !
View Related
As File Cached?
Im working on as file attached to my main fla, It loads the file fine, but when i try to add any code or change any code it doesn't seem to recognize it in flash. I've removed all the code and saved over the as file so its just a blank document. It still runs the code that I removed.
Any ideas?
View Replies !
View Related
Cached & OnLoadProgress
I am having issues with cached files in IE.
I want the progress bar to only show up if it needs to be loaded.
This below works fine in FF and Safari, but doesn't work for me in IE
(I think it's because IE still feels the need to "reload" 4-5% of the clip)
Code:
var loader:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
loader.addListener(listener);
listener.onLoadProgress = function(clip, loaded, total){
var percent:Number = loaded/total*100;
if(percent < 100){ //still is true for cached clips in IE ???
pbar._xscale = percent;
}
};
listener.onLoadInit = function(clip){
finish();//finish function
removeListener(listener);
};
loader.loadClip(target, clip);
Any thoughts would be greatly appreciated.
View Replies !
View Related
Cached Swf Files
Hi
I'm loading an external swf file into my flash movie. Now I want to detect whether the swf file is cached or not. This because I don't want to preload it if it is cached. I'd rather show a dummy preloader than the real preloader just jumping to 100%.
On the first frame I tell the movie to load the swf into the desired movieclip. On the next frame I tried something like this(doesn't work):
if (_root.clip.getBytesLoaded() == _root.clip.getBytesTotal()) {
_root.preloaderDummy.play();
} else {
_root.preloader.play();
}
Any suggestions?
In advance thanx
Soulcop
View Replies !
View Related
Are LoadMovieNum .swf's Cached?
Hey,
just a quick question.
I have a button that loads 'cheese.swf' onto _level5 of my main movie.
I also a button that loads 'ham.swf' onto _level5 of the main movie.
What happens if i first click cheese button
then click ham button
THEN click cheese button again? will cheese be loaded again as if it hadnt been already been, causing the user to wait for content which he has already seen to load?
Or is it already cached by flash and load instantly?
hope ive not confused anyone with ham and cheese
cheers
View Replies !
View Related
Cached Data. GRRRRR
I have a swf file that reads a cookie and displays data associated to the cookie...
Now, I load the page containing the movie, and display the information, then print the value of the cookie below the movie (just to test/verify that the cookie was updated)
Everything works great until you refresh the page... the cookie was updated, but the flash is still using data from the old cookie.
If I clear the cache on the browser and reload the page it works again.
In my html head I have told the page not to cache, and it isn't. I can change the html and the changes are reflected on the page, but it continues to pull cached copies of the swf file.
Any ideas?
Thanks
View Replies !
View Related
How 2 Get Browser Cached SWFs?
Context:
I have a SWF(main.swf) which is loading some bunch of other SWFs(sub_button1.swf, sub_button2.swf, etc..etc) from some server..After loading and arrangin all these SWFs(which are being using to represent buttons) on clicking any of these buttons(loaded swfs) ..I am loading respective SWF(sub_page1.swf, sub_page2.swf, etc..etc..) into the same level where the main.swf is resides. That means this main.swf is removed and sub_page1.swf is loaded..So, once I come back from sub_page.swf to the main.swf on clicking some button in sub_page1.swf, main.swf is again taking same time to load all button SWFs..
My question:
As they already in the client's machine (temp internet files folder), is there any way to get the browser cached SWFs when second time its is loading?
Thanks all in Advance,
Pandu
View Replies !
View Related
External Actionscript Cached?
hey everyone...
gotta question regarding whether or not flash caches external actionscript.
situation's this:
i've modified an actionscript file that is always called the same name. when i send it to my client, it doesn't work. however, if she sends me the fla, or I re-publish the original fla, then it includes the new .as file.
i've even removed the .as file and played the swf and it works fine...weird, huh?
anyone notice this or know of a workaround?
thanks as always...
chris
View Replies !
View Related
How To Check For Already Cached Swf File?
Hi guys,
I was just wondering how you can check to see if a particular swf file has already been loaded by the clients browser and is in the cache.
Basically, if the swf file has not been loaded before by the user then I want to display a loading animation / progress bar while it loads the movie, but if it has already been loaded beforehand I want it to skip the loading animation / progress bar and just go straight to the movie...
I know that if I just leave the loading animation / progress bar there the whole time that it will briefly flicker up on the screen saying "100%" and then disappear again. This is what I am trying to aviod happening...
Any thoughts?
Thanks.
View Replies !
View Related
Bypass Preloader In Cached
How can I bypass the preloader if someone has the specific swf already cached. I have 2 frames on the main timeline. the first has a stop action in an empty mc and a preloader with the following code:
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
loadBar._width = per;
if (percent>99) {
_parent.gotoAndStop(2);
}
}
In the second frame I have my main movie. Any help would be great from those of you who know as better than me. Thanks ya'll.
[pk]
View Replies !
View Related
Cached SWF In Mozilla Grrrrrrr
I have a .swf that loads inside an ASP page which needs to refresh every time the page is loaded.
I have managed to stop the .swf being cached in IE but cannot for the life of me stop Mozilla Firefox caching my .swf.
Inside my .swf I load in an XML file using the following code...
// LOAD IN XML FILE //
dataXML = new XML();
dataXML.ignoreWhite = true;
dataXML.onLoad = convertXML;
dataXML.load(_root.filePath + _root.teamSelected + ".xml");
Where _root.teamSelected in passed via the query string into the .swf
This is all fine but the movie will not load the new XML in until I clear the cache! Help...
Any ideas?
View Replies !
View Related
Check To See If Movie Is Cached
Hi, should be an easy one,
I have a preloader that I only want to be used if the movie is not already cached otherwise it is quite annoying. Is there any action script I can use to identify if the movie has already been loaded?
thank you
James
View Replies !
View Related
Cached File Reads
Hey,
I'm trying to open an XML file through flash. The trouble is that I open the same file a few times, and it contains different information each time. Flash seems to be caching the file after the first read, and then every time after that it only reads the cached old version of the file. Does anyone know a way around this?
View Replies !
View Related
SendAndLoad Cached Only In Explorer...
Hi all...
Got this script:
varSender_sql.queryin = queryin;
varSender_sql.sendAndLoad("http://www.URL.com/test write xml.php", varReceiver_sql, "POST");
varReceiver_sql.onLoad = function() {
_root.lista.removeAll();
_global.firequery = true;
ricevuto = false;
_root.gotoAndPlay(2);
};
stop();
This basically calls a php script that query a database and write an xml file with the results.
The xml file is then called by Flash to populate a list component.
This always works in Firefox or Opera but in IE the variable is being cached (since if I clear the IE cache the variable is refreshed).
I tried the "header-thingy" in my script but seems not to work...
Any help?
Thank you very much...
View Replies !
View Related
XML Object Getting Cached In IE -- Will Not Update
I'm using Flash 8 to load in some XML data using the XML object native to Flash.
When I change the data and re-load the XML object, it works great in Firefox, but get's stuck in IE's cache.
Code:
var highscore:XML = new XML();
highscore.ignoreWhite = true;
highscore.onLoad = function(success) {
publish(this.firstChild);
};
highscore.load("highscores.xml");
How can I force IE to refresh? I've tried adding a random variable to the end of xml.load(), but that did not solve the problem (ie highscore.load("highscores.xml?nocache="+date.getT ime());
Any help is greatly appreciated!
View Replies !
View Related
Clearing Cached Flash
Hi all,
Does anyone have, or know of, a solution to the problem of the cached flash site? A browser holding an old copy of a flash site page especially when the content is dynamic. It's a pain in teh butt, and I'd like to find a way to make sure that when someone lands on a site, a page, etc., they're getting the most recent content.
Thanks.
View Replies !
View Related
Preloading And Cached Images
Hello,
I've made a quite big flash movie, and I broke it to 4 diffirent pieces.
The pieces go like this:
Main page
> Products
> Contact
> Clients
Each of those are diffirent .swf files.
I've done a preload script, what loads the pieces when you click for example products, the script loads the products page.
The problem is that the file size is larger when I have 4 diffirent parts, rather than having 1 file. The reason is that I have some of the graphics, for example the background pic on each file.
How can I load the same graphics and movieclips I have on the 4 files, when I load the first file? Can I do it so, that I dont have to load the same graphics and mc:s when loading the other swf files.
Please ask if you didn't get this post..
regards,
Antti Karttunen
View Replies !
View Related
How To Check For Already Cached Swf File?
Hi guys,
I was just wondering how you can check to see if a particular swf file has already been loaded by the clients browser and is in the cache.
Basically, if the swf file has not been loaded before by the user then I want to display a loading animation / progress bar while it loads the movie, but if it has already been loaded beforehand I want it to skip the loading animation / progress bar and just go straight to the movie...
I know that if I just leave the loading animation / progress bar there the whole time that it will briefly flicker up on the screen saying "100%" and then disappear again. This is what I am trying to aviod happening...
Any thoughts?
Thanks.
View Replies !
View Related
.swfs That Aren't Cached
I'm curious. Sometimes in Firefox, I'll look under Tools/Page Info/Media to get info about a .swf that's on a given web page. An embedded .swf is listed as having whatever pixel dimensions and filesize. But sometimes, a .swf is said to be not cached, with a size of 0x0 and 0 bytes.
Why is that? Does it mean that there's a loader movie that only loads swfs within it? Something else?
View Replies !
View Related
Is Ie Cached Swf Loaded Data Plz Help Me
hi
i real can not understand ;
i have in same page more than one swf and i entered each one an id this id send to php which load it's data and send it to swf i test it in firefox and it work will each swf show it's won data but in ie all swf show same the data that data belong to first one
i couldn't solve this plz help me
i see source of page each <param> tag and <embed> tag has same id
View Replies !
View Related
How To Get Php Response Fresh Not Cached
Thanks to dzedwards I've got variables going out from Flash to php, then writing to a text file, from which I bring my new info back to Flash. But Flash seems to use a cached version of the text file, even though when I check the text file it has the latest information. In AS 2 I could work around this by adding a time element to the name of the loadVars. Is that how you would do it in AS3? Here's a goofy (but formerly working) example from AS2:
Attach Code
stop();
andnow=new Date().getSeconds();
_root["mytime"+andnow]= new LoadVars();
onboard= _root["mytime"+andnow]
onboard.onLoad=function(success) {
if(success){
wart=this.who;//was faa
q=Math.floor(Math.random()*2000)
gotoAndStop("last");
}
else{
nutso="rodent breath"
};
gotoAndStop("last");
}
onboard.load("http://www.funonmars.com/shock/syn2.txt?who="+q,onboard)
View Replies !
View Related
MC Looping If Site Not Cached
Hi all,
hopefully someone can help me with this little one. I am using a loading random movies into the main movie using the code below, however, if you are visiting the site for the first time the movie clip loaded will continuously loop instead of stopping once loaded. If you visit the site again though, once it has been cached locally it doesn't do it!! its getting on my knockers now!!
//code to load random movie
filename = ["aerial_pic_1.swf", "aerial_pic_2.swf", "aerial_pic_3.swf"];
path = "http://www.charlesward.com/";
i = filename.length;
k = Math.floor(Math.random()*i);
loadMovie(path+filename[k], _root.main_image);
URL: www.charlesward.com
Any help much appreciated,
Cheers, Pat
View Replies !
View Related
Scaling With Cached Bitmap
I have problem that I want to solve but it's late nite and seems to me it's got to be some easy solution but my braind doesn't react good
look at the example
left sqaure mc1 is cachedAsBitmap right square mc2 is usual MC
go mouse over the edge for scaling for both mc's
cached movieclip goes crazy
how I can bypass this thing easily
thnx in advance
View Replies !
View Related
Cached Swf To Be Pulled Into Another Swf On A Different Page?
Hey – I'm trying to plan out a hybrid flash/html site and I need to know if a cached swf can be pulled into another swf without the need to be loaded again. If so, does it only work in certain browsers? Do I have to code anything specifically to access the cached versions?
side note: I realize I'll need a preloader anyways incase the user goes directly to the secondary page.
View Replies !
View Related
Moviecliploader Cached Skip
Hi, Im attempting to use moviecliploader to load my main site swf. Ive created a small preload animation etc, and it all works fine. The problem Im having is that I cant figure out how to get flash to skip the preload animation if the swf it is trying to load has already been cached by the users browser.
Ive tried nesting a 'getProgress' check in the onLoadStart, but total and loaded bytes just come back as 0 at that point in the loading process. Im really floundering as to where else I could check..
Is this just a silly way of going about things? I know if I built a preloader into the main movie instead I could get it to do what I want. Thing is Ive got a bunch of stuff exporting for AS in the 1st frame, and found creating the preloader as a seperate swf gave less lag-time at the 1st opening of the movie.
Anyhow, any help on this would be greatly appreciated.
View Replies !
View Related
SendAndLoad() -> Cached Version Of The Xml
hello
I have a little problem and I hope you can help me. (and it's rather urgent if I may say so.. )
newLoadedMenu_xml.sendAndLoad(php_file, loadedMenu_xml);
I want to send the "newLoadedMenu_xml" to the server.. and then load from the same file into the new xml in flash "loadedMenu_xml" .
but it always loads a cached version!
unless I don't have the option enabled in the broswer that says "load every single time"
(in IE: Tools - Internet Options - Temporary Internet Files - Settings - every visit to the page)
what can I do to fix it ?
thank you very much!
PS: i know that senocular used this on the "Simple editor" tutorial :
var xml_file = "simple_edit.xml";
input_xml.load(xml_file + "?uniq=" + new Date().getTime());
but.. how can I do something similar for sendAndLoad() method?
View Replies !
View Related
Detecting If A MovieClip Is Already Cached ?
Hi there, im an avid reader of this site and forums, but im new to the forums, so first of all, hi everybody, and thanks kirupa for this great site!
I guess my question is pretty simple for some of the guru's here, but i gave up with this already
Im writing an photo gallery application for a website, everything works just perfect, but i have the following problem:
Im using the events onLoadComplete and onLoadStart to display an small popup alerting the user while the picture is downloading... so how could i check if the picture is already cached ?, so i could use an IF statment to only show the popup if the picture has not been downloaded before ?
This is the relevant part of the code that im using right now, it works perfect, but it shows the "loading clip" EVEN if the picture is already there
Code:
listener2.onLoadStart = function(target:MovieClip):Void {
var myTween:Tween = new Tween(loading_graph, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 80, 1, true);
var myTween2:Tween = new Tween(loading, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 80, 1, true);
loading.gotoAndPlay(1);
//trace(loading._currentframe);
infobar.next_btn.enabled = false;
infobar.previous_btn.enabled = false;
};
listener2.onLoadComplete = function(target:MovieClip, httpStatus:Number):Void {
if (aClips[p] != null) {
var myTween:Tween = new Tween(loading_graph, "_alpha", mx.transitions.easing.Strong.easeOut, 80, 0, 1, true);
var myTween:Tween = new Tween(loading, "_alpha", mx.transitions.easing.Strong.easeOut, 80, 0, 1, true);
loading.gotoAndPlay(11);
//infobar.next_btn.enabled = true;
//infobar.previous_btn.enabled = true;
slideshow();
}
};
Any suggestion would be appreciated.
Thanks in advance.
View Replies !
View Related
Is Downloads With URLLoader Cached?
I use URLLoader to get some data from some PHP Scripts on my site. However, even though I KNOW that the output from the PHP Script has changed, the URLLoader still fetches the same data, so I am wondering: Is the URLLoader downloads cached in Flash Player somehow, and is there some way to prevent this from happening?
View Replies !
View Related
MC Looping If Site Not Cached
Hi all,
hopefully someone can help me with this little one. I am using a loading random movies into the main movie using the code below, however, if you are visiting the site for the first time the movie clip loaded will continuously loop instead of stopping once loaded. If you visit the site again though, once it has been cached locally it doesn't do it!! its getting on my knockers now!!
//code to load random movie
filename = ["aerial_pic_1.swf", "aerial_pic_2.swf", "aerial_pic_3.swf"];
path = "http://www.charlesward.com/";
i = filename.length;
k = Math.floor(Math.random()*i);
loadMovie(path+filename[k], _root.main_image);
URL: www.charlesward.com
Any help much appreciated,
Cheers, Pat
View Replies !
View Related
|