Preloading a series of images

Hello...
I am attempting to preload a series of images to a mc [mostly
just to get them into web-viewers' cache].
This is the code I am using for the preload bit:
function cigPreLoader() {
var cigImage:Number = 1;
var totalCigImages:Number = numOfCigPics;
var cigImgToLoad:String = "
http://www.fourinchesofego.com/cigs/cig"+cigImage+".jpg";
var cig_mcl:MovieClipLoader = new MovieClipLoader();
// Create listener object:
var cigListener:Object = new Object();
cigListener.onLoadComplete = function() {
cigImage++;
imagesLoaded++;
if (cigImage<=totalCigImages) {
cig_mcl.loadClip(cigImgToLoad, cig_mc);
} else {
alarmPreLoader();
cig_mcl.addListener(cigListener);
cig_mcl.loadClip(cigImgToLoad, cig_mc);
function alarmPreLoader() {
var alarmImage:Number = 1;
var totalAlarmImages:Number = numOfAlarmPics;
var alarmImgToLoad:String = "
http://www.fourinchesofego.com/alarms/alarm"+alarmImage+".jpg";
var alarm_mcl:MovieClipLoader = new MovieClipLoader();
// Create listener object:
var alarmListener:Object = new Object();
alarmListener.onLoadComplete = function(target_mc:MovieClip,
status:Number):Void {
imagesLoaded++;
alarmImage++;
if (alarmImage<totalAlarmImages) {
alarm_mcl.loadClip(alarmImgToLoad, alarm_mc);
} else {
_root.gotoAndStop(2);
alarm_mcl.addListener(alarmListener);
alarm_mcl.loadClip(alarmImgToLoad, alarm_mc);
cigPreLoader();
[the imagesLoaded++ is talking to a var that moves the
preload graphic along]
The problem is that this works just fine when I run the SWF
locally; it nicely loads each image one after the other and then
moves along to the actual piece. The problem is that when I jump
over the run it online it just burns through without preloading
each image.
Any suggestions??
You can see what is happening online at
http://www.fourinchesofego.com/obviam.html
Or you can grab the FLA at
http://www.fourinchesofego.com/obviam.fla
Thanks.
Thanks.

look at the tech tips for the solution

Similar Messages

  • How can i export a series of images in different aspect ratios to the same height

    How can i export a series of images in different aspect ratios to the same height?
    I wish to make a slider callery for my website. all the images need to be 750 Pixels high, the width does not matter.  I have a mixture of square pandscap and protraite images can i do thing as one export or do i have to do it twice?  Once for long edge and once for shot edge?
    Thanks

    Yes, you can but there is a trick to it.
    In the Export Dialog under <Image Sizing> select Widdth & Height.
    Then enter 750 pixels for Height.
    Put your cursor into the Width field behind all the numbers that appear there and with the backspace key delete the numbers. If you enter "0" it will not accept that. But it accepts when you just delete the field for Width with the backspace key. The Width field will now be just blank.
    When you then export all image will  have a height of 750 pixels and the width will fall variously according to thne height / width ratio.
    Or alternatively you can enter 7.5" for height at a resolution of 100 ppi.

  • Saving a series of images (from a smart camera) into an AVI file

    Hello,
    I have a lab setup in which we view brain cell deflections in a well-plate after being pressurized with air for 50ms. I have a smart camera hooked up to an IMAQ PCI card to acquire images.
    I'm trying to save the series of images into an avi file, so that I can view the deflections in a slow video.
    The way I have it set up at the moment takes an image and saves it in an avi pre-existing (some random .avi that I didn't need) format. But here are some problems:
    1. I would like for the VI to create a NEW .avi, rather than saving it into a pre-existing one.
    2. Right now, each image simply overwrites the previous one in the avi file. So the resulting avi is a 00:00 length movie with a single image (the last frame that camera viewed).
    I have what I have programmed attached. Any help would be appreciated.
    Thank you,
    B.J. Kim
    University of Michigan
    Solved!
    Go to Solution.
    Attachments:
    forum.jpg ‏1438 KB

    Here is an updated version (attached). I kept trying to incorporate the examples you showed me, and I have made a little bit of a progress.
    It now saves a new avi file, and it's not a single image movie anymore. It's got as many images as I run the VI for. BUT, it only saves the very first image the camera takes and just loops it over and over again until I press stop. So the resulting avi shows a still image of the very first view of the camera for however long I ran the VI for.
    Any suggestions on how I can fix this?
    Thank you,
    B.J.
    Attachments:
    forum2.jpg ‏1190 KB

  • Why do the file extensions (.jpg .gif .png) no longer appear when I click on a previously saved image to use that image's file name (particularly important when saving a series of images using the same root name)?

    I save a lot of images using firefox, often times from a large batch or series of images. It used to be that I would click on a previously saved image and the entire file name including the file extension (i.e. image_example.jpg) would appear in the "save as" line. Now when I click on a previously saved file, the file name appears without the file extension (i.e. image_example). Which means I have to manually type .jpg every time. For a large collection of images that I am hoping to use the same root file name and then add chronological numbers at the end, this has become incredibly frustrating, especially as it is a previously unnecessary task.
    I am using a new Macbook Pro and maybe there's something Apple related to this...? It did not happen on my old PowerBook G4. I have file extensions turned on in System Preferences.
    It should be noted that I have searched high and low and have even gone into the Apple Genius Bar where they were just confused as I was and of course ended by urging me to use Safari (shocker!) as it has all kinds of new extensions and bells and whistles. I seriously feel alone on an island with this dumb, hard to google problem. Thanks so much for any help anyone out there might have.
    I mean: is this as simple as changing a setting in about:config?
    Your assistance is greatly appreciated.

    Thanks for your response Mylenium, however like I mentioned multiple times, I did change all of my trackpad/scrolling settings in system preferences.  And if I wanted to use a normal mouse (or a tablet), I would've gotten an iMac instead of a MacBook Pro.  I travel often and work all over the place, not always with access to a decently sized workspace that would be required for using a mouse or tablet.

  • How to create a small field that cycles through a series of images. (using Acrobat Pro)

    Using Acrobat Pro, we need to use a small field to track student progress.  With successive mouse clicks, the field would cycle through: 
    -- a number (that identifies an element of study),
    -- same number surrounded by a circle (indicates element is assigned to the student),
    -- same number with a check mark (indicates element was completed by the student),
    -- back to the original number.
    This could probably be handled by cycling through a series of small images when the user clicks on the field.   
    The "Check Box" field allows only a check to be added to the field.  It does not allow the circle and does not cycle through multiple states. 
    The "Text Box" field might allow this capability, but if so we are not able to configure it properly.  
    Any solutions?   Thanks!

    Thanks Michael,
    The information at the link you provided enabled us to create a button that cycles through a series of ASCII characters. 
    This us useful, but we need to cycle through a series of images.  A more difficult problem. 
    FYI, an example of the javascript that cycles through a series of ASCII characters is shown below.  (The "else" statement pertaining to a null "" buttonGetCaption state is used to initiate an initial state of "1" for the button when the form is first opened.). 
    if
    (event.target.buttonGetCaption()=="1"+"\u2714") {
        event.target.buttonSetCaption("1");
        event.target.textColor = color.black; }
    else if (event.target.buttonGetCaption()=="") {
        event.target.buttonSetCaption("1");
        event.target.textColor = color.black; }
    else if (event.target.buttonGetCaption()=="1P") {
        event.target.buttonSetCaption("1"+"\u2714");
        event.target.textColor = color.green; }
    else if (event.target.buttonGetCaption()=="1") {
        event.target.buttonSetCaption("1P");
        event.target.textColor = color.red; }
    loop
    Again, we are still looking for a way to cycle through a series of images so any help with that problem would be appreciated. 

  • Strange. After importing a series of images from a Sony camcorder, I see the images but there's no sound, although there is sound on the camera.

    strange. After importing a series of images from a Sony camcorder, I see the images but there's no sound, although there is sound on the camera.

    Hi Jan,
    Looks like a common problem, see if this is of any help...
    http://www.bigasoft.com/articles/how-to-import-sony-handycam-avchd-mts-mpeg2-to- imovie.html

  • Creating an animation from a series of image, snow leopard Quicktime 7 fails

    Quicktime 7 allowed a user to be able to select a series of images and create an movie file with a time interval..
    The Quicktime 7 for Snow Leopard from the Snow Leopard Installer dvd does not allow you to select more than one image..
    How can I create a movie from a series of images jpgs.s...
    We do scientific work climate modeling and this was a great tool to create animations..
    Where did it go.. there is no ability to do this in Quicktime X..
    Does anyone know how to make this functionality work?

    Ok I got it...
    Just select the first frame and then you get a dialog box that sets the time interval...
    It AUTOMATICALLY selects all the rest of the images if they are sequentially numbered...
    doh..

  • Vectors turn into a series of images

    I have been working on a series of drawings for a catalogue. I am using solidworks, creating a sheet, all line thicknesses are changed to 0.05mm and then exporting the sheet as .AI
    Every drawing I create is saved using identical settings.
    Out of say 10 only 3 of them are okay and can be edited as vectors. The rest seem to turn themselves into a series of images. (See attached Images)
    I have had a look for solutions to this issue but I'm not quite sure what to search in hope of finding a solution.
    Any ideas would be great
    I'm using SW 2012 and Illustrator CS4

    fruityth1ng wrote:
    In this case I'd have a look at exporting your files anew, with different settings, and maybe see if decreasing their complexity (nested booleans? unexpanded effects?) helps.
    When saving as .AI there is no setting options. I'll try decreasing the complexity and see if saving as .DXF is any better

  • What's the best way to create a panorama from a series of images?

    What's the best way to create a panorama from a series of images?

    This is PhotoMerge result
    This is WLPG
    This is a manual merge
    Before anyone comments on the poor image quality, I know. Its not my photography.
    The beach huts were in an arc which doesn't help.
    You can see that the photomerged image has not 'understood' the image and has bad destortion on the doors of some huts. The blend lines are also visible

  • Using an animated gif/other to display series of images within another image?

    I design custom baseball cards for a hobby, and am wondering if I can use an animated GIF inset within a large photo to display a rotation of images.
    It is easiest if you look at the "card"/image . . . within the circle, where there is a picture of Ruth holding some bats, I would like to add a series of several images that would rotate through (obviosuly the "card" would be for viewingonline rather than printing).
    Is it possible to do?  I am thinking an "animated gif" would be the easiest, but if there is some other way (video, etc.). I am open to that.
    I just would like to know if the goal can be done, and if so, how to do it.
    TIA!!!

    That can be done with a gif.  You just set up your bg image, then have a series of layers for your insert.  Create a frame animation by opening it in Window>Timeline.  Have all your insert layers except one turned off.  Create a new frame, the turn on the next layer.  Keep repeating creating a new frame and turning on a new layer.  When you're done, you can set the time each frame displays.  Save it using save for web using the gif option.

  • How can I view a series of images in the same image frame?

    I'm an intermediate level user and recently saw a feature on a web site that I'd like to incorporate in my own designs. I'm looking for an instructional link to explain this process. On a published web site there is an image. To the right side and left side of this main image are two small images: a "forward triangle" and a "reverse triangle". When you click on the forward triangle the main image changes to image #2, then again to image #3. Clicking on the left-sided "reverse triangle" takes the user back to image #2, then image #1. All main images are located inside the same frame, it's just that you can click back and forth through a series of half a dozen images. It seems easy, but I just can't find the right instructions. Can anyone suggest a link or two? Thanks!

    From the code
    <script src="javascript/jquery-1.2.1.pack.js" type="text/javascript"></script>
    <script src="javascript/jquery-easing.1.2.pack.js" type="text/javascript"></script>
    <script src="javascript/jquery-easing-compatibility.1.2.pack.js" type="text/javascript"></script>
    <script src="javascript/coda-slider.1.1.1.js" type="text/javascript"></script>
    It's using this script
    http://www.ndoherty.biz/tag/coda-slider/
    See also
    http://jqueryfordesigners.com/coda-slider-effect/

  • Preloader not working when image scroller present

    Hi:
    I designed a .fla that involves a large panoramic image that
    I stitched together in PhotoShop, then imported into the library
    and made into a movie clip, I then have the movie clip of the
    panoramic load into an image scroller (the one in the components
    library) on the main timeline so you get the sense you are panning
    through the photo. Within the movie clip of the panoramic there are
    buttons in it that then call other movie clips to load another
    movie clip on top of the image scroller.
    code attached to the buttons is:
    on(release){
    _root.attachMovie("myMovie", "screen",1);
    _root.screen._x =10;
    _root.screen._y =425;
    My issue is the file is so large that I have made created a
    preloader.
    If I load the movie clip of the panoramic directly onto the
    timeline the preloader works fine...
    When I try to load the imagescroller that calls the movie
    clip my preloader does not work at all...
    Does anyone have any ideas?
    I will gladly supply you with any code you may need.
    Thank you
    Janalese

    Thank you for your information. It worked great as far as...I
    could build a preloader and have the movie show up on the screen as
    I wanted. Now for problem number two that has developed...
    The MovieClipLoader that calls external .swf file. This is a
    movie that has an image scroll bar that calls a movie clip that
    scrolls a panoramic photo. Within that movie clip of the panoramic
    I have buttons that then call other movie clips from the library
    using
    on(release){
    _root.attachMovie("myModelScroll", "screen",1);
    _root.screen._x =10;
    _root.screen._y =425;
    This is an example of what I am doing
    I have a panoramic shot that is in an image scroller, that
    panoramic is of a group of buildings each building has a button
    next to it. Those buttons then call up another movie clip from the
    library using the attachMovie clip to show another mini movie clip
    of what the building looks like inside, and what the purpose is.
    Issue:
    The buttons within the movie clip that is loaded into the
    image scroller fail to work. If I just load the .swf files into the
    browser it works just fine...
    but the issue is I have a huge file with an image scroller so
    I need a progress bar and a MovieClipLoader function.
    How do I now get the other code attached to the buttons
    within the movie clip that says attachMovieClip to work within the
    context.
    I am so baffelled as to why it won't work...
    Here is the code to my preloader and movieClipLoader
    My actionScript skills are very limited so any help is
    greatly appreciated but needs to be supplied in simple language.
    Thank you very much

  • How to detect red frame in a series of images using web cam?

    hey i am a new use of lab view(8.2 n 8.6).kindly ca any1 help me out in red color detection in a series of frames being capture by a usb web cam.i have done the grabbing thing but dont knw what to do now.plz help me out. basically i hve to do the following things:
    1 )the camera is continuously making video
     2)the moment a red color or red frame comes across the camera the camera is programmed such that it will capture that red frame. and display that captured frame
    plz hep me out.i need serious help.
    i am attaching a vi that is grabbing the images and then xtracting the red color info n thn displyaing its intensities rows and coumn wise on a graph.here i have used a guassian surface to locate the red color.
    Solved!
    Go to Solution.
    Attachments:
    giving intensity of red color.vi ‏78 KB

    hey,i have made the code plz chk it and do rep soon as ma project sbmission date is very near =((
    i am snaping an image from the web cam then comparing it with the red colored jpg image made in paint.
    the jpg image is converted  to give input image to imaq match vi.but after the comparison it gives the same output.
    on the front pannel the snapped image is displayed,the red colored image that is converted in to its respective pixels is displayed and the image that is obtained after cheking the image in the draw fails vi...the pic converted to pixels is all the time displayed.and the pass/fail icon always denotes one pass led on..plz chk the code =((.
    also can u provide me some guide line for using thr hough transform for the red color detection in lab view..i dont have to import the matlab code..i have to purely make it using the lb view libraries.
    also one more request pl rep me regularly as i really need your golden piece of advice for ma success.
    thnx
    Attachments:
    picture to image(BY ME).vi ‏102 KB
    untitled.JPG ‏3 KB

  • How to enforce correct "Build In" order of a series of images?

    Hi,
    I've done this before, with only four bullet points and four images.  But for some reason in this case, with 10 bullet points linked to 10 images, what happens is this:  the first two images behave correctly, i.e. the second image duly flips and lands on top of the first one, so that it can be seen.  But the third one flips "behind" the first two and so is not visible at all.  I've tried putting the last image in first and carefully making sure that each image that precedes it is one layer above the previous one - using the "Forward" button.
    Can anybody help me see why this is not working  - afte the first two pairs, that is?
    PS !'m using Keynote '09 version 5.3 (1170)  [and have no intention of using the "new" version of this, nor Numbers, nor Pages!]
    Many thanks,  Giorni.

    I have a presentation with 15 images and accompanying text which works correctly. I can reorder and select which layer the images appear without issue.
    I would guess that you are not setting the correct layer for the third image.
    What to try is move the images in an overlapping stack and watch how they move up and down the stack as you use the forward and backward button.
    Once in the correct layer, re-position to the correct position.
    shape 3 is in the wrong layer:          shape 3 in the correct layer:

  • How to load series of images?

    I am trying to load a sereies of pictures moving accross the top from right to left.  How do I load all of these photos in such a way that they seem to be stitched together like a piece of film strip at certain rate going accross?

    you could also do something like this - I used this for doing something very similar to what you explained:
              public var menuImageArrayURL:Array = ["images/mainMenu/01.jpg", "images/mainMenu/02.jpg", "images/mainMenu/03.jpg",
                                    "images/mainMenu/04.jpg", "images/mainMenu/05.jpg", "images/mainMenu/06.jpg",
                                    "images/mainMenu/07.jpg", "images/mainMenu/08.jpg", "images/mainMenu/09.jpg",
                                    "images/mainMenu/10.jpg", "images/mainMenu/11.jpg"];
              var b1:Sprite = new Sprite();
              var b2:Sprite = new Sprite();
              var b3:Sprite = new Sprite();
              var b4:Sprite = new Sprite();
              var b5:Sprite = new Sprite();
              var b6:Sprite = new Sprite();
              var b7:Sprite = new Sprite();
              var b8:Sprite = new Sprite();
              var b9:Sprite = new Sprite();
              var b10:Sprite = new Sprite();
              var b11:Sprite = new Sprite();
              public var arrayLoaders:Array;
              public var imageLoader:Loader;
              public var imageHolder:Sprite;
              public function placePictures():void {
                   var ba:Array = new Array();
                   ba.push(b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11);
                   for(var i:uint=0;i<ba.length;i++) {
                        trace(name + ba[i]);
                        ba[i].name = i;
                        imageLoader = new Loader();
                        imageLoader.load(new URLRequest(menuImageArrayURL.shift()));
                        imageLoader.x-= imageLoader.width/2;
                        imageLoader.y-= imageLoader.height/2;
                        imageHolder = new Sprite();
                        imageHolder.addChild(imageLoader);
                        imageHolder.x = 0;
                        imageHolder.y = 0;
                        ba[i].x = 0 + i * 150;
                        ba[i].y = 0;
                        ba[i].addChild(imageHolder);
                        addChild(ba[i]);                    
    thats just for the loading of the pictures. if you understand that or need some help in understanding I can see what I can do to help you. then after that I can tell you how I would make them move across the stage.

Maybe you are looking for

  • Macbook Pro Harddrive Upgrade Western Digital Scorpio Blue WD10TPVT

    I recently purchased a Western Digital Scorpio Blue 1TB hard drive (WD10TPVT) in order to replace the 500GB hard drive in my Unibody Macbook Pro 15" running Mac OS X 10.6.4. After swapping the hard drives I wanted to install Snow Leopard from the scr

  • Jsf VS wcm servlet- combine JSF & WCM tags in the same page

    Hey all, I wanted to get to you a problem I've encountered and see if you can direct me. Note: I found a way to work around the problem, we will see later - but this will not bring me to full integration. The problem arises when I create a region\pag

  • Iphone4 external mic problems - Ultradisk 4016 Lavaliere Mic

    Hello Everybody Maybe someone here can help as its after hours at Ultradisk and therefore I can´t ask them. I purchased two Ultradisk 4016 Lavaliere Mics to record Audio with an iPad Mini and my trusty old iPhone4. Bought RodeRec too, the pro version

  • Repairing disk permissions keeps giving same message

    I routinely verify my HD and repair disk permissions. The latter often indicates repairs are needed, especially after installation of new software or updates (I repair before and after). But once repaired, if I verify the permissions they come out ok

  • HELP IM SO CONFUSED

    i am putting cds onto my itunes, am i supposed to go through the "music" thing on the finder then through the "i tunes folder" (it shows two possible folders and the other is garage band). then if i click on the "itunes music folder" should i see all