Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Cache Loader Images Prior To Loading?



hi,is there a way to cache external jpg images prior to them being called with the loader component? download them in the background and not when the parent movieclip is loaded? i am trying to keep the user from having to wait either at the beginning to load the flash mc, or during it as well.would it work if i had the parent html document preloadimages or would flash be looking somewhere else for them?also, can i use a fade effect on externally loaded images?thanks for any help



Adobe > ActionScript 1 and 2
Posted on: 05/20/2007 11:26:42 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Loading Images In The Cache
Hi everybody,

If I have a mainmovie that loads other external movies, and while those loaded movies are shown, I have, in my main movie, an script loading jpg images, to have them in the user's computer cache, for when I want to use those images later, would the performance of the movie be affected? Would that script and the loading of the "hidden" images make slower the loaded external movie?

Loading Images In Cache
Hi,

I'm looking for a bit of help here.

I'm trying to load a set of images into cache on creation of a flex application and then calling them into different states.

I need to load 20 screenshots (as they are 150kb each) into cache and then call one image at a time into different states.

Could someone point me in the right direction?

Thanks heaps

Alex

Loading Images In The Cache
Hello everybody,

Is it possible to have some images loading without the user notice it (and without the movie to become slower, etc), so that the user will have those images in the cache of the computer, and when the images are necessary, they can be shown without delay?

Thanks a lot for your help

Loading Images From Server And Keeping Them In Memory (cache) ?
Hi,

I'm not a flash developer, so forgive me if this is a dumb question.

A friend (the flash developer) is going to help me create a flash app (actionscript 2) that will load a set of (about a dozen) images from a web server. The app will then refresh the image display every 10 seconds. Some of the images will change during refresh, some will not. Each image will have its own unique filename.

The question is whether I can cache the loaded images in flash, so if after the app refreshes, if any particular image stays the same it is loaded from memory and not re-loaded from the server.

If I understand correctly, the browser handles caching of the images in this type of scenario. But I would like to have a way of caching the images on the client side even if the browser caching is off. This is to prevent client apps from downloading the same image from the server every 10 seconds during refreshes.

Any info appreciated!!
Thanks,
George

Movie Is Not Loading Prior To Playing.
Hi, I have the following line of code on my Load Scene :

ifFrameLoaded ("Scene 4", 75) {
}

But it's not working...it is not loading the whole movie before it starts playing. The movie consist of 4 scenes, the first is the Load and then another 3 scenes (actual movie) what would be the best way to load the movie before it starts playing, or what am I doing wrong. Thank you

[F8] Set Properties On Scroll Pane Prior To Loading?
I have scroll pane loading via actionscript which holds images. The scrollpane is reloaded anytime a selection is made in my combo box and it basically refreshes the images to reflect the selection made.

My problem is that I want to make the border around the scroll pane "invisible" so I have it set to make the border color the same as my background color. This works, but every time i click you can see the default grayish border pop up for a split second until the code changes it's color.

My question is, Is there a way to set properties on a dynamically created/loaded object at the time of creation vice after creating it?


Here's the code I have for my scrollpane:


Code:
_root.createClassObject(mx.containers.ScrollPane, "my_sp", -2000);
_root.my_sp.setSize(615, 420);
_root.my_sp.setStyle("borderColor", "0x000066");
_root.my_sp.setStyle("borderStyle", "solid");
_root.my_sp._x = 154;
_root.my_sp._y = 103;
trace (_root.my_sp._y);
_root.my_sp.contentPath = "thumbholder";
// Scroll 100 pixels when clicking on vertical bar.
_root.my_sp.vPageScrollSize = 100;
_root.my_sp.vScrollPolicy = "auto";
_root.my_sp.hScrollPolicy = "auto";
// Create listener object.
var spListener:Object = new Object();
spListener.scroll = function(evt_obj:Object):Void {
//trace("hPosition = " + _root.my_sp.hPosition + ", vPosition = " + _root.my_sp.vPosition);
};
// Add listener.
_root.my_sp.addEventListener("scroll", spListener);


