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




Ie Explorer Will Not Load Thumbnails Correctly



sorry to bother you all with this, yet again, but nobody seems to have an answer...In mozilla, the thumbnails on my site work fine. But in IE , they do not scale. Any thoughts on why that is? The photos load from an XML file. each "gallery" is it's own swf, on _level1....the loader for main images is working fine in all browsers. Any help to resolve this annoying piece would be great.

www.foldedmap.com ...click "recent" for an example of the above problem



FlashKit > Flash Help > Flash General Help
Posted on: 07-02-2005, 07:31 AM


View Complete Forum Thread with Replies

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

Flash Not Loading Correctly In Internet Explorer...
The site loads perfectly for firefox, but just displays a white box for IE:

Can anyone please advise me on how to fix this? Thank you in advance for your replies.

Update: I found the problem .

Moderators feel free to delete this post.

Thumbnails Aren't Stacking Correctly
Just completed the adding thumbnail tute for an existing site and the thumbnails aren't stacking up very nicely. view here www.update.scottnewett.com.au its the advertising section. And the fla file is here http://www.update.scottnewett.com.au...ndex_thumb.fla

Thanks in advance

Huge Thumbnails In Internet Explorer
Hi guys.
New to the forums and the Actionscript philosophy and right now i could use some help.
I've build an image gallery, using Actionscript 3.0. The point is that while in Firefox the thumbnails have a normal size (the size i set in the code) and the gallery is working propely, when i try to access the gallery using the Internet Explorer, the thumbnails are huge! Here's the code i used to build the thumbnails:

/* THUMBNAILS */

ActionScript Code:
function buildThumbnails(sender:MovieClip):Void{
    var root:XMLNode=sender.nodeInfo;
    var folder:String="gallery/"+root.attributes.caption+"/";
    var n:XMLNode;
    scrolls=ScrollPane(th_mc.tNails);
    scrolls.contentPath="empty";
    strip=MovieClip(scrolls.content);
    var loader:Loader;
    var _mc:MovieClip;
    for(var i:Number=0;i<root.childNodes.length;i++){
        n=root.childNodes[i];
        _mc=strip.attachMovie("thmb", "b"+i, 20+i, {_alpha: 80});
        _mc.createClassObject(Loader, "loader", 1);
        _mc.loader.width = _mc.loader.height = 80;
        _mc.loader.move(2.5, 2.5);
        _mc.loader.contentPath=folder+n.attributes.file;
        _mc.theTitle=n.attributes.name;
        _mc._x=i*(strip["b"+i]._width+30);
        _mc._y=12;
        _mc.onRollOver=function(){
            this._alpha=100;
        }
        _mc.onRollOut=_mc.onReleaseOutside=function(){
            this._alpha=80;
        }
        _mc.onPress=function(){
            showThumbnail(this.loader.contentPath, this.theTitle);
        }
    }
    scrolls.invalidate();
    fadeThumbnails(true);
}

The url to see it for yourselves is http://www.studioborse.gr.
Click on the English Version and from the drop-down menu choose "Collection" and then any choice you like.
I have tried everything, but nothing! Any suggestions please?
Thank you all in advance.

Only One Of 5 Will Not Always Load Correctly
not sure which of the several codes to post (without overwhelming you, the reader). QUick overview. i have 5 .swf files. One is the Main.swf. which loads a main movie with a menu to call the other external swf files. These others (Contact, About, Gallery, Etc) load into the Main.swf using a MovieClipLoader class. Ok, all is great.

The Gallery swf also has a menu which also dynamically loads. Select an option from this menu, and thumbnails pop up. Select a thumbnail, and a large image loads....all this happens in Gallery.swf., and it works fine alone.

The problem : All SWFs load and interact fine. Gallery loads fine...user looks at some photos, watches a video , user then navigates back to the main menu (at Main.swf). The user loads any others of the 4 swf files , user eventually navigates back to Gallery, and it won't load! But only Gallery has this problem- and it only has the problem IF the user loads a large image from a thumbnail. If not, the user can reload Gallery anytime. So, should i start debugging from Main.swf, or Gallery? and what should i be lookign for?

code from Gallery.swf-

