I'm baaackk - loading external images and links

  • (2 Pages)
  • +
  • 1
  • 2

23 Replies - 6754 Views - Last Post: 20 March 2006 - 02:29 PM

#1 BlueCube  Icon User is offline

  • THIS IS SPARTAAA
  • member icon

Reputation: 1
  • View blog
  • Posts: 3,594
  • Joined: 19-February 02

I'm baaackk - loading external images and links

Posted 07 March 2006 - 09:24 AM

Hey everybody. Things finally cooled down a bit in my life, left the old job, got a new one, school started, girlfriend broke up, ugh..

Anyways.. I have lee (Megamu) working on this, but he's very busy with finals, and I'd rather him not have to spend his time!

I'm working on another flash minisite, similar to the ifi one i did before. This has 100+ images in it (I work for a photography studio) and I want all of them to be external, that is NOT taking up way freaking too much space in my flash doc.

Right now, for each subsection, there is a movie clip including a fade in fade out of aother movie clip, in that is the picture. I want to have the picture load on page load, from the external picture source.

My second thing I want (I'm not sure if this is possible) I want to assign links to each of the pictures, but be able to edit these links from an external text document (for ease of future updates). So basically have each image pull the link from this text file. Possible?

any and all help is appreciated!

Is This A Good Question/Topic? 0
  • +

Replies To: I'm baaackk - loading external images and links

#2 Jhin  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 8
  • View blog
  • Posts: 257
  • Joined: 06-July 05

Re: I'm baaackk - loading external images and links

Posted 07 March 2006 - 09:48 AM

Here's a great tutorial on loading external/dynamic data into a flash movie. It's got examples of how to use XML which may be one way to go for your project. You could then edit the XML file to make any future updates or what have you....

http://www.flash-db....Data.php?page=1
Was This Post Helpful? 0
  • +
  • -

#3 BlueCube  Icon User is offline

  • THIS IS SPARTAAA
  • member icon

Reputation: 1
  • View blog
  • Posts: 3,594
  • Joined: 19-February 02

Re: I'm baaackk - loading external images and links

Posted 07 March 2006 - 09:52 AM

Thanks. I'll take a look at it and see if I can figuire it out.
Was This Post Helpful? 0
  • +
  • -

#4 Jhin  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 8
  • View blog
  • Posts: 257
  • Joined: 06-July 05

Re: I'm baaackk - loading external images and links

Posted 07 March 2006 - 09:56 AM

There's also the Loader behavior...though I don't know much about that myself.

Here is another tutorial:
http://www.kirupa.co...hotogallery.htm
Was This Post Helpful? 0
  • +
  • -

#5 BlueCube  Icon User is offline

  • THIS IS SPARTAAA
  • member icon

Reputation: 1
  • View blog
  • Posts: 3,594
  • Joined: 19-February 02

Re: I'm baaackk - loading external images and links

Posted 07 March 2006 - 10:09 AM

Ok, I've read through these, that's a little complex than what I'm looking for. I don't need a full photogallery feature or anything, just a simple box that brings in a picture (for each one) instead of having the image in the document.
Was This Post Helpful? 0
  • +
  • -

#6 BlueCube  Icon User is offline

  • THIS IS SPARTAAA
  • member icon

Reputation: 1
  • View blog
  • Posts: 3,594
  • Joined: 19-February 02

Re: I'm baaackk - loading external images and links

Posted 07 March 2006 - 11:01 AM

thinking something to the effect of


onClipEvent (load) {
loadMovie(img="../images/vb1.jpg");
}

Anywhere close?
Was This Post Helpful? 0
  • +
  • -

#7 Jhin  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 8
  • View blog
  • Posts: 257
  • Joined: 06-July 05

Re: I'm baaackk - loading external images and links

Posted 07 March 2006 - 11:51 AM

Hmmm check out this:
http://www.flashmagazine.com/654.htm

It uses the loadMovie feature as well for dynamically loading an image into a flash file. So maybe something more like this:

onClipEvent(load) {
      imgPlaceholder.loadMovie(textURL);
}



imgPlaceholder is where the image will load. and textURL is a URL like: http://server/folder/image.jpg

or

onClipEvent(load) {
      imgPlaceholder.loadMovie("../images/vb1.jpg");
}


This post has been edited by Jhin: 07 March 2006 - 11:52 AM

Was This Post Helpful? 0
  • +
  • -

#8 BlueCube  Icon User is offline

  • THIS IS SPARTAAA
  • member icon

Reputation: 1
  • View blog
  • Posts: 3,594
  • Joined: 19-February 02

Re: I'm baaackk - loading external images and links

Posted 07 March 2006 - 11:55 AM

Ok, I'll go work with that now! :-) In order to load image from the folder I got this stuff in now, instead of via a server (I'm not working live), it's just "../images/imagename.jpg"?
Was This Post Helpful? 0
  • +
  • -

#9 BlueCube  Icon User is offline

  • THIS IS SPARTAAA
  • member icon

Reputation: 1
  • View blog
  • Posts: 3,594
  • Joined: 19-February 02

Re: I'm baaackk - loading external images and links

Posted 07 March 2006 - 12:38 PM

onClipEvent(load) {
imgPlaceholder.loadMovie("../images/vb1.jpg");
}

is coming up with no syntax errors, I've tried also leaving vb1.jpg in the root folder and using "vb1.jpg" instead of "../images/vb1.jpg" Both have no errors, but when I preview, nothing comes up.

I did this to the movie file, and within where I had the picture before, I just erased all the frames. Is that correct? (sorry, I'm not that experienced in flash)
Was This Post Helpful? 0
  • +
  • -

#10 Jhin  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 8
  • View blog
  • Posts: 257
  • Joined: 06-July 05

Re: I'm baaackk - loading external images and links

Posted 07 March 2006 - 01:01 PM

let me test it now...I was at work earlier and couldn't test anything...

...some testing time...

This is what works for me, it creates an empty movie clip called "container" and then loads the image into that.

_root.createEmptyMovieClip("container",1);
container.loadMovie("vb1.jpg");



you'd put that on the frame where you would like the img to load.

I also found this ActionScript.org: Load .jpg thread

This post has been edited by Jhin: 07 March 2006 - 02:31 PM

Was This Post Helpful? 0
  • +
  • -

#11 pioSko  Icon User is offline

  • still.dreaming
  • member icon

Reputation: 23
  • View blog
  • Posts: 1,888
  • Joined: 06-June 03

Re: I'm baaackk - loading external images and links

Posted 07 March 2006 - 01:41 PM

will image names be sequential? ie img1.jpg, img2.jpg, img3.jpg ... img100.jpg?

.. or random (in the sense that it could be anything)?

If sequential then you can do a simple script in flash. if random, then best to have an xml file.


Either way you can count on help from us... step by step :)
Was This Post Helpful? 0
  • +
  • -

#12 BlueCube  Icon User is offline

  • THIS IS SPARTAAA
  • member icon

Reputation: 1
  • View blog
  • Posts: 3,594
  • Joined: 19-February 02

Re: I'm baaackk - loading external images and links

Posted 07 March 2006 - 01:58 PM

Yes, they are sequential, though I'm not trying to make a slide show.

The movies are placed, each picture has it's own movie to fade in and fade out, I just need to replace the image. Let's pretend like I don't even have the rest, if I can solve it for one, it's easy to bring the rest to do the same thing
Was This Post Helpful? 0
  • +
  • -

#13 skyhawk133  Icon User is offline

  • Head DIC Head
  • member icon

Reputation: 1875
  • View blog
  • Posts: 20,282
  • Joined: 17-March 01

Re: I'm baaackk - loading external images and links

Posted 07 March 2006 - 05:37 PM

symphonicreverb, on 7 Mar, 2006 - 11:21 AM, said:

Hey everybody. Things finally cooled down a bit in my life, left the old job, got a new one, school started, girlfriend broke up, ugh..

Welcome back.
Was This Post Helpful? 0
  • +
  • -

#14 unreal_origin  Icon User is offline

  • Wisdom Listens
  • member icon

Reputation: 4
  • View blog
  • Posts: 742
  • Joined: 21-April 05

Re: I'm baaackk - loading external images and links

Posted 07 March 2006 - 06:01 PM

It is awesome to have you back
Was This Post Helpful? 0
  • +
  • -

#15 eLliDKraM  Icon User is offline

  • Pepè Le Pewn
  • member icon

Reputation: 6
  • View blog
  • Posts: 6,565
  • Joined: 13-August 05

Re: I'm baaackk - loading external images and links

Posted 07 March 2006 - 07:32 PM

mMMmMMM SCRUMPTIOUS
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2