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




Loading External Swf/jpgs



Hello!Just put up this site here:http://www.zoeelizabeth.com.au/The only bug I seem to have is that when any section/image is selected, the site tries to load the swf/jpeg twice! I know it has something to do with the script I'm using to load the site.In Safrai - if the 'about' section is selected first it doesn't load at all..!Here's a snippet of my code:Code: function mainMenuAction(id:Number):Void{   if (id != 0){       changeSection(id);      hideThumbs();      _root.bgImage_mc.blank.alphaTo(0,1)         }else{      resetMenu(0);      buildThumbs();      _root.content_mc.alphaTo(0,0.5);                  }}function changeSection(id:Number):Void{   //resetCollectionMenu();      trace("change section");   //trace("collectionSection: " + collectionSection);         resetLoader()   resetMenu(id);      content_mc.alphaTo(0,0.5,"easeInQuad",0,loadContent);   content_mc.Blur_blurTo(50,0.5,"easeInQuad",0,loadContent);      function loadContent():Void{      trace("load content");            loadMovie(contentArray[id] + ".swf", content_mc);      loader_mc._visible = true;      loader_mc._alpha = 0;      loader_mc.alphaTo(100,0.5,"linear");      loader_mc.Blur_blurTo(0,2,"linear");            _root.onEnterFrame = function(){         actBytes = _root.content_mc.getBytesLoaded();         totBytes = _root.content_mc.getBytesTotal();         percent = Math.round(actBytes * 100/totBytes);         loader_mc.loadingBar_mc.xscale = percent;                  if ((totBytes == actBytes) && (totBytes > 4)) {            finishedLoadingContent();         }      }   }   function finishedLoadingContent():Void{      trace("done loading");            delete _root.onEnterFrame;      //content_mc.play();            loader_mc.alphaTo(0,0.5,"linear",0,killLoader)      loader_mc.Blur_blurTo(0,0.5,"linear");;   }   function killLoader():Void{      loader_mc._visible = false;      _root.content_mc.alphaTo(100,2);      content_mc.Blur_blurTo(50,0);      content_mc.Blur_blurTo(0,1,"easeOutQuad");   }}function resetMenu(id:Number):Void{   for (i = 0; i < contentArray.length; i ++){      menuItem = nav_mc.menu_mc["item_mc" + i];      menuItem.hitState_bt._visible = true;      menuItem.label_mc.scaleTo(100,0.8,"easeInOutQuad");      menuItem.label_mc.alphaTo(100,0.5,"easeOutQuad");      //menuItem.colorTo(null,0.5,"easeOutQuad");   }   selectedMenuItem = nav_mc.menu_mc["item_mc" + id];   selectedMenuItem.hitState_bt._visible = false;   selectedMenuItem.label_mc.scaleTo(110,0.5,"easeOutExpo");   selectedMenuItem.label_mc.alphaTo(35,0.5,"easeOutQuad");   //selectedMenuItem.colorTo(0x000000,0.5,"easeOutQuad");} :?



Actionscript 2.0
Posted on: Tue Apr 24, 2007 1:25 am


View Complete Forum Thread with Replies

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

Loading External Jpgs
im trying to load a bunch of external images, and this is the script that im using to do it:

rndNumber = (picsArray.length);
while (rndNumber>0) {
rndPos = random(rndNumber);
item = picsArray[rndPos];
picsArray.splice(rndPos, 1);
picsArrayRnd.push(item);
loadMovie(item+".jpg", "_root."+_root.version+"thumb"+rndNumber+".pichold er");
loadMovie(item+"b.jpg", "_root."+_root.version+"thumb"+rndNumber+".pichold erb");
set(_root+".picture"+rndNumber, (item));
rndNumber = rndNumber-1;
}

so, that loads all the pictures the way i want it to, but how would i go about having it wait for all of them to be loaded before it proceeds? i know that i should be able to figure it out, but its just one of those things i cant get to work. thanks

Loading External Jpgs
I'm trying to make an image viewer that loads external jpgs via xml. Can this be saved as a flash 5 player file? I keep getting output error messages saying not in flash 5, but I'm not sure if it's the script that I'm doing wrong or the very fact it's xml. I'm sure most viewers won't have flash 6 player, including the client.

Loading External Jpgs.
Hi
Im quite new to Actionscript and im having a little trouble. (MX04 - would like to publish as v6)

i want to open a text file to get a variable telling flash how many images to load, then loop through duplicating movieclips and loading the images (images are called 1.jpg, 2.jpg etc)