Code:
#include "lmc_tween.as"
var ease = "easeoutquad";
var dim:Number = 40;
txCaption = captionBox.txCaption;
preLoader._alpha = 0;
//for thumbnails
var mclListener:Object = new Object();
var mclLoader:MovieClipLoader = new MovieClipLoader();
//for big images
var bigImageLoader:MovieClipLoader = new MovieClipLoader();
var bigImageListener:Object = new Object();
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////Load XML
//////////////////////////////////////////////////////////////////////////
function loadXML(arg) {
trace(arg);
var myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function(success:Boolean) {
if (success) {
loadThumbImages(this);
}
};
myXML.load("menus/XMLs/"+arg+".xml");
}
//myXML.load("images/imagesxml");
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////Load THUMBNAILS
//////////////////////////////////////////////////////////////////////////
var selectedImage = 0;
function loadThumbImages(myXML) {
removeMovieClip(imageTank);
mcHolder.alphaTo(100, 1, ease);
_global.mcHolder = this.createEmptyMovieClip("mcHolder", 2000);
var nX:Number;
var nY:Number;
mcHolder._x = 40;
mcHolder._y = 45;
root = myXML.firstChild.childNodes;
for (var i = 0; i<=root.length; i++) {
_global.mcImage = mcHolder.createEmptyMovieClip(i, i);
mclLoader.loadClip("images/"+root[i].attributes.thumb, mcImage);
}
mclListener.onLoadProgress = function(mcClip, bytesLoaded, bytesTotal) {
var percentLoadedNow:Number = Math.round((bytesLoaded/bytesTotal)*100);
if (bytesLoaded<bytesTotal) {
preLoader._alpha = 0;
preLoader.mcBar._xscale = Math.round((bytesLoaded/bytesTotal)*100);
}
if (bytesLoaded>=bytesTotal) {
preLoader._alpha = 0;
mcClip._alpha = 0;
mcClip.alphaTo(dim, .6, ease);
}
};
mclListener.onLoadInit = function(mcClip:MovieClip) {
mcClip._xscale = 25;
mcClip._yscale = 25;
mcClip.onRollOver = function() {
upAlpha(this);
};
mcClip.onRollOut = function() {
downAlpha(this);
};
mcClip.onRelease = function() {
loadBigImage(myXML, this._name);
return selectedImage=this._name;
};
var lastColumn = (mcClip._width+10)*2;
if (nX == undefined) {
nX = 750;
nY = 50;
}
if (nY>=450) {
nX -= mcClip._width+5;
nY = 50;
}
mcClip._x = nX;
mcClip._y = nY;
nY += mcClip._height+5;
};
mclLoader.addListener(mclListener);
}
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////Load LARGE IMAGES
//////////////////////////////////////////////////////////////////////////
mcPictFrame._alpha = 0;
var bigImageNewPlace:Array = [];
function loadBigImage(myXML, index) {
bigImageOldPlace = bigImageNewPlace.pop();
//removeMovieClip(imageTank);
_global.imageTank = this.createEmptyMovieClip("imageTank"+index, index);
bigImageNewPlace.push(imageTank);
trace(bigImageNewPlace);
preLoadDepth = preLoader.getDepth();
oldPlaceDepth = bigImageOldPlace.getDepth();
if (preLoadDepth<oldPlaceDepth) {
preLoader.swapDepths(bigImageOldPlace);
}
captionBox.alphaTo(0, 1, ease);
var bigImageX:Number;
var bigImageY:Number;
bigImageLoader.loadClip("images/"+myXML.firstChild.childNodes[index].attributes.picture, imageTank);
txCaption.text = myXML.firstChild.childNodes[index].attributes.words;
bigImageListener.onLoadProgress = function(mcClip, bytesLoaded, bytesTotal) {
if (bytesLoaded<bytesTotal) {
preLoader._alpha = 80;
preLoader.mcBar._xscale = Math.round((bytesLoaded/bytesTotal)*100);
preLoader.txPercent.text = Math.round((bytesLoaded/bytesTotal)*100)+"% loaded...";
}
if (bytesLoaded>=bytesTotal) {
captionBox.alphaTo(100, 1, ease);
//bigImageOldPlace.alphaTo(0,1,ease)
preLoader._alpha = 0;
//preLoader.alphaTo(0, .5, ease);
mcClip._alpha = 0;
mcClip.alphaTo(100, 1, "easeoutquad");
}
};
bigImageListener.onLoadInit = function(mcCurrentBigImage:MovieClip):Void {
mcCurrentBigImage._xscale = 80;
mcCurrentBigImage._yscale = 80;
if (mcCurrentBigImage._width>mcCurrentBigImage._height) {
mcCurrentBigImage._x = (bg._width-mcCurrentBigImage._width)-(mcCurrentBigImage._width/4);
mcCurrentBigImage._y = 75;
}
if (mcCurrentBigImage._width<mcCurrentBigImage._height) {
mcCurrentBigImage._x = (bg._width-mcCurrentBigImage._width)-(mcCurrentBigImage._width/2+75);
mcCurrentBigImage._y = 35;
}
if (mcPictFrame.isTweening(false)) {
captionBox.tween("_y", mcCurrentBigImage._y-20, 1, ease);
}
mcPictFrame._alpha = 100;
mcPictFrame.tween(["_x", "_y", "_width", "_height"], [mcCurrentBigImage._x-10, mcCurrentBigImage._y-10, mcCurrentBigImage._width+25, mcCurrentBigImage._height+25], 1, ease);
};
bigImageListener.onLoadComplete = function(mcClip) {
bigImageLoader.unloadClip(bigImageOldPlace);
};
bigImageLoader.addListener(bigImageListener);
}

Preloader Don't Load Correctly
i got a strange thing
i made the UIloader instance of loader
and moving bar instance of preloader_mc
and when test it

loader play before the preloader complete
here is the codes which i typed

Quote:




loader.addEventListener(ProgressEvent.PROGRESS, onProgress);
loader.addEventListener(Event.COMPLETE, onComplete);
function onProgress(erogressEvent):void
{
var loaded:Number = loader.bytesLoaded;
var total:Number = loader.bytesTotal;
preloader_mc.scaleX = loaded / total;
}
function onComplete(e:Event):void
{
removeChild(preloader_mc);
removeChild(outline_mc);
}

F8 Loader Component Does't Load The Swf Correctly
Hi, i learned how to do a basic site using Loader component from within flash to load external .swf. [works fine] was my first homework

now decided to create a simple "loader" that i could use as a gallery of my flash projects, thinking i could simply have a loader and fetch every swf i made and scale it to a box so viewers could click next and browse through all the swf i made....

That's when the problem started...

so i have the basic code that works fine but as soon as i put .swf file with either a preloader(within the swf that i fetch with my loader) or a component....3 problems occur