Like I said, everything works fine, but I can see the default scrollpane prior to it changing the properties of it. Can anyone point me in the right direction? Thanks in advance.

Send Variable To Flash Prior To Loading?
I'm trying to make it so that a pre-defined value in either PHP or javascript is sent to Flash prior to the movie loading up. I need to give flash a number value, and then use that number inside of flash to execute a few functions.

Is this possible without reloading the page?

Loading Multiple Images With Loader?
Hi!

I use flash with php & mysql to load images into my movieclip.
So far I've managed to load the images but I want an loaderclip to play each time before the image shows up.

I have a dropdownlist with different options, when I choose one of them the clip loads 3 images directly and loads them. I want to load them one at a time with a pause and loaderclip between...

Here's my ActionSript for the dropdownlist:


Code:
on (change) {
import mx.utils.Delegate;
var theXML2:XML = new XML();

theXML2.ignoreWhite = true;
theXML2.onLoad = function() {
var nodes = theXML2.firstChild.childNodes;

for(i=0;i<nodes.length;i++) {

imageCon = createEmptyMovieClip("holder"+i, i);
imageCon.loadMovie(nodes[i].firstChild.nodeValue, "holder"+i);
var total = getBytesTotal();
var loaded = getBytesLoaded();
setProperty("holder"+i, _y, 50);
setProperty("holder"+i, _x, 100 *i);

// I have no idea what to do here...

setProperty(_root.imgLoader, _y, 138);
setProperty(_root.imgLoader, _x, 128 + (i*100));
_root.imgLoader.gotoAndPlay(2)
_root.Percent = ((loaded/total)*100) + "% loaded";
}

}

theXML2.load("models.php?sid=" + (this.value+1));
}
the XML2 string containes image addresses