loadNum = new LoadVars ();
loadNum.onLoad = function (ok)
{
if (ok) {
_root.numPics = _root.loadNum.numb;

//## start duplicating movie clip holder for images
for (i = 1; i <= _root.numPics; i++) {
holder_mc.duplicateMovieClip ("holder_"+i+"_mc", i);
_root["holder_"+i+"_mc"]._x = 150 *i;

_root["holder_"+i+"_mc"].loadMovie ("assets/images_flash/"+i+".jpg" );

}
}
};
loadNum.load ("numpics.txt");



the movie clips are being created , positioned and named as expected, but the images are not showing.

any input would be much appreciated.

thanks
ben

Loading External Jpgs
I am trying to create a movie dynamically, size it, place it in a particular place on a page and then load in a jpg.

I am using the following code on frame 1 to create the movie:

createEmptyMovieClip("PhotoHolder_mc",0);
with (PhotoHolder_mc) {
_width = 550;
_height = 399;
}
PhotoHolder_mc._x=150;
PhotoHolder_mc._y=0;

Farther down in the same frame, I am attempting to load the jpg using the following code:

loadMovie("Blank.jpg", "this.level0.PhotoHolder_mc");

Unfortunately, nothing happens when I play the movie. Anybody have any ideas regading how I can fix this to work? BTW, Blank.jpg is in the same folder as the SWF>

Any help is greatly appreciated.

Sincerely,

Richard

Loading External Jpgs
trying to load 640X480 frame grabs stored as jpgs on a third party site, resize them to 320X240 and incorporate them into a slide show for a web site. trying to create something similar to the large flash movie in the upper left hand corner of the http://www.mtv.com/ site (with Uma Thhurman). Also is there somewhere to find the navigation buttons like that? Sorry about the jumbled question. Any help greatly welcomed

Loading External JPGs
Hi

Guys I’m trying to change my website portfolio section from having the jpgs embedded in the swf file, to one that will load the jpgs from an external folder but this is becoming a little bit to complicate it for my actionscript knowledge.

My dilemma now is that the external folder has 23 pictures right now but when moving the mouse up and down over the menu, it jumps from jpg 23 to 16 and back.


http://www.alexcreative.com/qbaMenu/index.html

I want to have an script that could show me all the images when I scroll up and down on mouse over, So not matter the amount of jpgs I drop in the future on the external path “images humbnails” folder it will always scroll all the jpgs if I choose to.

This is the script that is controlling the menu right now:


Code:
// ::::: MovieClip Events

private function onEnterFrame():Void {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.$itemsContainer._y = 40-(this._ymouse)-1100;
}
}
}

If some one wants to take a look at the code to help me out to figure out what is wrong, here are copies of the files:

(The actionscript are not embeded on the main ".fla". They are ".as" files at this path: classes/com/alexcreative/Menu.as)

ftp://visitor:visitor@69.195.79.28

I hope some one can help me out to figured out how to change the script so when I scroll up and down on mouse over, it will let me scroll through every jpg if I choose too, (not matter the amount of jpgs I have in the external thumbnail folder)

Thanks

Alex

Loading External Jpgs
hey,
im loading some jpgs on my site n i have this code:

onClipEvent (enterFrame) {
// Fill in your stage width/height
stage_width = 614;
// this stage, not the main stage, the box above, dufus. )
stage_height = 490;
// If this imageholder contains an image , center it
if (this.getBytesLoaded()>=this.getBytesTotal() && this.getBytesTotal()>500) {
centerw = stage_width/2;
centerh = stage_height/2;
this._x = centerw-(this._width/2);
this._y = centerh-(this._height/2);
}
} i want my jpgs to load on the bottom right corner of my mc-- (not in the center) what code do i write instead?


thx u guys!!!! ALOT!

Loading External Jpgs
hey,
im loading some jpgs on my site n i have this code:

onClipEvent (enterFrame) {
// Fill in your stage width/height
stage_width = 614;
// this stage, not the main stage, the box above
stage_height = 490;
// If this imageholder contains an image , center it
if (this.getBytesLoaded()>=this.getBytesTotal() && this.getBytesTotal()>500) {
centerw = stage_width/2;
centerh = stage_height/2;
this._x = centerw-(this._width/2);
this._y = centerh-(this._height/2);
}
} i want my jpgs to load on the bottom right corner of my mc-- (not in the center) what code do i write instead?


thx u guys!!!!

Loading External Jpgs
Hi There,
Just wondering if anyone could shed some light on how to preload an existing jpg for my image previewer.

What i have based very closely to this : tutorial

However i'm wanting to select one of my pictures to load automatically instead of just appearing blank & waiting for someone to press a button.