1-(doesn't worry me too much)the buttons within the fetched .swf files stop working...(i m sure there's a work around i'll check that later)

2-"Scale" set as "true" wont work properly or at all

3-the buttons i use to choose the swf to fetch only work once?!?!


My train of though....

Quote:




(2) I would assume that either the files cannot scale properly as the "scale=true" looks at the preloader within the swf or the file isn't loaded when the "scale=true" kicks in???

(3)as i see the preloader from within the swf flash the secound time i click on the button(the one that fetch the ext. swf) i would guess that the 2 preloaders are conflicting....no clue why.



Now if you read all that i must thank you for not giving up on me i really have issues in terms of explaining myself!!!

i did try all kind of combination (IE removing the "myLoader" preloader, changing the path to the swf from myloader.contentPath = "swf1.swf"; to mcLoader.loadClip("swf1.swf",myloader); nothing works.

Am i just crazy or is it just imposible to export to loader component files with other component or existing preloader...anything?? i m all ears??





thanks again for reading all this i just ratter give all the info that i can.



Code:

//-----------Initialization---------\
extLoader_mc._visible = false;
//-----------------------------------\


//--------Movie Clip Loader----------\

var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
mcLoader.addListener(myListener);

myListener.onLoadProgress = function(target_mc,bytesLoaded,bytesTotal) {
extLoader_mc._visible = true;
var pctLoaded = Math.round(bytesLoaded/bytesTotal*100);
extLoader_mc.extLoaderBar_mc._xscale = pctLoaded;
if (bytesLoaded >= bytesTotal) {
extLoader_mc._visible = false;
}
}

//myloader.contentPath = "swf1.swf";
mcLoader.loadClip("swf1.swf",myloader);
//-----------------------------------\
//---------------Buttons btn1_mc---------------\
btn1_mc.onRollOver = function () {
btn1_mc.gotoAndPlay("_over")
}
btn1_mc.onRollOut = function () {
btn1_mc.gotoAndPlay("_out")
}
btn1_mc.onRelease = function () {
//myloader.contentPath = "swf1.swf";
mcLoader.loadClip("swf1.swf",myloader);
}
//-----------------------------------------\
("myloader" is in fact called like that, i m not a fan of capitals.)

Loader Component Does't Load Certain Swf Correctly
Hi, i learned how to do a basic site using Loader component from within flash to load external .swf. [works fine] was my first homework

now decided to create a simple "loader" that i could use as a gallery of my flash projects, thinking i could simply have a loader and fetch every swf i made and scale it to a box so viewers could click next and browse through all the swf i made....

That's when the problem started...

so i have the basic code that works fine but as soon as i put .swf file with either a preloader(within the swf that i fetch with my loader) or a component....3 problems occur
1-(doesn't worry me too much)the buttons within the fetched .swf files stop working...(i m sure there's a work around i'll check that later)
2-"Scale" set as "true" wont work properly or at all
3-the buttons i use to choose the swf to fetch only work once?!?!

My train of though....

Quote:




(2) I would assume that either the files cannot scale properly as the "scale=true" looks at the preloader within the swf or the file isn't loaded when the "scale=true" kicks in???
(3)as i see the preloader from within the swf flash the secound time i click on the button(the one that fetch the ext. swf) i would guess that the 2 preloaders are conflicting....no clue why.

Now if you read all that i must thank you for not giving up on me i really have issues in terms of explaining myself!!!
i did try all kind of combination (IE removing the "myLoader" preloader, changing the path to the swf from myloader.contentPath = "swf1.swf"; to mcLoader.loadClip("swf1.swf",myloader); nothing works.
Am i just crazy or is it just imposible to export to loader component files with other component or existing preloader...anything?? i m all ears??




thanks again for reading all this i just ratter give all the info that i can.


Code:
//-----------Initialization---------\
extLoader_mc._visible = false;
//-----------------------------------\

//--------Movie Clip Loader----------\
var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
mcLoader.addListener(myListener);
myListener.onLoadProgress = function(target_mc,bytesLoaded,bytesTotal) {
extLoader_mc._visible = true;
var pctLoaded = Math.round(bytesLoaded/bytesTotal*100);
extLoader_mc.extLoaderBar_mc._xscale = pctLoaded;
if (bytesLoaded >= bytesTotal) {
extLoader_mc._visible = false;
}
}
//myloader.contentPath = "swf1.swf";
mcLoader.loadClip("swf1.swf",myloader);
//-----------------------------------\
//---------------Buttons btn1_mc---------------\
btn1_mc.onRollOver = function () {
btn1_mc.gotoAndPlay("_over")
}
btn1_mc.onRollOut = function () {
btn1_mc.gotoAndPlay("_out")
}
btn1_mc.onRelease = function () {
// myloader.contentPath = "swf1.swf";
mcLoader.loadClip("swf1.swf",myloader);
}
//-----------------------------------------\
("myloader" is in fact called like that, i m not a fan of capitals.)

How To Interrupt Correctly A Load Process
Hello!

I'm facing a very strange problem in a flash as3 website I'm working on. I would like to have a main SWF file and load others into it. I want to track the load process to have only one preload for all loaded movies.

Everything is running correctly, but when I click on a button, when a load hasn't finished before, the movie acts in an uncomprenhensive way.

Seems that the variable

ActionScript Code:
var loaded = e.bytesLoaded;



Doesn't unload, or at least, empty, when I unload and remove the loader from the scene.

I'm going to attach code. I would be very grateful If somebody can point me in the right direction, because although the movie is working, it is obvious I'm doing something wrong.

Your help is really appreciated in advance.

ActionScript Code:
stop();

var req:URLRequest = new URLRequest("home.swf");
var ldr:Loader = new Loader();
ldr.load(req);
ldr.x = 210;
ldr.y = 80;
addChild(ldr);

ldr.contentLoaderInfo.addEventListener(Event.OPEN, ldrStart);
ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, ldrProgress);
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, ldrFinished);

home_btn.addEventListener(MouseEvent.CLICK, doClick);
secondary_btn.addEventListener(MouseEvent.CLICK, doClick);

function ldrStart(e:Event):void {
prel_mc.visible = true;
preltxt_txt.visible = true;
}

function ldrProgress(erogressEvent):void {
var total = e.bytesTotal;
var loaded = e.bytesLoaded;
var percent = Math.round(loaded * 100 / total);
prel_mc.gotoAndPlay(percent);
preltxt_txt.text = String(percent) + "%";
trace(loaded + " / " + total + " = " + percent);
}

function ldrFinished(e:Event):void {
prel_mc.stop();
prel_mc.visible = false;
preltxt_txt.visible = false;
trace("loading finished");
}

function doClick(e:MouseEvent):void {
ldr.removeEventListener(Event.OPEN, ldrStart);
ldr.removeEventListener(ProgressEvent.PROGRESS, ldrProgress);
ldr.removeEventListener(Event.COMPLETE, ldrFinished);
ldr.unload();
removeChild(ldr);
var buttonClicked:String = e.target.name;
var noLetters:int = buttonClicked.search("_btn");
var mySwf:String = buttonClicked.slice(0, noLetters);
changeMv(mySwf);
trace("unloaded and removed");
}

function changeMv(mySwfName:String):void {
var req2:URLRequest = new URLRequest( mySwfName + ".swf" );
trace("Movie to load: " + mySwfName + ".swf" );
ldr.load(req2);
addChild(ldr);
}

Load External File And Position It Correctly
Hello

Working with Flash MX 2004, I have an illustration of a TV screen with some dvd boxes next to it. When I click on a dvd box, I want an external swf with an embedded video called 'video.swf' to load onto the TV screen. I have a MC called placeHolder on the main movie main timeline which is the same size and position as the TV screen and the external swf, so when the external swf loads, I want it to replace the placeHolder so it's positioned correctly.

How??!!!

Cheers

[CS3] How To Correctly Load External Assets In Background?
This is something I still haven't grasped, even after reading through many "photo gallery" tutorials. Here's my situation:

I'm making a Flash site with a large photo gallery. So, I definitely want to load the images at run-time. However, I would like to pre-load them in the background while the user is interacting with the rest of the site, possibly cutting the wait time for each photo to load when the user actually opens the gallery.

My idea was to load the the swf on frame 1, then on frame 2 create an array and start loading all the images into it. Then, when the gallery is opened, each image container movieClip will first try to access the correct element of the array; if the image isn't found there, then I show a preloader and load the image then and there. I'm not 100% sure how to actually write the code for this, but doesn't seem that difficult.

Does that sound right though? I don't want go this route if there's a better/more functional approach out there. Thanks!

How To Correctly Load External Assets In Background?
This is something I still haven't grasped, even after reading through many "photo gallery" tutorials. Here's my situation:

I'm making a Flash site with a large photo gallery. So, I definitely want to load the images at run-time. However, I would like to pre-load them in the background while the user is interacting with the rest of the site, possibly cutting the wait time for each photo to load when the user actually opens the gallery.

My idea was to load the the swf on frame 1, then on frame 2 create an array and start loading all the images into it. Then, when the gallery is opened, each image container movieClip will first try to access the correct element of the array; if the image isn't found there, then I show a preloader and load the image then and there. I'm not 100% sure how to actually write the code for this, but doesn't seem that difficult.

Does that sound right though? I don't want go this route if there's a better/more functional approach out there. Thanks!

Why Doesnt My Swf Play Correctly When I Load It Externally?
I am calling 2 external swf files in my main swf file (a preloader one and my flash intro swf).

If I play the intro swf by itself it works just fine (notice that the picture frame replaces the camera):

http://filebox.vt.edu/users/gyanez/f...est/intro.html

However, if I call the main.swf inside index.html the intro.swf doesnt play fully (camera stays there and no picture frame):

http://filebox.vt.edu/users/gyanez/f...est/index.html

This is how I am loading my swfs in main.fla...you guys see anything wrong?

// create empty movie clips that act as containers for externally loaded SWF's
this.createEmptyMovieClip("loader", 50); // put loader on level 50 above all other loaded swfs
this.createEmptyMovieClip("intro", 5); // put intro.swf on level 5

// initilize top left corner of both empty movie clips so they are directly above the centered stage
loader._x=25;
loader._y=25;
intro._x=25;
intro._y=25;

// create moviecliploader object and add a listener that monitors it
var my_mcl:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
my_mcl.addListener(mclListener);

// load the following external swfs to their empty containers using the MCL object
my_mcl.loadClip("preloader.swf", loader);
my_mcl.loadClip("intro.swf", intro);

// when my_mcl is loading something it will go to the preloader.swf that was loaded and pre-cache the other swfs you're loading
mclListener.onLoadProgress = function(target_mc:MovieClip, loadedBytes:Number, totalBytes:Number) {
// turn on preloader swf visibility
loader._visible = true;
// figure out current % downloaded and then go to that frame (out of 100) in the preloader.swf
var preloadPercent:Number = Math.round((loadedBytes / totalBytes) * 100);
loader.preloader.gotoAndStop(preloadPercent);
loader.percentDLed.text = preloadPercent + "%";
}

// when everything is loaded turn off preloader.swf and then play remaining swfs
mclListener.onLoadComplete = function(target_mc:MovieClip) {
loader._visible = false;
}

How To Correctly Load External Assets In Background?
This is something I still haven't grasped, even after reading through many "photo gallery" tutorials. Here's my situation:

I'm making a Flash site with a large photo gallery. So, I definitely want to load the images at run-time. However, I would like to pre-load them in the background while the user is interacting with the rest of the site, possibly cutting the wait time for each photo to load when the user actually opens the gallery.

My idea was to load the the swf on frame 1, then on frame 2 create an array and start loading all the images into it. Then, when the gallery is opened, each image container movieClip will first try to access the correct element of the array; if the image isn't found there, then I show a preloader and load the image then and there. I'm not 100% sure how to actually write the code for this, but doesn't seem that difficult.

Does that sound right though? I don't want go this route if there's a better/more functional approach out there. Thanks!

Swf Won't Load In Explorer
I am testing a movie and it loads fine in opera and netscape and firefox but when with explorer the preloader does not come up, only an empty space. Even if I type in a direct route to the swf such as http://mysite.com/introvideo.swf nothing happens. All the other browsers work fine. Any ideas what is causing this?

thanks.

Internal Movie Clips Dont Load Correctly
hi, im using
_root.mainscrollpane.content_mc.attachMovie("item" ,"item_"+i,i+1);

to attach movies inside a scrollpane.
but those dont show up correctly.
a simple rectangle doesnt show up at all and buttons only show up after i hover over them. a dynamic textfield does show up correctly.

any solutions on this?
thanks a lot!

Not Determining External File Load Progress Correctly
I have a SWF that loads three external files that are passed to it dynamically. The loaded files are two JPGs and a SWF. Using a simple 3 frame design, I am trying to show a loader bar for the progress of the combined load of all three files. What is happening is that the signal that the load is complete is happening well before the load actually completes.

The design is shown below.

I know the problem lies in how I am calculating either bytes_loaded, bytes_total, or both as I have tested the progress bar in this very design with some hardcoded values and it works flawlessly.

I have read all over these forums about how a JPG load can not be tracked with a progress bar because Flash does not know the file size until it is fully loaded. However, I have also read how, even dynamically, placing the JPG in a SWF solves this problem. Perhaps, dynamically placing a JPG in a SWF as I do below does not solve this problem.

Hence, I have even tried hard coding the bytes_total to 10,000,000 (much larger than the sum of what is being loaded) and added the very first snippet of code in Frame 2. If no change in the number of loaded_bytes has occured from the last "loop", the loaded_bytes is incremented by 10,000,000, thus satisfying the load condition. In this case, my assumption is that if no change has occured in the loaded_bytes, all files must be loaded. This has no impact on the execution - it still acts as if all files are loaded almost immediately.

Does that tell me that the problem is in my calculation of bytes_loaded?

I simply want to show the progress of these three loads in a single progress bar and then hop out of the routine when it completes loading. I am fresh out of ideas and would appreciate another pair of eyes to see where I might be going wrong.

Scott

--------------
Frame 1:

// Create the container SWF
createEmptyMovieClip("backgroundLoader", 0);
backgroundLoader._visible=false;

// Draw the loader bar on level 4
_root.createEmptyMovieClip("BarLoader", 4);
_root.BarLoader.beginFill(0x555555);
_root.BarLoader.lineTo(0,0);
_root.BarLoader.lineTo(400,0);
_root.BarLoader.lineTo(400,20);
_root.BarLoader.lineTo(0,20);
_root.BarLoader.endFill();
_root.BarLoader._x=80;
_root.BarLoader._y=190;

// Load the first image to level 3
backgroundLoader.createEmptyMovieClip("Image1", 3);
backgroundLoader.Image1.loadMovie(Image1); // Image1 is a JPG that is dynamically passed to the SWF

// Load the second image to level 1
backgroundLoader.createEmptyMovieClip("Image2", 1);
backgroundLoader.Image2.loadMovie(Image2); // Image2 is a JPG that is dynamically passed to the SWF

// Load the animation to level 2
backgroundLoader.createEmptyMovieClip("Animation", 2);
backgroundLoader.Animation.loadMovie(AnimName); // Animation is a SWF that is dynamically passed to the main SWF

// Determine the size of what is to be loaded
bytes_total = (backgroundLoader.Image1.getBytesTotal() + backgroundLoader.Image2.getBytesTotal() + backgroundLoader.Animation.getBytesTotal());

// Setup the bytes loaded values
old_bytes_loaded=-1;
bytes_loaded=0;

----------
Frame 2:

// If the size has not changed since last loop, jump to the end of loading
if (old_bytes_loaded==bytes_loaded) {
bytes_loaded+=10000000;
}
else {
// Remember what was loaded from last "loop"
old_bytes_loaded=bytes_loaded;

// Check the bytes loaded
bytes_loaded = (backgroundLoader.Image1.getBytesLoaded() +
backgroundLoader.Image2.getBytesLoaded() +
backgroundLoader.Animation.getBytesLoaded());
}

// If everything is loaded continue with presentation
if (bytes_loaded >= bytes_total) {
gotoAndPlay(4);
}

// Otherwise, show the loader bar
else {
loadpercent=int(100*bytes_loaded/bytes_total);
_root.BarLoader._xscale = loadpercent;
}

-------
Frame 3:

gotoAndPlay(2);

Please Help: Load Ampersands Correctly Into Flash From Text File
I Can't get the character "&" to appear. My flash work: I use notepad to create all my text. In flash, I created a dynamic text field and assign it a variable same as the title of txt file. I also render the dynamic text field as html. On my timeline I created an action "loadVariables" to load the txt file. I use this technique to place Chinese and Japanese characters in my flash movie. That all works fine except when I try to use "&" in the txt file it cuts off all the text after "&" including itself. I tried using "&amp" but does not work either.

Can someone help me on this, please.

Perenial Newbie Can't Load Movie Correctly... Seeking Help
Hello,
I'm a graphics guy that dabbles with flash. I cold use some help.

I'm trying to figure out how to stop and animation at a frame and provide 3 buttons to load photos and a flash video into the display.

I've been trying lad movie, but my syntax is bad.

Also I'm not sure what the best stratgey to unload the movie and clear the display so that the frame with the buttons is back to the main timelines state.

Here's a link to my work in progress. You can see I have 2 camera (to open photos) and 1 video (to open the video) buttons.

http://www.harmoniccycle.com/hc/swf/...Z/PINEY_Z.html

Can someone please help? Please consider that I don't know much about programming... I'm more comfortable with keyframe animations.


thanks,
mike

How To Load A Mc From Explorer Address Bar?
Hi

I saw some site that from adress bar ex. www.dmian.com?link=graphics loads the section or a mc in flash with name graphics


How is this possilbe or done!??


THnx a lot

Scene Won't Load In Internet Explorer, Only In The .swf
Hey everyone:

I'm in a bit of a bind here. My site performs drastically different when it is run in Test Movie (.swf) and when it is run through Internet Explorer.

It has 3 scenes in the following order and no externally loaded .swfs:

Scene 2 (Preloader)
Scene 3 (Intro)
Scene 1 (Content - I originally began with this one but later added the Preloader & Intro)

When I test the movie from Flash CS3 or run the exported .swf, it runs through with no problems. However, as soon as I export it and run it in Internet explorer through .html file, it will only load the preloader, which then transitions to the intro, and then I get a white screen for Scene 3. I cannot get the main content scene to play at all.

It seems the problem starts with the code to embed the .swf into the .html page. If I run the .swf through internet explorer, it is fine, but then it expands to fill the whole page. I think it wouldn't be wise to run just the .swf online.

I would greatly appreciate any help in this manner!

Thank you,
Adam


*** Solution listed below

[F8] Load Thumbnails Dynamically With XML?
Hi all,

I've got some thumbnail images that I want to load into a MC using XML but am not sure exactly how to do it with AS2.0. I created an XML file already and placed an empty MC on my stage. Any help?

My XML:

PHP Code:



<?xml version="1.0" encoding="UTF-8"?>
<portfolio>
    <picture thumb = "thumbs/markOdlum.jpg" />
    <picture thumb = "thumbs/xmlGallery.jpg" />
    <picture thumb = "thumbs/flvPlayer.jpg" />
    <picture thumb = "thumbs/mp3Player.jpg" />
    <picture thumb = "thumbsslideoutMenuy.jpg" />
    <picture thumb = "thumbs/carousel.jpg" />
    <picture thumb = "thumbs/graffitiWall.jpg" />
    <picture thumb = "thumbs/menu.jpg" />
    <picture thumb = "thumbs/banner.jpg" />
    <picture thumb = "thumbs/carAd.jpg" />
    <picture thumb = "thumbs/mouseTrail.jpg" />
    <picture thumb = "thumbs/oldFilm.jpg" />
    <picture thumb = "thumbs/roomNav.jpg" />
</portfolio>

Dynamically Load Thumbnails
Hi all,

I have come across a problem with loading images using the MovieClipLoader class.

I am trying to load an image into an existing movie clip (which is empty).
I know that the existing movieclip will be replaced when the image is loaded into it.

Here is my code:


ActionScript Code:
loadCount = 0;
stop();
for (var i = 0; i<thumbnails.length; i++) {
    if (pages[currentPage][i] != undefined) {
        loader = new MovieClipLoader();
        links[i] = pages[currentPage][i];
        loader.loadClip(links[i],thumbnails[i].img);
        loader.onLoadInit = function(image) {
            trace("loaded "+image);
            loadCountPages();
        };
    } else {
        loadCountPages();
    }
}

function loadCountPages() {
    // counts how many images have loaded //
    if (++loadCount == pages[currentPage].length) {
        loadCount = 0;
        play();
    }
}

The code appears to function without problem (the loader.onLoadInit function is invoked), but no image is actually shown on the page.

Any suggestions as to why this is the case?

Load Thumbnails On MouseWheel
Hello all,

I am new to the forum and i have this question.

I am loading thumbnails from a xml file. So far so good. I have 3 rows x 3 columns total 9 thumbnails displaying. The problem is that my thumbnails are hundreds. What i want is to load the next 9 thumbnails every time i scoll my mouse wheel like www.thefwa.com does.

Thanks in advance.

Using Xml To Load Text And Thumbnails
I've bitten off more than I can chew when deciding to try my first Flash movie for a long time, it is a portfolio website, that when a user clicks on an item from a list, it loads the title and text description of that item and 4 thumbnails. I'd like some help understanding what I'm trying to do and also how to go about doing it. This could be an ongoing thread as I work through it.

Firstly should my xml file look like this:

<portfolio>
<item id=1>
<title>This is the first item</title>
<description>This is the description for the first item</description>
<thumb id=1>firstthumb.jpg</thumb>
<thumb id=2>secondthumb.jpg</thumb>
<thumb id=3>thirdthumb.jpg</thumb>
<thumb id=4>forththumb.jpg</thumb>
</item>
<item id=2>
etc etc
</portfolio>

Where item is the clicked item which has a title a description and an array of 4 thumbnails.

Does this look right?

I know the code to load the xml file but how do I go about retrieving the single values of the title and descritpion and then looping through the thumbs and displaying these as movieclips on the page side by side.

Any advice or links to similar code examples would be really helpful.

Many thanks in advance

Mark

Location Of Thumbnails On Load
I've been able to get everything from the tutorial Photo Gallery XML with thumbnails to function except for one thing. When you first open the gallery the thumbnail images load on the right side and stop instead of loading on the left. Scrolling works fine once you engage the mouse.

Any suggestions?

Show Or Load Thumbnails?
I'm using Flash MX 2004 and actionscript 2.0 and have been working with the xml and adding thumbnails to the photo gallery tutorial in Kirupa. What I'd like to do is only show the thumnails onRollOver and then have them go to open a new page outside of the flash site onRelease. So far I found one solution for the onRollOver but I'm not sure it's the best one:


ActionScript Code:
clip.onRollOver = function() {   this._alpha = 100;  };  clip.onRollOut = function() {   this._alpha = 0;  };


This works great but with one big hitch. It loads all the thumbnails first and then once I run over all of them it hides and shows them onRollOver and onRollOut. Is there a way to hide them when the page first loads and then only start showing them onRollOver? I'm really not sure the best way to do it. Is there a way to create a mask hiding everything until onRollOver or possibly a setting for the initial mc.borderFill that would create that effect? Or would it be better to try to figure out how to load them onRollOver. The other part is the link to another site onRelease. I have the links setup in my xml but not sure how to set up a geturl onRelease with _blank to read into the actionscript. I'm very new to working with xml and actionscript and still searching for the best solutions. Thanks in advance for any help!

Load Thumbnails Dynamically.
Hi,

Im trying to achieve a similar effect for thumbnails like on this site. I've managed to load the images onto the stage dynamically using this:

Code:
loadMovie("contents.swf", image_mc);
That seems to be working fine and the only problems i'm having are trying to get the images to fade-in when they load. I've been playing around with mc._alpha += 5; functions but to no avail.

Any help will be appreciated.

Monitoring Load Movie In Internet Explorer ...
Hi,
Does anyone know if you can monitor .swf's that are loaded into a .swf in internet explorer?
E.g. you can see the status bar loading the main flash interface, but if another .swf is loaded into the interface using load movie, can you monitor its download progress in IE?
Any ideas would be great
Thanks
Tim

Load Movie Not Working In Internet Explorer
Strange, the movie works fine in flash but when I test it in the html page made in dreamweaver the load movie button doesn't work at all

[F8] Odd Flash Load Behavior In Internet Explorer
Have any of you seen this behavior? In firefox it works fine but in Internet explorer the flash images does not load until you move the mouse over the flash. I tested it with and without the javascript wrapped around. It is most likely related to my actionscript.

here is the website

http://www.death-by-design.net/product.aspx?c=tshirts

thanks for any tips,

-matt

Load Movie Based On Explorer Address?
Hi!

I've got a question for all of you FLASH-masters out there.

I'm currently working on a website, based on ASP and a database. It loads the content on the page from a database.

Now to the problem. I've got a flash menu/image viewer at the top of the page. ( ex. When I klick on "About" the menu/movie clip shows an "About" image). The problem is that the website is based on only ONE page (default.asp) So, whenever I klick on a link, let's say "About" the page reloads and the About page is shown, BUT! the flash menu/movie is reloaded and moves back to the start of the timeline ( In this case the "welcome" image).

My question is: Is there a way to tell what part of the movie clip to be shown based on the explorer address, or is there another way around this problem?

I don't want to use frames on my website because then the scroller is "miss placed".

I hope I have explaind my problem fairly well, so you all can understan what the h*ll I'm talking about.

Thank you!

Jpegs Wont Load With Internet Explorer
Hi, I am currently programing my portfolio site and I have tried a couple different ways of loading Jpegs from an images folder into an empty movie clip. Both worked sucessfully everywhere but PCs, which I hear are kind of important. First I tried the basic LoadMovie ("jpegmane.jpg", movieclip_mc) and that was unsuccessful. Next I tried the following code:

ink_mc.cacheAsBitmap = true;
mask_mc.cacheAsBitmap = true;
ink_mc.setMask("mask_mc");



var loader:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();

listener.onLoadComplete = function(target:MovieClip) {
trace("LOAD COMPLETE");
target._parent.load_text._alpha = 0;
//target._parent.play();
}

listener.onLoadProgress = function(target:MovieClip, bL:Number, bT:Number) {
trace("PROGRESS: " + (bL / bT) * 100);
}

loader.addListener(listener);

print_btns.print1.onRelease = function() {
loader.loadClip("images/print_philroy.jpg", content_mc);
_root.ink_mc._alpha = 0;
_root.gotoAndStop("print");
}


I haven't had any problems like this before with PCs. Any suggestions out there?

THanks in advance.

Brandon

Dynamically Load Low Resolution Thumbnails
Is there a way to load lets say mypic1.jpg,mypic2.jpg,mypic3.jpg as low resolution smaller sized thumbnails so that the entire file size of the jpg doesn't have to be loaded unless the hi res version is loaded by clicking on the thumbnail?

[F8] Using An Array To Load Images Into Thumbnails
I am new to arrays.

I am generating thumbnails based on the length of an Array. The array looks something like this (tree.jpg, ant.jpg, fish.jpg, etc) I need to load those images into the thumbnails I have created. I am using the following code:

var spacing:Number = 10;
var rows:Number = _parent._parent._parent.numberOfFiles; //my array length
var columns:Number = 1;
var myDepth:Number = 1;

// double-loop which will do the creating and placing of the MC's
for (i=0; i<rows; i++) {
for (j=0; j<columns; j++) {
//set the x and y values before setting the new imageName
var x:Number = i*(this[imageName]._width+spacing);
var y:Number = j*(this[imageName]._height+spacing);
//set the new imageName for this loop run
var imageName:String = "image"+i+"_"+j;
//increase the depth value before attaching
myDepth++;
//attach a clip
this.attachMovie("thumbnail", imageName, myDepth);
//place the new clip using the x and y

//values calculated at the start of the loop
this[imageName]._x = x;
this[imageName]._y = y;
}
}

how do I load them into the thumbnails?

thanks in advance!!!

[CS3] How Remove Thumbnails After Gallery Load.
Hello....i made a main gallery that opens 16 galleries (on the main screen there are 16 thumbs that each open a gallery)...and when i click on one it load an external gallery someting like ... photogallery.swf, the problem is this....when i click it and opens the gallery is over the thumbs and they on over the other, and when i click other sections of my site the gallery remains open...does it has someting to do with levels? I just want to click on the thumbnail and open that file....and after that the thumbnails to disapear...I will attach my gallery file and the file used to open the galleries...thank you for the help. Did it myself, Merry Christmas to you all!

External Thumbnails To Load One At A Time?
Hello.
Please could someone help me with this one I've been battling with for a few days... My actionscript knowledge is limited, but I should be able to work out how to use it if someone can attempt to give me a hand. I have manipulated a flash photo gallery which loads external jpg's from a text file into movie clips. The gallery loads them into a set of selectable thumbnails. Here is an example of the code. It's all in a single frame.

function loadFiles() {
filesVars = new LoadVars();
filesVars.onLoad = successFiles;
filesVars.load("data.txt", filesVars, "POST");
loadingQR._visible = true;
}

listFiles()
img1.loadImage("images/"+"imagename"+"1.jpg");
img2.loadImage("images/"+"imagename"+"2.jpg");
img3.loadImage("images/"+"imagename"+"3.jpg");

loadFiles();

This is my problem: I have been trying to create it in such a way that each thumbnail loads in order one at a time and fades in (similar to the way imagevue works-http://www.imagevuex.com/imagevue/). But I've tried and tried, but with no success. I have tried setInterval and clearInterval, but it seems that it is only letting me use it with one movie clip.

myInterval1 = setInterval(loadImage, 100);
function loadImage(){
img1.loadImage("images/"+ct.text+"1.jpg");
clearInterval(myInterval1);
};

I have also tried using actionscript to increase the alpha settings of each jpg as it loads. But it seems that it doesn't work because all the images load into one frame - so the alpha setting stops at its initial value.

Am I looking in the wrong direction? Does anyone have suggestions?

Thanks very much for any help.
Paul.

Thumbnails Won't Load From Xml To List For Video
I am working on a project that will show the thumbnails on the right, and when one is selected, it will load the video to the left.
My work in progress can be viewed at www.fimm.tv, see code attached.

The xml file, flv file .live in the same folder, and the xml file is this

<?xml version="1.0" encoding="ISO-8859-1"?>
<videos>
<video url="test.flv" desc="Linda" /></video>
<video url="test.flv" desc="1" />
<video url="test.flv" desc="2" />
<video url="test.flv" desc="3" />
</videos>

I am following an awesome tutorial found on the web and this has helped me a great deal so far. Can anyone spot why my text is not displaying.

All help appreciated









Attach Code

var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
video.attachVideo(stream_ns);
//stream_ns.play("test.flv");


rewindButton.onRelease = function() {
stream_ns.seek(0);
}

playButton.onRelease = function() {
stream_ns.pause();
}


var vlist:XML = new XML ();
vlist.ignoreWhite = true;

vlist.onLoad = function(){
var videos:Array = this.firstChild.childNodes;
}

for (i=0;i<videos.length;i++){
videoList.addItem(videos[i].attributes.desc,videos[i].attributes.url);
}

stream_ns.play(videolist.getItemAt(0).data) ;
videoList.selectedItem = 0;

var vidList:Object = new Object();
vidList.change = function() {
stream_ns.play (videoList.getItemAt(videoList.SelectedIndex).data);
}
videoList.addEventListener("change",vidList);

SECUENTIAL Load Of Thumbnails For 3D Gallery
look this:



http://www.theguaz.com/render_estudio/

I need to make a SECUENTIAL load of thumbnails, anyone can help me with this.



theguaz

Ext. Load Xml Gallery And Thumbnails Don't Move
I followed the tutorial for the xml gallery in the flash tutorials on this site and made a nice xml gallery. I call it in my Main.swf file, (which has a content_mc to load external movies into) with: content.loadMovie("SideGraphics.swf");

When Main.swf gets to the frame and calls content....., the xml gallery loads fine for everything except, the fancy mouseover the thumbnails and they start scrolling.

The scrolling thumbnails work when the movie is ran by itself, but not when it is imported into Main.swf. My guess would be somehow the mouselistener doesn't get imported as well?

Please help!!

http://www.kirupa.com/developer/mx2004/thumbnails.htm

Thumbnails Change Position On 2nd Load -->
Hi everyone, this is my first post in this great site.
I'm building an XML based gallery, and I used the kirupa tutorials for that (both of them).
but I wanted a grid look for the thumbnails and I found this great post by ikim just for that:
http://www.kirupa.com/forum/showthre...l+gallery+grid

So I managed to suit the code to my gallery and everything is going good.
but there is one problem:
when I press the button that loads the XML (WITH THE THUMBS), they load like they supposed to:

thumbs1.jpg

but when I press again on the button, they load like this:

thumbs2.jpg

and stays like this.. Why is that?

here is the complete code I use to load the images and thumbnails:


Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
thumbnails = [];
_global.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;
thumbnails[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
thumbnailer(i);
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("xml/kitchen.xml");
/////////////////////////////////////
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
_global.desc_txt = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
_global.desc_txt = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
_global.desc_txt = description[0];
picture_num();
}
}
function picture_num() {
_global.current_pos = p+1;
_global.pos_txt = current_pos+"/"+total;
}
//////////Load clicked thumbnail Image Function////////////////////////////////////////////////
function callImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
_global.current_pos = p+1;
_global.pos_txt = current_pos+"/"+total;
}
}
//////////Thumbnail maker///////////////////////////////
function thumbnailer(k) {
loaded_counter = 0;
total_thumbs = _global.total;
var container = _parent.pages.gallery.thumbnails.thumbnail_mc.createEmptyMovieClip("th"+k, _parent.pages.gallery.thumbnails.thumbnail_mc.getNextHighestDepth());
container._visible = false;
container._alpha = 0;
var image = container.createEmptyMovieClip("img", container.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue;
_global.desc_txt = description[p];
callImage();
};
target_mc.onRollOver = function() {
var myColor:Color = new Color(this);
var white:Object = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
myColor.setTransform(white);
this.onEnterFrame = function() {
white.rb += 20;
white.gb += 20;
white.bb += 20;
white.ab += 20;
myColor.setTransform(white);
if (white.rb>150) {
white.rb = 0;
white.gb = 0;
white.bb = 0;
white.ab = 0;
delete this.onEnterFrame;
}
};
};
target_mc.onRollOut = function() {
var myColor:Color = new Color(this);
var white:Object = {ra:100, rb:150, ga:100, gb:150, ba:100, bb:150, aa:100, ab:150};
myColor.setTransform(white);
this.onEnterFrame = function() {
white.rb -= 10;
white.gb -= 10;
white.bb -= 10;
white.ab -= 10;
myColor.setTransform(white);
if (white.rb<0) {
white.rb = 255;
white.gb = 255;
white.bb = 255;
white.ab = 255;
delete this.onEnterFrame;
}
};
};
loaded_counter++;
counting_txt = loaded_counter;
if (loaded_counter == total_thumbs) {
grid_maker_01();
}
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "_parent.pages.gallery.thumbnails.thumbnail_mc.th"+k+".img");
}
///////////Layout Functions/////////////////////////////////////////////////////////////////////
MovieClip.prototype.grid_maker_01 = function(f) {
num = 0;
col = 3;
row = (_global.total/3)+1;
scale = 60;
space = 5;
for (l=0; l<row; l++) {
for (j=0; j<col; j++) {
if (num<_global.total) {
with (eval("_parent.pages.gallery.thumbnails.thumbnail_mc.th"+num)) {
_x = ((_width+space)*scale/100)*j;
_y = ((_height+space)*scale/100)*l;
_xscale = _yscale=scale;
_visible = true;
}
num++;
}
}
}
this.cascader();
};
//////////////////////////////////////////////////////////////////////////////////
MovieClip.prototype.cascader = function() {
inter = 200;
c = 0;
delayed_fade = function () {
if (c<_global.total) {
with (eval("_parent.pages.gallery.thumbnails.thumbnail_mc.th"+c)) {
fadein();
}
c++;
} else {
clearInterval(delay);
}
};
delay = setInterval(delayed_fade, inter);
};
///////////////////////////////////////////////////////////////////////////////
MovieClip.prototype.fadein = function() {
this.onEnterFrame = function() {
if (this._alpha<100) {
this._alpha = this._alpha+5;
} else {
this._alpha = 100;
delete this.onEnterFrame;
}
};
};
///////////////////////////////////////////////////////////////////////////////////////
MovieClip.prototype.positioner = function(xDest, yDest, rDest, aDest) {
this.onEnterFrame = function() {
this._x = xDest-(xDest-this._x)/1.2;
this._y = yDest-(yDest-this._y)/1.2;
this._alpha = aDest-(aDest-this._alpha)/1.2;
this._rotation = rDest-(rDest-this._rotation)/1.2;
if ((Math.abs(xDest-this._x)<=1) and (Math.abs(yDest-this._y)<=1)) {
delete this.onEnterFrame;
this._x = xDest;
this._y = yDest;
this._alpha = aDest;
this._rotation = rDest;
}
};
};
//////////////////////////////////////////////////////////////////////////////////
Any help?
tnx in advance..

