Getting JPG to Load?

I want a JPG to load into Flash 8's Loading Component. I have
the loading component on a certain keyframe. I tell the invisible
button to go to this keyframe and look for a keyframe where I have
the load component. It works when I publish it from within the the
movie itself.
However, when I try to run the whole website (this swf loads
into another swf) it does not load the loading component.
How do I fix this? I hope I made myself clear.
on (rollOver) {
this.largerview.gotoAndPlay("over1");
on (rollOut) {
this.largerview.gotoAndPlay("out");
on (press) {
this.largerview.gotoAndPlay("pressdown");
///I am telling it to go to the frame "p1" in the parent MC.
on (release) {
this._parent.gotoAndPlay("p1");
Here is the actionscript for the invsibile button.

i dont get it ...why are doing all that stuff
place the loader compnent on any keyframe you want
give the loader component an instance name ..myLoader ...lets
say
then you can load images 2 ways ...static or dynamically
to load static ...click on the loader component & then go
to the parameters panel
& input the image name in the contentPath....mycar.jpg
when using the loader component all your images need to be in
the same directory as your fla & exported swf
but this way the user will have to wait until the whole site
loads to view the images
dynamically with buttons
do the same as above ..but instead of inputing parameters
your going to attach code to each button symbol
on(release){
myLoader.contentPath = "mycar.jpg";
then for button 2
on(release){
myLoader.contentPath = "myhouse.jpg";
etc etc
very simple !

Similar Messages

  • Getting Images To Load On Web?

    Hi all,
    I have a question about how to get images to load in an applet once it is uploaded to a website. When I run the applet in JGrasp it works fine but if I try to open the applet in a web browser (via an html file on the hard drive) nothing loads. If I take the code out that sets the background image the application loads fine in the web browser.
    The image is in the same directory as the class file and html file. Is there a way I can get this method to work (loading off the hard drive and also off the website when it's uploaded) or do I have to use a jar file? I have spent some time searching for tutorials and demos but haven't been able to get the jar file to work either. I'm fairly new to programming and most of the examples I found were way over my head.
    Any help in getting this problem solved will be greatly appreciated.
    Here is a short sample program to illustrate the problem: For some reason this sample program only loads in IE and not in Firefox.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class Test extends JApplet implements ActionListener
    {     Container     mainWindow;
         public void init()
         {     ImagePanel panel = new ImagePanel(new ImageIcon("Background.jpg").getImage());
              setContentPane(panel);
              mainWindow = getContentPane();
              mainWindow.setLayout(new BorderLayout());
              JLabel label = new JLabel("TESTING");
              mainWindow.add(label, BorderLayout.CENTER);
              setSize(1000, 500);
              setVisible(true);
              mainWindow.validate();
         public void actionPerformed(ActionEvent e) { }
    class ImagePanel extends JPanel
    {     private Image img;
         public ImagePanel(String img)
         {     this(new ImageIcon(img).getImage());
         public ImagePanel(Image img)
         {     this.img = img;
              Dimension size = new Dimension(img.getWidth(null), img.getHeight(null));
              setPreferredSize(size);
              setMinimumSize(size);
              setMaximumSize(size);
              setSize(size);
              setLayout(null);
         public void paintComponent(Graphics g)
         {     g.drawImage(img, 0, 0, null);
    CODE FOR HTML FILE:
    <html><body>
    <CENTER>
         <applet code="Test.class" width="1000" height="500"></applet>
    </CENTER>=
    </body></html>

    Hello again,
    I've got one more small question. I modified the code a little bit so I could create an Image folder (package) which holds all of the images and the ImagePanel class. Since the ImagePanel and images are all in the same folder, I modified the ImagePanel constructor to take a string and then load the file with that name. It works in JGrasp and when I open it in a web browser from my computer, but when I upload it to the site it no longer works. Is there a way to get at these images inside the folder when it's online without drastically changing the method I used in the first place? I saved the original files that I can go back to so if it's not an easy fix then that's no big deal, but I thought I'd ask just in case it is something simple as it would be nice to have the files more organized. Thanks.
    Here's the updated code.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.net.*;
    public class Test extends JApplet implements ActionListener
    {     Container     mainWindow;
         URL               url;
         public void init()
              ImagePanel panel = new ImagePanel("Background.jpg");          // background image
              setContentPane(panel);
                mainWindow = getContentPane();
                mainWindow.setLayout(new BorderLayout());
              JLabel label = new JLabel("TESTING");
              mainWindow.add(label, BorderLayout.CENTER);
              setSize(1000, 500);
              setVisible(true);
              mainWindow.validate();
         public void actionPerformed(ActionEvent e) { }
    class ImagePanel extends JPanel
    {     private Image img;
         public ImagePanel(String img)
         {     this(new ImageIcon(img).getImage());
         public ImagePanel(Image img)
         {     this.img = img;
              Dimension size = new Dimension(img.getWidth(null), img.getHeight(null));
              setPreferredSize(size);
              setMinimumSize(size);
              setMaximumSize(size);
              setSize(size);
              setLayout(null);
         public void paintComponent(Graphics g)
         {     g.drawImage(img, 0, 0, null);
    }Inside "Image" folder:
    package Image;
    import java.awt.*;
    import javax.swing.*;
    public class ImagePanel extends JPanel
         public Image img;
         public ImagePanel(String imageFile)
              Image img = new ImageIcon(getClass().getResource(imageFile)).getImage();
              this.img = img;
              Dimension size = new Dimension(img.getWidth(null), img.getHeight(null));          // set size = size of image
              setPreferredSize(size);
              setMinimumSize(size);
              setMaximumSize(size);
              setSize(size);
              setLayout(null);
         public void paintComponent(Graphics g)
              g.drawImage(img, 0, 0, null);
    }

  • Safari gets stuck on loading indicator/image placeholder when trying to load "some" images

    Ok, so  Safari and Firefox for Mac both have this problem.
    When I go to some websites, I get an endless loading icon (place holder) and nothing appears.
    However on Windows/Internet Explorer (using parralels) the page loads fine.
    This happens on Ram Trucks http://www.ramtrucks.com/en/2012/ram_1500/
    and also on Yelp http://www.yelp.com/biz_photos/5DJS-EaAN51xbEwqW7Jk6Q?select=YosUpE8E0BgZSEYbWze IKg
    Since it happens on Both Safari and Firefox for Mac, Im thinking something is wrong with my MAC Operating System.
    Here is what I see when I go to those sites.
    YELP = i49.tinypic.com/153pslv.jpg RAM TRUCKS = i46.tinypic.com/2q3cd9t.png
    Those are just two examples of sites, but it happens to other sites.. and its not all images.. it seems like its just those websites that have special/custom loading indicators when you click on photos. I think its some special HTML or scripting that the sites use to bring up the images thats causing the problem. Since its only those sites that have an animated gif as a waiting/loading indicator for the image your trying to view.
    Anyone have any ideas? This was working fine, but my hard drive crashed and I had to reinstall OSX. Thats when i started experiencing this. I have already done all the MAC updates.

    I already tried taking them off the SD card directly from the Mac card reader, it detects it in image capture and in iphoto, but the same thing happens, just a loading screen as pictured above.

  • Please Help - Get an external loaded file to dissapear

    How do I position a .swf or .jpg I load through a
    movieClipLoader Instance? Als, how do I get the loaded movie to
    dissapear once I have moved on on my timeline, and how do I load
    different .swfs on different positions on my timeline? This is the
    code I have so far.
    Also: How do I size an external loaded .jpg or .swf?
    var holder_mc = this.createEmptyMovieClip("holder_mc",
    this.getNextHighestDepth());
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    var myListener:Object = new Object();
    myListener.onLoadProgress = function(target:MovieClip,
    bytesLoaded:Number, bytesTotal:Number) {
    /* add some preloading things here
    EX:*/
    totalPercent = Math.round(bytesLoaded/bytesTotal*100);
    my_txt.text = totalPercent + "%";
    myListener.onLoadComplete = function(target:MovieClip){
    my_txt._visible = false;
    myListener.onLoadInit = function(target:MovieClip) {
    trace("initted!");
    removeListener(myListener);
    mcLoader.loadClip("pathtoSWF.swf", holder_mc);

    Thank you. Found the answers for the x&y question and the
    size of .jpgs question. Is it possible to help me with this two?
    How do I get the loaded movie to dissapear once I have moved on on
    my timeline, and how do I load different .swfs on different
    positions on my timeline? I am sure question one will answer
    question two. Thank you so much, do appreciate it!

  • HT1386 I have an older iPhone (3gs) and need to upgrade to a newer phone (4S).  I need to get my NOTES, CALENDAR, CONTACTS, PICTURES, etc backed up on iTunes so I can get that data loaded onto the new phone.  But not sure how to do that.

    I have an older iPhone (3gs) and need to upgrade to a newer phone (4S).  I need to get my NOTES, CALENDAR, CONTACTS, PICTURES, etc backed up on iTunes so I can get that data loaded onto the new phone.  But not sure how to do that.  When I open iTunes it has a button that say "Back Up iPhone", but I'm not sure what that does.  When I go into the sync options it say I have another user account and asks me if I want to merge of replace. I'm assuming it's trying to tell me I have an older iTunes Library, but don't know that.  Geez, maybe people over 60 shouldn't have iPhones, iTunes just bafles me.

    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • How do I get .jpg extension to show in the name of my imported photos?

    How do I get .jpg extension to show in the name of my imported photos?

    Need to have Mail running. When you receive new mail, it will show up in Notifications Center UNLESS the Mail window has focus.
    The Notifications Center preferences are in System Preferences / Notifications.

  • Getting error while loading Flat File

    Hello All,
    I am getting error while loading flat file. Flat file is a CSV file.
    Value ',,,,,,,,' of characteristic 0DATE is not a number with 000008 spaces
    Data seprator  |
    Escape sign    ;
    It has 23708 entries , it s loading successfully till 23 665 entries
    Besides when checked in PSA
    for record having entries >23667 has calender day as ,,,,,, where as rest entries are  having date
    Besides when i checked in Flat file ,the total number of rows is 23,667 is there but i wonder why it has got 23,708 in
    RSMO
    Could you please let me know how to correct.
    regards
    path

    Hi,
    For date column you should maintain YYYYMMDD formate Eg: 20090601, kepp cursor on date column and right click and Formate >Custome>make it 00000000 then save teh file as .CSV . First type values on column and do like this formate and save it and without opening it load it. Once you open it you losw 00000000 formate you need to give again the same formate.
    Settings in Infopackage:
    Data Format  = CSV
    Data Separator = ,
    Escape Sign = ;
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/01ed2fe3811a77e10000000a422035/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/1a6567e07211d2acb80000e829fbfe/content.htm
    Thanks
    Reddy

  • My XP machine is unable to load iTunes 10.5.1. It gets about halfway loaded then says it can't find Bonjour.msi. However, that file is on the computer. I tried loading the Bonjour.msi from another computer but it came up with the same message.

    My XP machine is unable to load iTunes 10.5.1. It gets about halfway loaded then says it can't find Bonjour.msi. However, that file is on the computer. I tried loading the Bonjour.msi from another computer but it came up with the same message. I also tried to remove iTunes from the add/remove sector on Control Panel but it also refused for the same reason. Help, please.

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable                     
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar
    The missing apps could have been done by setting the Restrictions that can hid those apps. If the backup was made with those retrictions set the the Restrictions are also restored.
    Thus, if you get it to work restore to factory settings/new iPod, not from backup                               
    You can redownload most iTunes purchases by:        
      Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • I have an iPod nano v4 or 5 and when I connect it to my Hyundai Santa Fe I get an iPod loading error message.  The cable came with the car when I purchased it and the dealer was able to get it to work with his newer ipod.  Please advise.

    I have an iPod Nano v4 or 5 and when I connect it to my Hyundai Santa Fe I get an iPod Loading error message.  The cable works with the dealer's iPod which is a newer model.  The cable came with the car when I purchased it.  Please advise.  Thanks.

    Hi Bander Bunny!
    I have a couple of articles that should be able to help you troubleshoot this issue a little further. You may want to try uninstalling and reinstalling iTunes first. This has to be done in a specific manner, and this article can help you do that:
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    http://support.apple.com/kb/ht1923
    Another option is that you may want to try syncing your iPod nano manually. Here's is an article that pertains to manually managing the content of your iPod nano:
    Managing content manually on iPhone, iPad, and iPod
    http://support.apple.com/kb/ht1535
    It's also possible that this issue resides with your iPod nano. Here is a website that will help you troubleshoot the iPod nano:
    Apple - Support - iPod Troubleshooting Assistants
    http://www.apple.com/support/ipod/five_rs/
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • HT1369 I have a new iPod and cannot get my music loaded on to it. The computer says it's not connected, and then it says it is synced but there's still no mucis on it.

    I have a new iPod and cannot get my music loaded on to it. The computer says it's not connected, and then it says it is synced but there's still no mucis on it.

    If that's not a real email, you need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (99730)

  • Trying to access Netflixs and pick movie but I get "Unable to load this content at this time"

    trying to access Netflixs and pick movie but I get "Unable to load this content at this time"

    This earlier posting worked for me:
    "This worked for me without having to reset my Apple TV universe: Press Menu and Down Arrow keys simultaneously for 6 seconds until the light flashes rapidly."
    Thank you!

  • HT203167 I ordered and paid for a movie without being on wifi or connected to my laptop.  I have not been able to down load the movie that I paid for so how do I get it down loaded?

    I have a couple of questions.  I down loaded a movie when I was not hooked up to wifi or connected to my laptop.  I was charged for the movie but I have not been able to down load it or find it anywhere in my account. 
    Question:
    1.  Where do I find this movie and how do I get it down loaded to my I Pad?
    When I signed in to ask this question I had to go through a lot of sign in problems and also create a user name that is completely different that any of the sing in information that I have used previously.   Which create a lot of questions:
    1.  Why did I have to create a user name that I never had to do before?
    2.  Will this change the sign in process in the future?
    I will appreciate the answers to these questions
    Thank you very much.

    yes it could well do if your bank thinks there is something going on that is not from you they will block it. I have had this problem before, I would of thought they would of phoned me but they don't do that.
    If I was you I would go to my bank make sure they are not doing anything like that. If they say it's all fine then i would phone up apple them self or go into my local apple store, as they should be able to look at what there servers are saying why it's not working.

  • The Apps panel of my Creative Cloud does not load. How can I get it to load?

    I recently downloaded Creative Cloud to try Dreamweaver, however, the Apps panel of my Creative Cloud does not load.  I've tried restarting the laptop, opening and closing the application, etc. How can I get it to load? I use a MacBook Pro OS X Version 10.9.5.

    Computer died need code can you please post a screen shot of the error message.  The current released version is 1.8.0.447.  The release notes for the Creative Cloud Desktop application can be found at Creative Cloud Help | Creative Cloud app for desktop | Release Notes.

  • Installed latest update and now i cannot get itunes to load

    installed latest update and now i cannot get itunes to load

    I was having major problems too. I ended up completely uninstalling itunes then downloaded it again from http://www.apple.com/itunes/.   If you're using firefox, for some reason itunes will not download and  I  don't know if using googlechrome will also have problems,so just to  be  sure that it will work on your first try, use internet  explorer  when you download itunes. Hope this helps...

  • How to get jpg photo into photoshop as jpg wt LR changes

    I can not determine how to get jpg photos from Lightroom into Photoshop CS3 without using the export function. With a raw photo I can simply press "clrl e" and the raw photo is converted into a tif or psd file and sent to photoshop. That is very convenient when you have worked on the photo and wish to make additional adjustments in CS3. When I do the same process with a jpg file, it converts the file from jpg into a tif at a much larger file size then necessary. Is there a way to get a jpg file which I have worked on within Lightroom into CS3 without using the export function? Thanks, Arthur

    Lee Jay, I think you are wrong this time (only)!
    Arthur, to solve your problem you have to do two things:
    1. In LR open preferences and activate to automatically write changes to XMP. This ensures that your JPG pictures are updated with the LR settings in the XMP container within the jpg file.
    2.in PSCS3 open preferences. In the file handling section you will find the option to 'prefer Adobe Camera Raw for JPEG files'. If this option is activated also jpg files are processed with ACR.
    You asked for a way to get a jpg file into CS3 without using export. Now you have that. After you made your adjustments in LR just open the jpg in CS3 and you will see the photo with all changes you have made. I tested this with LR and CS3 beta myself it it works perfectly.

Maybe you are looking for