ActionScript 2.0 :: LoadMovie Function Not Loading JPEGs Into MC
Apr 22, 2004
I've used loadMovie() often in the short time I've been using Flash. But never to load a JPEG dynamically. For a site interface, I have little thumbnails, which open to new browser windows. This is partly annoying though, as each one opens in it's own window, so the user would have to close a whole bunch of 'em after clicking all those thumbnails. To try to fix this, I read that JPEGs can be loaded at runtime onto the stage. I've already seen the photo gallery tut, but I only require a pop-up window with one image and no left/right buttons, etc. I've tried following the tutorial for the first few steps, making a shape the size I want the images to be, converting it to an MC, and naming the MC instance on the stage.
Then, I created a new layer on frame 1 with Code:
loadMovie("CS_00_1.jpg", _root.picture);
But when testing it, I see nothing.
I've tried a few different things. Before, the fla was in a separate folder, so I had to include "Screens/" in the name. Just in case that was the problem (I didn't get any errors in the Output), I moved it into the directory with the images. I tried absolute and relative addressing. I opened up the image in PS and resized it to the size of the symbol on the stage and made sure it wasn't Progressive (I read in a thread that Flash doesn't load Progressive JPEGs), but still nothing. I even tried loading a file that didn't exist to make sure it was looking in the right place the other times (as it didn't give me any error).
View 6 Replies
Similar Posts:
Apr 22, 2004
I've used loadMovie() often in the short time I've been using Flash. But never to load a JPEG dynamically. For a site interface, I have little thumbnails, which open to new browser windows. This is partly annoying though, as each one opens in it's own window, so the user would have to close a whole bunch of 'em after clicking all those thumbnails. To try to fix this, I read that JPEGs can be loaded at runtime onto the stage. I've already seen the photo gallery tut, but I only require a pop-up window with one image and no left/right buttons, etc. I've tried following the tutorial for the first few steps, making a shape the size I want the images to be, converting it to an MC, and naming the MC instance on the stage. Then, I created a new layer on frame 1 with
Code:
loadMovie("CS_00_1.jpg", _root.picture);
, but when testing it, I see nothing. I've tried a few different things. Before, the fla was in a separate folder, so I had to include "Screens/" in the name. Just in case that was the problem (I didn't get any errors in the Output), I moved it into the directory with the images. I tried absolute and relative addressing. I opened up the image in PS and resized it to the size of the symbol on the stage and made sure it wasn't Progressive (I read in a thread that Flash doesn't load Progressive JPEGs), but still nothing. I even tried loading a file that didn't exist to make sure it was looking in the right place the other times (as it didn't give me any error).
View 6 Replies
Dec 7, 2011
We have photos that are loading too slowly and I need to speed them up. I am using AS2. What's even more perplexing is that at certain times after refreshing the web page, some photos load and some do not. It seems to be random, at various times, the photos that did load do not. I cannot put my finger on why this is happening..
First, I tried using loadMovie(). Then, I tried the var loader:
MovieClipLoader = new MovieClipLoader(); with loadClip()
For each JPEG. You are welcome to look at the site and see if there is anything that I can do to improve the speed of the loading. [URL]
View 0 Replies
May 31, 2004
I wanted to know the method to do a dynamic loading of jpegs with click of a button with crossfade between the two jpegs
View 2 Replies
Sep 5, 2005
I am using PHP and XML to make a dynamic list of pictures. Each picture also has attributes with information concerning that picture. I have successfully loaded these images with the following code:
Code:
for( var x=0; x<Card.length; x++ )
{
loadPic.createEmptyMovieClip("pic" + x, x);
[Code].....
View 3 Replies
Dec 8, 2011
At work, I am trying to load JPGs externally using AS2 loadMovie() and loadClip() and the photos take too long to display. My boss does not want a preloader, so the photos just need to display on our website immediately.
Some of the photos are between 75K and 150K and photos do not display in order. They come in at different times. Because of this, my boss is claiming that I did not complete the pages although they are done and I am just loading the photos from outside the SWF.
View 10 Replies
Dec 7, 2005
I want to load an external .swf file through the loadMovie function. The problem is flash takes sometime to load the file and therefore what ever commands I put below the loadMovie function, will not work. Placing this commands say 10 frames from the loadMovie function works but when online and you have a slow internet connection, it yet again fails. How do I solve this problem? I tried using onLoad but from what I gathered from several sites, it will not work with LoadMovie.
View 6 Replies
Jul 26, 2005
I have filenames of Jpegs stored in a MYSQL database. The filenames are returned with other information by PHP to Flash as variables.
I have some dynamic text boxes that have the variables set so that the textual information is displayed but I would also like a movieclip that behaves in the same way but with the pictures.
How do I create some form of movieclip that reads the variable pic1 that is returned from PHP.
View 1 Replies
May 2, 2005
on Flash MX 2004 having problems with loading external jpegs and stuff. I got a tutorial from here and loading from a web address on it is okay,
but I can't get my one to load from my hard drive because there is always an error with the path. I know it'll ultimately be on line anyway but I want to know what I'm doing wrong.[code] What's the correct format for putting in a file path?
View 3 Replies
Mar 15, 2007
II'm trying to create a title page where two movie clips fade in. One is a dynamic text movie clip, the second is an image that is loaded.[code]I've traced the heck out of this, so all I know is that image_mc seems to only generate a single onEnterFrame event and then stops.It seems that if I comment out the .loadMovie line, the placeholder movie clip fades in properly, so obviously there is something about onEnterFrame events and loadMovie that I don't know.
View 2 Replies
Mar 2, 2009
im loading in a bunch of jpegs (which are ref from an xml file) but i cant seem to get the to function like buttons.
Code:
for (i=0; i<total; i++) {
_root.createEmptyMovieClip("myClip" + i, i);
[code].....
View 1 Replies
Apr 27, 2007
Does anyone have a loading solution that allows for loading swf's, jpegs and is fully customizable? My duct tape solution had been to have loaders in every swf that i was planning to load in- but this feels silly. I've tried a couple of components from the adobe exchange but they lacked a bit of elegance. Whether it's a class or example file- I just want to be able to smoothly load content into the parent- where the loader also resides.
View 2 Replies
Oct 31, 2009
I'm getting a bald patch on my head from frustration with the following problem. I have a parent AS3 swf which loads in a AS2 swf like so;
stop();
var ldr:Loader = new Loader();
ldr.load(new URLRequest( "as2child.swf"));
addChild(ldr);
contained in the AS2 file is the following script which loads in jpegs when the user clicks the next button, etc.
[Code]...
however when you view the AS2 swf via the AS3 swf it does not seem to load in the jpgs when requested.
I need to retain the AS2 file so cannot rewrite in AS3 as the image loading thing is only a small part of the AS2 file.
View 1 Replies
Dec 13, 2004
I've found the loader component handy in loading JPEGs and scaling them to the specified size. However, I've found it a little annoying that when the image is loaded, sometimes you can see the image in it's original size for a fraction of a second before it's resized to fit the loader. Is there any way to avoid this -- such as the loader only being visible after the image is resized?
View 1 Replies
Oct 20, 2004
I have a gallery that reads an ms access database using asp and then loops through an array of records and duplicates an empty movieclip for each record. jpeg is then loaded into the movieclip and then a variable for the _x position is incremented and then the next one is loaded etc.I then use the same method to add the necessary labels for the images by duplicating a movieclip and adding a text fieldThis is all fine and produces a gallery of images but the problem comes when I try and position the labels according to the height of the image. I have tried every method I can think of to check the image attributes which are only available when it is fully loaded, but I keep getting a value of 0.
Code:
stop();
// Set variable holding image folder path
[code].....
View 1 Replies
Feb 24, 2009
I want is it load an external swf on the click of a button, then unload it to load another swf on the click of another button. heres a sample code of what did.
Code:
stop();
//loading first movie
container.loadMovie("movie.swf");
[Code]....
View 0 Replies
Jan 23, 2010
I'm currently working on a school project and have come to the stage where I need to put all of my swf's together. But I'm running into an issue with getting the swf's in my file.I've at first tried to do the same thing using scenes, but this didn't work either. I've read on several fora's that the scene thing in flash had some weird things and was recommend to use loadMovie instead.Now I'm trying to use loadMovie, but I can't get this to work either. I've tried the exact same code with an image and this is working. As soon as I try to do it with a swf file, the file loads and leaves a complete blank. I've read the list of objects in the swf and all variables are undefined, could this be related?I'm currently using AS 2.0.
View 7 Replies
Oct 11, 2009
I have a website which needs to 3 images into 3 movieclips when the page loads. The page gets the URLs for the 3 images from an XML document, ie.
<imgurl>graphics/panda.jpg</imgurl>
<imgurl>graphics/panda2.jpg</imgurl>
<imgurl>graphics/panda3.jpg</imgurl>
What I want to do is make a function which gets the image URL for each image and puts them into a target movieclip each. In AS2, the loadMovie function could do this. In AS3, I've figured out how to add an image to a movie clip, like this...
[Code]...
View 6 Replies
Jul 5, 2009
I've been sitting here for the last 2 hours trying to figure this one out.I have an empty movieclip on stage, and I'm loading external images in it using loadMovie()The problem is as following; I want it to resize when the image has fully loaded.I've been googling and googling non-stop, but found nothing that works.
View 1 Replies
Jun 7, 2010
I have a template that have some buttons in the header. I add one button because my client needs one more section in the SWF. When the movie loads the behave of the intro is to load the first button running from flag fotogram "s1", but it's not working properly. The button get's stuck and it's not behaving like it should. When I rollOver or rollOut is not doing what it should do. Why is happening this? I'm loading another swf with loadMovie but it's _lockroot = true. I tried not loading that flash but the button is still not working fine.
View 0 Replies
Sep 23, 2010
this site background images are working for me on my mac and PC in Firefox And Safari but the client says the sites background images are not coming up on some of his computers at work in Explorer and Chrome. I helped him clear his cache so I know he is seeing the most current files. So if anyone has Explorer or Chrome please check this link and see if the background pictures load for you. [URL]
View 1 Replies
Jan 21, 2007
i am using a simple loadmovie and it works fine on my computer and another one i checked but there it doesnt run on all computers. and they do have flash player 9. i trued to change the sctionscript to 1 and it still isnt working and i have no idea why. i also dubble checked that the files are all in the correct folder and they are.
View 4 Replies
Apr 15, 2008
On the interactive section of my page here: [URL]. I have a bunch of externally loaded swf files that are supposed to load into the black square in the middle. As you can see, some of the swfs partially load, just the text for most, and then some don't. If you click another section then click back, it loads fine and you can see what it's supposed to look like. This doesn't make much sense to me, considering the swf files are done on a single frame, with the text just a layer below the image. So why does a portion of the swf load but the other doesn't and why do some and not others? I have the swfs loading using loadMovie. (Example below):
Code:
container.loadMovie("movieclipname.swf");
container2.loadMovie("movieclipname2.swf");
container3.loadMovie("movieclipname3.swf");
container4.loadMovie("movieclipname4.swf");
This works perfectly with every other site I've done, and I've used that same setup many times on this site. Yet for whatever reason. It doesn't work regularly.
View 2 Replies
Oct 20, 2002
[URL]The movie I'm loading in is actually 2 frames long, and upon loading it in, I want to goto the second frame..I thought a simple moviename.gotoAndStop(2); would do it, but alas, does not work!
View 1 Replies
Nov 9, 2009
I've been trying to load an external SWF but keep getting this error:
TypeError: Error #1006: loadMovie is not a function.
This is the code I have:
Code:
location.loadMovie("video.swf");
"location" is the mc that loads "video.swf"
This used to work in other versions of flash but for some reason now it doesn't in these higher versions of flash?
View 3 Replies
Jan 20, 2005
I am loading some thumbnails (jpgs) into some movieclips using loadmovie. Easy enough. I want to scale the movieclip to increase the size of the thumbnail on rollover. The problem is when I use loadmovie and load the external JPG it sets the the JPGs default registration point to (0,0) and when I scale the thumbnail it scales from the top left corner. I would like it to scale from the center. This is the code I am using:
onClipEvent (load) {
var thumb = "thumbtest.jpg";
loadMovie(thumb, thumb_loader);
thumb_loader._yscale = 70;
thumb_loader._xscale = 70;
} on (rollOver) {
thumb_loader._yscale = 100;
thumb_loader._xscale = 100;
} on (rollOut) {
thumb_loader._yscale = 70;
thumb_loader._xscale = 70;
}
Is there anyway to change the registration point so it scales from the center and not the top left?
View 1 Replies
Jul 24, 2004
I'm trying to load some swf movies using loadMovie, but I'm having the following problem: There are three movies: 1.swf, 2.swf, and, 3.swf.
=> 1.swf loads inside 2.swf
=> 2.swf loads inside 3.swf
When I test 3.swf, it plays only 1.swf (exactingly where I put it in 2.swf - coordinates) but doesn't play 2.swf. Everything looks correct, including the containers. All actionscript is in the frames and I'm using Flash MX.
View 1 Replies
Apr 11, 2003
I have been loading an swf to target by using namedMC.loadmovie ("path+name", _levelN) altho I notice there is another method suggested here about using createEmptyMovieClip so it is all in script. Can anyone suggest a way of preloading all my separate swf files and then playing them at various specified points, like when the previous animation is finished/finishing. I have tried things like altering the _alpha and using namedMC.stop(); and namedMC.play(); but that aint working.
View 1 Replies
Feb 24, 2009
I am using loadmovie function to load movie in a liquid template.[code]Movie loads fine in right position but as soon as window gets resized it goes out of its place to the TC position.What can do here to make movie stays in its place once window is resized?
View 2 Replies
Aug 16, 2009
I'm trying to load a .swf into a containerMC with a button action. I want it to delay the loadMovie action for 1 second to allow an out animation to finish playing. The buttons (next and back) are in a MC on the main timeline of the swf.
I have this code in 1st frame of main timeline:
_global.nextMC = function() {
_root.containerMC.loadMovie("images/folio/chevron.swf");
};
[Code].....
I feel like I'm close, but probably just am missing something here in my setTimeout syntax.
View 2 Replies