A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Loading .jpgs

  1. #1
    Senior Member
    Join Date
    Apr 2003
    Posts
    126

    Loading .jpgs

    I'm accustomed to loading .swf movies into the main movie using 'Load Movie'.

    Can you load individual .jpg's as opposed to .swf's???


    Mark

  2. #2
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Yup, in MX anyway. Just use the name of the image instead of swf. And they have to be non-progressive jpg's only.

  3. #3
    Senior Member
    Join Date
    Jan 2004
    Posts
    245
    Make a emtpy movie clip add to scene center give it a instance name Content then on button add


    on(release){
    Content.loadPic("pic1.jpg");
    }


    Hope that helps .

    Regards Barry_UK

  4. #4
    Senior Member
    Join Date
    Apr 2003
    Posts
    126
    Thanks,
    That easy,I'm a little embarrased.

    I have a "Next" button to load .jpg's (01,02,03 etc).
    Do you have an idea how I would make the button load the next image replacing the previous, like image 01, then image 02 etc.

    P

  5. #5
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    I would make a simple movie clip to control that. A stop in frame 1, then in each of the other frames, add the code to load each of the images. Drag it to the stage, off the side, give it an instance name, then tell the next and previous buttons to go to the next or previous frames in that movie clip.

  6. #6
    Senior Member
    Join Date
    Apr 2003
    Posts
    126

    Thanks

    Thanks for your help. It works great.

    P.S
    It was actually Quayle!

    "We are ready for any unforeseen event that may or may not occur."
    -- Vice President Dan Quayle, 9/22/90

  7. #7
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Oops, have to change that, time for a new one anyway.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center