ActionScript 2.0 :: [MX2004] External JPGs & LoadMovie()?
Mar 12, 2005
I have 100 mc's loading external thumbnail jpgs via loadMovie(). I need a preloader of some sort to show the status of the thumbnails. The problem is that each of the mc's are loading JPG individually and I am not sure of how to combine their loading statuses into a preloader. The other option I had planned to use was to make one thumbnail larger in file size than the others so that it would load last and therefore I could use some onload function for this particular thumbnail, but I do not know what would be best to use in this case.
View 1 Replies
Similar Posts:
Mar 12, 2005
I have 100 mc's loading external thumbnail jpgs via loadMovie(). I need a preloader of some sort to show the status of the thumbnails. The problem is that each of the mc's are loading JPG individually and I am not sure of how to combine their loading statuses into a preloader. The other option I had planned to use was to make one thumbnail larger in file size than the others so that it would load last and therefore I could use some onload function for this particular thumbnail, but I do not know what would be best to use in this case.
View 1 Replies
Dec 13, 2005
I'm loading multiple instances of the same jpg dynamically to my swf. It works just fine locally, but when I upload it, it only executes the first loading code it encounters in the timeline. I was doing things fairly complexly with 'for' loops and dynamic name generation and stuff, but I've stripped it down to the basics in an effort to get this to work.
Here's some code:
loadMovie('1.jpg', mc1.empty_mc);
loadMovie('1.jpg', mc2.empty_mc);
mcLoader.loadClip('1.jpg', mc3.empty_mc);
mcLoader.loadClip('1.jpg', mc4.empty_mc);
mcLoader.loadClip('1.jpg', mc5.empty_mc);
as you can see, I'm using two different methods of loading the jpgs, just in an effort to pin down exactly what is going on. Locally, they all load fine. When I upload to the server, only the first instance of the loading code is run (so mc1 will get its jpg, but the rest won't). I've tried to swap the order, place the loading code in different areas, try to load different jpgs into each empty mc, but nothing works except that first instance flash gets to in the timeline.
The swf and jpgs are all in the same folder, both locally and on the server. The server the swf is hosted on is Windows 2003 box if that matters. I tried uploading it to a different windows box and got the same problem.
View 2 Replies
Jan 19, 2004
how can you load external Jpgs into a swf instead of loading them and compiling the swf. so that they appear in the cache.
View 1 Replies
Jan 19, 2004
how can you load external Jpgs into a swf instead of loading them and compiling the swf. so that they appear in the cache. Whats the function to do this, or is there a tut?
View 1 Replies
Jul 11, 2009
I'm trying to go through a for loop, create a movieclip for each database entry, add the image by url stored. The problem is the code I have only does the last image. I know it's because something is not incrementing and they all have the same name. Do I need to increment the name of my loader?[code]...
View 11 Replies
Aug 12, 2009
So what I want to do is load up external JPGs into an Array of MovieClips, and then go to the main onEnterFrame function. [code]...
View 4 Replies
Jun 24, 2009
I wondering if with flash would be able to load in an external jpg file and then export the pixel data into a php application to rebuild the image?My concern is when an application loads an external resource it is just that, external and not local and therefore when I come to grab the pixel data will it grab the external resource in this case the image I've placed inside a movie clip?
View 3 Replies
Nov 10, 2003
I am building a portfolio disk with the awesome photo gallery AS from here. This will be run from a cd and I want to preload the images in the arrays to keep everything smoooooth. I am building on current machine. When I tested a disc image on an older machine the transitions were slooooow. I figure preloading would defeat this. Is there AS to accomplish this or is it something simple like hiding the images somewhere on the timeline and using a normal preloader?
View 3 Replies
Apr 8, 2004
I want to know how can I load external jpgs into a "frame" and depending on the size of the jpg resize this "frame" as you can see here:
View 9 Replies
Dec 1, 2003
Is it possible to have external jpg files that can be imported if and when you want them? For example, say you have a spot set aside in your flash to display a 100x80px poster image, and you want the ability to call up a different image each time, can you have jpgs files in a directory, each set to 100x80px size, ready to be called up? I can do it with the images set up as little flash files, but I wanted to know if you do it with raw jpgs.
View 2 Replies
Nov 16, 2004
I'm trying to create a slideshow that loads pics (jpg) from an external folder ("pics/") into dynamically created MCs.What I want is for the script to detect how many pics are in the folder (for future changes), create as many instances of the MC, and load the pics into each one. The MCs will need to take the W and H of the pics, and line up next to each other. This last part is not as important, I'm just wondering how to determine the number of pics in the folder. Do I need XML or will AS 1.0 or 2.0 do this?
View 1 Replies
Jan 26, 2005
I have an app that "loadmovies" a slideshow.swf in a sub-folder. THis sub-folder also contains an xml file and numbered jpgs.But when I run the main app, and click on the button to load the sub SWF files, the images do not appear. I assume it is a directory issue.
But if I run the slideshow.swf directly from it's folder, the images appear fine.I am using the xml_photogallery from this site for the main actionscript, is there something I can change here to point to the jpgs path?
View 2 Replies
Jul 30, 2009
I have designed a homepage that has 4 boxes on the right hand side that are of different size. I would like to have a movie loader that loads .jpgs randomly from a specified folder into each box. At the same time I don't want any repeats in any of the 4 boxes. Also is it possible to resize the images according to the box size without having to resize them outside of flash? I can have all the images in the external folder the same size, but then if I can just shrink them with whichever image falls into the box the random script assigns.
View 2 Replies
Aug 19, 2004
I am having trouble with classes and loading external files, specifically .jpgs.I have a simple class, that looks like this,
Code:
dynamic class test extends MovieClip {
var nn;
function test() {[code]....
I have it attached to the stage, it traces nn repetitively until i load the jpg, when i load the jpg into it, it loses all of it class properties it seems...it stops the onEnterFrame and the nn is no longer there.
View 4 Replies
Nov 16, 2004
I'm trying to create a slideshow that loads pics (jpg) from an external folder ("pics/") into dynamically created MCs.What I want is for the script to detect how many pics are in the folder (for future changes), create as many instances of the MC, and load the pics into each one. The MCs will need to take the W and H of the pics, and line up next to each other.This last part is not as important, I'm just wondering how to determine the number of pics in the folder. Do I need XML or will AS 1.0 or 2.0 do this?
View 1 Replies
Jan 26, 2005
I have an app that "loadmovies" a slideshow.swf in a sub-folder. THis sub-folder also contains an xml file and numbered jpgs.But when I run the main app, and click on the button to load the sub SWF files, the images do not appear. I assume it is a directory issue.
But if I run the slideshow.swf directly from it's folder, the images appear fine.I am using the xml_photogallery from this site for the main actionscript, is there something I can change here to point to the jpgs path? (If I add the "subfolder/" in the xml it doesn't seem to help)
View 2 Replies
Nov 1, 2004
Okay I have some files built in MX that use this on the main timleine:
Code:
function textLoad(filename) {
loadText = new LoadVars();
[code].....
View 9 Replies
Apr 29, 2010
I'm creating an interactive tour (pretty much a controllable slideshow) and I have multiple pictures now that, if in the correct order, will walk you around my school. You can turn left or right at doors (the picture that you're stopped at will wait for input from either the up, left, or right button and when clicked will take you to the corrisponding picture) and will eventually lead you out another entrance of the school and take you back to the main map.
My problem lies in the pictures... I have hundreds of pictures each one needing to be referanced. The only thing I have figured out is that I need to use arrays to organize these pictures and make them easier to access. I have considered using XML to organize the lists of pictures but I cannot spend hours typing out all the names of the pictures.access my pictures from outside my flash AS3 project.
View 4 Replies
Aug 11, 2004
I'm currently doing a script in which I have to preload some external resources (jpgs) at the begining of the animation.I dynamicaly create my MCs in which I do my loadmovies. Classical.Now the thing is, a few frames later, I need to reuse the images I have preloaded in other MCs.The thing is there seems to be a problem in using dynamicaly created MCs, here is why this is weird :
- I import a MC from the library : I can duplicate it, and I *see* it on the animation
- the MC that I have created, that I *see* on the animation, doesn't want to be duplicated : by that I mean that when I duplicate it, it can't be seen.
Now if there is a simple explanation for that, I have another question : I have an empty MC in which I want to *copy* one of the very MCs that I have dynamicaly created at the beginingn what is the best method ? attachMovie ? doesn't seem to work, but yet again, all this might be related.
View 2 Replies
Apr 23, 2005
I'm importing external vars using loadVariablesNum() from .txt files. I know that each variable must be surrounded by amperstands (&) in order define the start and end of each variable.
ie:
Code:
&var_1=abc&
&var_2=xyz&
And then I want to use something like:
[AS]mc.gotoAndPlay(_level#.var_1);[/AS]
But my question is (for simplicity), is there a way to do this if the amperstand at the end is not included, such as:
ie:
Code:
&var_1=abc
&var_2=xyz
Flash returns the first variable above as var_01="abc " which is understandable since it was not closed properly. However, I want to be able to use the gotoAndPlay(); with var_01="abc ". I have tried labelling the frame with abc , but that didn't work.
I also tried using frame_array = new Array(_level#.var_1.split("")); and then said gotoAndPlay(frame_array[0]); but for some reason I couldn't get this to work either....
View 2 Replies
May 18, 2009
Essentially, I've got a MC container that's created dynamically based off an XML file (basically for every <title></title> I've got, it makes a new "card"). Now within the context of each <title></title> grouping I've got <imgs></imgs> in which I specify the path to images that are related.All of that works perfectly, save for the external jpg files actually appearing on the stage. The MC I add them to does, but the external image doesn't.My problem is- I can't add the external images until they're completely loaded (or so it appears). The thumbnail BG I use is blank. So I know for a fact that the thumbnail BG isn't occluding the loaded thumbnails.
View 2 Replies
Apr 30, 2011
but i just can't figure it out. I've made a website in flash, with a button. The purpose is when you click one button, a portfolio will open. This portfolio is xml driven and i've got the FLA file and the SWF file.
But.. when i put the portfolio FLA file in my website timeline it won't work, and when i try to use the SWF file instead and connect it to the button using AS2.. it won't work at all. The last option i used the following AS2 codes and put the code on the button frame.. that didn't work (not at the same time offcourse ):
[Code]...
This last code did work.. but for some strange reason this last code loaded the SWF again and again...
Is there someone who knows what i'm doing wrong? I just want that the portfolio opens when you click on the button.. and opens in a container with certains measures.
View 3 Replies
Aug 14, 2009
This is my first time ever constructing a web site ONLY using Flash 8. I normally just use elements here and there, and I am totally confused. The link to the project is here: [URL] I want the site to be set up so that when I click a button (at the bottom), an external .swf file loads into that gray box in the center. How do I start? Where do I start? I should be able to figure this out, but I am stuck.
View 1 Replies
Jul 23, 2009
I need to create a button with script, on rollover load an external swf into movieclip in AS3. This was able to create this in AS2, but I need to create this in AS3
View 3 Replies
Jan 28, 2009
I need to do is load an external swf into a movieclip and make sure it stays within a certain size.
1. How do I make it a set size? Instead of it inheriting the root timeline height/widht. ie: my main movie is 900 x 900 the external swf is 700 x 500 and there are mouse moves that rely on the 700 x 500 boundaries.
2. How do I make this: loadMovie("external.swf", "load_mc"); utilize MovieClipLoader?
View 6 Replies
May 6, 2010
I am running into some real problems with importing a png and associating it with a movieclip.Basically I want an image (image1.png) to appear inside a blank movieclip on my stage called "image1". I need this to all run from the library and not from an external folder - thus this does not work for me : loadMovie ("image1. png", "ClickReveal.image1");Is this possible? Or do I absolutely have to run from an external folder or convert the png to a movieclip by hand and then use attachMovie? I am desperately trying to avoid those options.The reason is that I am building a template file here and the users need to be able to import their own images which may be called anything and need to pop into movieclips.
View 1 Replies
Feb 3, 2006
i have a button that when pressed passes a variable:
_root.movieToLoad = "testAni";
then the next movie clip thet "receives" the variables needs to play the external .swf in an empty movie clip... i have the code like so:
movieToLoad = eval("external_" + _root.movieToLoad + ".swf");
emptyMovie_mc.loadMovie(" + VARIABLE_GOES_HERE + ", "_self", "GET");
of course it doesn't work... how do i place a variable in that loadMovie?
View 3 Replies
Sep 11, 2006
I have an external swf that I've placed in an empty movie clip using loadmovie into the main movie.
The swf shows and plays fine, however I have an interactive movie clip which does nothing when loaded into the main movie. (note: the loaded .swf is fine when tested outside of the main movie). How do I target the external .swfs interactive features after it has been loaded into the main timeline?
here's an example:
code in the external .swf-- on a movieclip, instance name: growObject
onClipEvent (enterFrame) {
if (_root.grow == 1 && this._xscale<300) {
[Code].....
I just need to figure out how to activate these instances while watching the external swf from my main movie timeline.
View 2 Replies
Jan 29, 2009
i hav one main swf inside which iam loading second swf, but instead of hardcoding it, iwant the secound swf to calldynamically using variables.
The querystring is as follows:
<PARAM NAME=movie VALUE="film.swf?extSwf=movie.swf">
This method works fine:
[code]....
View 2 Replies