ActionScript 3.0 :: Flash Loading Any Number Of Files From Catalog?
Jul 13, 2011
I wonder if there is a possibility to load external files to flash, when I know only their source catalog.Normally I'd use xml file with names or write some php script, but is there some way to load those files only with actionscript?
I am trying to develop a simple product catalog using flash and xml. The xml file only has a list of catagories and under each a few products. I have a combobox wich list the catagories and another which list the products in that catagory. Each works fine but the products don't change according to the catagory that is selected in the catagory combobox. How do I change this. I use xmlConnector to bind the data to both.
2. When I browse through the products using a loader component sometimes there is flicker and you can see the image before it is resized. This is realy annoying. Should I use a movieclip loader? The images are not all the same size.
I apologize in advance -- I am new to Flash. I am triyng to build a Flash object to display images from a catalog. I would like to build something like this. I really just need some advice/direction to get started.Once I know the basics/techniques to be used, I can go from there. Is this some thing that can be done solely in Flash or will I need to use some combination of Flash & Javascript. Right now, I am thinking I can use the loader class to achieve something like this.
I want to have an AS3 app load images from url supplied by the user. But I don't want a malicious user to be able to load an SWF file in place of the image, such as with an altered extension "maliciousSwf.png". Well, not sure how big a security threat that is above and beyond the ability of the hacker to decompile swf, but I think that ideally such behavior should not be allowed.
So, is there any way to prevent this? When people allow users to load images in their Flash apps, do they somehow guard against loading of SWF? Or is this really absolutely no big deal?
Is there any way for flash to determine the number of files contained in a folder? If so how. I am trying to create a photo gallery which will load as many pictures as there are in a specified folder.
I need to create a web product catalog for about 200 items. I am doing this as part of subsite for a large company and long-story short, I need to make this site self contained, without relying on any assistance from their IT department (so no MYSQL, etc.).They already have a catalog of thousands of products, but the purpose of this subsite is to highlight products to a particular market.The catalog would need to have the ability to create a hierarchy, and basic product information (name, description, image, sku number) and an interface for easy updates. No ordering.
I did Product catalog, it contents intro and supportive files (.swf) how to give non editable file to them. or it should ask to install to run this catalog but the supportive file should not visible and edit.
I work with Adobe Flash Proffessional (CS4). I now have an assesment piece that I can work on home with. I promptly downloaded CS5.5 (thinking that was the right one) and spent hours on my animation. Oops, is it possible to open these CS5.5 files in previous versions? is there a converter that can fix this?
I just saw that some (only some) flash files (games) aren't loading in my website, but are in other servers. Most of the files do work. For example:(External) [URL] (My Server) [URL] It is the same file, but doesn't load at my server.
flash and working on two flash files for a website. They are small, 2.20KB and 4.10 KB. I am testing them on localhost and notice the object creates a box and an icon on the screen for both of them before they load and appear
i have been working with a few basic flash presentation to learn the ropes. However, I am working on a flash file which, when compiled, pulls in flash content from elsewhere in the Parent folder. I have read through the FAQ and cannot find the answer, as there doesn't seem to be any Actionscript which handles the importing of these external files.
Are there other methods that I am unaware of? I need to edit these other files, however I find it more beneficial to first understand how the Flash file is compiled before editing.
I've got a bunch of flash files being served off a HTTPS site in IIS7. With contentcompression turned on, the flash files wont display. Does flash not support HTTPcompression, or is IIS doing something unusual?
I have two FLA files, call them MAP.fla and ANI.fla, that I have to merge. One way I tried was to load the ANI.swf in MAP.swf during runtime using the normal way of doing it, using Loader and URLRequest. However, when I try to run it, flash detects errors about methods I have included in ANI.swf.
I do know that the Loader and URLRequest method of doing it works because I tried using it with a different SWF file with simpler content.
P.S. ANI.swf contains methods, instances with classes of their own and timer events. If Loader cannot work on my SWF, is there any other way of carefully doing this without affecing my FLAs?
Below is the error message i am getting.
TypeError: Error #1010: A term is undefined and has no properties. at stageRotation/stageRotation::pause() at stageRotation/::create() at stageRotation/::initStage() at stageRotation$iinit()
I've been using flash functionality in order to fill in dynamic text variable with an external data. The script works fine, except that now runs very slow - around 30 seconds or so.
I'm trying to load a bunch of image files for processing (to make a sprite sheet to be exact). Thusly, I need to make sure those files are loaded in order for processing (otherwise the animations become all wonky).
The code I'm using is pretty standard: protected function onFileSelect(e : FileListEvent) : void {
Im creating a really simple flash website and script to load multiple swf files into the main flash file. Im using cs4 with action script 2 but I have no idea on how to code the script to make it work properly. I have a navbar and each time you click on a tab a want it to load a seperate external file, unfortunately now it just keeps playing the same one over and over again. How do you make one close when a new tab gets clicked.
I know this can be done, but not sure how. I have seen a program that basically has its own fscommands and must compile them itself. Does anyone know how you would do this. The program i refer to is [URL] flash studio pro. There are other programs out there like this but these all cost money for commercial use.
loadText.load("textfile"); //creating the loadVarsText function loadText.onLoad = function() { dynamictextboxname.text = this.the=whatever text in notpad; };
how to load my external text in, i have it all set up. Its all being saved into the same folders etc. But still nothing.
I recently got the following code from one of your tutorials and am wondering why it is that when I try to change the .jpg images to .png images, the images no longer appear in the swf file. Does flash no allow .png files to be loaded.The reason that I need the files to be png is because the have to have a transparent backgroung.[code].....
I have 5 external flash files that i am trying to load randomly in from a seperate flash files (main.swf is trying to randomly load: Flash1.swf, flash2.swf, flash3.swf, flash4.swf, flash 5.swf)
this is what i have so far:
var myLoader:Loader = new Loader(); addChild(myLoader); var url:URLRequest = new URLRequest("flash1.swf"); myLoader.load(url);
it works in loading just one flash movie but im looking to have to randomly load from the five .swf's
I have code that plays a random swf file from an array.
stop(); var movieArray:Array = ['home lotus','recall','doors']; var loader:Loader = new Loader(); var index:int = movieArray.length * Math.random();[code]....
essentially, I want to be able to load the movie with a button.
I have 5 external flash files that i am trying to load randomly in from a seperate flash files (main.swf is trying to randomly load: Flash1.swf, flash2.swf, flash3.swf, flash4.swf, flash 5.swf) this is what i have so far:
var myLoader:Loader = new Loader(); addChild(myLoader); var url:URLRequest = new URLRequest("flash1.swf"); myLoader.load(url);
it works in loading just one flash movie but im looking to have to randomly load from the five .swf's
I am having trouble trying to use actionscript to load different files when different values are changed. I am currently using a tilelist and they have different values so the code is something like this: (the title is just there, non-related)
if (startTileList.selectedItem.value == 1) { //textFile1 load here[code].........
So I want different text files to be loaded when different value is selected but I cannot seem to get it working.
I am trying to create a video that loads the videos stred in a directory, depenant on the users id etc.To do this, I am using php. However, I cannot then get the php to convert to xml within the actionscript:[code]It works with a normal xml file just not php