Detect image load complete after loadMovie()

Hi all,
I use attachMovie() to create a new instance of a movieclip, then I use loadMovie() to load an external PNG image into the new movieclip. That is working fine.
I want to be able to detect when the image has finished loading into the movie clip container. I need to detect this because I want to check the image width and height.
If I check the width and height right after I call loadMovie() it is returning the default placeholder size, instead of the new loaded image size. It obviously has not finished loading when I check it there.
I am using ActionScript 2.0 but I can use 3.0 if there is an easier solution.
Any ideas? Thanks in advance.

Rather than rewriting what I wrote yesterday, just down the page is another posting that should answer your situation. HEre's a link: http://forums.adobe.com/thread/489579?tstart=0

Similar Messages

  • Having Images load one after the other

    Hi, i am currently creating a tetris game and was wondering how exactly i would go about creating some sort of a timer that would allow me to have my images load one after the other and fall at specified interval. I appreciate any help. here is my code:
    import javax.swing.*;
    import java.awt.*;
    public class Tetris extends JPanel {
    Image image; // Declare a name for the Image object.
    Image image1;
    Image image2;
    Image image3;
    // Create a constructor method
         public Tetris(){
    super();
    // Load an image file into the Image object. This file has to be in the same
    image = Toolkit.getDefaultToolkit().getImage("Block1.png");
    image1 = Toolkit.getDefaultToolkit().getImage("Block2.png");
    image2 = Toolkit.getDefaultToolkit().getImage("Block3.png");
    image3 = Toolkit.getDefaultToolkit().getImage("Block4.png");
    // The following methods are instance methods.
    /* Create a paintComponent() method to override the one in
    JPanel.
    public void paintComponent(Graphics g){
    // Draw our Image object.
    g.drawImage(image,30,30,30,30, this);
    //g.drawImage(image1,30,30,30,30, this);
    //g.drawImage(image2,70,70,70,70, this);
    //g.drawImage(image3,80,80,80,80, this);
         public static void main(String[] args) {
         JFrame frame = new JFrame("Tetris");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setSize(200,500);
    Tetris panel = new TetrisDemo();
    frame.setBackground(Color.WHITE);
    frame.setContentPane(panel);
    frame.setVisible(true);
    }

    Can you clarify what you mean by Images loading one after the other? For this, you might want to take a look at MediaTracker
    If by "fall", you mean having blocks which drop periodically, you should check out javax.swing.Timeer

  • Dropped laptop and now it won't load completely after turning it on. Only loads half way and stays there. What can I do to fix it?

    My Friend dropped my laptop form about 4 ft. It was working but after I turned it off and tried to turn it back on it wont load completely when it sign in. It loads half way and stays there, I can only use safari through the guest section. What can I do to fix?

    - Make an appointment at the Genius Bar of an Apple store and hear what they have to say. The appointment is free.
      Apple Retail Store - Genius Bar

  • Web Access Not Loading Completely After Upgrade

    We recently upgraded from TFS 2012 Update 2 to TFS 2013 Update 4.
    After the upgrade, users are having intermittent issues trying to load Web Access - for some users, only the header loads, but none of the information below (like work items, for example) loads - the entire screen basically stays blank.
    This is happening on different browsers for different people.  Clearing caches has worked for some users and not others, and for some people the problem has come back after being able to load Web Access normally a couple days ago.
    I do see this error popping up when debugging:
    No define call received from module Presentation/Scripts/TFS/TFS.DataServices. This might be a problem.
    What can I do to correct this?

    Hi Brian,
    I'd like to know if you see any error message in the pages of team web access. Also check event logs to see if there any useful information.
    For this situation, you can have a check whether your upgrade without issue. Run TFS best practice analyzer to check if there any configuration issues. Make sure you have configured TFS 2013 features after upgrading. Refer to this
    page for more information. If the issue still exist after taking the methods, please elaborate more details about your scenario with screenshots.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Images are not loading/not loading completely, persona previews no longer works with scrollover - even after complete uninstall/reinstall, but images work in IE - suggestions on how to fix this??

    Images on websites often do not load or load incorrectly/incompletely load even after refreshing page and clearing caches. Often have to "clear recent history" 5 or 6 times within a single firefox session to get working links, images, completely loaded pages. The persona previews no longer do an "automatic preview" with a scroll over and now i no longer even get an image on the page to scroll over (images are just NOT THERE). I have done the safe mode test, have updated everything suggested, have checked all add ons as suggested in the troubleshooting guide and NOTHING shows as being a problem. I even did a complete uninstall and reinstall and it is STILL not working. Worried that it was an issue with my computer, i checked the pages in IE, and they worked PERFECTLY. I am uncertain what to do now. It started as a problem once or twice a week, and now it is EVERY time i bring up Firefox. Help?

    the second article did offer a suggestion that SEEMS to have helped ::crosses fingers:: - an about:config, resetting of the preferences for images. we'll see how long it lasts. THANK YOU SO MUCH for the suggestion, the article wasn't one i'd found while searching for troubleshooting info.
    Java script is enabled, but the persona's stuff still isn't working. dang it. WELL, one thing seems to work now, at least. thank you.
    Pax, km

  • Why can I not open raw images in bridge after down loading raw plug-in for my new Canon 70D?

    Why can I not open raw images in bridge after down loading raw plug-in for my new Canon 70D dozens of times?  I have never had any where near this amout of trouble with all my other Canon digital cameras. 
    <Removed by Moderator>

    http://helpx.adobe.com/creative-suite/kb/camera-raw-plug-supported-cameras.html
    http://helpx.adobe.com/x-productkb/global/camera-raw-compatible-applications.html
    Mylenium

  • Images load really slow after using Reduce File Size...

    After using the "Reduce File Size..." feature in Acrobat 9 on Windows Vista, some of the images load really slow as I page through the document. Is there some kind of compression setting that I should look for to prevent the images from be affected by this?
    For some of my documents it will take 30 to 60 seconds to load an image. Sometimes I can't do anything with the document until the graphic loads entirely.

    Can you post an example of a file that has this issue? Personally, I recommend using the PDF optimizer, it gives better control of the final pdf file.

  • Images fail to load completely

    I regularly visit a web site which displays many photographs. Often some of the images fail to load completely, I may see the top 30% of the image and the rest shows as a grey box. Pasting the same URL into Firefox, shows the whole image.
    Any ideas? This has been a long term problem with Safari, both on a MBP and PowerBook G4.
    MacBook Pro   Mac OS X (10.4.6)  

    Helpful if you post the web site so we can have a look.

  • Firefox wont load pages completely after removing firefox cache

    Every Time i remove my firefox cache you tube and yahoo and other pages wont load completely or will load with errors. Anyone know why this is happening?

    Sometimes you only disable the user interface of security software, but the firewall services are still running in the background.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process.
    See:
    * [[Server not found]]
    * [[Firewalls]]

  • XML scrolling thumbnail, image loader, & Buttons [halfway works]

    Intro:
    I started a flash-based website a few years ago. Back in 2006 I was able to get a xml scrolling thumbnail, image loader to work without a glitch.
    For numerous reasons I had to put the project on hold until now. [one was that my 30 day trial of flash expired and only recently was I able to purchase the Adobe Web Suite CS4 as well as a new computer which could run the apps.]
    Last Friday saw a bump in the road in the development of my site as two, rather straightforward task, turned into something short of a nightmare as I have been unable to get past these two, seemingly, relatively simple task.
    I have posted in 4 other flash forums the issues, in detail, that I am facing - and have quite a bit of interest/views in the topic as the numbers suggest - yet no response/answer as of yet. [Which confirms other messages I have seen which seem to state that working with buttons has become increasingly difficult with the newer version of flash - something Im a bit surprised with actually from Adobe. - I would have thought there would be a palette where you could set parameters...]
    Screenshot of Site/Timeline:
    Before getting into the two questions I have, I would like to post an image of the site as it looks whenever an swf file is saved out, as well as a piece of the timeline in the back for reference.
    Issue #1
    As of now when the swf file is saved out you get exactly what you see above:
    a: A scrolling thumbnail
    b: ...which loads a large image when clicked on it - PEFECT...
    BUT...
    1a: I need for the buttons to load in this action, not for it to just load on its own.
    [i.e., the silk_paintings gallery is what is open, so I need the "silk_paintings" button to call up this action]
    note: Initially I had attacked this problem by taking out the actions layer you see above and applying it directly to the individual buttons with some crude MouseEvent Listener/Handerls... that did not work - at all.
    Im sure it may be "easier" to make an array out of it, but with my coding level it may be "easier" to apply it to the buttons.
    1b: How I currently see it, I would take the xml-list and duplicate it for the number of galleries I have.
    [I would then re-name the xml-list to reflect the name of the galleries they are to represent, i.e. "silk_paintings"]
    [also, I would have to rename the folders to "thumbnails1,2,3, etc., & "images 1,2,3, etc"
    From there I would duplicate the actions and paste it into the buttons, changing the xml-list name to that of "silk_paintings", etc., as well as write in the MouseEvent listener Handler to make it work. [ah, ha, but what is that magic phrase, I have tried to implement various code from other tutorials, and all in vein.]
    Issue #2
    At this point I would be tickled pink just to get this to basic function to work.
    However, once the buttons are working and calling up the xml, etc., then I need the buttons to stay on the semi-transparent blue color it is whenever in the 'hit' state. [note: NOT pictured above.]
    With the way the buttons are currently set up, and with wanting to use scripting to get them to interact with the thumbnail gallery, it will have to be some miraculous code to tell that button what color to stay as whenever its clicked, and of course it going back to white when another button is clicked.
    Conclusion:
    Since this is an Adobe Forum I would like to make a few additional statements in hopes that the developers, etc. may take heed.
    Adobes products are not cheap, and when I went to purchase the websuite I went in as a designer needing a program as not to need to program.
    I understand the flexibility that coding gives, but something as simple as linking buttons should not be in the realms of rocket science. [yes, for many its not...but my brain just does not operate that route despite all the tutorials thrown at me.]
    Again, it would seem that there would be a button panel where you could drag options like scrolling thumbnail slider, loader, and then parameters would come up. [much like Apples iWeb. - but before the argument of one being pro and the other for non-pros, I see it differently. Software should not be the limiting factor in how flexible you can design, or rather ones lack of programming shouldnt be. With all the talented, and I say this in all humility and honesty, programmers working for Adobe, Im sure something could be programmed like what Im asking for.]
    note: Director is a good example, back in 1997 I knew nothing of multimedia and in one week I had assembled a portfolio, clicking buttons, speech, movies, and all. - and no, I dont have the money to buy more software!
    At this moment I am at the mercy of someone who reads code like its a nighttime tale they are telling their kids, and who can see the exact issue I have and can share the appropriate, correct code. [as I have noticed, it has to be on target - naturally - but this target changes with just a slight change in the design.]
    Thank you,
    peace
    Dalen
    p.s.
    The actionscript: [note: This is only the current working/good code that Im trying to get the buttons to call up.]
    stop();
    fscommand("allowscale", false);//keep SWF display at 100%
    var x:XML = new XML ();//Define XML Object
    x.ignoreWhite = true;
    var fullURL:Array = new Array;//Array of full size image urls
    var thumbURL:Array = new Array;//Array of thumbnail urls
    var thumbX:Number = 25;//Initial offset of _x for first thumbnail
    x.onLoad = function(){ //Function runs after XML is loaded
        var photos:Array = this.firstChild.childNodes;//Defines variable for length of XML file
         for (i=0;i<photos.length;i++) {//For loop to step through all entry lines of XML file
              fullURL.push(photos[i].attributes.urls);//Each loop, adds URL for full sized image to Array fullURL
              thumbURL.push(photos[i].attributes.thumbs);//Each loop, adds URL for thumbnails to Array thumbURL
              trace(i+". Full Image = "+fullURL[i]+"  Thumb Image = "+thumbURL[i]);         
              var t = panel.attachMovie("b","b"+i,i);//Each loop, Define local variable 't' as a new instance of 'b' movie clip, given unique instance name of 'b' plus the index number of the For loop
              t.img.loadMovie(thumbURL[i]);// Each loop, load thumbnail image from XML data into variable movie clip
              t._y = 0;//Set Y coordinate of variable movie clip
              t._x = thumbX;//Set X coordinate of variable movie clip based on variable thumbX
              t.numb = i;//Set sub-variable 'numb' inside variable t to hold index number
              t._alpha = 75;//Set the Alpha value of the variable movie clip to 75% - for onRollOver highlight action
              thumbX += 55;//Increment thumbX value so next thumbnail is placed 125 pixels to the right of the one before
              t.onRollOver = function () {//define onRollOver event of the variable movie clip
                   this._alpha = 100;//Set thumbnail alpha to 100% for highlight
              t.onRollOut = function () {//define onRollOut event of the variable movie clip
                   this._alpha = 75;//Reset thumbnail alpha to 75%
              t.onPress = function () {//define onPress event of the variable movie clip
                   this._rotation += 3;//rotates thumbnail 3 degrees to indicate it's been pressed
                   this._x += 3;//Offset X coordinate by 3 pixels to keep clip centered during rotation
                   this._y -= 3;//Offset Y coordinate by 3 pixels to keep clip centered during rotation
              t.onReleaseOutside = function () {//define onRelease event of the variable movie clip
                   this._rotation -= 3;//rotate thumbnail back 3 degrees
                   this._x -= 3;//Reset X coordinate by 3 pixels to keep clip centered during rotation
                   this._y += 3;//Reset Y coordinate by 3 pixels to keep clip centered during rotation
                   this._alpha = 75;//Reset thumbnail alpha to 75%
              t.onRelease  = function () {//define onRelease function to load full sized image
                   this._rotation -= 3;//rotate thumbnail back 3 degrees
                   this._x -= 3;//Reset X coordinate by 3 pixels to keep clip centered during
                   this._y += 3;//Reset Y coordinate by 3 pixels to keep clip centered during
                   this._alpha = 75;//Reset thumbnail alpha to 75%
                   holder.loadMovie(fullURL[this.numb]);//Load full sized image into holder clip based on sub-variable t.numb, referenced by 'this'
         holder.loadMovie(fullURL[0]);//Initially load first full size image into holder clip
    x.load ("silk_paintings.xml");// path to XML file
    panel.onRollOver = panelOver;
    function panelOver() {
         this.onEnterFrame = scrollPanel;
         delete this.onRollOver;
    var b = stroke.getBounds(_root);
    function scrollPanel() {
         if (_xmouse<b.xMin||_xmouse>b.xMax||_ymouse<b.yMin||_ymouse>b.yMax) {
         this.onRollOver = panelOver;
         delete this.onEnterFrame;
         if (panel._x >= 740) {
         panel._x = 740;
    if(panel._x <= (thumbX-10))  {
              panel._x = (thumbX-10)
         var xdist = _xmouse - 830;
         panel._x += -xdist / 7;
    The xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <slideshow>
    <photo thumbs="thumbnails/i_brown_fairy.jpg"  urls="images/brown_fairy.jpg"  />
    <photo thumbs="thumbnails/i_blonde_fairy.jpg"  urls="images/blonde_fairy.jpg"  />
    <photo thumbs="thumbnails/i_flower_fairy.jpg"  urls="images/flower_fairy.jpg"  />
    <photo thumbs="thumbnails/i_red_fairy.jpg"  urls="images/red-fairy.jpg"  />
    </slideshow>
    Attached is a link to the file I made named "index".
    https://rcpt.yousendit.com/706233226/5e7b4fe0973dacf090b5cbae32c47398
    I would have liked to have included the following files but was limited due to "you-send-it" not uploading folders.  Files not included: [but functioning] : xml list - images [folder] - thumbnails [folder]
    Again, Thank you
    Dalen

    The issues with the buttons calling up the scrolling thumbnail panel have been resolved, as well as keeping the buttons in their hit state once clicked, thanks to Rob.
    Those that have been following this thread, or stumble upon it in their searches later, may appreciate to see the final solution to this particular issue.
    [Hopefully I will be able to update this thread with a url in the future to show the site in operation, which may help somebody with their project in the future if its set up similarly.]
    Alas, it would be nice if future versions of flash had a more direct, flexible, user friendly method for creating navigation.
    [We may see development beyond the flash ads which everyone seems to loathe... and more creativity with flash in terms of games, web interactivity, &  animation.
    Below are 2 sets of code:
    a] the first is located within the first frame of the first button, and has some extra variables in it that the additional buttons call upon...
    b] the second is the code applied to every other button.
    stop();
    fscommand("allowscale", false);//keep SWF display at 100%
    var x:XML = new XML();//Define XML Object
    x.ignoreWhite = true;
    var fullURL:Array = new Array();//Array of full size image urls
    var thumbURL:Array = new Array();//Array of thumbnail urls
    //  .......  CHANGE
    var thumbX:Number;// = 25;//Initial offset of _x for first thumbnail
    // make an array of all of the instance names of each button object...
    // only do this once
    var buttonsList:Array = new Array(shadesOfGrey, silkPaintings);
    shadesOfGrey.isLatched = false;
    // the rollover function... repeat for each button
    shadesOfGrey.onRollOver = shadesOfGrey.onDragOver=function ():Void {
         if (!this.isLatched) {
              this.gotoAndStop(2);
    // the rolloff function... repeat for each button
    shadesOfGrey.onRollOut = shadesOfGrey.onDragOut=shadesOfGrey.onReleaseOutside=function ():Void {
         if (!this.isLatched) {
              this.gotoAndStop(1);
    // the mouse press function... repeat for each button
    shadesOfGrey.onPress = function():Void  {
         resetAllButtons();
         this.isLatched = true;
         this.gotoAndStop(3);
    shadesOfGrey.onRelease = function():Void  {
         x.load("shadesOfGrey.xml");// path to XML file
         thumbX = 25;
    function resetAllButtons():Void {
         for (b in buttonsList) {
              buttonsList[b].isLatched = false;
              buttonsList[b].gotoAndStop(1);
    x.onLoad = function() {//Function runs after XML is loaded
         //  resets the position of the panel on each new load
         panel._x = 740;
         //  .......  CHANGE  removes the existing movieclips from the panel before any new load...
         for (c in panel) {
              if (typeof (panel[c]) == "movieclip") {
                   removeMovieClip(panel[c]);
         var photos:Array = this.firstChild.childNodes;//Defines variable for length of XML file
         for (i=0; i<photos.length; i++) {//For loop to step through all entry lines of XML file
              fullURL.push(photos[i].attributes.urls);//Each loop, adds URL for full sized image to Array fullURL
              thumbURL.push(photos[i].attributes.thumbs);//Each loop, adds URL for thumbnails to Array thumbURL
              //trace(i+". Full Image = "+fullURL[i]+"  Thumb Image = "+thumbURL[i]);
              var t = panel.attachMovie("b", "b"+i, i);//Each loop, Define local variable 't' as a new instance of 'b' movie clip, given unique instance name of 'b' plus the index number of the For loop
              t.img.loadMovie(thumbURL[i]);// Each loop, load thumbnail image from XML data into variable movie clip
              t._y = 0;//Set Y coordinate of variable movie clip
              t._x = thumbX;//Set X coordinate of variable movie clip based on variable thumbX
              t.numb = i;//Set sub-variable 'numb' inside variable t to hold index number
              t._alpha = 75;//Set the Alpha value of the variable movie clip to 75% - for onRollOver highlight action
              thumbX += 55;//Increment thumbX value so next thumbnail is placed 125 pixels to the right of the one before
              t.onRollOver = function() {//define onRollOver event of the variable movie clip
                   this._alpha = 100;//Set thumbnail alpha to 100% for highlight
              t.onRollOut = function() {//define onRollOut event of the variable movie clip
                   this._alpha = 75;//Reset thumbnail alpha to 75%
              t.onPress = function() {//define onPress event of the variable movie clip
                   this._rotation += 3;//rotates thumbnail 3 degrees to indicate it's been pressed
                   this._x += 3;//Offset X coordinate by 3 pixels to keep clip centered during rotation
                   this._y -= 3;//Offset Y coordinate by 3 pixels to keep clip centered during rotation
              t.onReleaseOutside = function() {//define onRelease event of the variable movie clip
                   this._rotation -= 3;//rotate thumbnail back 3 degrees
                   this._x -= 3;//Reset X coordinate by 3 pixels to keep clip centered during rotation
                   this._y += 3;//Reset Y coordinate by 3 pixels to keep clip centered during rotation
                   this._alpha = 75;//Reset thumbnail alpha to 75%
              t.onRelease = function() {//define onRelease function to load full sized image
                   this._rotation -= 3;//rotate thumbnail back 3 degrees
                   this._x -= 3;//Reset X coordinate by 3 pixels to keep clip centered during
                   this._y += 3;//Reset Y coordinate by 3 pixels to keep clip centered during
                   this._alpha = 75;//Reset thumbnail alpha to 75%
                   holder.loadMovie(fullURL[this.numb]);//Load full sized image into holder clip based on sub-variable t.numb, referenced by 'this'
         holder.loadMovie(fullURL[0]);//Initially load first full size image into holder clip
    // this one function scrolls the panel for all of the buttons, it gets the
    // size of the panel when the images are loaded by any given button...
    stroke.onEnterFrame = function() {
         if (this.hitTest(_xmouse, _ymouse, false)) {
              if (panel._x>=740) {
                   panel._x = 740;
              if (panel._x<=740-panel._width+mask._width) {
                   panel._x = 740-panel._width+mask._width;
              if ((panel._x<=740) && (panel._x>=740-panel._width+mask._width)) {
                   var xdist = _xmouse-830;
                   panel._x += -xdist/7;
    Of note is the change to how the movie clips are measured... this change in and of itself has really helped to make the thumbnail panels operation more efficient.
    Below is the script for each additional button: [Having issues with the forums not letting me post additional code, so I will put the remaining code in a reply below.]
    cont.

  • Windows 7 and updated firefox window do not load completely . the banner may load or it times out. If I leave it sit for a while it may finish loading. New computer.. cannot figure it out.

    I have a new computer with windows 7. I downloaded the mozilla and the update.. now my pages do NOT load completely. the page banner but not the content. or it takes a really long time. When it will not load it say the try again.. and i reload a number of times to get it to load... HELP ME!!
    I will include an example below... in the URL blank.
    This includes Yahoo and Google...
    occasionally it says ...
    The connection was reset
    The connection to the server was reset while the page was loading.
    The site could be temporarily unavailable or too busy. Try again in a few moments. If you are unable to load any pages, check your computer's network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    It is possible that your security software (firewall, anti-virus) blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full, unrestricted, access to install for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    *https://support.mozilla.org/kb/fix-problems-connecting-websites-after-updating

  • Swf does not load completely in browsers

    Hello,
    It looks like other people are having issues with
    uploading/viewing, but I can't seem to find an answer to my
    problem. There are pieces missing from my home page. When I go back
    to the home page from the other pages (by clicking on "Lindsey
    Sonu", the home page is complete. I have checked my site on three
    different browsers, at all times of the day and on both a mac and
    pc. I can't seem to figure out what is wrong. Please help!
    www.lindseysonu.com
    Thank you :)

    So after hrs of searching forums and trying different things,
    I still couldnt get my site to load completely until I decided that
    maybe it could be a corrupt image that I used. It wasnt that
    either, but then I remembered that this started happening after I
    added a preloader. So I took the preloader off and now my site
    loads correctly! Hallelujah! I'm still confused as to why that was
    the problem. Maybe the site doesnt need a preloader b/c of its
    small size. Anyway, I hope this helps anyone who comes across this
    issue!

  • High-traffic websites do not load completely

    Websites such as facebook, wikipedia and others do not load completely. They load most of the website and hang, leaving a perpetually-rotating green "loading" icon at the top of the tab. It will usually leave out a couple images after having loaded the text. I've adjusted the firefox settings so that it doesn't block pictures coming from outside sources, but it hasn't fully remedied the situation. The other issue is that it doesn't happen every time. I'll be browsing on facebook or wikipedia and every third link I click (thereabouts) the website hangs without fully loading. I've already adjusted firefox so that it no longer automatically uses any proxies, but while that seemed to reduce the frequency with which this problem presented itself, it still happens 1/3 of the time rather than 3/4 of the time.
    A parallel problem (while I'm unsure as to whether or not it is related) is that youtube will load the whole page but the video. This also does not happen every time, but it will register as having completed loading the page (there is no green circle icon at the top of the tab), but no video will appear and no light grey buffer bar will load at the bottom of the video screen. I don't have any flash blockers or anything of the sort.
    I've scanned my computer repeatedly for malware using malwarebytes and avast with very little in the way of results (usually nothing or one or two files of malware, no trojans or viruses).
    Any help will be greatly appreciated.

    Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) as a test to see if that helps in case some security software is causing problems.

  • ImageIcon & Lazy image loading

    The whole day I'm fuzzing around with loading an ImageIcon lazily. I suppose you know what lazy means. I want to load my icons when they have to be painted on the screen, because I use thousands of them. I read the "How to Use Icons" tutorial (http://java.sun.com/docs/books/tutorial/uiswing/misc/icon.html). With its ArrowIcon implementation of Icon (http://www.iam.ubc.ca/guides/javatut99/uiswing/misc/example-swing/ArrowIcon.java) and its IconDemoApplet (http://java.sun.com/docs/books/tutorial/uiswing/misc/example-1dot4/IconDemoApplet.java). However, I'm still confused. I also took a look at the ImageIconProxy example of the proxy pattern (http://www.javaworld.com/javaworld/jw-02-2002/jw-0222-designpatterns.html). Finally I got the following code (the IconProperties part can be ignored). I'm afraid that this does not what I want. I have now only a few images, so I can't measure it directly. Does my class exactly the same as the ImageIcon class itself? Is there no postponing of instantiation because I subclass ImageIcon? Do I have to implement the interface Icon instead? Do I have to copy all the stuff in ImageIcon to my implementation in that case? Or is it better to extend the Image class to provide functions like described beneath (check upon existence).
    And for completeness. I extend this LazyIcon object subsequently with a class named LayeredIcon to create combined icons.
    * The class <code>LazyIcon</code> implements <code>ImageIcon</code>
    * because their will be at least some calls like:
    * <pre>
    *   Icon icon = new ImageIcon(imageURL);
    *     Image image = icon.getImage();
    *     image = image.getScaledInstance(...);
    *   Icon icon2 = new ImageIcon(image);
    * </pre>
    * Besides that I want to add a function <code>IconExists</code> and
    * to add lazy image loading, and maybe also background loading.
    * This doesn't work, so it seems like in the constructor of
    * ImageIcon there is done more than only setImage(image).
    * @author A.C. van Rossum
    public class LazyIcon  extends ImageIcon {
      boolean isIconCreated = false;
      protected Image image;
      protected IconProperties properties;
       * The <code>LazyIcon</code> stores the <code>Image</code> until
       * the moment it has to be created. It has default icon properties.
      public LazyIcon(Image image) {
        this(image, IconProperties.DEFAULTICON);
      public LazyIcon(Image image, IconProperties properties) {
        this.image = image;
        setIconProperties(properties);
      //other constructors have to follow
       * The method <code>setIconProperties</code> enables the user
       * to change the properties of an icon, before calling the
       * method <code>paintIcon</code>.
       * @param properties A set of properties: dimension, etc.
      public void setIconProperties(IconProperties properties) {
        this.properties = properties;
      public int getIconHeight() {
        return isIconCreated ? super.getIconHeight() : properties.getHeight();
      public int getIconWidth() {
         return isIconCreated ? super.getIconWidth() : properties.getWidth();
       * The method <code>paintIcon</code> does only set the image of
       * the ImageIcon class lazily (when this function is called.)
      public void paintIcon(final Component c, Graphics g, int x, int y) {
        if(!isIconCreated) {
          setImage(image);
          isIconCreated = true;
        super.paintIcon(c, g, x, y);
      public Image getImage() {
        if (isIconCreated)
          return super.getImage();
        else return image;
    }Is my problem formulation clear enough? Many thanks in advance if you want to give it a look.
    Andy

    I spent some more time looking at the programs today, and it seems that all of the students involved were using a graphics library called objectdraw (http://cortland.cs.williams.edu:16080/~cs134/eof/). As far as I can tell, the objectdraw source code isn't public, so I can't say which (if any) of the standard methods they were using.
    After some work, I managed to produce a method with the same parameters as the objectdraw getImage method that used the AWT Toolkit. When I overrode the objectdraw version in the students' code, the bug (at least for the moment) seems to have gone away. So the problem may be in that other library.
    Does anyone else have experience with objectdraw? Is this a known bug, or could this be something else...?

  • Images loading order & thumbnail pointing corresponding image directly

    Hi,
    May i ask 2 questions here.
    1) If you can click this link http://www.prashanthvfx.com/Concepts&Imaginery.html, you can see that all my 14 drawings that had been lined up one after the other, are trying to load at the same time. Is there any way to prioritize, by which the 1st image loads first and 2nd image loads second and so on.
    2) If you can click this link http://www.prashanthvfx.com/art.html , you can find under "Concepts & Imaginary", i had displayed 14 thumbnails for the above link. All the images are linked to the above webpage (14 bigger images). Now, if you click on any thumbnail, it will open the link were all 14 bigger images are displayed from the starting. My question here is, can we device a way, by which if first if we click each image, it will point to the corresponding bigger image on the http://www.prashanthvfx.com/Concepts&Imaginery.html.
    Meaning, if i click on the last thumbnail "Keep city Clean", it will open and directly point to the last image on the linked webpage, by pushing the vertical scroll bar all the way down, were the corresponding bigger image is displayed.
    Kind note: i'm an artist and posting my work on my website. So, i really appreciate your answers.
    Thanking you,
    -Prashanth
    www.PrashanthVFX.com

    Sorry, but you can't control the order in which page items load. This
    is browser dependant and each browser handles the order differently.
    Hi Nancy, i'm a bit shocked to hear this. I was thinking website designing has evolved over many years and so there should definitely be a way to load images in order. I am a Computer Graphcis artist and so not much good in scripting. But, i think we can device a simple script by which we can mention the images order separated by comma's "," and so the browser will not load the 2nd image until it has completely finishined loading the 1st image. Correct me if am wrong.
    I don't understand your question.  Do you have a link to a web page that actually does what you're asking?
    Sure I have. If you can click this link http://www.prashanthvfx.com/art.html , you can find under "Concepts & Imaginary", i had displayed 14 thumbnails for the above link. All the images are linked to one webpage were 14 bigger images are stacked. Now, if you click on any thumbnail, it will open the link keeping the vertical scroll bar at the top. So, you need to scroll all the way down to see the corresponding bigger image.  My question here is, can we device a way, by which if first if we click each image, it will point to the corresponding bigger image on the http://www.prashanthvfx.com/Concepts&Imaginery.html.
    Meaning, if i click on the last thumbnail "Keep city Clean" , it should open http://www.prashanthvfx.com/Concepts&Imaginery.html and directly point to the last image on the linked webpage, by pushing the vertical scroll bar all the way down, were the corresponding bigger image is displayed.
    Hope i am making myself clear with the above links and examples. I would be glad to give you further explantion if needed.
    I really appreciate your time.
    Thanks
    -Prashanth
    www.PrashanthVFX.com

Maybe you are looking for