BTW, the button uses the loadMovie function.

Load Dynamic Images As Thumbnails...
Hi,

can anyone help me???? in building an application where we can load images from xml into flash movie as thumbnails and on click of the thumbnails the image enlarge.

Or atleast help me in loading images into a movieclip with scroll bar.

thankyou in advance.

Movieclip Thumbnails That Load Different Images In Thumbnail?
Ok lets say I want to create a brightening effect everytime someone rolls over a button. I make my movieclip with the animation it works. Problem is I have 10 thumbnails that need the same effect. So I need to swap out the images for each thumbnail. Also add a different url to load when clicked. How would one do that. I know how to load images with xml and click them to load the large image but not how to load movie clips that load external images for thumbnails thanks.

Dynamic Flash Images Don't Load In Intenet Explorer Until Mouse Over
Has anyone ever seen this behavior before where dynamic flash Images don't load in Internet Explorer until you place the mouse over the flash object? It works fine in Firefox. I am thinking it must be the way I wrote the actionscript. I tested it with and without the javascript wrapper to prevent users from needing to click on the object to activate it.

Here's the page to show you an example...
http://www.death-by-design.net/product.aspx?c=tshirts

Thanks for any leads or information on this issue!
-Matt

Website Doesnt Load In Stupid Explorer Until Refresh Is Hit, Fine On Firefox...
What is IE's deal? Its pants..

