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








Fade Dynamic Jpgs In And Out


Okeedokee, I need some assistance...

I am pulling up to 5 jpgs (sometimes 5, sometimes less) into a flash movie dynamically (01.jpg-05.jpg). I am wanting to use actionscript to fade them in and out (very slideshow-esque) when each has loaded. If there isn't a "04.jpg", then it would go back and load the 01.jpg again. Get it?

I have tried to fade them without actionscript using a cover on top of the jpegs, but would like to learn the proper way via actionscript.

I have looked at the sample file in the FlashMX App folder for dynamic images, but that controls the images via buttons. Any help would be GREATLY appreciated.

-m




KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 08-11-2003, 01:24 PM


View Complete Forum Thread with Replies

Sponsored Links:

[MX04] Loading Dynamic Jpgs With Fade--cache Issue
hello. i'm using flash mx and working on this photographers website and have cut and pasted and tweeked a little code to load jpgs dynamically with a fade transition between the outgoing and incoming jpg. problem is that the first time you go to the site the images aren't cached and so the images don't fade in the first time. i would like to change that so everything fades accordingly.

my guess is that i need some kind of getBytesTotal() script to make sure that each image gets downloaded to the users cache first before it fades in.

but i'm not sure how to append the code i have with that script. i'm still definitely trying to grasp this stuff and am more of a copy/paste/tweaker of script than a write my own (although i'm working on it). any help would of course be greatly appreciated.

the website can be viewed here: www.ericpercher.com

and here is the script i'm working with:

jpgArray = new Array("images/image_0.jpg", "images/image_1.jpg", etc.)

//create two MovieClips that will hold the loaded files
this.createEmptyMovieClip("target1",1)
target1._x = 14;
target1._y = 76;

this.createEmptyMovieClip("target2",2)
target2._x = 14;
target2._y = 76;


//load first movie into clip 1 to start with the first image
target1.loadMovie(jpgArray[0]);

//set target 2s alpha to 0 so it can fade in
target2._alpha = 0;

activeTarget = target1;
currentIndex = 0


this.onEnterFrame = function() {
if (obj1._alpha > 0) {
obj1._alpha -= 10;
}
if (obj2._alpha < 100) {
obj2._alpha += 10;
}

};


button_0.onRelease = function() {
gotoAndStop( "dis0" );

if (activeTarget == target1) {
obj1 = target1;
obj2 = activeTarget = target2;
} else {
obj1 = target2;
obj2 = activeTarget = target1;
}


obj2.loadMovie(jpgArray[0])

obj1.onEnterFrame = function () {
if (this._alpha <=0 ) {
this.unloadMovie();
delete this.onEnterFrame;
}
}
};

then i have multiple buttons (button_1, _2, etc) which use the code directly above and load the next image in the array. thank you.

View Replies !    View Related
Fade In And Fade Out External Jpgs With Preloader
Hi,

I’ve spent ages doing a search on this but haven’t, as yet, found exactly what I’m looking for.

I’m working on a large image gallery consisting of the usual thumb buttons. For speed, I’m keeping all the main JPGS in an external folder; these files load well, but the effect is not particularly attractive. I would like the images to fade in and out, and whilst the transition is taking place keep the viewer informed by way of a preloader (perhaps, just numbers from 1-100 in a box).

I don’t want to use XML – at least, not yet – as I want to keep things as simple as possible due to my level of AS knowledge (beginner).

This first fading effect looks perfect, but it’s continuous and doesn’t include a preloader. Could it be easily adapted? http://www.actionscript.org/forums/s....php3?t=107269

Any help would be very, very much appreciated.

View Replies !    View Related
Center And Fade Dyn Loaded Jpgs
here's what i'm trying to accomplish, this version is all hardcoded with tweens - ignore the logo animation screens:
www.eye-spy.com/gallery

here's what i have going w/xml + actionscript (no fade, not centered):
www.eye-spy.com/gallery/featured.html

here's the source code:
www.eye-spy.com/gallery/featured.fla

can anyone help please, not sure what to do next.

thanks for your time.

View Replies !    View Related
Fade In XML Loaded Jpgs And Text
I'm using the following XML script to load external jpgs and text. Is there a way to apply a fade-in for each of these items?
I would greatly appreciate any suggestions and/or thoughts on this problem.
Thanks, -elstrausso


slides_xml = new XML();
slides_xml.onLoad = startSlideShow;
slides_xml.load("slides.xml");
slides_xml.ignoreWhite = true;
//
// Show the first slide and intialize variables
function startSlideShow(success) {
if (success == true) {
rootNode = slides_xml.firstChild;
totalSlides = rootNode.childNodes.length;
firstSlideNode = rootNode.firstChild;
currentSlideNode = firstSlideNode;
currentIndex = 1;
updateSlide(firstSlideNode);

}
}
//
// Updates the current slide with new image and text
function updateSlide(newSlideNode) {
imagePath = newSlideNode.attributes.jpegURL;
slideText = newSlideNode.firstChild.nodeValue;
loadMovie(imagePath, targetClip);
}
//
// Event handler for 'Next slide' button
next_btn.onRelease = function() {
nextSlideNode = currentSlideNode.nextSibling;
if (nextSlideNode == null) {
break;
} else {
currentIndex++;
updateSlide(nextSlideNode);
currentSlideNode = nextSlideNode;
}
};
//
// Event handler for 'Previous slide' button
back_btn.onRelease = function() {
previousSlideNode = currentSlideNode.previousSibling;
if (previousSlideNode == null) {
break;
} else {
currentIndex--;
currentSlideNode = previousSlideNode;
updateSlide(previousSlideNode);
}
};

View Replies !    View Related
Using Fade Ins/outs For Externally Loaded Jpgs
Hello,

This is my first time posting. I recently discovered this amazing site while looking for flash help.
I came upon a very cool slide show sample that had smooth transitions fading in/out external jpgs.
I wanted to adapt this movie so that I could use it with image galleries that have thumbs. I have had no luck.
Any ideas?

All I want to do is have my externally loaded jpgs fade in and out when you click on a thumb.

Another issue....

I would love to know how to do is to have these images centered. I currently have two empty movieclips setup. One for horizontal images and one for vertical since I have two size of images for the most part. It would be far more practical if I could use some math to detect the size of the external jpg and than have it centered in that same movieclip.

Please note I am a complete actionscript dummy.

Thank you for any help.

View Replies !    View Related
Using Fade Ins/outs For Externally Loaded Jpgs
Hello,

This is my first time posting. I recently discovered this amazing site while looking for flash help.
I came upon a very cool slide show sample that had smooth transitions fading in/out external jpgs.
I wanted to adapt this movie so that I could use it with image galleries that have thumbs. I have had no luck.
Any ideas?

All I want to do is have my externally loaded jpgs fade in and out when you click on a thumb.

Another issue....

I would love to know how to do is to have these images centered. I currently have two empty movieclips setup. One for horizontal images and one for vertical since I have two size of images for the most part. It would be far more practical if I could use some math to detect the size of the external jpg and than have it centered in that same movieclip.

Please note I am a complete actionscript dummy.

Thank you for any help.

View Replies !    View Related
Dynamic JPGS, Dynamic Images, Load Image
Just a little not for those who have problems using dynamic loaded jpgs.
If you want to dynamically load some jpgs here is some code I picked up off the forum


Code:
//Step1
createEmptyMovieClip("img",0);
img._visible=false;
//Step2
img.loadMovie("test.jpg");
//Step3
this.onEnterFrame=function(){
BLoaded=img.getBytesLoaded();
BTotal=img.getBytesTotal();
percent=BLoaded/BTotal*100;
//Step4
if(BLoaded == BTotal && BLoaded>0){
img._width=726;
img._height=641;
img._visible=true;
delete this.onEnterFrame;
img._x=0;
img._y=0;
}
}
When you save your JPG in photoshop it gives you a few options for saving your jpg.
1) BASELINE (STANDARD)
2)BASELINE (OPTIMIZED)
3)PROGRESSIVE

It has to be a baseline image, for whatever reason. No clue!

View Replies !    View Related
Dynamic Flash Fade In Fade Out Slide Show
Hi,

Please suggest me tutorial for the fade in fade out slide show. i want to call images from xml or folder with fade in fade out. please help.

Thanks,
Anish

View Replies !    View Related
Dynamic Text - Fade In And Fade Out; Is This Doable?
All,


I've written a Flash file that reads variables from a txt and places these into a dynamic text box...I use setInterval to move from value to value. The movie works/looks fine, but I would like to jazz it up by having the text fade in and out of the dynamic text box (or slide in and fade out)....


My code, which appears in a single frame, looks like this:

// load the live update scores variables
function drawMe() {
loadVariablesNum("live_scores.txt", 0);
}

// load the variables defined in the drawMe function
var quitID;
quitID=setInterval(drawMe, 1000);

// set the counter
fscommand("allowscale", "false");
loadVariablesNum("player_stats.txt", 0);
count = "0";

// load the individual scores variables
function statMe() {
if (Number(count)==Number(numvars)) {
count = "0";
loadVariablesNum("player_stats.txt", 0);
} else {
count = Number(count)+1;
set("var", eval("var" add count) );
}
}
// load the variables defined in the statID function
var statID;
statID=setInterval(statMe, 5000);
stop();



Is there anyone out there who knows how to add fade in / fade out functionality to my movie? Any assistance would be greatly appreciated...thx in advance for your help...!



Regards,


Mike

View Replies !    View Related
Dynamic JPGS
I am currently working on a project and have to load JPGs in dynamically. I have created a movie clip to import to and the JPG imports. The only thing is that the points (0,0) are at the exact center of the location that I want it to import to. Can anyone help???

View Replies !    View Related
Dynamic Jpgs
i am dynamically loading jpg's onto my flash page with:

this.createemptymovieclip("imageholder",1)
imageholder.loadmovie("../images/bkg1.jpg")
imageholder._x=393.9
imageholder._y=147.1