The main script from that tutorial is here ;
imgbtn1.onRelease = function() {
infoField._visible = true;
startLoading("picture1.jpg");
};
imgbtn2.onRelease = function() {
infoField._visible = true;
startLoading("picture2.jpg");
};
imgbtn3.onRelease = function() {
infoField._visible = true;
startLoading("picture3.jpg");
};
function startLoading(whichImage) {
loadMovie(whichImage, "imageLoader");
_root.onEnterFrame = function() {
infoLoaded = imageLoader.getBytesLoaded();
infoTotal = imageLoader.getBytesTotal();
percentage = Math.floor(infoLoaded/infoTotal*100);
infoField.text = percentage+"%";
if (percentage>=100) {
delete this.onEnterFrame;
infoField._visible = false;
}
};
}

if some could help me with this, it would be appreciated.
cheers

Loading External Jpgs
Hello,

Does anyone know if you load an external jpg into a movie clip, is the image automatically centered onto the clip?

Thanks,
WARD

External Jpgs Not Loading
Hi,

I'm having trouble with code i wrote to create mc's and get external jpgs. I'm not getting any errors, and the script is pulling the jpgs, but the jpgs aren't showing in the swf. I've looked at it for awhile. Another pair of eyes would be GREATLY appreciated.

The project:
http://www.nicolerae.com/kslphoto/home.html

(It's a 20-30 second load time on a cable modem, which is why i've opted to create mc's and get external jpgs on the fly).

I wrote code to createEmptyMovieClip and loadMovie (jpgs), as well as get widths of the jpgs and adjust _x values of the mc's (to create a string of photos that work like the Barney's relative scroller). The code exists in a mc called TheMovieClip.

PHP Code:



_root.onLoad = function() {
    for(x=1;x<=32;x++) {
        i = x - 1;
        if(i <= 9) {
            item_i = "0"+i;
        }
        else {
            item_i = i;
        }
        if(x <= 9) {
            item_x = "0"+x;
        }
        else {
            item_x = x;
        }
        _root.TheMovieClip.createEmptyMovieClip("photo"+item_x, x);
        this_holder = "_root.TheMovieClip.photo"+item_x;
        trace(this_holder);
        this_holder.loadMovie("photos/"+item_x+".jpg");
        if(x == 1) {
            this_holder._x = 0;
        }
        else {
            prev_holder = "_root.TheMovieClip.photo"+item_i;
            new_left = prev_holder._x + prev_holder._width;
            this_holder._x = new_left;
        }
    }


Loading External Jpgs
Hi,

I have a flash movie that loads in external Jpgs.
It works completely fine in Movie Preview but when I view the movie in a browser - none of the images load.

Does anyone know what Im missing?

Thanks,

Pete

Loading External JPGs
I'm building a generic slideshow. The slideshow displays NINE buttons. Each button, when clicked, will load a corresponding external JPG. For example, if I click BUTTON THREE then JPG THREE is loaded. BUTTON TWO loads JPG TWO, etc.. I'm looking for a way to "recognize" if there are FEWER available JPGs than the NINE BUTTONS in my slideshow. For example, if I have just FIVE JPGs available and I click on button number SEVEN, I want nothing to happen. At the moment I get an error message that JPG SEVEN does not exist.

Loading External Jpgs
how can you load external Jpgs into a swf instead of loading them and compiling the swf. so that they appear in the cache. Whats the function to do this, or is there a tut?

External Jpgs Not Loading
im new here and have spent all day searching the forums for the answer. ive not really found anything mentioning the same problem im having.

doing this little site. loading in jpgs. works fine in the application but when i view it in a browser the imgs dont seem to be loading all of a sudden.

the actionscript seems to be working because the other things that are supposed to happen, are except the img not showing up.

ive tried saving the files as progressive and not. tried the kirupa tutorial file and got the same problem.

this is what im using to load the imgs into a container...


Code:
var mcLoader:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
listener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
loadClip._visible=1
loadClip._xscale=Math.round((bytesLoaded/bytesTotal)*100)
}
listener.onLoadInit = function(target:MovieClip):Void {
loadClip._visible=0
imgHold.iHold._x=-(imgHold.iHold._width/2)
imgHold.iHold._y=-(imgHold.iHold._height/2)
var iCover:Tween = new Tween(imgCover, "_alpha", easeOut, imgCover._alpha, 0, .5, true);
}
mcLoader.addListener(listener);
mcLoader.loadClip(iSect+"/"+iSect+iMode+iCurr+".jpg", imgHold.iHold);

_global.iCovOn=function() {
var iCover:Tween = new Tween(imgCover, "_alpha", easeOut, imgCover._alpha, 100, .5, true);
trace(imgCover._alpha)
iCover.onMotionFinished = function () {
mcLoader.loadClip(iSect+"/"+iSect+iMode+iCurr+".jpg", imgHold.iHold);
_root.currNum=_global.iCurrNum+" / "+_global.iSectNum
_root[_global.iCurr].gotoAndStop(3)
}
}
if anyone can help i can send a link or files or whatever.

