Loading External Jpegs Into Flash
Hi i am creating a website for a photographer that has many different Swfs in it and connecting swfs... i want to add image sliders that load external jpegs. (so he can just add to them without me adding them) and im having trouble finding script for the right slider...
i have one at the moment but i have 2 problems with it 1. i have different sized images that i want to load and when i do that they always load to the left corner. so each image position inconsistant, i want each image to load on their centre axis so that each image loads at a centre point. does anyone know how to change that?? i tried moving the imageholder but the images still load at their left axis
2. once i have created my movie slider lets say in fashion.swf fashion.swf is loaded onto another swf fashionholder.swf
but the images dont show up from fashion.swf. only the buttons it's like its not connecting my images when they are in another SWF.
im stuck and have looked for days and days for some help
thank you in advance
FlashKit > Flash Help > Flash ActionScript
Posted on: 08-16-2007, 01:10 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Loading 8000 External Jpegs Into Flash
If I have about 8000 jpegs (1024x768) to play in flash, is there any kind of solution to this?
I've tried bitmap data/ bitmap cache but the tutorials I've seen so far involves buttons. What if I want to let it play frame by frame by itself? like a slideshow?
Loading 8000 External Jpegs Into Flash
If I have about 8000 jpegs (1024x768) to play in flash, is there any kind of solution to this?
I've tried bitmap data/ bitmap cache but the tutorials I've seen so far involves buttons. What if I want to let it play frame by frame by itself? like a slideshow?
Loading External Jpegs
hi there,
i need to load jpeg-images from somewhere in the file system dynamically into my flash-movie. i think it works easily with flash generator, but i haven't got it. so, is there a way to load image files dynamically using only standard-actionscripting? like loadMovie(*.jpg) or something?
thanks, stevie.
Loading External JPEGs (?)
Hi Guys,
I'm having a bit of trouble loading some external JPEGs into my movie and I was wondering if anybody could help out.I've simply created an empty movieclip to load external images into and given these actions to the corresponding button in the main timeline:
btn1.onRelease
loadMovie("/desktop/vicprof/tfwebnew/manjpegs/kiss1.jpg","holder")
...and the image(s) won't load.
I've never had a problem with loading external swfs in the past, so I'm not sure what's up. The only thing i can think of, is that the holder MC is a slideshow which is placed within another MC, and the button with the actions is on the Main MC timeline, and not the root timeline. Does this make any difference?
If not does any one have any advice?
thanks!
Loading External Jpegs Into .swf's
Hey everybody,
I need help writing a script so that I can bring external jpegs (from within the same .swf folder) into an mc so that it appears when I view my .swf.
Thanks for the help!
John
Loading External Jpegs
I’ve found a bunch of questions about loading external jpegs but mostly with a button.
I need a simple code that will load .jpegs from the source folder into a MC onto my stage without clicking anything.
I’ve saved them as non-progressive but none of the code I’ve found seems to work.
I just don’t want the images in my library.
Thanks in advance.
Loading External Jpegs
I have a page that loads external jpegs... however it seems totake longer to retireve and display/load the images going through flash than it does if i were to display them as html...why is this... or am I just wrong. thanks J.
Loading External Jpegs
I have a script that gets the names of images from a database. If the image name returned to flash is blank then the script says don't even try to load the jpeg. This all works fine. However if for example only 3 image names are returned as not blank it takes a lot longer to load those 3 images than it does if all 10 images are required to load?
This might make sense if it was trying to load an image with a blank image name, however the script says if image name!='' then load the image.
why would this be? it makes no sense.
Loading External Jpegs In A Row?
hey guys!
I will try to explain where is my problem.. I am creating XML based image viewer. It will have thumbnails of galleries.. and what am I trying to do is to preload external JEPGS in a row, firstly - first jpeg, when first jpeg is loaded, then load second.. I've created one empty MC called thumbs and trying to attach thumb MC to it(witch has preloader, empty MC as image holder). The problem is that all thumb MCs are attached at first, and then all of them start to preload...
Any ideas how to solve this?
Help With Loading External Jpegs
Hi, I am trying to load some external jpegs on a site and I have the function done for MX
function loadPic(mc, picName) {
var myFile = "images/"+picName+".jpg";
mc.loadMovie(myFile);
}
I also have the button code done.
button1.onRelease=function() {
loadPic("fam1");
}
I've set up on the main timeline a frame/layer just for actionscript and the button I want to launch the image into the "mc" is down 2 levels. Where do I put the button code (MX) and the mc movie clip? Do they all have to be on the main timeline or can I somehow tell Flash where the button is and how to find the image and the function? I'm new and confused. Please help, I can feel myself going gray as I write.
Thanks,
Adam
Loading External Jpegs In A Row?
hey guys!
I will try to explain where is my problem.. I am creating XML based image viewer. It will have thumbnails of galleries.. and what am I trying to do is to preload external JEPGS in a row, firstly - first jpeg, when first jpeg is loaded, then load second.. I've created one empty MC called thumbs and trying to attach thumb MC to it(witch has preloader, empty MC as image holder). The problem is that all thumb MCs are attached at first, and then all of them start to preload...
Any ideas how to solve this?
Help With Loading External Jpegs
Hi, I am trying to load some external jpegs on a site and I have the function done for MX
function loadPic(mc, picName) {
var myFile = "images/"+picName+".jpg";
mc.loadMovie(myFile);
}
I also have the button code done.
button1.onRelease=function() {
loadPic("fam1");
}
I've set up on the main timeline a frame/layer just for actionscript and the button I want to launch the image into the "mc" is down 2 levels. Where do I put the button code (MX) and the mc movie clip? Do they all have to be on the main timeline or can I somehow tell Flash where the button is and how to find the image and the function? I'm new and confused. Please help, I can feel myself going gray as I write.
Thanks,
Adam
Loading External Jpegs
Load time/methodology question. Drawing/recreating a web screen vs doing a screen capture of the web screen and displaying it as a jpeg in flash via an external folder)
Does loading external jpegs actually work as a better alternative (load faster - and obviously must faster to do then redrawing in flash) to just drawing the same element inside flash vs viewing an external jpeg? for example, if you have a web screen you want to display in flash is it better to just do a screen capture and save it as a jpeg and then code the flash movie to just display this jpeg from an external folder or is it better to draw that same web screen inside flash (which keeps it as a vector based file rather importing raster based jpeg files)? thoughts?
Loading External JPEGS
I have a combo box which displays a list of jpgs. I also have a movieclip which I have made into an ‘image loader’. So when the user selects a jpg from the combo box it will display in the ‘image loader’. This works fine when I publish the Movie on the computer. However, I have put this page on-line and only some of the files load up when selected.
I have tried numerous different techniques. I have all the files located in the same place. I have tried the _root. code. I have read something about progressive JPGS, but how do I know if the JPG is progressive? If it is progressive, is there anyway of making it 'un-progressive'!!??
Im struggling to understand how this works fine when published on the computer but not on-line. Does anyone have any ideas on this problem?
Loading External Jpegs
Good day to all,
Here's my issue. I'm creating a site with Flash MX and want to load all my jpgs dynamicly. Here i s the code I'm using:
on (release) {
loadMovie("test.jpg", "holder") ;
}
The problem is nothing happens. I don't even get any error messages . Any ideas on what's goign on? Thanx for any help ahead of time. NoImage = NoSigImage NoImage = NoImageRes
Loading External Jpegs With Preloader
Hi guys and gals. i've looked all over flashkit for an answer to my problem of loading external jpegs with a preloader, but i can't find any concrete answers. i want to be able to encapsulate the process as much as possible. i don't know where i'm going wrong.
function loadpic(url) = {
loadMovie(url, holder_mc)
holder_mc.onData = function() {
this._visible = 0;
if (this. getBytesLoaded>=this.getBytesTotal) {
this._visible = 1
}
}
}
Am i on the right track with this? i see this technique used everywhere, it can't be that complicated. Can someone help please? Thanks in advance.
Loading External Jpegs W/ Buttons
For example I have a target mc named "target_mc" and I have a image that would load per button. Now I've dealt with regular preloaders, and sound class preloaders, but I'm kinda confused as to how-to preload the jpeg loading percentage into a dynamic textfield, this kinda reminds me of making a basic mp3 preloader as shown below, any suggestions would be great.
sound_1 = new Sound();
sound_1.loadSound("http://themakers.com/sounds/atmospheres_1.mp3", true);
function checkLoad(){
var percentLoaded = (sound_1.getBytesLoaded()/sound_1.getBytesTotal())*100;
progress.text = Math.round(percentLoaded)
message.text = "MEK - Far From Home";
}
checkProgress = setInterval(checkLoad, 1000);
Loading External Jpegs To Be Centered
I am trying to get external jpegs to load into my SWF by using this code:
on (release) {
gotoAndPlay(2);
container.loadMovie("jpegs/people1"+".jpg");
}
-
It loads perfectly BUT - it always aligns to the upper left corner of the MC -
Is there a way to align the container MC with the "CENTER" of the jpeg image ?
Loading External Jpegs W/ Borders?
Is this possible? I've tried several different ways with no success. I only want the border to appear along with the image when a thumbnail is clicked, as the area it appears in will normally contain text.
I am loading the Jpegs into a loader component using:
on (release) {
this.loader1.contentPath = "images/1.jpg";
}
I want to avoid having to go through each individual image and add a border using PS.
THANKS!
Loading External JPEGs With A Fade
I am working in AS3 to load some external jpeg images and have them fade in after they are loaded. I have this code, which does exactly what I want it to if I am loading a .swf file. But when I try to load a jpeg I get an error. What do I need to change to use a jpeg? Any insight would be greatly appeciated. Thanks.
import fl.transitions.*;
import fl.transitions.easing.*;
var myRequest:URLRequest = new URLRequest("image1.jpg");
var myLoader:Loader = new Loader();
myLoader.load(myRequest);
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
function swfLoaded(myEvent:Event):void {
stage.addChild(myLoader);
var myContent:MovieClip = myEvent.target.content;
TransitionManager.start(myContent, {type:Fade, direction:Transition.IN, duration:9, easing:Strong.easeOut});
}
Edited: 12/19/2007 at 05:19:57 PM by backpages
Loading External JPEGs & Fading
I feel like an idiot. I'm just playing around with ActionScript, and I'm trying to create a title page where two movie clips fade in. One is a dynamic text movie clip, the second is an image that is loaded.
My code is this:
Code:
function fadeIn():Void {
this._alpha += FADESPEED;
if (this._alpha>100) {
this._alpha = 100;
delete this.onEnterFrame;
}
}
var SITENAME:String = "title text";
var FADESPEED:Number = 10;
title_mc.title_txt.text = SITENAME;
title_mc._alpha = 0;
title_mc.onEnterFrame = fadeIn;
image_mc.loadMovie("image0.jpg");
image_mc._alpha = 0;
image_mc.onEnterFrame = fadeIn;
I've traced the heck out of this, so all I know is that image_mc seems to only generate a single onEnterFrame event and then stops. What obvious, basic Flash point am I missing here?
It seems that if I comment out the .loadMovie line, the placeholder movie clip fades in properly, so obviously there is something about onEnterFrame events and loadMovie that I don't know.
How Do I: Load External Jpegs Into MX With Loading Bar
Hi,
I am constructing this site which will have 8 topic areas, each of which will have 8 jpegs that I would like to have open in a picture box that will remain in the same position for each topic area.
I would like people to have the option of choosing which jpeg to view so there will be 8 buttons linked to each of the relevant jpeg for each topic area. Make sense?!?
Any ideas what the best way of doing this is?
Thanks!
Craig
Loading External Jpegs Into Movie Clip
Dear Flash community,
I’m using this code
t1Bu.onRelease = function() {
_level0.picMC.loadMovieNum("pm1.jpg", 1);
_level0.txtstageMC.gotoAndStop("f2i1");
to try to bring in a external jpeg that is sitting in the same folder as the flash file. I am trying to bring it into a Movie clip (picstageMC). I then want to be able to replace this as other buttons load other clips into the same level. The third line of code which goes to a movie frame works fine. I can’t understand why the jpeg part isn’t working and have exhausted all the alternative ways of going about it that I know. PS 'picMC' is the named instance of a movie clip.
I have put up the unfinished work here:
link to problem page
Batch Loading Jpegs From External File
Hello,
I would like to preload a batch jpegs from an external file (to make it easy for changes) - than use them in a slide-slide show using a movieClip holder or loader component. I can use this tutorial - http://www.oman3d.com/tutorials/flash/portfolio_2_bc/index.php
But I don't what to have each jpeg loaded separately I want them to preload b4 using..
What would be the best way to preload the external batch to use for a slide show with next btn and prev btn? I can't find any tutorials one this.
Thanks for any help,
Dave
Problems With Loading Mutliple External Jpegs
importing (multiple) jpeg images timeline
Okay, I'm a photographer who has a lot of pictures to display on the site.
Home page has a slideshow with 10 images that come ibe displayed I know how to use the moviecliploader to load 1 external jpeg, but I want the file to;
a. come in with a brightness of 100 then down to 0 then hold for 3 seconds, then back up to 100 then out....all in actionscript no more than 5 frames if possible
b. I don't want to do this with tweens, it increases the file size for just 6 images to 1.4 mb, and that's an swf that I am importing without music. Remember the image quality is paramount and the images must be as large as possible for this type of market.
Really it's just how to do this slide show -the way I want it, that's holding me up from publishing my site.
I'm using flash 8 and have a working knowledge of Actionscript, I got totally confused with a template that I foolishly bought and saw no real hierarchy to tweak, let alone load esternal files (again, multiple files, not just 1) I can talk, or write out what I want but I'm really stumped in figuring out what to look for to do precisely what I want. So trying to extrapolate tutorials for 1 image import just doesn't cut it...know what I mean
Thanks in advance.
Daniel
Positioning Externally Loading External Jpegs
I have the external jpegs loading correctly, but in the upper left corner of the screen. I tried using this code (below) to position the externally loaded jpeg by placing this code in frame 1 of both the empty mc and also by trying to place this same code (below) in frame 1 of the host movie but it still loads in the upper left corner. does anyone have any suggestions on how to position these externally loaded jpegs?
positioning code I have tried:
this._x = 150; //x offset from top-left corner(0,0)...
this._y = 220; //y offset from top-left corner(0,0)...
Loading And Displaying Multiple External Jpegs
Hello all,
I'm making a flash movie in MX 2004 that would load a predefined number of jpegs, easily named 1 to x and am having a bit of trouble with it, namely the following:
1. I manage to load external jpegs (from the same directory) into the movie, but I somehow can't seem to get the variable (called imgno) with the number of images from an external file.
2. Then I would like to display these loaded images, one after another, with a fade in - fade out effect in between. What is happening here is that I only manage to get one image to show...
For an easier view of what I'm babbling about, I'm attaching the .fla & other files (in a zip) with my messy code... if someone will have look at it, I'll be very grateful.
Thanks!
Loading External JPEGs/SWFs; Cache Problem?
Hi,
I last posted to this board about a week ago concerning what I thought was a cache issue with loading external .swfs and .jpgs.
I think now that it might be a bandwidth issue, or something relating to attempting to download multiple files into the same location.
The link below is a work-in-progress portfolio site that loads different .jpgs and .swfs into the same holder MC. I'm not unloading or removing these files, so I thought that once uploaded, these files would swap back and forth instantly.
On a high speed connection, everything works fine. In IE 5.0 on a dial-up Mac, they seem to be loading repeatedly as if they were never cached. Occaisionally, I have given the command to load one file, then requested a second one, only to have the first file come up. If anybody has any ideas about what I'm doing wrong, please let me know.
LINK:
http://www.randymillerdesign.com/collection/indexL.html
FLA:
http://www.randymillerdesign.com/co...imageTabs7l.fla
.as file (would need to be in same directory as .fla when published):
http://www.randymillerdesign.com/collection/nav1.as
Couple of things:
-The file extensions of the JPEGs have been switched to ".jjj", to account for the AOL bug of converting ".jpg" to ".art"
- The "WEB" section of the .fla is not completed, so the nav may give you weird results for that section.
Thanks to anyone who has any ideas about what could be causing this.
Randy
External Loaded Jpegs Not Loading On Windows Netscape
Does any one know an answer to this.
I have external jpegs loading into my mc. they show up on Macintosh on both explorer and netscape, and on Windows on only explorer. They will not load in Windows Netscape.
Any suggestions would be great.
-thanks
Craig
Slide Show Loading From External List Of Jpegs
I know there are a few posts along similar lines, but it seem the links and such on these posts have all vanished or expired And the components are all so skinned that its almost impossible to use them.
Basically having not had much developing to do in Flash for quite a while, I've come back to realise that I'm almost clueless, and the little knowledge I still have is a dangerous thing as it keeps sending me down the wrong road.
What I want is an variable number of jpegs in a number of differant folders to load when the relevant variable is called. I would like it if possible to go to the relevant folder and read the number of images in that folder either via txt file or more modern method, then display the first image (01.jpg) then after a few seconds move on to the second image (02.jpg) etc
Ideally it would load the second image before moving onto the next image and fades etc would be much better, but at this point I'd just settle for the bare bones of something I can work with, and get my head around.
this might be a lot to ask, so if anyone can help it would be most appreciated.
Loading External Swf Into Empty Mc - Loaded Swf Loses Dynamic Jpegs?
Hi,
I have searched the forum but have not found anyone else with this particular problem.
I have a dynamic slideshow in a swf file (slideshow.swf) which loads in the images through an array with descriptive text etc. It works fine when tested.
The problem is that I need to load it into an empty mc on a layer of my main movie (latest.swf). The slideshow.swf movie loads okay, but the images don't get loaded into the slideshow. I know it must be something to do with the
Code:
_root
changing but I have tried changing the code to
Code:
_parent
and
Code:
this
but this breaks the slideshow.
The files are here - Slideshow
Any advice? Thanks!
Loading External Swf Into Empty Mc - Loaded Swf Loses Dynamic Jpegs?
Hi,
I have searched the forum but have not found anyone else with this particular problem.
I have a dynamic slideshow in a swf file (slideshow.swf) which loads in the images through an array with descriptive text etc. It works fine when tested.
The problem is that I need to load it into an empty mc on a layer of my main movie (latest.swf). The slideshow.swf movie loads okay, but the images don't get loaded into the slideshow. I know it must be something to do with the
Code:
_root
changing but I have tried changing the code to
Code:
_parent
and
Code:
this
but this breaks the slideshow.
The files are here - Slideshow
Any advice? Thanks!
FLASH 5 Preload External Jpegs
I have a movie with instance name "holdermc"
I have five different buttons that each one (on release) is loading a different jpeg into the "holdermc" using load movie command.
I would like to preload these external jpegs with a progression bar.
does any one have any source code or tutorials to guide me to.
thanks for the help.
p2studios.com
New Flash User Question About Loading Jpegs
I am new to flash mx and I'm just trying to get my head around some stuff so please bare with me, I really want to get into using flash.
Anyway I am producing a simple interactive portfolio for a construction company and I have a number of case studies with thumbnail images which I have turned into buttons. What I need to do is on release have a pop up window with a bigger image of that thumbnail. What I'm having difficulty with is that because this isn't being published online (only on CD) where do I place the Jpegs, do they need to be in a folder on the CD or can I embed them onto a new scene within the main fla. If they are to be in a seperate folder do I then use the get url or load movie action for the button. I'm not sure I'm making sense but any ideas would be appreciated, thanks
New Flash User Question About Loading Jpegs
I am new to flash mx and I'm just trying to get my head around some stuff so please bare with me, I really want to get into using flash.
Anyway I am producing a simple interactive portfolio for a construction company and I have a number of case studies with thumbnail images which I have turned into buttons. What I need to do is on release have a pop up window with a bigger image of that thumbnail. What I'm having difficulty with is that because this isn't being published online (only on CD) where do I place the Jpegs, do they need to be in a folder on the CD or can I embed them onto a new scene within the main fla. If they are to be in a seperate folder do I then use the get url or load movie action for the button. I'm not sure I'm making sense but any ideas would be appreciated, thanks
Loading Jpegs In Flash From Mysql Binary Blob Field.
Greetings actionscripters,
I've been browsing through the threads and tutorials for a solution to this, found stuff, did help, but I'm still stucked.
As the title obviously state, I'm trying to load jpegs into movieclips from blob fields inside mysql database.
It's so easy with text... Why must it be so tough with darn jpegs.
In my .swf I have this tiny snippet in the first frame :
-----------------------------------
_root.myclip.loadMovie("view.php");
-----------------------------------
The view.php file looks like this :
<?
include 'connection.php';
$query = "SELECT id, type, content FROM pictures WHERE id = 2";
$result = @ mysql_query($query, $connection);
$data = @ mysql_fetch_array($result);
$image = $data["content"];
if (!empty($data["content"]))
{
//Begin writing headers
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: public");
header("Content-Description: File Transfer");
header("Content-type: image/jpeg");
print $image;
}
?>
Then nothing happens, the browser keeps loading ( or think it is loading ) the jpeg but it it never displayed in flash. I managed to load a jpeg from a flat file taken from the webserver, but that is not what I want to do, it must come from the binary blob field.
Theory 1 : Header problem...
Theory 2 : I should use LoadVars instead?
Any help is welcome!
Q On Loading Techniques: Flash 5 & Flash MX JPEGS
Hey can someone tell me where everything goes? and i was also wondering if i can make the jpeg clickable (when its clicked on it will open a _blank window with the bigger picture)
PHP Code:
_root.createEmptyMovieClip("container",1);
container.loadMovie("photo.jpg");
container._x = container._y = 50 ;
_root.onMouseDown = function () {
startDrag ("container",false) ;
}
_root.onMouseUp = function () {
stopDrag () ;
}
the file name is 1small.jpg and the bigger file is called 1big.jpg
External JPEGs
Is it possible to get the filesize or the getBytesTotal from files not loaded into a movie?
I'm making a slideshow, and it loads the jpegs from a directory. I want to have a status bar showing the percentage of the image loading. Is this possible?
Thanks for any help.
Neil Kiessling
External Jpegs
Is there anyway in flash to load an external jpg like you can with
text? Ie, is there anyway i can have a image box which displays a
file on my server called "image1.jpg" and then when I upload a different picture also called image1.jpg, it will automatically update in the flash movie?
Cheers
Baz
External Jpegs.. Can't Get Rid Of Them
hi
I've imported external jpegs into my movie... but when I go to the next section via pressing a button the image stays there..
I would be very happy if some one can help me get rid of the image for me..
I need to "get rid" of it when I press the other button which brings in the new section.... I just don't know how...
Can anyone help??? please
External AS And Jpegs
Hi.
This is the first Topic I've posted at (the very cool) UltraShock site so go easy on me.
Thought I would kill a few birds with one stone here.
(1) I'm currently editing AS in an external file which gets included in the movie when it's compiled. Is there any way of loading more AS into the movie while it's playing in a similar way you load MP3's, Jpegs, etc?
(2) Is it possible to include images in HTML text (html textfield) ? I've tried various ways with no luck ( using Flash-MX)
(3) Last but not least I've read somewhere that it's possible to update the MAXSCROLL property of a text field (needs to be done after updating the text) but I can't find it anywhere!!
Any help would be fantastic.
Cheers.
Trouble With External JPEGs Into External MC
I'm stumped. I created a Movie Clip using code that when a button is moused over, resizes the frame as an external JPEG is loaded into it. The MC itself (ContentPix) is then loaded into the main file and is called on by a submenu. Everything functions fine when ContentPix is tested by itself. But when loaded externally into the main movie, it won't import the JPEGs. What am I missing? This is the only submenu section that loads a MC that itself loads images. All the others work fine.
External Jpegs And Their Titles
Hi all, I want to load external jpegs with their title for my own family picture book i wanna burn on a CD and send it out to all my relations..
I have picked up the macromedia file for dynamic loading of images and their titles using XML, but want a fade in and fade out b/w them
I am posting the FLA, hope this helps
1- I want to display the text descriptors using XML
2- I want the images to have a fade-in & fade-out
SO the end result could look somewhat like this
http://www.macromedia.com/desdev/mx/...ad_images.html
just that the images would be loaded using XML and so wud their descriptions
thanks for the extended co-operation
Preloading External Jpegs With Do While
hello,
i´v got the following problem:
I am creating a photographers portfolio.
I want to preload some jpegs into a movie. when the first picture is loaded the button for this picture should be activated. then the next picture should be loaded the next button should be activated and so on.
problem: flash makes all buttons active although the pictures are not loaded already.
here is my actionscript:
do {
loadMovie ("werbung/1.jpg", "bild1");
var geladen1 = eval(bild1.getBytesLoaded());
var total1 = eval(bild1.getBytesTotal());
var prozent1 = (geladen1/total1)*100;
} while (prozent1<100);
if (prozent1>=100) {
tellTarget ("mc1") {
gotoAndStop ("geladen");
}
}
do {
loadMovie ("werbung/2.jpg", "bild2");
var geladen2 = eval(bild2.getBytesLoaded());
var total2 = eval(bild2.getBytesTotal());
var prozent2 = (geladen2/total2)*100;
} while (prozent2<100);
if (prozent2>=100) {
tellTarget ("mc2") {
gotoAndStop ("geladen");
}
}
.
.
.
Pre Cache External JPEGS
Yo (Philadelphia accent) everyone,
I'm working on a friends web site: http:cunicelli.com/BETA (this is a local Philly photographer).
For the work sections of the site I'm using an "on button press" GetURL function to load external JPEGs so that the photo studio will be able to upload new work themselves (following a naming convention).
I want to "preload" all the JPEG work images from within flash (if possible). I'd really like it to tie-in with the site's preloader (if possible).
Any ideas? I'm not an expert at actionscript, but am competant at copying + pasting (lol).
Thanks in advance for help with this.
Preload External Jpegs?
i have an image gallery, and i load all my images from an external images folder on the server. Now, when i view the site, it all works, but while the image is loading, well...you dont see anything you know? The image just appears when its done downloading. So i was wondering how i can set up a preloader that loads each external jpeg, similar to how i have a preloader set up for the flash.
also, random question..i just got mx 2004 pro, and i noticed they removed the ability to right click on something and select actions, i have to click on something and press f9, which takes a good 5 seconds or so before it opens up, anyway to fix that?
thanks for any help
Help Preloading External JpegS
hi there, i am just a step far from publishing my first flash- humble - website.
there is just a little trouble loading it, because there's a simple slideshow that starts loading external images (which are in the same dir) as the main movie loads. each image is about 150 kb and once the first is loaded, i have to wait some seconds before the second displays. moreover i loose the transition effect between images (a simple alpha tween).
is there any way to put a preloader that loads external jpegs as soon as the main movie loads???
thank you all, help me publishing my first flashsite.
daniele
Several External JPEGS - One Preloader?
Hey Guys!
I have a flash file loading several external files.
I'm facing two problems:
1. **and the more important 1* Although I am loading several images, I want the preloader to be for all of them together - using a listener.
2. I want to load the images for use in the next scene, not the preloading scene, therefore I need to store them in a way that I can call them through ActionScript later on, something like Linkage, except I'm adding the Linkage in runtime.
I know how to create a preloader for one image at a time using a Movie Clip listener, but I want the preloader to show progress of the total amount of bytes loaded from all external images, not just one. Plus - if I use a MovieClip loader, the images will be loaded to a movie clip on the stage, but I want to call them using Action Script from a different scene in the movie.
Thank you very much,
Yuval Karmi
Quality Of External Jpegs
I am calling external ".jpg"s from outside my ".swf". When they come in they are a lower quality with alot of banding in the gradiants of the images. If I drop the same images into a browser they look fine.
Also, this is wierd. If you open the ".swf", when it opens at size the quality is messed up, but if you scale the ".swf" (grab the corner and pull it bigger or smaller) the jpegs then become fine.
I did save for web in Photoshop, jpeg, at high quality (80%). I tryed publishing my ".swf" with the jpeg slider at 100%, it did not help.
Thanks in advance for help.
|