ActionScript 2.0 :: XML - Make Some Adjustments With The Path To The Files
Mar 1, 2007
I'm trying to get this xml 'image_loader' (similar to kde wipes) rotation thing working for this page i'm working on. i have to make some adjustments with the path to the files according to how it is going to work on this site i'm working on. i'm not sure how or where to change the path in the actionscript to get to the path.
i've included a folder called '- example working without paths' which is to show how it is supposed to look. this works when everything is in one folder. but, when i setup the site structure the swf can't find the xml or the images to load...so i'm not really sure how to fix it. the 'root.hml' in the root folder represents the main html file that i'm using for the site.
Let's say I create a symbol of a stick figure holding a shield.Symbol 1: The Stick manSymbol 2: The ShieldSymbol 3: the Stick man holding the shield.Now, how would it be possible to place several copies of Symbol 3 on the stage while making subtle adjustments to EACH symbol 3 on the stage.Let's say I want to make each stickman slightly a different color without every single stickman taking on the same color.How could I go about making this subtle of an adjustment without effecting every instance of symbol 1 and 2 on the stage. Is this possible in flash??? It seems that flash has so much power, but I have yet to figure out how to use it all, and I sure hope something like this is possible.
I think I had this issue before I decided to try and learn mvc, which I'm doing right now. it's not a complex problem. But I can't figure it out. First, should I add swf address to my controller? that's what I think, considering it's between the view and the update. But mainly... I feel like it's just going to loop.. for instance. I add the .setValue method on a click handler. and it changes the url and everything.. grand. but during the change it fires off the change event of course.. now how can I make adjustments to my file based on the change event listener, if it's going to fire every time something in my movie sets the value?? as you can see i'm trying to use simplemvc's classes.. i'm just trying to learn though.
I am converting a speexdecoder code to C in alchemy. The problem is that i am importing a header file #include <speex/speex.h>. Alchemy gcc gives an error that speex.h not found. I have placed the speex directory where my C code is.
I'm building a site that loads in various swfs for each section, which in turn load in videos, sounds, xml etc. Lets call these 'third level stuff'. Does anyone know how I can load the third level stuff into their swfs without having to put full paths in from the Main swf file? I hope that makes sense?! for example. A loaded swf pulls in a video from its own directory, so would look something like:
Does Flash look for .swc files only through library path or can I put .swc file to the .fla directory too? I tried that but It seems that Flash does not look for .swc files there, I guess only for .as files.
I have done some coding in the past in .asp .aspx, but it is not my primary forte. I am working on a site that has a page for project photo galleries, and have been following a lot of the tutorials from this site. I have a directory structure as follows:
For testing purposes, in projects.fla, and resulting projects.swf, I have:
xmlData = new XML(); xmlData.ignoreWhite = true; xmlData.onLoad = loadXML;
[Code]....
how to code projects.fla with the correct path to the .xml file in the <root>projectsproject1 directory, and ideally, a way to make it dynamic so I can pass the path to the projects.swf file using a variable, and be able to direct the movie to use the intended xml file, thumbnails, and images based on the press of a button contained in a projects menu. Unless I have missed something, all of the tutorials I saw had the images and .xml file in the same directory as the .swf.
I have found a little FLA which demonstrates how the duplicate movie clip can be used.I tried to simplify and adjust the AS according to my needs. With some part i was successful but with some i wasn't.
i want to be able to set the beginning X position of the clips as "0" in X values. but when i assign "0" to the this._x , it naturally generates/duplicates all the clips at the same point. What I'm trying to achieve by doing this is, when the stage is scaled in means of width my clips should start to originate from the very left of the stage whatever the stage's width is.
my second question is how can i adjust the speed?When I stretch the stage width they(duplicated clips) all speed up in order to travel the whole stage in the same amount of time as they do with the initial/beginning stage width. I want the speed to stay constant whatever the distance is.
I have a website im making in which jpgs are loaded through the loader component (using flash pro 2004) and I set the path and to autoload but the jpg. files won't load; something to note I have many instances of one loader but with different paths for different pictures.
I was wondering if it would be possible to write a file, not to the local system, but to a connected server or other network path. Would i have to use an external php interface for this or can i entrust this to the AIR framework?
I'm not too sure what category this comes into, it may end up being an html/css issue not flash!I'm looking to create a flash website embedded into html. I want my flash stage height to adjust to the browser height but if the loaded flash content (images and text) height is greater then the current browser height i want the html scroll bars to appear. Each page in the website will have different heights
I got a music player template online and I am having trouble customizing some of the features.
1. It has a play/pause toggle button, and I have them separated, and included a stop button. 2. I wanted the volume to go up and down, instead of left and right 3. And I would like my picture to change when I hit next
How to do level adjustments (like Photoshop levels) on a bitmapData Object using the paletteMap method. I am fine with syntax and all that, just don't understand how the channel array values are used well enough to come up with them for myself. I have read to use a palette of 0 and 1, but I am not sure what that means. The goal of this is to take a grayscale image and get sharper black and white values for it. Also, I hope to understand how to use this method better in general.
Is there a way to add paths to the Flash runtime search path for loading files? Say I want to load myXML.xml and its down in /myDir1/myDir2/myXML.xml. Is there any way I can add "/myDir1/myDir2" to the search path so I can just load using the string "myXML.xml" INSTEAD of loading by the full path "/myDir1/myDir2/myXML.xml"? My directory structure will be changing on a semi-regular basis so I can't hard-code the direct path to the file.
So I wanted to implement this effect: [URL] but I only want the first image to appear, so pretty much without it being blurred. I also wanted it to stay a while and then dissolve. How do you do that and how do you control the speed of the animation? Once I turn up the ra, ba ... values it does slow down but restarts halfway through the animation. I also need it to stop once it ran the cycle. It should go from invisible, to visible, then stay and then dissolve.
I have a strange problem: When I type the absolute URL to my SWF file it works fine; however, only the background image appears when the SWF is embedded in the home page.
iam streaming my web cam to FMS .... i have got a latency of 1 -2 second,,,,,, What should i do to reduce the latency,,,,,, is ter any change i can make in FMS files(xml files) in order to reduce the latency......
So I've created a script where a mc is clicked on and the player can draw a path using the mouse. I'm trying to figure out how I can get the mc to follow the path drawn out by the player's mouse and when the player clicks again, it erases all of the path.my code is below
I'm working on making a pretty chunky game engine for games I plan on making, but I was wondering if you make external AS files unopenable such as .lib files, so that if I give it to a friend that wants to use it, he/she cannot change my code. Is there anyway to make external AS files unopenable? Also, obfuscation isn't an option for this problem as it only stops the people who hack the finished product, not stopping people who have access to the actual files.
I am making an application, that will let you enter your name and then a car will drive each letter of your name in the sand. I have made a car and my artist made letters with vector graphics as a single line (.ai). But now I don't get how to make an algorithm that will drive through the lines of each letter. My first solution would be to make an editor, where you can create path, but I don't have that much time. Is there a chane to make path from vector graphics so that the care can drive through it?
i'm new in flex.Here is my problem [code]i want to make source path dynamic.i mean i collected userName and albumName from php and i could print in flex.But when i use in source like this this way source="../../user/{userName}/{albumName}/album/{data}".
I'm trying to make a circular motion path using Senocular's tutorial here.What I want is a box to move around a circle motion path that is created in AS when the user presses a button. However I'm having trouble decifering all of Sencular's code because there is a lot of advanced stuff that he puts in that I don't want and I'm having trouble getting started.
i want to make 3 objects move in a square pathi tried to use guide layers but it didn't work good for both three objectsonly the first object followed the exact pathis there some other way to do it??
make my hero go back to his shelter when he finds some food or when he approaches an enemy. It looks like this:
1. The hero is in the shelter. 2. The hero is hungry. 3. The hero leaves the base to hunt some animals down. 4. The hero is full and is headed back to the shelter. 5. He moves in the direction of where the base is.
So, once again, how do I make my hero go back to where he came from? How do I make my hero's x and y position to fit the way back home?