www.elbowspin.com/raff

Fine in Mozilla, but when IE is used you have to hit refresh to get the content loaded? Is there anyway to do a page refresh command from actionscript?

Thank you...

Problem Getting Flash/Director Animation To Load In Internet Explorer [renamed]
I am SUPER new, so please don't laugh at me...

I have created a VERY simple animation in MX2004 and placed it in an HTML file using Dreamweaver. When I visit it using Mozilla Firefox, it works fine. However, when I visit the site using Internet Explorer, it shows the Macromedia Shockwave "loadin bar looking" screen and never loads and doesn't display the animation. Please help me, I'm dumb! Thanks!

J

Text Over Thumbnails: Adding Thumbnails Photo Gallery Using XML And Flash Tutorial
So I went through the adding thumbnails supplement to the XML Photo Gallery (http://www.kirupa.com/developer/mx2004/thumbnails.htm) and it works great. I wanted to put the label of the image over the thumbnail when the user mouses over the thumbnail. Any thoughts on how to do this? I want it to look like these thumbnails http://www.commonskymedia.com/index.html#reel. Thanks!

Internet Explorer And Flash - Freakin Explorer Bar
Okay, I'm pretty new at with Flash, and the whole actionscript/xml/xhtml stuff. When I upload my .swf to the web, I always get that explorer bar dropping bombs everytime I open the page. And I get it on just about every computer. Is there a special embed tag or some trick I'm missing to make that thing go away. Also, why do some sites automatically focus and others not. How do I do that?

Thumbnails Tutorial - How Can I Make The Thumbnails Scroll By Default?
i have modified the xml photogallery on my site as i only want to use the scrolling thumbnail component but as a tool to scroll images.

2 modifications i would like to make that have me stuck!

1) how can i make the thumbnails scroll by default on load?

2) how can i add a little preloader within the empty thumbnail holder movieclip? i am loading the main gallery images directly into this clip rather than using it to display thumbnails

many thanks in advance if you can help!

natalie

Extra Thumbnails To "Adding Thumbnails"
I've searched the forum but there is not a certain solution. (http://www.kirupa.com/forum/showthre...tra+thumbnails)
I am trying to add the gallery extra thumbnails to use as extra information. Shortly trying to make a little thumbnail which will be change when clicked the main thumbs as the example below..
Thanks for your help if u can...

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