i cant seem to find anything or anyone thats having the same issue but everybody seems to have the same solution for jpgs not loading right.

its prolly something stupid im missing and just dont know enough about what to even search for.

please anyone, help!?

Loading External Jpgs
how can you load external Jpgs into a swf instead of loading them and compiling the swf. so that they appear in the cache. Whats the function to do this, or is there a tut?

External Jpgs Not Loading On Some Computers
Greetings,

A site I built in MX using external jpg's only works for some people. It won't load the images half the time. The rest of the site works.

It's driving me crazy because it always works for me. Is there some issue with external jpgs? I made sure they are not progressive or optimized. I've rebuilt the swf files several times trying different code, but always the same problem on some computers.

The site is: http://www.ripemagazine.com

Any help would be appreciated.

AScript For Loading External JPGS
If anyone can point me in the right direction-

i've tried making a flash portfolio w/embedded jpgs-
which results in a huge swf that takes forever to load.

some people suggested i use a script to load the
jpgs directly off my server.

Is it more than just LOADMOVIE?
Do i need to make a preloader for each jpg?

thanx

Loading External Jpgs For Slideshow
well, since im not quite an expert in flashprogramming, lets take this nice and slow shall we?=) ive been throwing together some kindof picture slideshow which u can see here http://ninja.jadrax.net/solinvest/solinvest.html the only problem is that the jpg-pictures showed whitin the movie is embedded in the swffile and hell complicated to change, as u probably already have figured out i want the jpgs to be loaded externally from a directory at the server, how do i do this and if possible, do i have to CODE all movements of the pictures, for instance resizes and elite zoom effects? love! /ninj

Loading External Jpgs (one At A Time)
Ok,

I am duplicating buttons and then loading pics into them. As it stands at the moment, I am duplicating a button (n number of times) and at the same time loading the images into the buttons...

... but what I want is for the buttons to duplicate, then load one pic at a time into the duplicated buttons rather than the images load straight into all of them. Once one pic has fully loaded it goes onto the next and so on...

Do I need to mess around with the preloader and add a few variables in to achieve this or do I need to just do a loop using while() or for()?

Anyone got any ideas?

Loading External Jpgs And Resize
Hello, I want to know how can I load external jpgs into a "frame" and depending on the size of the jpg resize this "frame" as you can see here:

http://www.terra.es/personal8/933170888

Thanks in advance.

Loading External Jpgs With Preloader
Hi,

I have a button with that action:

on (release) {
_root.loadMovieclip("carga", 1);
carga.loadMovie("0.jpg");
carga._x = 131.9;
carga._y = 68.5;
}

and works... But i want to make a preloader with each image.

--------------

I´ve found this code in (http://www.flashguru.co.uk/000044.php):

//create a new movieclip to load
//the external movie into
this.createEmptyMovieClip("holder",1);
//load the external movie into the new movieclip
holder.loadMovie("http://www.macromedia.com/uber/nav/global_home.swf");
//check the download status of the external
//movie once every frame
this.onEnterFrame=function(){
____//trace the percentage of the movie that has loaded
____percent=(this.holder.getBytesLoaded()/this.holder.getBytesTotal())*100;
____if(!isNan(percent)){
________trace(percent+"% loaded");
____}else{
________trace("0% loaded");
__
____}
____if(percent == 100){
________delete this.onEnterFrame;
________}
}

----------
But doesn´t work...

Any help?, Thanks

Regards, Javier

Loading Jpgs From An External Server
I'm told you can create a slide show in Flash by loading individual jpgs from an external server when the user selects a button (ie a 'next' button would load a new jpg into a designated place) and replace the old one. This would save lots on loading time and make it easier to update.

Can anyone point me in the right direction? Please!!

Bar Graphic For Loading External .jpgs
hi again, ive been through many tutorials and none seem to conver all the points i need on this. im actionscript illiterate.

i want to load a .jpg into my swf, as the background.
as it loads, i want a red bar grow out from the right side of the swf (like. it grows right to left)

i understand the concept of an empty movie clip, and i amusing this code:

onClipEvent (load) {
container.loadMovie("bg_main.jpg");
this.onEnterFrame = function() {
percent = (this.container.getBytesLoaded()/this.container.getBytesTotal())*100;
if (!isNan(percent)) {
_root.fill_mc.gotoAndStop(Math.floor(percent));
} else {
if (percent == 100) {
_root.gotoAndStop(2);
}

the result is:

www.thinkingimpaired.com/kelsey/test.swf


as you can see the red bar (and words on it) appear at the very beginning flash, before it begins to load. that is frame 100 of the bars animation - i dont why its on frame 100 at the beginning.

any ideas?? thanks!!

-sirK

Loading External Jpgs - Different Host
i found a site that has hot women images named after every day
so i built this flash calendar to go and request an image for every date clicked

http://www.dcmdesign.net/play/women/00_calendar.html

the wierd thing is, it will work 95% of the time from my flash environment
but if i use my browser, it only gets the images for the one i selected while testing with flash

ex:
i run in flash environment
select today - gets image

i run in browser
select today - shows image
select yesterday - no image

but if i go back to flash environment
select tomorrow - gets image
go back to browser
select tomorrow - it shows image

sounds like the flash environment can get the image, while the browser only gets the cached

why is that?
how can i work around it?

Loading External Jpgs Into Internal MC
I want to be able to load an external image, such as a jpg or gif into an internal flash 'pop up' window when the user presses a button. I've found a tutorial for creating the pop up window, but I don't know how to have each button load a different external image into the pop up depending on the button pressed, and I don't want to bog down my file size by including all the images in the library.

Here is the link for the tutorial. Can anyone tell me how to load in an external jpg using this technique or is there a better way?

Many thanks in advance.

External Jpgs Loading Too Large?
I have a swf which is loading externally from my main movie.
Within that swf are 4 jpgs which are loading externally. They currently come in too slowly when requested, so I have been trying to load them earlier into placeholder clips, into a frame action in the first frame of the swf, and finally in the main movie, in a frame action and also where my swf is called. Nothing is working.
I have settled on this code in the first frame of my main movie and eliminated the extra loading actions in my swf:
loadVariablesNum("setup/large1.jpg", 2);
loadVariablesNum("setup/large2.jpg", 2);
loadVariablesNum("setup/large3.jpg", 2);
loadVariablesNum("setup/large4.jpg", 2);

Now when I watch the Activity monitor during the loading, I notice the images just keep loading and loading, and the sizes are much larger than in actuality. This is causing an even larger delay than in the first place. But sometimes it works just fine. Cached?
http://www.jennylanicca.com/MP/MP7.html

Any thoughts?

[f8] Problem When Loading External .jpgs
Hey guys,

I am a print designer working on my portfolio site and trying my hardest to create something nice in flash. I have tried to learn a bit of actionscript myself and scrounged around enough to get something pretty good up and running. Thing is, I am kind of stuck on a couple of intricacies that I want to get right.

Basically I have a portfolio section of my site that loads external .jpg's of my work – no problem. The 5 images (for a start) fade in and out when a button is pressed. If no button is pressed they slowly change through like a slideshow. The .swf previews great and the images fade in and out nicely, however when I tested it online the images stop to load and then just "pop" up instead of fading in.

Firstly, is there a way to load all of this content at the start so the transitions are smooth when each image is called?

Secondly, as the pics are all different sizes I would like to have a black frame that auto sizes behind the image when it loads with a bit of a drop shadow etc. Only problem is that small my actionscript knowledge doesn't stretch that far. Is this an easy thing to do and if so is their a tutorial?

I have pasted the code below:


Code:
pic = 1;
max_pic = 5;
//number of pics//
jump = 10;
//jumping of alpha//
i = 0;
num = 5000;
//fade in variable//
z = 5000;
//fade out variable//also speed of changing pics//the smaller the faster//

this.square._alpha = 0;
_level0.myMCL.loadClip("images/image"+pic+".jpg", "square");
onEnterFrame = function() {
//fade in//
if (i<num) {
i += jump;
this.square._alpha = i;
} else {
//fade out redirect//
if (pic == max_pic) {
pic = 0;
}
pic++;
//next pic//
if (z>0) {
//fade out//
z -= jump;
this.square._alpha = z;
} else if (z == 0) {
_level0.myMCL.loadClip("images/image"+pic+".jpg", "square");
//next pic load//
//initiate variables//
i = 0;
z = num;
}
}
};
//but functions//
but1.onPress = function() {
pic = 1-1;
//initiate variables//
i = num;
z = 0;
};
but2.onPress = function() {
pic = 2-1;
//initiate variables//
i = num;
z = 0;
};
but3.onPress = function() {
pic = 3-1;
//initiate variables//
i = num;
z = 0;
};
but4.onPress = function() {
pic = 4-1;
//initiate variables//
i = num;
z = 0;
};
but5.onPress = function() {
pic = 5-1;
//initiate variables//
i = num;
z = 0;
};
Thanks in advance.

James

[F8] Help With Gallery Loading EXTERNAL JPGs.....
Hi all....
Im stuck.... Im trying to create a gallery which loads external jpgs. But Im having trouble centering the pics... ive read about moving the anchor point and all, but i dont see an anchor point. I also have small movie clips on the bottom corners... how can i have them appear on top of the JPGs? They seem to hide underneath. I uploaded what I have so far.. you can view it at:

http://allisonsbackstage.com/test/gallerytest.html

As for the script...
On the frames i want the pictures to show I just have the following script:

loadMovieNum("DSC_0001.jpg", 1);

I help someone out there can help, if not, thank you for reading my post! If you would like the FLA file.. just ask and I would be thrilled if anyone can look at it.

thanks so much! Hope to see some repsonses :-)

-Allison

Loading External Swf/jpgs Code
Hello!

Just put up this site here:
http://www.zoeelizabeth.com.au/

The only bug I seem to have is that when any section/image is selected, the site tries to load the swf/jpeg twice!

I know it has something to do with the script im using to laod the site.

In Safrai - if the 'about' section is selected first it doesn't load at all..!

Here's a snippet of my code:


Code:
function mainMenuAction(id:Number):Void{
if (id != 0){
changeSection(id);
hideThumbs();
_root.bgImage_mc.blank.alphaTo(0,1)

}else{
resetMenu(0);
buildThumbs();
_root.content_mc.alphaTo(0,0.5);



}
}



function changeSection(id:Number):Void{
//resetCollectionMenu();

trace("change section");
//trace("collectionSection: " + collectionSection);


resetLoader()
resetMenu(id);

content_mc.alphaTo(0,0.5,"easeInQuad",0,loadContent);
content_mc.Blur_blurTo(50,0.5,"easeInQuad",0,loadContent);

function loadContent():Void{
trace("load content");

loadMovie(contentArray[id] + ".swf", content_mc);

loader_mc._visible = true;
loader_mc._alpha = 0;
loader_mc.alphaTo(100,0.5,"linear");
loader_mc.Blur_blurTo(0,2,"linear");

_root.onEnterFrame = function(){
actBytes = _root.content_mc.getBytesLoaded();
totBytes = _root.content_mc.getBytesTotal();
percent = Math.round(actBytes * 100/totBytes);
loader_mc.loadingBar_mc.xscale = percent;

if ((totBytes == actBytes) && (totBytes > 4)) {
finishedLoadingContent();
}
}
}
function finishedLoadingContent():Void{
trace("done loading");

delete _root.onEnterFrame;
//content_mc.play();

loader_mc.alphaTo(0,0.5,"linear",0,killLoader)
loader_mc.Blur_blurTo(0,0.5,"linear");;
}
function killLoader():Void{
loader_mc._visible = false;
_root.content_mc.alphaTo(100,2);
content_mc.Blur_blurTo(50,0);
content_mc.Blur_blurTo(0,1,"easeOutQuad");
}
}

function resetMenu(id:Number):Void{
for (i = 0; i < contentArray.length; i ++){
menuItem = nav_mc.menu_mc["item_mc" + i];
menuItem.hitState_bt._visible = true;
menuItem.label_mc.scaleTo(100,0.8,"easeInOutQuad");
menuItem.label_mc.alphaTo(100,0.5,"easeOutQuad");
//menuItem.colorTo(null,0.5,"easeOutQuad");
}
selectedMenuItem = nav_mc.menu_mc["item_mc" + id];
selectedMenuItem.hitState_bt._visible = false;
selectedMenuItem.label_mc.scaleTo(110,0.5,"easeOutExpo");
selectedMenuItem.label_mc.alphaTo(35,0.5,"easeOutQuad");
//selectedMenuItem.colorTo(0x000000,0.5,"easeOutQuad");
}
:?

Preloader For Loading External Jpgs
I've been playing around with loading in jpg's with loadMovie. All is well and good with that.

I would like to have a preloader for these images but am having trouble with it. Whats a good techique to use?

Do I use onenterframe, clip event or setinterval to run the check for bytesloaded of the incoming jpg. I keep having problems with the size of the destiniation mc for the image - my holder movie clip.

Does any one have any code that can share with me?

Thanks in advance!

Loading External Jpgs And Resize
Hello, I want to know how can I load external jpgs into a "frame" and depending on the size of the jpg resize this "frame" as you can see here:

http://www.terra.es/personal8/933170888

Thanks in advance.

Problem With Loading External .jpgs
hi all.

i can't load external .jpgs that are saved with Photoshop CS > Save For Web ... or ImageReady CS.
i tried to load older .jpgs from Photoshop 6 and it worked fine ... do you know something 'bout this problem and how to fix it???

thanx

Loading Jpgs From An External Server
Hello,

I am trying to do something as simple as -

imgMovie.loadMovie("_full_path_to_external_jpg.jpg ");

and this seems to fail. It works fine when the jpg is on my own server. What gives?

Thanks!

Problems With Loading External JPGs
http://www.actionscript.org/forums/s...d.php3?t=79864

Requesting Help With Loading External JPGs
Hi, this is my first post to these forums and I am not sure if my question have been answered a million times already or not, though I did use the search option and nothing came up that was helpful. So I apologize in advance if my question has been driven into the dirt.

I am pretty much a newbie with flash (only used it for about 2 weeks) and I know only the basics of actionscripting, and what I would like to do is to be able to externally load .jpg images [with preloader] into my main flash movie when a button is pressed.

I read this tutorial
http://www.kirupa.com/developer/mx/p...transition.htm
and tried to emulate it but with jpgs instead of swfs, and it didn't work for me.

Here's my website to give you a better idea of what I am trying to do.
http://www.digitalempiredesign.com
As of right now, all of my images in my galleries are embedded within the main swf, and that makes the file size pretty big, and will only get bigger if i'm going to add more images, so I figure it would be wise if i try and load these images externally. So I was hoping if you guys can help me out in the right direction as to what to do.

~regards
polloloco81

Loading External Jpgs Into Mc Instances
I have no problem loading an external jpg into the main timeline, but I cannot figure out how to do it properly in a movieclip.
Here is what I am trying (with a mc instance of "clipper").


ActionScript Code:
_root.clipper.loadMovie("companylogo.jpg");_root.clipper._x = 100;_root.clipper._y = 100;_root.clipper._xscale = 50;_root.clipper._yscale = 50;


I have this code on a frame within "clipper".
Thanks,
nat

Loading External Jpgs And Resize
Hello, I want to know how can I load external jpgs into a "frame" and depending on the size of the jpg resize this "frame" as you can see here:

http://www.terra.es/personal8/933170888

Thanks in advance.

Problem With Loading External .jpgs
hi all.

i can't load external .jpgs that are saved with Photoshop CS > Save For Web ... or ImageReady CS.
i tried to load older .jpgs from Photoshop 6 and it worked fine ... do you know something 'bout this problem and how to fix it???

thanx

Loading Jpgs From An External Server
Hello,

I am trying to do something as simple as -

imgMovie.loadMovie("_full_path_to_external_jpg.jpg ");

and this seems to fail. It works fine when the jpg is on my own server. What gives?

Thanks!

Loading External JPGs Into Movie Clips
I'm racking my brain here. I have my code correct and my pictures are in the correct directory along with my movie. When in Flash, I can click on the test movie option and my pictures load from my machine just fine. However, when I upload the .swf and the pictures to my Server and then access the page with the .swf file only one picture loads. Doesn't make any sense to me. Is there a problem performing this action with Flash MX like a bug or something? If anyone has any ideas I'm all ears. Thanks.

Loading External Jpgs, A Simple Question...
Can you load external jpgs on other servers into flashMX? Or do they all have to be on the same server?

Loading External JPGs With Visible Set To False
Loading external JPGs with visible set to false. Is there a way to do it.

I am creating a photogallery where images are preloaded into different mcs and I only want the first JPG to be visible until a thumb is clicked. then another one will become visible and the first 1 will be hidden. I have tried using _alpha=0 but that slows down the flash movie if more than 15 images are used.

Thanks in advance
Gav

Loading .jpgs From External Directory + Rip Van Winkle
Hello all,

It's been quite awhile since i've posted on Flashkit (Dec. 2000!!)...it's good to be back in the 'hood! I look forward to spending more time around these parts as I get back into Flash development.

I have a scenario that I need some assistance with. I want to create a very simple photo album .swf that holds 20 photos. I would like the photos to load from outside of the .swf, inside their own directory, so my client can just add and subtract photos to this independant folder as he sees fit. In this scenario, 'img1.jpg' will always be named 'img1.jpg', but the photo itself will change over time. As the user clicks through, 'img1.jpg' will unload, and 'img2.jpg' will load and so on.

I'm not much of an actionscripter, so I was hoping I could learn of a simple solution to load and unload these jpgs. I also envision being able to load short .txt files, created by the client, which will be descriptions for the photos...

I tried downloading some of the sample movies that the good people have created here, but the few I found didn't help. I plan to build this in Flash MX.

Thank you for any help you can offer or any direction you can point me in.

Cheers,

Loading Multiple External Jpgs At Runtime (please Help)
This does create seperate movie clips for each instance in a new level, but it still isn't actually loading the jpg into that layer. Have you ever seen one of those "twirl the product around to view it from different angles" things? That's what I'm trying to do here. Should be simple, but I'm missing something.

Code:

Code:
var totalItems = 24;
var imageFolderName = "HSTR600HK/";
var imageBaseName = "HSTR600HK_";
var imageNum = 1;
// load slide function
loadSlide = function () {
if (imageNum<10) {
i = String(imageNum);
imageNum = "0"+i;
}
clipNum = "clip"+imageNum;
var fullPath = imageFolderName+imageBaseName+imageNum+".jpg";
container.createEmptyMovieClip([clipNum], imageNum);
container[clipNum].loadMovie(fullPath);
};
for (imageNum=1; imageNum<totalItems; imageNum++) {
loadSlide();
}

Loading External Jpgs In Sequence....stuck
Hi there.
Im struggling with this. What im trying to acheive is having a loop that pulls in jpgs and basical lines them up. At the moment it will only display the last image in the loop, it puts it in the right place but the other images arent there. I cant work it out! Anywho here is the current script:


Code:
x_pos = 25;

for(i=0; i<number; i++) {
next_depth = this.getNextHighestDepth();
this.createEmptyMovieClip("blank_mc"+i, next_depth);
x_pos = x_pos+100
with ("blank_mc"+i){
_x = x_pos;
_y = 50;
}
loadMovie("image"+i+".jpg", "blank_mc"+i);
}
All the jpgs are called image0.jpg, image1.jpg, etc, etc...

I think its quite obvious what im trying to achieve but its not working.

[F8] Problems With Loading External Jpgs That Scale
Hi, i'm kinda new at this whole flash thing and im running into some problems that i just cant figure out. I'm using this as part of a background for a website. its supposed to load thru a list of external 1680x689 jpgs which scales to 100% width of the browser window proportionately (spellcheck?) and it fades out inbetween pictures.

What im running into is 1, when the movie starts, the jpg is not scaled, but once i scale the window, it works. 2, if im changing the window size during the transitions, it stops working completely and it just turns white. i've been searching around the net for so long, and i cant figure it out.

I got it to sort of work by using a empty movie clip. i used this actionscript to rotate thru a list of jpgs and fade out inbetween them.

//imageloaderstuff
imageList = ["./images/background_images/1.jpg", "./images/background_images/2.jpg", "./images/background_images/3.jpg", "./images/background_images/4.jpg", "./images/background_images/5.jpg"];
nIndex = 0;
_root.emptymc.loadMovie(imageList[4]);

function sizeLoad() {
if(emptymc._alpha<=100) {
emptymc._alpha+=4;
}
updateAfterEvent();
}
setInterval(sizeLoad, 40);

function autoImage() {
emptymc._alpha = 0;
emptymc.loadMovie(imageList[nIndex]);
if(nIndex>=imageList.length-1) {
nIndex = 0;
} else {
nIndex++;
}
sizeLoad();
}
setInterval(autoImage, 5000);
and then, i gave this next action to a new layer to handle the scaling part.

Stage.align = "TL";
Stage.scaleMode = "noScale";


// Create an object to receive the screen events
stageListener = new Object();
stageListener.onResize = function() {
// Get the width and height of the stage
// & multiply by half
var imageAspectRatio = emptymc._width/emptymc._height;
var stageAspectRatio = Stage.width/Stage.height;
var stageXCenter = Stage.width * 0;
var stageYCenter = Stage.height * 0;
// place the clip
emptymc._x = stageXCenter;
emptymc._y = stageYCenter;
if (stageAspectRatio>=imageAspectRatio) {
// long skinny stage - match image width and adjust height to fit
emptymc._width = Stage.width;
emptymc._height = Stage.width/imageAspectRatio;
} else {
// tall narrow stage - match image height and adjust width to fit
emptymc._height = Stage.height;
emptymc._width = Stage.height*imageAspectRatio;
}

};
// Assign a listener for the Stage object

Stage.addListener(stageListener);

can some flash guru please help me?

Loading External .jpgs, And Having Them References In The Library
ive been looking for a while, havent found anything. basically i need to load an external jpg and have it live in the library to duplicate it, as i need to skew it with perspective and the only way for that, as of right now, is to duplicate it as slices, have it masked, and increase/decrease the yscale as it goes through its sections.

anyone have any suggestions?

thanks.

Vista Problem With Loading External JPGs?
I'm really pulling my hair out on this one. I did a quick flash piece for a preschool's web site and have tried several different Flash components inside of a larger FLA file that load external JPG files in a predefined area. With each component, I have received complaints (so far only from Vista users) that the user sees nothing in the area where photos are supposed to be loading. Instead they just see a white or black box.

Is there any known issue with this? They can see everything else in the SWF file (the swinging girl and the text), but not any of the loaded JPG photos. Can anyone else out there with Vista tell me that they have the same problem? I'd like to track down what the common denominator is.

I've asked two of the users to completely uninstall the Flash player and reinstall it, but to no avail. Deactivating Norton Antirvirus also didn't seem to do anything.

Here is the URL: http://www.countryvillageps.com -- the flash item is the top banner.

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