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!
23 Replies - 6289 Views - Last Post: 20 March 2006 - 02:29 PM
Replies To: I'm baaackk - loading external images and links
#2
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
http://www.flash-db....Data.php?page=1
#3
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.
#4
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
Here is another tutorial:
http://www.kirupa.co...hotogallery.htm
#5
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.
#6
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?
onClipEvent (load) {
loadMovie(img="../images/vb1.jpg");
}
Anywhere close?
#7
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:
imgPlaceholder is where the image will load. and textURL is a URL like: http://server/folder/image.jpg
or
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
#8
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"?
#9
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)
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)
#10
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.
you'd put that on the frame where you would like the img to load.
I also found this ActionScript.org: Load .jpg thread
...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
#11
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
.. 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
#12
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
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
#13
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.
#14
Re: I'm baaackk - loading external images and links
Posted 07 March 2006 - 06:01 PM
It is awesome to have you back
#15
Re: I'm baaackk - loading external images and links
Posted 07 March 2006 - 07:32 PM
mMMmMMM SCRUMPTIOUS
|
|

New Topic/Question
Reply



MultiQuote






|