Also, the last thing in the actionscript "theXML2.load...." can I (when the dropdown loads it's data) set specific value for each addItem? As it is now it just sends the viewer to models.php?sid=1,2 or 3, but I want it to send it to models.php?sid="database-id"..

This code loads data to the dropdown:


Code:
seasonDrop.addItem(". . . . .");
import mx.utils.Delegate;
var theXML:XML = new XML();

theXML.ignoreWhite = true;
theXML.onLoad = function() {
var nodes = theXML.firstChild.childNodes;
for(i=0;i<nodes.length;i++) {
seasonDrop.addItem(nodes[i].firstChild.nodeValue,i);
}
}
theXML.load("collections.php");
the XML looks like this
<?xml version="1.0"?>
<models>
<item>AUTUMN 2007</item>
<item>SPRING 2008</item>
<item>SUMMER 2008</item>
</models>In the end I also want these loaded images (thumbnails) to be clickable, so maby I just have to erase all and start over?
Thanks!!

Mikeey

Wait Multiple Loading Images: Loader
I would like to load different images with Loader object and put them in an Array.

1° QUESTION: can I use only one Loader object to load multiple images or I have to use one Loader object for each loaded image?

This array is the base images collection from which I'll generate new Bitmap objects.
My problem is that I have to wait the complete loading process before I can access to BitmapData.

2° QUESTION: How can I do that?

Thanks a lot

Loader Dies After 6 Or 7 Times Of Loading Images?
I have 8 thumbnails that call a local variable loader to load 8 different full-size images.

For some reason as soon as I'm done viewing all 8 images and go back to see the second or third one, i'm getting a width and height of 0 and the image isn't on the screen.

It's the same function being called over and over.

any ideas why it would just stop working even though it's calling the onProgress, downloading bytes, and calling on onComplete handler?

Problem In Loading The Images Via Loader Component
Hi,
i am preparing a photo gallery, and load all the images by using the loader component, the problem i am facing is that

1.when i upload this photo gallery on a website, these pictures will take time to be appear.and during this time only the blank screen is appearing.

2. if i place the image having low resulotion, on first time appearing the the images comes out off the boundries of the layout/loader component.

i try to set the image size as the size of the loader. it is still not working, and the seconed thing is that i want a preloader on this gallery, as this gallery is a sub movie clip of the main file.

So please help me out.

Wierd Problem When Loading Images Using Movie Clip Loader Class
Hello all... I'm having a bit of a wierd problem; i'm using the movie clip loader class to load images dynamically into a blank MC on my stage; but when they load in they are 200% wider than they should be. always 200%. always the width. It's very annoying because i want to use the same MC to hold different images (which will be loaded dynamically using xml) I've written some code which resizes the images proportionatlly (baaaad spelling (i think)!) but i'm having to 'trap' the first loaded image and divided the width of the mc by 200 (in the onLoadInit function) so that it displays correctlly, AND THEN make sure subsiquent images loaded aren't gonna divide the width of the MC by 200 (as it has alreay been done when the first image loaded)

i have managed to kinda fix it, but it seems buggy and wrong. Has anyone aver encountered this? Any one know any better solutions?

Why Must Loader SWF's Be In IE Cache?
Trying to understand logic behind this so I can work with dynamically loaded swf content and preview it in the Flash IDE. The SWF's are located on a website to simulate user download speed.

When I use a Loader method to load and preload a series of SWFs nothing happens when previewing in IDE- no trace on Load event, ProgressEvent , nothing. The swf runs fine in browser or sandbox (loads each swf).

If I load each SWF in IE (not Firefox) and *then* preview in Flash IDE the SWF's pop up fine and trace shows they are being accessed from cache not the URL - spoils the fun of seeing the progress indicator!

Is there a way to make this happen in IDE?

MX:Cache - Please Cache The Images
Hello,

I load jpegs into a MC for a photography website. The images should cache in the browser (plenty of space allocated) but they do not. The images are loaded by replacing the previous image in the MC - so if I want to view a previous image I must load it into the MC again.

However, this should not be a problem from what I understand.

I use a Mac and IE 5 - I know it works on a PC!!

Does anybody else know of any issues relating to non-caching on a Mac??

Thanks in advance for your help.

Osc

About Cache And LoadMovie/removeChild/addChild/Loader.load/sharedLibrary
I am curious about the cache theory

if there's a way to manually delete the cache?

I know there's a "unloadMovie" seems to work like that

did that function still working ?

and I know to add random number after the URL to load new

movie/url every time.

Cache Images
PLEASE HELP!!!

Im using the "loader" component to load/display images on my site. The images are somewhat large at 74k-350k causing serious delays/lag when viewing. I was wondering if it were possible to preload/cache all images when the site launches so that it may run smoother. Is this possible using the loader component?

Thanks in advance for your help!

Don't Cache Images
I'm loading the same image into an empty movie clip over and over again. I want the image to be properly loaded each time rather than using the cached version as the image changes (it is updated by a webcam). So to do this I'm using:

ImageContainer.loadMovie("/Image.jpg?" + random(9999999));

but this doesn't seem to work as the image is exactly the same each time it loads (Flash MX04 Pro)

any ideas

thanks all

Don't Cache Images
I'm loading the same image into an empty movie clip over and over again. I want the image to be properly loaded each time rather than using the cached version as the image changes (it is updated by a webcam). So to do this I'm using:

ImageContainer.loadMovie("/Image.jpg?" + random(9999999));

but this doesn't seem to work as the image is exactly the same each time it loads (Flash MX04 Pro)

any ideas

thanks all

Is It Possible To Cache Images?
Hi everyone,

I try to create Images Gallery website with Flash, but it's slow down. I used XML to store the path of images. My site has 2 buttons( previous and next button) to navigate across images. I put an instant movie in stage and use loadMovie(url) method to load Images in it. When I navigate to previous image that I navigated before, it's always reload. I want to ask you is it possible to cache images? it can be loaded one times and reused?

Please give me some advice.

Here my code:


ActionScript Code:
function loadXML(loaded) {
 if (loaded) {
  xmlNode = this.firstChild;
  image = [];
  description = [];
  total = xmlNode.childNodes.length;
  for (i=0; i<total; i++) {
   image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
   description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
  }
  firstImage();
 } else {
  content = "file not loaded!";
 }
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
 
function nextImage() {
 if (p<(total-1)) {
  p++;
  if (loaded == filesize) {
   picture._alpha = 0;
   picture.loadMovie(image[p], 1);
   desc_txt.text = description[p];
   picture_num();
  }
 }
}
function prevImage() {
 if (p>0) {
  p--;
  picture._alpha = 0;
  picture.loadMovie(image[p], 1);
  desc_txt.text = description[p];
  picture_num();
 }
}
function firstImage() {
 if (loaded == filesize) {
  picture._alpha = 0;
  picture.loadMovie(image[0], 1);
  desc_txt.text = description[0];
  picture_num();
 }
}


Thanks,
Best regards,

Problem With Cache And Images
hi there,
i am almost new to flash....i am one step far from publishing my first flash-simple-website but found out a little problem. that is....this site displays a slideshow as soon as it loads. jpegs are external files. sometimes i need to update the pictures because it is a photographer's website. i saw that evenif i upgrade the image files via ftp , new imagefiles that have the same name of old files are not displayed and site keeps displaying old images cached in local pc.
is there any way to avoid this?? i would like that everytime users connect to this website, any image is stored and saved locally.
thanks in advance!!
daniele

Getting Flash To Cache Images
Hi Everyone,
This may be a stupid question that needs to be moved to the stupid question section but here goes...

I completed the tutorial for the carousel but I noticed that the first time a visitor views the page, the images are slow to load. preloading does not seem to help. Is there any way to get flash to cache images BEFORE an MC is even loaded.

example here: http://www.WhoBallyhoo.com/index2.html
(click on performers)

thanks!
C

HELP Cache Problems With Images Through LoadMovie
I have a movie that attaches a movieclip through attachMovie, and inside that movieclip I call it to load an image file. My first publish, the image loads fine, I close the movie, clear my Internet explorer Cache, then I open photoshop to change the image, and save. The problem comes here. To make sure everything is cleared, I clear the Cache from IE again, then i proceed to run the movie. With the binaries in the Image changed(changing the image in photoshop), i try to load the modified image, but the modified image won't load. But now when i replace the modified image back to the original image, clear the cache, then run the movie again, it loads correctly.

There's something that's not clearing inside the computer that flash constantly keeps looking for the same information. Does anyone know how to help me on this one?

We use attachMovie to load the movieclip(MC1), we load the image inside a MC that's inside MC1, and then when MC1 finishes playing(._currentframe == ._totalframe) we do removeMovieClip.

I've tried this several times, and there are no changes. I even went on different computers and tried it, and the same problem occurs. Can someone help me?

I WANT Flash To Cache Dyanmic Images.
Hey guys, I've got a flash that is pulling dynamic images from a database in SQLserver2005 and I want to know if there is a way flash can cache these images. It gets the image by a link to the aps data bae like http://www.foo.com/fooAPI/GetfooImage.aspx?foo_ID=1 and if you opened this up in a browser it'd be an image.

The flash will cache images that were loaded from a directory no problems.

[F8] Preload Images To Browser Cache
I have what I hope is a simple question. If I use a flash movie on one page to preload external images, are said images preloaded to the browser cache, much as they would be javascript? Thus making subsequent site pages load faster? I have large background image files on two pages and am looking for a non-js preload method. CSS is alternative of course, but it causes the front page to remain in loading status longer.

Thanks!

[F8] Preloading Images Into Cache With Javascriptch3e
Hi,

I just would like to know if this works. I've tried it on a site, but I am not sure if it works properly.

What happens is I load a list of images into my project Via XML, however I want to load them into cache, before my flash even thinks of loading them.

Here's the JavaScript that I think loads into cache:

Code:
<script type="text/javascript">

if (document.images)
{
pic1= new Image(187,187);
pic1.src="images/DIG2_2900.jpg";
pic2= new Image(187,187);
pic2.src="images/DIG2_2750.jpg";
pic3= new Image(187,187);
pic3.src="images/DIG2_2751.jpg";
pic4= new Image(187,187);
pic4.src="images/DIG2_2765.jpg";
pic5= new Image(187,187);
pic5.src="images/DIG2_2752.jpg";
pic6= new Image(187,187);
pic6.src="images/DIG2_2899.jpg";
pic7= new Image(187,187);
pic7.src="images/DIG2_2764.jpg";
pic8= new Image(187,187);
pic8.src="images/DIG2_2763.jpg";
pic9= new Image(187,187);
pic9.src="images/DIG2_2760.jpg";
pic10= new Image(187,187);
pic10.src="images/DIG2_2753.jpg";
pic11= new Image(187,187);
pic11.src="images/DIG2_2898.jpg";

}
</script>

Can anyone give me some insight if you think this will work.
Thanks

Does Flash Locally Cache Images?
hi there,

Most web browsers have local caching capabilities for images and other media.

How does a standalone or browser-embedded flash player go about caching?
Is there any media caching at all?

(not a MMCentral embedded player, which has it's own caching API)

cheers

Preloading Images To Browser's Cache
Hi,
I'm working on a flash gallery project where images are loaded through xml file.I have some buttons in the gallery for different categories of images to be shown. Is there a way to preload images to browser's cache prior to them being called.?,I'm using AS2.
Thanks in advance...

AS 2 Prevent Images To Come In Users Cache
Hi,

I m making a flash dynamic gallery this time i will have to prevent images to come in the users cache as the images are copyrighted

Can anyone Here tell me can i prevent images to comein the users internet cache

Need To Force A Directory Of Images Not To Cache
I have a flash banner ad that calls the images it uses from outside of the movie. This keeps the flash file size down and allows for easy updating of the rotating images in the movie as I only need to upload the new images.

My problem is that I suspect the users browser is caching the images and unless they clear their cache the new files are not seen upon entry to the page.

How can I prevent these images (they are in their own directory) from not being cached on the users computer but are called every time they are accessed?

I understand that I can write code and script so the page will not be cached but these images are not called from the the page but rather from the flash movie. Here is the actionscript that I am using right now to load the pics with "imageholder1" as the movie clip in the frame.

loadMovie("http://www.saylorvillebaptist.com/images/banners/flash/2.jpg", "imageholder1");


Thanks for the help.

Cache'ing Images Loaded In A Flash Movie...
K, i'm making a website that needs to display previews of various items of clothing. Now that we've got a fair sized stock of different kinds of clothes, the flash file is gett very large. I have decided to create a movie clip that when you roll over a button, it loads an external jpg. My problem is that its not loading the right size...like, i gotta make my movie clip about 7x9 pixels to accomodate a picture 338x450 pixels...how can i make them match up? or at least be centered so i don't need a new movie clip for every pic. My problem tho, is that when you roll out, it unloads the movie...so, it would suck major bandwidth if i let people run their mouse over the pics like a hundred times. Anyone got ideas for me?

Making Flash Not Cache Images That Are Loaded Into It...
Hey all,

I currently have a flash file that loads external images from my webserver. The flash file is here: http://usu.csun.edu

What it does is load external images for the small buttons and the larger image. The thing is it will cache these images and when I change them they stay cached. So the flash file calls main1.jpg (a picture of a cowboy) and then I overwrite main1.jpg with a different image but also called main1.jpg (a picture of stars) it will keep loading the cached image of the cowboy.

I have put Meta tags in the actual HTML to not cache, but those images are still cached. Is there some kind of action script or something to tell my flash file not to cache those images?

Thanks for any help you can give me.

-Daniel

Preloading Images To Browser's Cache Through Xml File
Hi,
I'm working on a flash gallery project where images are loaded through xml file.Is there a way to preload images to browser's cache prior to them being called with a movieclip.?,I'm using AS2.
Thanks in advance...

Preload Multiple Dynamic Images To Cache In Flash Mx
I have made a dynamic xml gallery in flash, and am trying to preload all the dynamic images before the movie plays, so the user only has to only wait at the beginning of the movie, and not while each individual thumbnail is clicked.

Al the moment I have
preload_mc.loadMovie("pics/br_img_01.jpg" ;
preload_mc.loadMovie("pics/br_img_02.jpg" ;
preload_mc.loadMovie("pics/br_img_03.jpg" ;
.. and so on... the images load into the mc, but when they are called when the user clicks on the thumbnail, they take time to load.

Is there any way that i can preload the images into the users cache? there will be about 30 image in total.

thanks Jane

Preload Multiple Dynamic Images To Cache In Flash Mx
I have made a dynamic xml gallery in flash, and am trying to preload all the dynamic images before the movie plays, so the user only has to only wait at the beginning of the movie, and not while each individual thumbnail is clicked.

Al the moment I have
preload_mc.loadMovie("pics/br_img_01.jpg" ;
preload_mc.loadMovie("pics/br_img_02.jpg" ;
preload_mc.loadMovie("pics/br_img_03.jpg" ;
.. and so on... the images load into the mc, but when they are called when the user clicks on the thumbnail, they take time to load.

Is there any way that i can preload the images into the users cache? there will be about 30 image in total.

thanks Jane

Simple Loader Fails When Loading In An .swf Containing The Loader.
Sorry for the complicated topic. I got a .swf that loads in other .swfs. Rather than figuring out how to make a loader for loading .swfs I thought I'd just use a simple loader in the .swf I'm loading.

However, it doesn't work. It starts fully loaded but doesn't finish. Heres the AS:

ActionScript Code:
_root.stop();
PercentLoaded = _root.getBytesLoaded()/_root.getBytesTotal()*100;
if (PercentLoaded != 100) {
    bar._xscale = PercentLoaded;
} else {
    _root.play();
}

Anyone got a clue? Or would anyone be willing to point me in the direction for a very simple .swf loader.

thanks!

Simple Loader Fails When Loading In An .swf Containing The Loader.
Sorry for the complicated topic. I got a .swf that loads in other .swfs. Rather than figuring out how to make a loader for loading .swfs I thought I'd just use a simple loader in the .swf I'm loading.

However, it doesn't work. It starts fully loaded but doesn't finish. Heres the AS:
ActionScript Code:
_root.stop();PercentLoaded = _root.getBytesLoaded()/_root.getBytesTotal()*100;if (PercentLoaded != 100) {    bar._xscale = PercentLoaded;} else {    _root.play();}


Anyone got a clue? Or would anyone be willing to point me in the direction for a very simple .swf loader.

thanks!

How To Load (and Cache) Series Of Images Detecting Last Downloaded Image
Hi Friends
Intro: I am developing a slideshow kind of project with all heavy images. If I embed it, the movie becomes deadly heavy to download n play; and when i am reading the images everytime from outside (thru LoadMovie) customer is not liking it ... so that's the background.

Work-around: I embedded 1st image and then calling other images thru LoadMovie.

Expectation: when the user is reading the very first slide, in the background Flash should automatically download the forthcoming movies and get them cached. I am able to write the code for downloading single image on the fly i.e.

code:
function createMuvi(siraj)
{
_root.fordisp.createEmptyMovieClip(siraj);
this._x = 890;
this._y = 120;
this._xscale = 10;
this._yscale = 10;
this.loadMovie("images/" + siraj + ".jpg");
}
//when calling...
createMuvi("pic6");


.........now I need to download the complete series images (pic1.jpg, pic2.jpg.... picN.jpg) based on detecting which was the last imaged downloaded. This is it I would really appreciate the helpful gesture.

Thanks,
Siraj

How To Load (and Cache) Series Of Images Detecting Last Downloaded Image
Hi Friends
Intro: I am developing a slideshow kind of project with all heavy images. If I embed it, the movie becomes deadly

heavy to download n play; and when i am reading the images everytime from outside (thru LoadMovie) customer is not liking it

... so that's the background.
Work-around: I embedded 1st image and then calling other images thru LoadMovie.
Expectation: when the user is reading the very first slide, in the background Flash should automatically download the

forthcoming movies and get them cached. I am able to write the code for downloading single image on the fly i.e.

ActionScript Code:
function createMuvi(siraj)
{
    _root.fordisp.createEmptyMovieClip(siraj);
    this._x = 890;
    this._y = 120;
    this._xscale = 10;
    this._yscale = 10;
    this.loadMovie("images/" + siraj + ".jpg");
}
//when calling...
createMuvi("pic6");
.........now I need to download the complete series images (pic1.jpg, pic2.jpg.... picN.jpg) based on detecting which was the

last imaged downloaded. This is it I would really appreciate the helpful gesture.
Thanks,
Siraj

Lag Prior To Start Of Movie
What are the possibilities that can cause lags in Flash movies?

I have a flash movie that is around 300k in size. It is pretty graphics intensive and also has a looping sound running in the background and streaming sound in the beginning.

After the preloader (before the streaming sound clip), there is always a 4 seconds lag before it gets to the next scene. Can this be caused by the streaming sound clip?

Also whats the benefit of setting the fps to a higher number rather than a smaller one ie 12? Could the higher fps movies slow down certain computers?

Any advice would be appreciated.
Thanks

Actionscript In Versions Prior To Flash5
I've created a flash five user interface utilizing the tellTarget action in conjunction with frame labels on various movie clips. I'd like to output the movie in a flash 3 &4 version. Is this possible? Also I could use a bomber Flahs version detection script? Any ideas?

FileUpload Prior To Flash Player 8
Hello folks

Pitching something for a client who is keen to stick to Flash Player 7. Am I correct in thinking that there's no direct support within Flash Player 7 for file upload from a .swf within a browser? The help files note that the "FileReferenceList" API is Player 8 onwards?

If this is the case are there any solutions for file upload with Flash Player 7. I just need to know if it -can- be done (although any links/details welcome of course!) so I can advise appropriately. I kind of hope not, particularly if it's some kind of hideous Flash/Javasript/HTML kludge .. yeuch!

Thanks
J.

Eliminating Blank Space Prior To Load
howdy,

i've built a site with a few simple swf files embedded in it. the background of the site is a dark blue, and prior to each swf loading there is a white space where the swf will be. these are small files, so the blank space only lasts for a moment. i want to eliminate it entirely.

any ideas?


thanks...

tbs

Determine Size Of JPG Prior To Load Completion
is it possible to determine the size of a jpg you are loading into flash before its finished loading?

ive seen sites where an image area resizes itself before displaying a new photo.  anybody do this before?

i know that technically i could save my images as swfs and include size info in frame 1 of the movie, or something like that.  but id rather deal with plain jpgs if i could.

ideas?

thanks!

Streaming Issue In Flash MX Player (versions Prior To 6,0,29,0)
Hi All,
Following is the issue with MX player. Description is too large but worth to read. It contains some links to prove the problem associated with MX player.

Issue:
When loading media into Macromedia Flash Player 6, the media
continues to load even if Macromedia Flash Player 6 makes additional requests for media (i.e. .swf, .jpg or .mp3 files), or if the user leaves the web page.
This issue affects loading various media types, including:
· Sounds
· Video
· Images
· Other Flash movies

As per the below link Macromedia did release an upgraded player which was supposed to resolve the issue.

http://www.macromedia.com/support/fl...te_activex.htm

However, we find this bug still persistent in some case even after upgrading the Flash Player to version 6,0,65,0. In our case, we have a page with a link that opens a new pop-up browser window containing a heavy swf file embedded into it (around 2-3 MB). We have many such pages and links through out our project.

On repetitive opening and closing the pop-up browser window (containing the streaming swf files) the bandwidth gets clogged and as a result the application running in the parent and the pop-up window hangs. The swf's seems to stream even after closing the browser resulting in multiple streams and bandwidth hog.

You can see a test sample reproducing the bug at the following link:
(Tested on: IE6, Win2K, Flash Player MX plug-in version: 6.0.65.0 Description: Macromedia Flash Player 6.0 r65)

http://managelive.com/test/test/sample/sample.html


We have found a workaround for this which seems to work well. Instead of loading the swf directly in the pop-up window, we have loaded one dummy swf in the pop-up. Then load the original swf in a movieclip in the dummy swf using loadmovie command. On clicking the close button of the pop-up while the movie is streaming, we have loaded another swf (blank swf - 1 Kb size) in the movieclip to stop the previous download. This seems to stop the streaming of the on going heavy swf movie.

Sample link is shown below with the workaround implemented:
(Tested on: IE6, Win2K, Flash Player MX plug-in version: 6.0.65.0 Description: Macromedia Flash Player 6.0 r65)
(Use the close button in the flash to close the pop-up window)

http://www.managelive.com/test/test/sample1/sample.html


However, the problem arises if the user chooses to close the pop-up window by clicking on the close button present on the taskbar of the window or by clicking Alt+F4. This action does not guarantee stopping the streaming of the swf resulting in the application crashing after multiple requests (as low as 2 to 4 times).
To see an example click on the below link:
(Use the close button of the taskbar or Alt+F4 to close the pop-up window)

http://www.managelive.com/test/test/sample1/sample.html


We would like to know if there is any direct solution to the streaming problem. i.e the streaming should stop if the user closes the browser window directly through the taskbar close button or Alt+F4?

We are eagerly awaiting your feedback on this issue.
Thanks in advance.

Regards,
Suhas

Determining Size Of External Files Prior To Load
Wise codemonkeys,

I'm looking for a way to determine the size of an external file before I load it via movieClipLoader. I'm aware that you can get this information via any of the listener events associated with MCLs, I've tried going that route and discovered that I need to find out the file size before the load starts. Basicly I have to tally the total file size of 100ish images for a preloader and using a listener means that some images start loading and reporting progress before all of them have reported their total size, resulting in inaccurate progress stats. I'm hoping there's some AS code I've never heard of that will work, but I'm open to php or javascript solutions if they're at all practical. Thanx.

-redSky

Loading Swf's In The Cache
Can anyone tell me how do i load the swf's used in my website in the cache even before they are called for.

IE Keeps Loading From Cache
I always have problems with IE when developing Flash applications.

Problem
For some reasons, IE just won't reload my swf file even if I
1. updated the swf on the server.
2. cleaned the cache, history, and even cookies
3. reboot my computer

I really have no idea where Ie is loading the old swf from...


Can anyone help mw with this issue?

[Q] Why Not Loading From The Cache?
Not much of a preloader fan, I must say...

Okay... Here is a quickie script that does preloading... It works fine, I think...
But if I reload the page by pressing F5 in IE, the movie starts all over and you can see the preloader text everytime you refresh the screen...

Isn't IE suppose to load it from the cache if it is loaded once???

Here is the URL you can check...
http://cyanblue.flashvacuum.com/tmp/ProgressBar.html

and here is the AS I am using in frame 1...

ActionScript Code:
var _l = this.getBytesLoaded();
var _t = this.getBytesTotal();
var _p = Math.ceil(Math.round(_l / _t * 100));
this.progress_txt.text = _l + " / " + _t + " : " + _p + "%";
if ((_l >= _t) && (_t > 20))
{
    trace("LOADED");
    this.gotoAndPlay("LOADED");
}
and in frame 10...

ActionScript Code:
this.gotoAndPlay(1);
Any idea???

Loading / Cache
If I use a MovieClipLoader to preload an image, say, a JPG; is that JPG then already cached if I were to view it on a regular HTML page, or does FLash have its own cache which is seperate to the browser's?

Copyright © 2005-08 www.BigResource.com, All rights reserved