ActionScript 2.0 :: Loading Unknown # Of Photos Into An Array?
Oct 12, 2004
I have a number of photos that I want to load into an array, ie photo0.jpg, photo1.jpg, photo2.jpg, etc.
I can I load all photos into an array if I don't know how many photos there are?
in other words, how can I code the movie so flash will add all photos in a folder into the array, not knowing how many there are, without changing flash code?
I've made an user login, working with php and MySQL. When the user logs in, he can see all of his details, loaded from a database. Here he can press a button to change this content. After changing it, he needs to press the "save" button to load the new data into the database. But everytime the user presses the save button, it's adding an extra line to the data into the database, which results in an error of displaying the data. Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0 Fatal error: Unknown: Failed opening required 'google_verify.php' (include_path='.:/usr/local/lib/php') in Unknown on line 0
a project needs to load a bunch of images of which at runtime only the filename, but not the filetype (ending) is known. so i need to load "thumb01" but i do not know if it is ".jpg" ".swf" or ".png" how i can i make sure it loads finally. shall i use the IOErrorEvent.IO_ERROR Event to know that for instance "jpg" did not work and then try "png" and so on.
i tring to make a sub domain presentation xml web.i am using a templats it working and loading fine offline on my pc put after. i upload to my hosting the main php page open and load the swf without any picture or links??[code]
i can't seem to figure this one out as it has to do with arrays and i sorta understand them but haven't needed them for anything practical until now, im making a photo gallery i don't want to bother learning how to do it through XML , not as of yet at least, so im just using an array to hold the locations of my photos, I tested my code by just using a single path as the URLRequest and it worked great, so i made an array and replaced the single path with the array and the location of the path in the array that i want it to start with. Thats where the problem is, i get
I'm trying to design a scrolling panel following one of the tutorials. I'm loading some photos using an XML into a container and I want this container to be reactive to mouseX. I can't get this movement all the smooth that I want. The images sometimes vibrate.[code]
I used the script below for a slideshow in Macromedia Flash MX2004. The images are in the folder images.xml (and believe me, I checked the names many times). But now the problem: when I load this slideshow, it shows only 3 photos, whereas there are 10 in my folder which I need to show. After the 4th photo I get only black.... it doesn't continue.
Here is the script: // set random # variables - each must be 0 for first 'while' loop below var randomNum = 0; var randomNumLast = 0; // parent container var container_mc = this.createEmptyMovieClip("container",0); [Code] .....
I've got a button and an empty movie clip. Id like to show 4 photos in a random way but without repeating it till all of them are shown first.[code]...
I don't know how to create an array and on every Random number you check if the new Random number is already in the array. If not, you put that value in the array. If it is already in the array...you generate a new Random number. When the array contains all numbers.
i have created an ios app in cs5, I am using a button when touched it should display a photo gallery. I Have researched plenty of tutorials but most of them you need to import the images onto the stage first, i only want the photos to be displayed once a button has been clicked by loading them from the library, once the photos have been loaded the user should be able to go back onto the app.
I am doing a spoof project in school where I have to build a website for a 'photographer.' So I need to showcase his pictures. I have to create 1 portfolio with 30 photos that been provided to me. The photos are all about 50K each. So naturally I cannot import all of these photos into my movie, the file size would be way to big. (Using Flash gets me extra credit) Im not allowed to use thumbnails. Just a back and forth button.
This is what I am trying to build. I want the movie to be 30 frames long. On each frame is a stop command. (easy) And on each frame is an actionscript calling one specific image. (loadMovie ("myimage.jpg", myClip); I'll then have two buttons to navigate from frame to frame. Simple right? The script I am using loads the picture from the server (or hard drive). However when it loads, it takes over. The picture is maximized to fit the stage. And the buttons dissappear. So the viewer is left with one image and nothing else. I want the picture to load into the clip and be able to access the buttons.
When swf file shows up on a computer as an unknown file, does that mean the computer doesn't have flash player? Or do I need to change my publish settings?
The problem is simples as this, I don't have the slightest what this gomx class is:[code]I have a lot calls like these in the .as files of this site, no import, nothing, I can't find any reference in the code except this line.Also, I can't seem to find any information on the web about this class.. The only thing that I know is that it takes one object and one movieclip. I don't know if this is in house code or not, I can't find it anywhere on our disks so I think not.
I have a Hgroup that contains of four panels. Sometimes it happens then when users open it the panls have a unknown width even bigger than the window resolution.
how can I have the name of the target object, even unknown with the hitTestObect? the function is working when i am giving the object name as parameter to the function, but i cant figure out how to find the name of the hited object.[code]
I'm trying to load in a simple xml file that I created in about 5 seconds. Its not complicated. Infact, its really simple. Yet, flash doesn't recognize it..Here is the code.
PHP Code: var rq:URLRequest=new URLRequest("http://www.myserver.com/information.xml"); var loader:Loader = new Loader();
I read up a bunch of vars and pop them in arrays to use in a series of if statements. That works fine. Right now I have a fixed number of items so I can just write the code below.How could I set this up to work so that it could deal with any number of items in the arrays.The length of all the arrays will always be the same.It could even be one array I think, as items could be fed in in order.[code]
I am trying to breake apart text in flash (CS4) and distribute it to separate layers. The breaking apart works fine, but when I want to distribute the letters into layers, I get this: "could not complete operation because of an unknown error".
We have a big project, which include about 700 classes and based on Robotleg frameworks.at some point looks we reach some limitation of flash ide, we got this error and can't render properly.[url]...
I'm trying to load a known number of variables. So I set up this code in flash[code]...
It recive "antal"which is how many variables there are. The variables name are named produkt_0 produkt_1 produkt_2 produkt_3 and so on..
So it collect the varibales correct i've checked this by set loader.data.produkt_load to loader.data.produkt_0. But since I don't know how many I just can't set loader.data.produkt_load to loader.data.produkt_0. Insted I want produkt_load be a variable like it is in my code, but it seems that loader.data.produkt_load became undefined, why this? Can't you set a variable that change in loader.data.hereismychangingvariable?
Using the Embed tag, we can embed in the swf file not only swf's or jpg's etc, but also unsupported file formats like:[code]When i instantiate such a class, what type of object do i get? Is it possible to get a ByteArray from this class?[code]
I am taking over a Flex / MXML project for work. The last programmer lost the original source code so I ran it through a decompiler. In the main MXML file there are 3 lines that return errors. IMPORT COM.TURBO.*I've never heard of this and I can't seem to find anything on it. I assume its some kind of plug-in. Does anyone know what it is?
I have 3 navigation buttons and an empty movie clip on the stage. Clicking each button loads a 'page' into the empty clip, and each 'page' is a movie clip in the library. When the movie initially loads, the 'home' page movie clip automatically loads into the empty clip on the stage and plays to a frame half-way through. When a navigation button is clicked I want to finish playing the loaded movie clip, remove it, load the new 'page' into the empty clip, and play it (also to the half-way point). I have been able to accomplish everything except getting the name of the loaded 'page' clip and making it play to the end. This is what I have in frame 1 of the main timeline with the code for 1 button:
var homeMovieClip:MovieClip = new homeScene(); emptyMC.addChild(homeMovieClip); gotoAndPlay(2); bioButton.addEventListener(MouseEvent.MOUSE_UP, bioClickHandler); function bioClickHandler(event:MouseEvent):void{ [Code] .....
I have been working on a large sized movie lately and found that I was getting some unknown errors. So naturally I placed trace statements, still I had no idea what was going on. Then low- and -behold I noticed that I had two varaibles one name xPos the other Xpos. Now of course noramally I would assume like other programming languages such as java and C++ variables are case sensitive. I found that If I assigned xPos a value and wrote a trace statement (with different case) ie