it works fine but when i go onto the next or any other scene the photo is still there. how do i stop this happening?? im new to the dynamic loading of stuff.
cheers

View Replies !    View Related
Updating Dynamic .jpgs
I've got a movie that displays 5 jpgs loaded with loadmovie, and five buttons that call on coldfusion scripts in new windows that allow the user to update the .jpgs on the server. All working fine.

Only problem, once the user has uploaded new files to the server, the flash file doesn't register that there are new files...even a new button that loads the jpgs into the movie again displays the old .jpgs...it doesn't register that there are new files on the server.

Any idea how to fix this???

View Replies !    View Related
Multiple Dynamic .jpgs
G'day guys, desperately need help with this!!:

I've got 5 blank movies, and in the frame, I've got 5 lines of code loading the 5 .jpgs into their respective blank movies.

Weirdly though, they don't all load....and theres no pattern to which ones load and which ones don't. When I close down IE and load the page again, it acts differently.

I'm thinking maybe flash can't handle loading five different file at once...? Any ideas?

View Replies !    View Related
Dynamic Loads Of Jpgs ?
HELP MEEEEE ....please !!

i can manage to load images (jpg or swf)dynamicly with
loadMovie command ...

(ex : loadMovie("img/" + image, "holder")

but not all images !!! :

sometimes it works with some images ...
... and smoetimes doesn t works with others !!!

I DON T UNDERSTAND !!!

is there any "good" image format ??
.. or a better way to do this ??

thanks ..

View Replies !    View Related
Dynamic JPGs And Cache ...
Hi there !
Well, I've got the following problem:
I've made a ticker based on dynamic jpg host on my website.
The ticker always point to the same jpg name (imageXX.jpg) and I just have to change the jpg to update my ticker.
The only problem is that Flash seems to got a "cache" and don't update automaticly the jpgs unless I clear my browser (Explorer) cache.
Is there a way to force Flash to clear the cache or reload "really" the jpg ?
Thanks a lot for you help.
Regards.

View Replies !    View Related
Swapping Dynamic JPGs
I'm building a band site in Flash MX. I have an area on the page where I will have a blank movie clip that I want to pull jpgs from a folder on the server. Here is the tricky part (well for me at least). I want the image to change to another image in the folder every 20 secs. I need the movie clip to just constantly be looping through the images in the folder swapping them with another every 20 secs. How do I do this?????

View Replies !    View Related
Dynamic Jpgs - Not Working
Actually, they are working for me, but not for everyone. I have a swf that loads external jpg's. Some people can see them, and others not. The users that can not see them, can see the movie, but not the jpg's. I'm guessing that they don't have Flash Player 6.

Should I put a detector to see if they have Flash Player 6, and then put an alternate movie for them? If so, how?

Or, is there something that I may be doing wrong? Could it be something other than the player?

Thanks,
gamist

View Replies !    View Related
Preloader For Dynamic JPGS? HELP
Hi,

I have built a dynamic slideshow in Flash MX that loads all thumbnails and images dynamically.

Since all thumbnails (over 100!) are loaded at once when the swf loads, it takes a lot of time with a modem connection.

Is there a way to create a preloader that includes the total amount of bytes of all thumbnails? I would like to have all pictures "in place" before the user proceeds to the actual slideshow.

Since the thumbs are located in a movie clip I tried to use "thumbs_movieclip.getBytesTotal()", but this only returns something like 20 bytes (only the mc, not including the jpg files).

I hope someone can help or at least tell me that it is absolutely not possible, so I can give up searching for a solution

Thanks,
Joepy

View Replies !    View Related
Dynamic Jpgs, Need A Bit Of A Boost, Please
I'm creating a site for a my mother as a mothers day gift, any help is greatly appreciated.

What I am attempting to do is use the loadMovie command to load a particular JPG based on a variable previously loaded.

Ideally, I'd have an image, home1, and a variable, homeLoaded. What I would like to be able to do is control that file name, home1 and change it to say home2 using the variable homeLoaded.

For example, I would be able to pull up home1.jpg based on the variable homeLoaded being equal to one. If I were to change that variable to 2, home2.jpg would be called instead of home1.

Is this even possible with Flash MX? Please help me somebody; I'm about done with this thing except for this one part.

Thanks in advance.

View Replies !    View Related
Preloading Dynamic JPGs
Hi,

I have a project with a bunch of JPGs loading dynamically into movies into separate SWFs in different levels for section graphics. It performs poorly over 56k, so I was thinking of having it preload all of the graphics into one level. I was thinking I could load each JPG into its own movieclip and have the alpha be set to zero until it is needed. What would be the best way to do the preloader ? Would I need to create a variable

totalBytes = getBytesTotal(clipone)+getBytesTotal(cliptwo).....

and compare that against something like loadedBytes ?

loadedBytesTotal = getBytesLoaded(clipone)+getBytes .....

If anyone knows of anything out there that already does a preload of dynamic images, a reference would be much appreciated.

TIA
colin

View Replies !    View Related
Dynamic Jpgs With Text
hi,

I am new to action scripting. what i need is a banner which takes images and text dynamically from a text file.

can anyone help?
my email is anshul@sampatti.com

thanks,

View Replies !    View Related
Dynamic Jpgs And Visibility
what i'm doing:

there are two empty mc on stage with _visibility=false.
i'm loading a jpg into each of them.
after loading, i re-position the mcs on the stage according to their width (which differs, cause the pics are different widths).
then i want them to become visible.


problem: i want them to become visible only after they have been re-positioned. but it seems that they become visible already when the jpg has loaded and only then they jump to their positions. that looks quite ****ty...

i told them at several points to stay invisible, but they won't listen...

any ideas ????

View Replies !    View Related
Dynamic Jpgs With Preloader
Hi guys,

I'm trying to write a script which will allow me to dynamically load images into a MC. I want the MC to tell me when the JPG has loaded so that it can be displayed on the screen.

I'd describe myself as a newbie rather than a novice. I can write preloaders and I can dynamically load jpgs. What I can't see to do is combine the two. I've seen other people dymanically load .SWF files which contain the image and preloader. I'd rather just load the image and have the same preloader for every image, if this is possible??

I hope this is clear?

View Replies !    View Related
Preload JPGs In Dynamic MCs
Been avoiding trying to get this to work all day, but it can't be quite as difficult as it appears.

I can preload my images fine, by placing this code on the holder:
code: onClipEvent (enterFrame)
{
if (this._url != _root._url && !this._url.loaded){

if (this.getBytesLoaded() >0 && this.getBytesLoaded() >= this.getBytesTotal()){

/* Get mc name of currently selected thumb. */
nImage = new String (_level0.variables.currentImage);

/* Remove first 30 characters from nImage, and assign result to _level0.n. */
_level0.n = Number (nImage.slice(28, nImage.length));

/* Write loaded value to image var. */
_root["image" + _level0.n + ".text"] = "loaded";

/* Perform loaded action only once. */
if (p <= 0){
trace(this._url add " = loaded");
if (_level0.variables.imageLoader != inactive){
_level0.imageLoader.play();
}
if (_level0.variables.imageLoader == active){
_level0.imageLoader.gotoAndStop(1);
} else if (_level0.variables.imageLoader == inactive){
_level0.imageLoader.gotoAndStop(1);
}
}
p = p+1;
trace(p);

delete this.onEnterFrame;
_level0.loadmessage = "Done.";

} else {

if (this.getBytesLoaded() >0){

var kilobytes = Math.ceil(this.getBytesTotal() / 1000);
var percentLoaded = Math.ceil(this.getBytesLoaded() / this.getBytesTotal() * 100);
_level0.message.html = true;
_level0.loadmessage = "Loading ... " + percentLoaded + "%";

}
}
}
}


However, I cannot get a preloader working for my thumbnails holder. I must admit, I'm unsure WHAT EXACTLY, I need to load exactly, as when I trace it using 'this', I get the swf path.

Is there a way to determine the percentage progress of all the dynamic jps thumbs, that are loaded into _root.thumbnails?


Thumbnails creation script:
code: for (i=0; i<imagesTotal; i++) {

/* Assign a mc name to each of the childNodes for future reference. */
picHolder = this.firstChild.childNodes[i];

/* Create a movie clip for each thumbnail, and assign a temporary thumbholder for them. */
thumbHolder = thumbnails.createEmptyMovieClip("thumbnail"+i, i);

thumbHolder._y = i*spacing;

/* Set the values for each newly created movieclip. */
thumbHolder.title = picHolder.attributes.title;
thumbHolder.image = picHolder.attributes.image;

/* Create new movie and then load the thumbnails into it. */
thumbLoader = thumbHolder.createEmptyMovieClip("thumbnail_image" +i, i);

thumbLoader.loadMovie(picHolder.attributes.thumb);

/* Create textfield for each image. */
_root.createTextField("image"+i, 0, 0, 0, 0, 0);

/* Create textfield for each thumb. */
_root.createTextField("thumb"+i, 0, 0, 0, 0, 0);

/* Execute thumbnails preload function. */
thumbnails.onEnterFrame = function(){
// Trace each thumbnail
trace(thumbnails["thumbnail"+i]);
preloadThumbs();
}

trace(thumbnails["thumbnail"+i]);

/* Determine how many thumbnail preload backgrounds to display (maximum of 10 at a time). */
for(j=1;j<=10;j++){
if (imagesTotal >= j){
_level0["thumb_loader"+j].gotoAndPlay(2);
}
}

if (imagesTotal >= 11){
_root.upanddown.gotoAndPlay(2);
}

/* Create press function for thumbnails. */
thumbHolder.onPress = function() {
_root.selection.gotoAndStop(2);

/* Determine the thumb alignment. */
if (thumbAlign == "horizontal"){
_root.selection._x = this._x + Number (215);
}
if (thumbAlign == "vertical"){
_root.selection._y = this._y + Number (21);
}
}

/* Create release function for thumbnails. */
thumbHolder.onRelease = function() {

/* Load image into container. */
image_mc.loadMovie(this.image);
_level0.title_txt.text = this.title;

/* Get mc name of currently selected thumb. */
_level0.variables.currentImage = this;
vImage = new String (_level0.variables.currentImage);

/* Remove first 30 characters from vImage, and assign result to ImgStr. */
_level0.ImgStr = Number (vImage.slice(28, vImage.length));

/* Set variable with number of currently selected thumbnail. */
_level0.variables.ImgStr = _level0.ImgStr +1;
//_level0.variables.ImgStr = ImgStr;

/* Set loading message. */
_level0.loadmessage = "Loading ...";


};

}


I'd like to do this in Flash 6 compliant script, unless someone can persuade me into using ActionScript 2/Flash 7 script (lol, Jbum).

View Replies !    View Related
Preloader For Dynamic Jpgs
I am loading my jpgs dynamically into a movie clip and need a preloader for each one. How is this possible?

View Replies !    View Related
Is There A Way To Preload Dynamic Jpgs?
Has anyone come up with a way to preload jpgs that will be pulled into movie clips dynamically? i would like to avoid having to create separate swf's for each image, but don't want to lose the ability to have a percentage loader while the image is loading. some of the images are fairly large, and it would be unfair to slow modem if they saw no indication that the image was loading...

any ideas?

thanks

View Replies !    View Related
Dynamic Jpgs Not Working In Scrollpane
ok- i have an MC that contains both a dynamically loaded textfield and an empty MC into which i am loading a jpeg. now, it works fine until i link it to a scrollpane, then just the text shows up in the scrollpane and not the jpg. any help???
thx

View Replies !    View Related
LOADING .jpgs Into Dynamic Buttons
I'm a newbie, so this question might seem a bit basic, but I'm desperately trying to do the following, and would greatly appreciate any help, or pointers someone could share with me.

I'd like to load small thumbnail .jpg's for a image gallery dynamically into my flash animation. The reason is so that I don't have to edit the .fla later, just switch .jpgs on the disk. While I know I can load .jpgs into movieclips dynamically using loadMovie, I don't know how to turn those clips into buttons. Any ideas.

I'm sure this is super-easy, I just don't know how to do it.

Please help! Thanks!

Chris

View Replies !    View Related
Tween Dynamic Jpgs & Swfs
using the loadMovie function, to load jpgs.
Is it possible to tween the actual place holder, say an alpha fade in????

I have tried this, without any success. Because the place holder is just like any other movieclip, i dont see why the tweens dont work.

cheers

View Replies !    View Related
Trouble With Dynamic Jpgs.. Aarrgghh
hey!
i'm currently developing a trafic quiz, but i got trouble with my dynamic jpgs.. some how they dont show up in my container.
i'm doing it for offline use..

here's the code that loads the image:
loadmovie(eval("imagea"),_root.container);

i then have a MC named container and a variable called imagea.

if i change the line to:
loadmovie(eval("imagea"),"container");
then the image overwrites my movie..

help!

View Replies !    View Related
Loading 4 Dynamic Jpgs At The Same Time :-(
Hi, I'm using this script to load dynamic jpgs into my flash movie:
// (holderName is an optional parameter)
MovieClip.prototype.loadjpg = function(picName, holderName) {
// holderName can be passed in case needed for progress indicator
// if not passed, use 'holder' as default
var h = holderName==undefined ? "holder" : holderName;
this.createEmptyMovieClip(h, 1);
this._visible = false;
this[h].loadMovie(picName);
var id = setInterval(function (mc) {
if (mc[h]._width > 0) {
mc._alpha = 99;
clearInterval(id);
// may want to move this next line to the onComplete routine
// instead, if visibility is to be set after positioning
mc._visible = true;
mc.onComplete();
} else {
mc.onLoading();
}
}, 80, this);
};


In that piece of code, I assign a name to the holder movieclip if the user didn't pass one. Then I create a blank holder clip, set the main clip invisible (so that it won't show while its width is being detected), and use setInterval to check for loading complete. Instead of checking for getBytesLoaded(), I check for _width>0 because the _width property is not available until (up to) one frame after the jpg has been loaded.

So my question is this:

I load perhaps 4 dynamic jpgs at almost the same time, - it works great on my local machine but over the net nothing loads, - must be because the try to load at the same time and the blocks....

So how do I make some kind of check that only loads one jpg at the time and then remember the jps that have beeno knocking on to load?

if I make an array and then push every var thats comming to my function:

myNewPicholder.push(picName)

I would get the names and then maybe a loop that takes one at a time, - but it sounds a bit ... well, - not nice to do it like this, - what else can I do??

Regards

Godowsky

View Replies !    View Related
[F8] AOL And Loading Dynamic .JPGs Question
hi all.

having some trouble here with AOL and loading dynamic JPGs. i have researched and discovered that AOL converts JPGs to ART files and this leaves flash continually "looking" for dynamically called "JPG"s which will never arrive. my researched lead my to 2 solutions:

1. change the JPG extension to ANYTHING you want and change the file name that you are calling from flash to correspond. (ie myimage.xyz) flash doesn't care

i tried it, and it works.


2. (adobe tech note) set the MIME type of JPG files to generic binary MIME type on the server. now, i don't even know what this means AND they don't even show you how to do this. eventually found out how to do this by adding an .ataccess file to each directory that is holding JPGs to be accessed

i tried this, and it works too.


MY PROBLEM:
the site i designed uses code similar to what is pasted below. it allows me to track how much of the image is loaded, and when it is done. it works fine in all browsers EXCEPT AOL. i can get the images to load, i can get dynamic data of how much of the image is loaded but CANNOT get how large the image is in total. i've tried both of the above solutions, and the results are the same; total bytes = 0;


Code:
var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(this);
//
function onLoadProgress(_mc:MovieClip, loaded:Number, total:Number) {
tester2.text = "loaded = "+loaded;
tester3.text = "total = "+total;
}
//
stop();


a live test can be viewed here:
http://www.victoriadubin.com/tester2.html

ANY help would be greatly appreciated!

View Replies !    View Related
Some JPGs Do Not Show, Some Does At Dynamic Loading
I made little CMS for flash, and there is some articles.
in every article is images field and text reading from XML
and when you click on image, next image is loaded

I'm wondering why some of JPGs are shown, some not.
For example, there is 4 JPGs declared in XML, (with proper URLs, checked many times, and case checked too), when you open page, first is shown, ok you click, then second is shown, after that 3rd no, and 4th yes. I'm sure that that's about JPG file, because it always heppens on same JPGs, not about script, but I just missing something. Some other article, different order od happening (other JPG files)

I'm loading images with loadMovie class.
I know that images mustn't be compressed as Progressive.
Something more?

View Replies !    View Related
Dynamic Jpgs Not Loading In Some Browsers
Hey all -

I've designed a site that dynamically calls in jpgs into a swf. I've done it before on other sites and haven't had a problem. However on this site (www.jefftse.com), sometimes the jpgs load and sometimes they do not on IE on a mac. Which is bizzare. Why would it not work occasionally?

Has anyone else experienced this problem.

Any thoughts at all would help. Thanks in advance!

Nicole

View Replies !    View Related
Dynamic Photoshop Jpgs Don`t Work
View time ago i built a small file wich loaded some JPGS.

No Problem with that. Only that Photoshop JPGS were loaded but not displayed. All other JPGS worked.

Anyone heard of that ???

View Replies !    View Related
Duplicating A Movieclip That Contains Dynamic Jpgs
I dug around and found that duplicateMovieClip does not duplicate the movieclips dynamic content, but that is what I want to do. Whats the best way to achieve a similar result?

I tried loading the same jpg into another clip but there's a delay. So that's out.

View Replies !    View Related
Dynamic Jpgs, And Temp Internet Files...?
okay, so I have made a wee image gallery for a client who is all sensitive about her photos being stolen!
When you dynamically load a jpg into flash does flash download the image onto your pc separately, or is it all tied up with the swf?

Basically could you go into the temp internet files and find the .jpgs?

View Replies !    View Related
The Dynamic JPGs Loading And Sizing Problem
I want to dynamically load JPGs into a MovieClip by choosing from a list in a select box. The problem is I set width and height of MovieClip is (240,180) but every JPG has different width and height . How do I fix the JPG size into a MovieClip?

Any help would be greatly appreciated. Thanks.

softip

View Replies !    View Related
Fading(Alpha) Dynamic JPGS Via Actionscript
I need some assistance...

I am pulling up to 5 jpgs (sometimes 5, sometimes less) into a flash movie dynamically (01.jpg-05.jpg). I am wanting to use actionscript to fade them in and out (very slideshow-esque) when each has loaded. If there isn't a "04.jpg", then it would go back and load the 01.jpg again. Get it?

I have tried to fade them without actionscript using a cover on top of the jpegs, but would like to learn the proper way via actionscript.

I have looked at the sample file in the FlashMX App folder for dynamic images, but that controls the images via buttons. Any help would be GREATLY appreciated.

-m

View Replies !    View Related
Dynamic JPGs - Trying To Locate Sample Code
All,

I am working on Flash movie that will include the dynamic loading of JPG files, but I am having trouble locating sample code to see how this is done. If anyone can share an example, or point me in the right direction, it would be greatly appreciated. Thx....!


MIke

View Replies !    View Related
Dynamic Event Handlers OnLoaded Jpgs?
ok, so i've been trying to use dynamic event handlers for everything lately ever since i discovered them. but i've run into a problem. when i'm loading jpgs into a movie clip it erases the handlers that i put on them example:

movieClip.prototype.traceName=function(){
trace("this._name");
}
this.createEmptyMovieClip("pan_b",1);
this.pan_b.onEnterframe=traceName;
//this.pan_b.loadMovie("pann.jpg");

then when i load in the jpg into that clip it stops tracing. i can't even try and put the handler back on to the clip. Now i would be fine with this and try to find a different way if it weren't for the fact that if you don't use a dynamic handler and put it onto a created clip it will work. which makes me think there is a way its just probably some tricky syntax or something. i've been working on it for a while so i'm sure enough that its not a typo.
what i'm trying to do is check when it gets done loading into the clip so i can have it appear or whatever. onData.....
any help would be much appreciated,
thanks

View Replies !    View Related
Reseting The Dynamic Jpgs And Check On Error.
hey guy need help again.
i have this on my button :
on(release){

this._parent.loadImages(this._parent,this._parent. text1.text);
}
this will load the image that is key in the text field.
any idea i can check an error here like:
if i key in the wrong file name i will get a text say "wrong file name.!"
else if correct file name, load the jpgs..

i have this on my reset button:
on(release){
this._parent.text1.text= "";

}
it will reset wht i wrote on the text field.
but i still need to unload all the pics i have uploaded.

any ideas???
thanks..

View Replies !    View Related
Dynamic JPGs Only Load On Odd-numbered Clicks
hi.... i'm loading some dynamic JPGs into my movie via a blank MC. the first time i load the movie and click the button to load the JPG it comes in fine. if i click another another button the JPG doesn't load at all. if i click it again (or click another button to load a third image) the JPG will show itself. so basically the JPG doesn't load on any odd-numbered click. but it all works fine when i preview the SWF locally - when i put a real http URL for the location of the JPGs and try the SWF on my server i get the alternating JPG magic trick. the SWFs and the JPGs are on the same server. my Flash cache is set to 1 MB and my SWF is only 100 KB, so... any suggestions?

the action i'm using to load the JPG is simple. "blank_image" is the instance of the container MC... the rest is getting the JPG's URL out of an array called content_array... each button calls a different number of course (where [2][0] below is, it's different for each button)

on(release) {
_root.loader.blank_image.loadMovie(_root.content_a rray[2][0]);
}

my array looks like this:

content_array = new Array();

content_array[0] = ["http://somedotcom.com/someURL0.jpg","other content"];
content_array[1] = ["http://somedotcom.com/someURL1.jpg","other content"];
content_array[2] = ["http://somedotcom.com/someURL2.jpg","other content"];
content_array[3] = ["http://somedotcom.com/someURL3.jpg","other content"];

View Replies !    View Related
Preloade Dynamic Jpgs In Dynamically Duplicated Mc
i have a movieclip that i am duplicating dynamically...lets say 10x

in each of those movieclips...i am loading a jpeg in dynamically.

the actual path goes like this: _root.presContainer.navContainer.nav . so nav is being duplicated

im trying to preload the jpegs that get loaded into nav by telling a movieclip containing a preloader to gotoandplay 2. this works but not in this case..i guess because the movieclip is being created dynamically and each is assigned a different name:

for (i = 0; i < amount; i++) {
duplicateMovieClip(_root.presContainer.navContainer.nav, "nav" + i, i);
list[i] = eval("_root.presContainer.navContainer.nav" + i);

any suggestions on how i could get this preloader kickin...im stumped right now.

thanks

View Replies !    View Related
Fading Host Clips With Dynamic Jpgs Inside Them
I have two host clips that I'm loading 2 jpgs (one per host clip) into...the first host clip fades in...I want to make it fade in, pause a second, and fade out to reveal the second host clip hiden behind it (_alpha=1). Then I want the second host clip to fade out...I'm having trouble with getting the first host clip (background1_mc) to fade OUT. The second host clip will be called "background2_mc".
The purpose of the dynamically loaded jpgs is to make it easy to update the look of our site without overhauling the whole thing...just incase you wanted to know...

The following AS works well, it does not include the actionScript that loads the second jpg into the second host clip....that script will follow the one below.




//script 1 dynamically loads jpgs into background
loadMovie("homepage_blur.jpg",background1_mc);
//clip on stage currently at 0,0 move to suit
//whats below will cause the movie to be loaded
//everytime it enters the frame 12 times a sec
//background1_mc.onEnterFrame = function() {
//_root.loadMovie("homepage_blur.jpg", "background1_mc");
//};
background1_mc._alpha = 0;
fade = setInterval(fadeIn, 50);
function fadeIn() {
background1_mc._alpha += 3;
if (background1_mc._alpha>=99) {
clearInterval(fade);
}
}


Here is the messed up version of the above actionScript that I screwed up in an attempt to achieve my the goal I explained in the first paragraph of this thread...The first host clip fades in still, but it does nothing else occurs...Please help if you can:




//script 1 dynamically loads jpgs into background
//1
loadMovie("homepage_blur.jpg", background1_mc);
//clip on stage currently at 0,0 move to suit
//whats below will cause the movie to be loaded
//everytime it enters the frame 12 times a sec
//background1_mc.onEnterFrame = function() {
//_root.loadMovie("homepage_blur.jpg", "background1_mc");
//};
background1_mc._alpha = 0;
fade = setInterval(fadeIn, 50);
function fadeIn() {
background1_mc._alpha += 3;
if (background1_mc._alpha>=99) {
background1_mc.intVar = setInterval(background1_mc, "pauseDone", 2000);
clearInterval(fade);
background1_mc.pauseDone = function() {
loadMovie("homepage_clear.jpg", background2_mc);
};
fadeOut = setInterval(fade, 50);
function fade() {
background1_mc._alpha -= 3;
}
background2_mc._alpha = 0;
fadeIntwo = setInterval(fadeIn, 50);
function fadeIn() {
background2_mc.alpha += 3;
}
if (background2_mc.alpha>=99) {
clearInterval(fadeOut);
}
}
}
stop();

Thanks for your help, Jen

View Replies !    View Related
Draggable Magnifying Glass Tutorial - Using Dynamic Jpgs?
Can someone help me with taking this tutorial one step further?

Magnifying Lens Tutorial

I'd like to load a dynamic jpg & text into the _root.original clip. It works if I just drop static text, or an embedded graphic into it.

There's another instance of the 'Magnified Objects' clip inside the magnifying glass, and for some reason anytime I try to load anything dynamically, the magnifying glass clip disappears entirely.

I've tried loading into a nested clip, and no luck there either.

I also tried checking to see if the image was completely loaded before the rest of the movie plays, still no luck.

Can someone explain why this is happening, or what I need to do to get this to work??

Thanks for the help, much appreciated!

View Replies !    View Related
Safari 1.2/Flash Problem Loading Dynamic JPGs
My client's site was created in Flash MX and dynamically loads JPGs. On first hit, the site loads fine. On second visit to the site, the site hangs up, and no JPGs load. The only way to get it to load is to empty the cache each time. Worse, sometimes it just doesn't load at all...even after emptying cache and restarting Safari. This is extremely distressing, as the majority of my client's clients use Safari 1.2. Help please!

BTW, I thought it was perhaps a caching issue, so I added a "no cache" PHP code to the site, and still, no change. FYI, the current page up is WITHOUT the php code.

This problem only exists in Safari 1.2. (not Safari 1.0, IE or Netscape).

Any info would be greatly appreciated.

URL: http://www.kslphoto.com


Thank you.

View Replies !    View Related
No Scroll Browser W/ XML Dynamic Loading JPGs Issue
I used the Kirupa's XML loading photo gallery.

i have set the flash movie and really large to accomdate ever changing images. I dont care about if people can see full image cause they cant scroll or not.

Now, i added style="overflow:hidden" and scroll="no" to body tag in HTML

it works fine in Mac Safari / FF and also in PC FF but in PC / Mac IE the images dont appear. it seems to load since the preloader is working on appropriate images.

Is this a HTML issue or flash issue? if either, suggestions?
here is what i have so far.. working fine in FF / Safari in Mac

http://www.streamhub.com/stuffbyme/

View Replies !    View Related
My Fade Out / Fade In Script. Fade Out Works, Why Not Fade In? Any Ideas?
Hello all,
Hopefully this is just a simple problem with my code.

I have a container on the stage. When the loaded clip gets to the last frame it triggers the decreaseAlpha() function on the root level. This fades the current container out and works fine.

However I also want it to load the next clip(which it does) and fade that clip in. This doesn't work. It doesnt' fade in, can anyone point me in the right direction?

Thanks!!



Code:
function decreaseAlpha(boxName, clipName){
boxName.onEnterFrame = function(){
if(boxName._alpha > 0){
boxName._alpha -= 15;
}if(boxName._alpha < 5){
delete boxName.onEnterFrame;
increaseAlpha(boxName, clipName);
}
}
}
function increaseAlpha(boxName, clipName){
loadMovie(clipName, boxName);
boxName._alpha = 0;
boxName.onEnterFrame = function(){
if(boxName._alpha < 100){
boxName._alpha += 15;
}if(boxName._alpha == 100){
delete subboxName.onEnterFrame;
}
}
}

View Replies !    View Related
My Fade Out / Fade In Script. Fade Out Works, Why Not Fade In? Any Ideas?
Hello all,
Hopefully this is just a simple problem with my code.

I have a container on the stage. When the loaded clip gets to the last frame it triggers the decreaseAlpha() function on the root level. This fades the current container out and works fine.

However I also want it to load the next clip(which it does) and fade that clip in. This doesn't work. It doesnt' fade in, can anyone point me in the right direction?

Thanks!!


Code:
function decreaseAlpha(boxName, clipName){
boxName.onEnterFrame = function(){
if(boxName._alpha > 0){
boxName._alpha -= 15;
}if(boxName._alpha < 5){
delete boxName.onEnterFrame;
increaseAlpha(boxName, clipName);
}
}
}
function increaseAlpha(boxName, clipName){
loadMovie(clipName, boxName);
boxName._alpha = 0;
boxName.onEnterFrame = function(){
if(boxName._alpha < 100){
boxName._alpha += 15;
}if(boxName._alpha == 100){
delete subboxName.onEnterFrame;
}
}
}

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved