ActionScript 2.0 :: Can LoadVariables Load Directories

Feb 19, 2004

someone knows if a directory can be opened using loadVariables and then placed into an array or loop. I know files can be loaded individually, but I want to be able to see all the files using PHP and my .swf file.

View 2 Replies


Similar Posts:


ActionScript 2.0 :: LoadVariables Into LoadMovie - Get To Actually Load The Movie

May 16, 2005

I can't figure out why this code doesn't work. I am banging my head here!

[Code]...

echo.php simply echos "banner=[URL] " I used a dynamic input text box to catch the value of banner - and it works fine! So I know the loadVariables is working but I can't get loadMovie to actually load the movie. And if I replace this.banner with the text of the path to flashfile.swf, it loads the movie perfectly.

View 5 Replies

ActionScript 2.0 :: Load An External HMTL File With LoadVariables?

May 31, 2004

how to load an external HMTL file with LoadVariables?

View 1 Replies

Saving A Swf To Two Different Directories In Flash?

Aug 12, 2010

I want to compile an FLA that I want to use as resources for two slightly different application in two different folders.

something like this

library.FLA

-> bin1/lib.swf

AND

-> bin2/lib.swf

I could just copy them manually, but with multiple files there's always room to forget one file.

View 2 Replies

ActionScript 2.0 :: XML/HTML/SWF In Different Directories?

Feb 9, 2009

I got a simple image slideshow. Im reading the image list from a XML file. Everything work fine when I export the swf.The problem is when I load my swf into an html located on a parent directory then the swf cant read the xml anymore.Here is the folder structure to clarify:

Root contains:
index.html
files (this is one is a folder)[code].....

So when I run the swf it work OK, if I create an html in the same directory as the swf works OK but as soon as I move my html one level up then swf loads but without any image on it.Now I know the easiest fastest way is just to put everything on the same directory right, but I cant in this specific situation since my index is loading a whole bunch of other stuff, thats why the swf and xml need to be on another directory.
when you embed a swf into an html that is on the root folder.. all pathing has to be done as if the swf was in the same location as the html.. which means .. in your flash code.. to call upon the xml via the browser you need to target it like this .. flash/the.xml .. instead of just the.xml .. same for the images.. you need to make sure that you target it as if you were look at the files from the root location.. flash/images/image1.jpg

So basically I changed my paths in flash in my actionscript and when I export it, it doesnt work by itself, but when I ran the HTML located one level up, everything works fine.

View 0 Replies

ActionScript 2.0 :: Creating Directories?

Jul 26, 2006

I was wondering if Flash (I have FLash MX 2004) has the capability to check if there is already a directory in a certain location, and if not create it. Obviously the outcome of there already being a file would be to take no action.

View 1 Replies

ActionScript 3.0 :: Loading XML Files And Specifying Directories?

May 2, 2010

How do I load an XML file (and still have all of the XML functions) that's located in a specific directory on a user's computer? All of the tutorials I've seen are loading the XML files from the web/URL using the URLLoader function. Is there anyway to load the XML file from the computer?

Question 2:How do I have a standalone file that's created via actionscript save the file in some other location other than the default, really long appdata/roaming/Macromedia/etc./etc. directory? I'm using the SharedObject.getLocal syntax, but is there another syntax I need to use so that I can save the file in a directory called appdata/roaming/MyApplicationName ?

View 2 Replies

ActionScript 3.0 :: Access To Local Directories?

Apr 4, 2009

just wondering how AS3 can do this. I'm writing in Flash CS3, I just need to know the length of a directory which is in the same location as the flash file. For example there is

/flash/flash.swf

and then

/flash/images/

and I need to know the length of /images

View 7 Replies

ActionScript 3.0 :: .fla File Must Be Accompanied By The .as Files And Directories?

Dec 14, 2010

I took over a site that includes a flash file which I wasn't worried about at all until I tried to make changes and publish it. The original designer said the .fla file cannot be published on its own. It must be accompanied by the .as files and directories that are in the folder with the .fla file. What the heck does that mean? How do I publish this file? I'm on CS4.

View 4 Replies

Media Server :: Trying To Map Directories To Network Drives?

May 15, 2010

By default, the server runs as System Account with no access to network drives. You can change the service user to a user with network access privileges with a UNC path. In Windows 2008, when I change FMS service to log on as user and start the service I get
"Windows Could not start the Flash Media Server (FMS) service on Local Computer.
Error 1067: The process terminated unexpectedly".
When I change it back to Local System Account, it works fine. Tested in Windows 7 x64 and I was able to start the service as a user log on. I checked the local policy group and the user have rights to log on as a service. I compared Windows 7 setting to Windows 2008 and they match.

View 2 Replies

ActionScript 3.0 :: Access A Class In A Package A Few Directories Up?

Nov 2, 2010

I inherited a project and this thing is a real Frankenstein.  It is a combination of external classes, flex xmls  and action script on timelines of objects in various swf files. I have a situation where I need to access a class in a package a few directories up.  For example my direcoty structure is similar to the following:

[Code]...

View 1 Replies

ActionScript 3.0 :: Flash Importing Class From Different Directories

Apr 26, 2011

The easy version of my question is this. I have a main.swf that calls and loads smaller swfs. There is a text field in the main clip that holds descriptions (descriptionText). What I am trying to do is to be able to change that text with a string (feedback) from the loaded clips. So in other words, pass a string value from the loaded clip to the main clip and set the descriptionText.text = feedback.

I have worked out (unless there is another way I am not aware of) that I need to use an external class to do this. The issue is that the smaller clips have to live in a folder called "images" to function on our LMS and I can't figure out how to import the classes into my large clip and smaller clips because they are in different directories. I can post some code if needed.

View 2 Replies

Professional :: Copying Directories Of MovieClips Between Flash Files

Oct 6, 2010

I am having problems copying directories of movieclips from one flash file to another. They appear to be fine until I save it, then when they are reloaded they are missing a parent movie clip, and all of the children are blank.

View 2 Replies

ActionScript 3.0 :: Packages And Directories - Reorganize Classes Into Folders?

Jul 8, 2011

I'm trying to re-organize my classes into folders, currently they're all just in the same directory and it's very messy, so I've tested this out in one feature, being the bullets. So bullet.as is in the directory: [main source]/Classes/Turrets/Ammo

I so in the bullet.as file I have coded as follows:
Code:
package Classes.Turrets.Ammo {
import flash.display.MovieClip;
import flash.events.*
public class Bullet extends MovieClip {

Now this works, the bullet is fired on to the stage, however it behaves profoundly. For some reason it does not move at all or behave how it does when it is fired from the turret object, the bullets behave perfectly though when I just simply put them in the same directory as the source .fla. What can I do to easily re-organize my classes into folders without turning my objects into malfunctioning pieces of junk?

View 2 Replies

Actionscript 3 :: Parse The Virtual Directories That Are Constructed In The Flash Library?

Jul 6, 2010

Is it possible to make code in actionscript-3 to parse the virtual directories that are constructed in the flash library? I mean that if i add a folder on the library of CS4 called 'graphics' can i write code that parse the elements of that folder in order to fill an array with folder's elements(which are BitmapData classes) ?

View 1 Replies

Flex :: Compiling Content Of Directories / Wildcard To SWC Using Compc Ant Tasks

Jul 29, 2010

Here is how I usually write the compile task:

[Code]...

What I'm looking for is a way to compile the entire director of classes without having to specify each class. I'm sure there's already an option for that, but I couldn't figure out the exact syntax.

View 1 Replies

Flash :: Using Standard OS Dialog To Browse For Files And Directories In Action Script 3.0

Dec 22, 2009

I know very little about Flash so I apologize in advance for asking what is possibly a dumb question, although I did a fair bit of research before posting. Our current Flash app, written in AS3.0, is able to display a standard OS browse dialog for the purpose of allowing a user to select files. We are using [URL] to display this dialog.

The documentation for FileReferenceList states that only files could be selected. The new requirement is to allow the user to select directories as well as files. Afterward it would be very nice, but not required, to be able to get a recursive list of all the files in the selected directory. Is it possible to implement this in Flash running inside a browser? The closest I've seen so far is [URL] which does what I want but it only seems to work inside Adobe AIR and is not exposed to the browser.

View 1 Replies

CS3 :: LoadVariables And LoadVariables

Apr 12, 2009

Ok, not sure where my other thread is, unless it needs to be manually approved by the moderators? If so, then my bad for making a 2nd thread.It doesn't exactly work... well when I use preview in CS4, it doesn't give any errors about not finding the file on the URL, I tested a fake URL to see if it would give an error and it did. So it is accessing the file perfectly. The chmod is set to 0777 on the settings.txt file.I don't understand why it's not "working" - all I need to do is view the flash file on site1.com - where the actual flash file is hosted on site2.com - I figured that it wasn't working before was because it was loading the settings.txt file from telltarget("..") - so viewing it on site1.com was searching for settings.txt on site1.com (I think???)That's why I need to get the loadVariables() working with a url so that when I view site1.com with the embedded flash file, that it will show it correctly.

View 2 Replies

ActionScript 2.0 :: LoadVariables()?

Jan 12, 2003

ok. i would like to load a .txt file into a dynamic text box on which i have on the stage.when i did it i went from the C drive, but does it have to be in the library? i honestly have no clue as to what i am doing. unless, should i upload the .txt to my server and use a http:// for the URL? then for target is that the instanse or Variable name for my dynam. text box? and what does the method mean

View 1 Replies

ActionScript 2.0 :: LoadVariables From .txt?

Oct 9, 2004

I am trying to load a variable from a text file named "variable_file.txt"he variable in the file is "var" and I am trying to assign the word "value" hen I run the following code:

Code:
loadVariablesNum("variable_file.txt", 0);
trace(var);

[code].....

View 11 Replies

LoadVariables 'undefined' Error

Aug 6, 2009

I have the following line, which is just a loadVariables:loadVariables("data.txt", _root.fa);This loads a data file, located at the root level, which includes the name of an .mp3 file, which is located in a folder; root/media:&faFile=player1.mp3.And then later I have this line which loads the sound from the .mp3:[code]

View 37 Replies

LoadVariables Undefined Error

Aug 6, 2009

I have the following line, which is just a loadVariables:

Code:

loadVariables("data.txt", _root.fa);

This loads a data file, located at the root level, which includes the name of an .mp3 file, which is located in a folder; root/media:

Code:

&faFile=player1.mp3

And then later I have this line which loads the sound from the .mp3:

Code:

this.sound.loadSound ("media/" + faFile, true);

But when I run this I get:

undefined
Error opening URL 'file:///jeffrey/Downloads/mp3%5Fplayer%5Ffiles%5Fedit/media/undefined'

This is Flash CS4.

View 14 Replies

ActionScript 2.0 :: Loadvariables Works With Txt But Not From Asp?

Oct 28, 2009

I got a big problem. I want to load data from an asp file, but i can't get it work. It says 'undefined when i trace' Only extern text is working.

[Code]...

View 2 Replies

ActionScript 2.0 :: Php And .txt Using LoadVars And LoadVariables?

Feb 15, 2010

I have read a little bit about loadVars and loadVariables, so I am trying to read and write to a .txt on my server. This is my functions: (only Read works, but Send doesn't)

ActionScript Code:
function Load(F, VAR) {
var DATA:LoadVars = new LoadVars();[code]...........

There are no errors or something; but the file is the same after Send();

View 5 Replies

ActionScript 2.0 :: LoadVariables To LoadVars?

Apr 19, 2005

Okay, so ive loaded some data from PHP into a textbox in Flash with loadVariables, but then found out, that loadVariables, havent got a way of checking if everythings loaded. So im gonna use LoadVars instead,This is the old loadVariables code:

Code:
on(rollOver){
loadVariables("document.php", _parent, "POST");

[code].....

View 1 Replies

ActionScript 2.0 :: [FMX04] LoadVariables Need To Be Run Twice

Jan 7, 2006

i'm calling a php file, which is supposed to make an xml file. whenever i call the php file using this syntax, most of the time i get "cannot load file" in the xml loading section, but this updates the xml file.

[code] loadVariables("http://localhost/file.php",this,"POST");[/AS]
but when i do it this way. [code] loadVariables("http://localhost/file.php",NONE,"POST");[/AS]

the "cannot load file" messge doesn't get displayed, and the file loads perfectly, but this doesn't update the xml file.

so everytime i have to first use "this" and then "none".

what can i do so that whenever php is called, it'll update the xml file, and still load in the swf.

View 2 Replies

ActionScript 2.0 :: LoadVariables Only From Server?

Mar 28, 2006

Im developing a game. In some parts, i need to save some info on database (like experience, money, level, ...).

But i cant let people inject code on the server side script (php).

If i send the variables via post, the injector may create a form and send too =(

In php, i've tried to get the referer from where the data came from... without success, from flash, the referer comes null =(

If i make SESSIONs, the injector may enter on the game, after that, he goes to the form to inject the data, the session will not be erased =(

View 3 Replies

ActionScript 2.0 :: LoadVariables From Different Movieclip To Php

Jan 30, 2007

I have a problem with loadVariables from different movieclips, I don't know how to do. I wannt to load loadVariables from 2 mc in to one php script(email.php). My mc's are "send_mc" and "answer_now" Her is only one mc loaded, but I wannt two mc to be loaded.. This is my script, so far...

Code:
buttonS.onRelease = function(){
_root.send_mc.loadVariables("email.php", "POST");
}

View 1 Replies

IDE :: HTML Is Being Passed With LoadVariables

May 12, 2008

i'm trying to send out some input form variables top a php script via loadVariables() and it's working, but the only problem is that flash also sends out all the html font information along with the form data. so instead of getting something like "Name: Phil" the php script gets:[code]is there a way to keep this from happening in flash or do i need to start getting fancy with the php?

View 3 Replies

ActionScript 2.0 :: LoadVariables In A Child?

Sep 7, 2009

have a little flash plugin, which is a form to submit the user's mail address to a database for receiving a newsletter.The flash contains a dynamic textbox where the user enters his mail address, which has the variable-name "u". The code must also send the newslettername (variable "l") and the command (variable "cmd").The code for the submit-button looks like this:[code].....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved