Directories And Flash
Hi,I'm creating a Flash site where we'll be customizing our Flash files with a sales rep's name, email, phone, and photo, but everything else will be the same. We may end up with hundreds of these reps eventually and I'm trying to think of an efficient way to create this. I was thinking of just creating a new directory for each new rep (i.e. www.something.com/washington/ - where washington is the name of the sales rep, then the next rep's would be www.something.com/lincoln/ - etc.). In each directory I've created text file that contains vaiables: name &&phone&&email&&... and the Flash files read those in fine. But instead of having all the files in each directory, it would be great to have the flash files look up a directory to run the external movieclips and FLVs so that I just create one of each and the only files I'd need in the rep's directory are the txt file, the jpeg photo and maybe the contact file that pulls in the photo.1. How do I make flash look down one directory to the rep's txt file and photo but still find all the other external SWFs and FLVs in the same directory.2. Is there a better way to be trying to do this? Perhaps a database, etc.? 3. Where can I find resources for learning how to do this?Thanks for the advice!Brian
Adobe > Flash General Discussion
Posted on: 10/21/2008 10:57:33 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Flash MX And Directories
Can Flash MX read a directory and store the names of the files in the directory in an array?
Thanks,
Lacy
Directories And Flash
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.
Directories And Flash
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.
Opening Directories In FLASH
The project I am working on is a flash presentation that has to open directories in flash, but it needs to be set out like this:
/directory/
not
C:/My Documents/directory
Because it needs to be put on CD there for the drive letter (D, E, F, etc) will change from computer to computer.
I cant seem to get it to work when set out like "/directory/" any ideas?
Thanks
Aaron
Flash With OS X Home Directories
Hello
I work in education and am having problems when I try to use the Publish Settings or Publish Preview command with OS X 10.4 and network home directories. Basically, when I try to publish a website or goto Publish Settings, I get an error saying "No valid HTML templates are available to complete this operation". The HTML templates are actually in the users home directory but seems to have trouble finding them. When I try this as a local user it works, just a problem with home directories.
Hope somene can please help.
Thanks.
Regards.
Read Directories In Flash (8)
Is there any way to read directories without relying on a script? I want to run this off a CD and dynamically add content to an SWF by read a directory so I do not have to keep going in there and tweaking this.
If it cannot be done, is there a way to fetch the output after calling an executablee? I also do not want the user to see the executable's console window.
---------------------------------------
TINSTAAFL, which is why I contribute.
Browsing Directories On The Server Via Flash Remoting
In early August last year I put out a Flash Remoting example app written for CFMX that emulated the Windows Explorer, allowing you to browse the drives of a server via a standard web browser.
At the time I withheld the FLA as I wanted to spend the time improving on it, but in preparation for my presentation on "Data Visualisation with Flash Remoting" at MXDU I've dusted it off and have now decided to release it for other developers to have a crack at.
You can download the whole application as one zip file here.
I've posted it in working order, please realise that some of the code is a little rough, I haven't had a chance to revisit it in the time that I thought I would.
Please feel free to modify code as need be for your own requirements - let me know if it's been of any use, and where it's being used...
Andrew
P.S. If you haven't checked out who else is talking at MXDU yet you should, particularly if you're based in Australia - the mighty Mike Chambers will be there, along with Allen Ellison, Ian Chia, Jesse Warden & Scott Mebberson!
Directories?
Hello all.
I was wondering whether it was essential for you to keep all your .swfs that are to be loaded into your main .swf in the same directory?!
I have loads you see, and could do with keeping them in a separate folder in the root directory.
Anyone know?!
telekin:
__________________________________________________ __________
Databases And Directories Oh My
Hi Everyone....
My buddy and I are putting together a directory for a friend. Basically, the directory is just like a business "yellow pages", and if someone clicks on a category ("auto" for example) they are then taken to a section where there are multiple "auto dealers". Now, the problem is, as the site continues to grow, more companies are added, and thus making the site one giant flash movie is pretty impractical.....
Is there a way the site can be all flash, but then when a user clicks on a button, it calls out the appropriate advertisement to fill into the movie from a database? Is this the way to do it? We're trying to make this thing simple to update in the future, as you could with a normal database driven site.
thanks in advance
chad
Reading Directories
Hi,
I was wondering if anyone knows if it is possible for Flash to read the directory structure? I need to create a dynamic menu that will be created depending on the folders that are in the root directory?
Thanks.
Directories In LoadMovieNum?
Hey,
I was wondering if it's possible to load movies that are one directorie under the directory of the swf file that get's loaded.
Like this:
loadMovieNum("Gamesgame1.swf", 2);
LoadMovie And Directories
I have this HUGE photo gallery that I have made with Flash. I have one main index.swf that is the actual site, and it sits in the root folder.
I then have all these various directories that contain my photos sorted out. In each photofolder, I have another SWF that basically takes a XML file, which contains photo data, and loads the JPGs into it accordingly.
Problem is, the photo SWF, when loaded into my main SWF, doesn't show the photos. I figured it was because when loaded, the SWF is no longer considered to be part of that folder, and rather, since loaded into the root directory, the XML is parsed that way as well.
Is there a way to fix this, so there is no directory mix-up?
--iMat
Rss Directories With No Rss Or Xml File?
I have been messing around with parsing xml and rss feeds with some success - the problem I am having is with sites that only list a directory like:
http://del.icio.us/rss/popular/
In IE it shows the rss feed, but it won;t load in flash - any ideas? I tried
http://del.icio.us/rss/popular/index.rss and http://del.icio.us/rss/popular/index.xml - no luck...
Packages Vs Directories?
I get the impression that packages can be used to hold more than one class - so rather than putting all my classes into separate .as files, I can put them into one and import them with one statement using the wildcard * . ( is this true? )
In the Flash Help where it describes creating packages, I read this:
Quote:
ActionScript 3.0 allows you to include multiple classes in one source file, but only one class in each file can be made available to code that is external to that file. In other words, only one class in each file can be declared inside a package declaration.
How do you interpret that seeming contradiction? Why would there be this wildcard import feature if you can only access one class in the package - "only one class in each file can be made available to code that is external to that file" ?
Thanks for any help,
Gordon
File Directories
Ok I have this Action script line xml.load("c:/music/songs.xml"); to load my xml file but I wan't it to check not just the c drive because my users os could also be on the d drive or they are using a mac so how could I tell it to check the the c,d,f,e,... drives for a folder called music and a file in it called song.xml.
Problems With FLV Directories
I am having some problems getting to the videos in my AppsDir. I have been searching the forums and documents for an answer, but no luck. Any help would be greatly appreciated!
In this file
C:Program FilesMacromediaFlash Media Server 2conf\_defaultRoot_\_defaultVHost_Vhost.xml
There is a line I modified:
<AppsDir>${VHOST.APPSDIR};E:videos</AppsDir>
I just added the ";E:videos" to the ${VHOST.APPSDIR} that was already there. ${VHOST.APPSDIR} applies to the first directory listed directly below
Picks up movies here
C:Program FilesMacromediaFlash Media Server 2applicationsTest1streams\_definst_
and here
E:videosTest2streams\_definst_
just fine
I can get to a movie called "C:Program FilesMacromediaFlash Media Server 2applicationsTest1streams\_definst_ estrt.flv" like:
<track>
<title>Rob hill climbing - SAN</title>
<location>rtmp://127.0.0.1/Test1</location>
<identifier>testrt</identifier>
<meta rel="type">rtmp</meta>
</track>
and I can get to a movie called "E:videosTest2streams\_definst_ estrt.flv":
<track>
<title>Rob hill climbing - SAN</title>
<location>rtmp://127.0.0.1/Test2</location>
<identifier>testrt</identifier>
<meta rel="type">rtmp</meta>
</track>
These both work just fine, however here is how my e:videos directory looks:
e:videos 212VidArchiveJOESCHMOE 212 7
which is translated
e:videos[2 digit YEAR][2 digit MONTH]VidArchive[AUTHOR][2 digit YEAR][2 digit MONTH][2 digit DAY]
This is an idea of what the directories look like, they are all different. The bottom line is how do you get rid of the "streams\_definst_" Is there a way around it?
Loading Mc's From Different Directories...
Hi,
I have a little problem and it's probable pretty easy to solve it. I have made a website, and everything works when I test it on my harddisk. So I have uploaded it. The site is now online and it doesn't load the movie clips anymore. I know I can solve this problem by just filling in the entire address of the .swf that should be loaded but I wanna know if there is an other way. Example of one of my commands:
ActionScript Code:
on (release) { _root.leftcontent.loadMovie("./content/home.swf")}
This is the action I attached on one of the buttons on the main page: index.swf
My site works like this:
index.swf
|
|
|=Content (Contains home.swf)
Can anyone help me?
Creating Directories?
Hi, 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.
[C#] Scan Directories
I wrote a small Depth First Search program that recursively scans folders given a starting path:
Code:
public List<string> StartSearch(string path)
{
DirectoryInfo[] directoryListing = new DirectoryInfo(path).GetDirectories();
List<string> openList = new List<string>();
List<string> closedList = new List<string>();
List<string> folderNames = new List<string>();
openList.Add(path);
while (openList.Count != 0)
{
string currentPath = openList[0];
openList.RemoveAt(0);
try
{
DirectoryInfo[] neighbors = new DirectoryInfo(currentPath).GetDirectories();
for (int i = 0; i < neighbors.Length; i++)
{
DirectoryInfo currentFolder = neighbors[i];
openList.Add(currentFolder.FullName);
folderNames.Add(currentFolder.Name);
}
closedList.Add(currentPath);
}
catch (UnauthorizedAccessException e)
{
//Some folders will not be accessible
}
}
return folderNames;
}
}
class Program
{
static void Main(string[] args)
{
FolderSearch foo = new FolderSearch();
List<string> folderNames = foo.StartSearch("C:\Program Files");
//foreach (string f in folderNames)
//{
// Console.WriteLine(f);
//}
}
}
You can modify this easily to access files instead of folders and/or to find a specific folder or file
Cheers!
Kirupa
Can't Get AC_FL_RunContent To Get Swf From Other Directories
Okay i want to put the same swf banner on all of my pages. I have lots of sub directories, which will end up going 2 levels deep from the root. My problem is that I cannot get adobe's active content runner script to pull the swf file that is in the root directory for pages that are 2 levels below it.
This works:
Code:
<script type="text/javascript">
AC_FL_RunContent(
'movie', '../sub_banner',
'width','772',
'height','99',
'wmode','transparent'
);
</script>
This does not work:
Code:
<script type="text/javascript">
AC_FL_RunContent(
'movie', '../../sub_banner',
'width','772',
'height','99',
'wmode','transparent'
);
</script>
Any ideas on how I can get this to work?
Loading Mc's From Different Directories...
Hi,
I have a little problem and it's probable pretty easy to solve it. I have made a website, and everything works when I test it on my harddisk. So I have uploaded it. The site is now online and it doesn't load the movie clips anymore. I know I can solve this problem by just filling in the entire address of the .swf that should be loaded but I wanna know if there is an other way. Example of one of my commands:
ActionScript Code:
on (release) { _root.leftcontent.loadMovie("./content/home.swf")}
This is the action I attached on one of the buttons on the main page: index.swf
My site works like this:
index.swf
|
|
|=Content (Contains home.swf)
Can anyone help me?
Working With Directories
Hi there,
Just have a couple of quick question:
Is it possible to read the contents of a directory using Actionscript? In addition could someone point me to the API used to work with files and directories.
Thanks.
Read Directories?
I am planning on writing a simple GUI in flash for Windows. My main problem is that I cannot think of a way to read directories through flash without having the user install a script interpreter and then using a PHP or Perl script.
Is there a good way of doing this avoiding that?
---------------------------------------
TINSTAAFL, which is why I contribute.
Trust Directories In Vista
Hello -- Can anyone tell me where the User (not Global) Flash Player Trust Directories are for the Flash 9 Player in Vista? The Flash 9 Player security white paper refers to an XP location that is not relevent for Vista. Thanks!
Read Local Directories
I'm trying to create file local file management mov. I want to first list the mounted drives. Then when I click on that drive a list of files and folders show up in the window next to it. I know this my might sound silly. You might say just use the GUI provided the computer But the next step is create the same thing using http commands to control a Linux server on any platform. The first thing that I can not figure out how to have the directory tree of my hard drive read into flash. Any help would be appreciated.
Linkage To AS Files In Sub Directories
I am trying to link my movie clips to action script classes which are stored in separate AS files in a sub directory of the current working directory. It keeps giving me an error that I can't link them.
How should I be naming my classes and files and how should I me using the linkage settings?
Thanks.
-Alex
Multiple Directories In Rtmp
I have hard time getting this URL to work on FMS 3.0.1 and latest Flash player.
rtmp://localhost/vod/flv:Catalog/userA/sample.flv
If I move the sample.flv to the Catalog directory, it works fine (rtmp://localhost/vod/flv:Catalog/sample.flv).
I've tried with and without the .flv file extension and mp4 files.
Can anybody pl help me out and let me know what I am missing? I checked to make sure all directories and files have all the file permissions.
Can LoadVariables Load Directories?
I hope this has not been posted (which with my luck it has), but I hope 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. I hope this makes sense because I am some what lost. Thanks for any help. ^^
Class Interaction Across Different Directories?
I have a folder for my project. Inside the folder are two other folders: geometry and display. Inside geometry is my Segment class and inside display is my GeometryDrawer class.
How do I define a path to Segment in GeometryDrawer so that blarg:Segment arguments can be used in GeometryDrawer methods?
Can LoadVariables Load Directories?
I hope this has not been posted (which with my luck it has), but I hope 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. I hope this makes sense because I am some what lost. Thanks for any help. ^^
Seeing Inside Directories On Server?
Hi,
I've made a flash movie which allows a user to select a song in a combo box and then play it.
What I'd like to do is have the list of songs automatically show what mp3 files are in the same directory as the movie.
So basically, I'll have my webpage on the server... call it index.htm, there'll also be player.swf (my flash movie), and some mp3s.
Can anyone point me in the right direction on this as I can't find anywhere on the web or in a book which shows how I might make the movie check which files are there, and populate the combo box accordingly.
Cheers,
Eman.
SWF Reading From Different Directories Problem
I don't know if that's quite the description, but basically I have an swf that uses an xml file to read from a directory of images for a slideshow. Works fine on the normal page, but the company that runs this site has pages in several different directories, updates them all manually, and the swf does NOT appear on anything that isn't in the root directory.
Works here
http://capegazette.com/index2.html
But if the swf is in www.mysite.com/sections/pagename.html, just get a white box.
Is there a fix for this? Don't really want them to have to duplicate the image folder, swf, and xml in every directory they use.
Ideas please?
thanks,
Donna
Linking To Windows Directories
Right now I'm making a desktop application. Is there any way I can make a button that is able to target and open a windows directory folder or application? For example if I pressed a button, it would open "C:Program files".
Paths For Loading Swf Files From Different Directories?
When using the loadMovieNum(); script, is it possible to use a path to load a swf that is in a different directory than your main movie? For example, my main movie, main.swf is in the root directory. I have a swf called myMovie.swf sitting in a subdirectory called "movies". Please advise me on the syntax I need to load this movie into main.swf. I know how this works in HTML, but apparently not in Flash: loadMovieNum(movies/"myMovie.swf", 1); It would also be very helpful to see how this syntax works going back up the directory structure. Any help on this would save me from hurling myself off a bridge.
Thanks in advance,
Site Directories Hacking Question
Is there anwyay that a person can look at the files and folders as a whole that are on my or any site? Is there anyway to type in an address and see the makeup of a site?
Projector Linking To Folder Directories
sorry more of a 3d man than a flash guru! so only have a linited actionscript knowledge,
I require a projector to have button links to folders that will be included in the cd-rom, in them there are ms word files, pdfs and power points (all part of a business bid)
is there a quick and easy way to do this ASAP
regards
Grant
List Files And Sub Directories In Directory
help please...
I've got a directory.. say c:music. In that directory there are a few sub directories (doors ,lime , etc.) and in those subdirectories there are mp3 files.
on the left pane of my movie i would like to list the subdirectories in c:music. when the sub directory is selected the files in that sub should appear on the right pane.
any ideas?
thanks
Odd Problem With Directories/file Structure
I'm having an odd problem with file structure. I have an HTML file and a movies folder in the same location. Inside the movies folder is a master SWF that is placed in the aforementioned HTML file. I have other SWFs in the same movies folder that get loaded dynamically into the master SWF.
So from the HTML file, the path to the master SWF should be "movies/master.swf", and from the master SWF, the path to a loaded SWF should be simply "loadedmovie.swf" because it's in the same directory as the master SWF. Correct?
Well, I've got an onError handler in the master SWF that displays a message when it can't find a file, and it shows the absolute path of where it's looking. I have the master SWF set up so that it automatically loads the first SWF when the page is loaded. That part works. But the exact same code that loads the inital SWF is reused for when the user clicks on thumbnail images of the other SWFs, and it creates an error. It's listing the movies directory twice in the pathname. So instead of looking for the SWF at "http://www.mysite.com/movies/loadedmovie2.swf", it's looking at "http://www.mysite.com/movies/movies/loadedmovie2.swf". Remember, I'm not even telling it to look in the movies directory, so I have no idea why it's showing up twice, and I'm further stumped as to why it works in one place and not another. Here's the line of code:
myMCL.loadClip("loadedmovie2.swf", this.mainDisplayArea);
I tried moving the master SWF file outside the movies directory, to the same level as the html file, and updating the code accordingly, and that works, but I would prefer to keep all the SWFs together in one directory.
Anybody know what's going on?
Red5 - Streaming From Custom Directories
Not sure if this is the correct section if not sorry.
I've been following the below tutorial on red5 to change the default location streams are stored.
http://www.red5tutorials.net/index.p...om_directories
But I keep getting errors in the logs saying it can't find my Custom Generator. I'm using Windows and have installed on the C drive.
I've put my Custom Generator in the following location C:Program FilesRed5webappsoflaDemoWEB-INFsrcorg
ed5serverwebappoflaDemo and my red5-web.xml file is located at C:Program FilesRed5webappsoflaDemoWEB-INF.
I've added the below to the red5-web.xml file...
<bean id="streamFilenameGenerator" class="org.red5.server.webapp.oflaDemo.CustomFilen ameGenerator">
<property name="playbackPath">
<value>C:/streams</value>
</property>
<property name="recordPath">
<value>C:/streams</value>
</property>
</bean>
I think i'm pointing the class above to the wrong location and not seeing my CustomFilenameGenerator.java file.
As soon as I remove the code above from the red5-web.xml file everything works fine but I need to store my streams in a different location.
If anyone has any ideas or suggestions that would be really helpfull.
Thanks
Jemes
Red5 - Streaming From Custom Directories
I've been following the below tutorial to change the default location streams are stored.
http://www.red5tutorials.net/index.p...om_directories
But I keep getting errors in the logs saying it can't find my Custom Generator. I'm using Windows and have installed on the C drive.
I've put my Custom Generator in the following location C:Program FilesRed5webappsoflaDemoWEB-INFsrcorg
ed5serverwebappoflaDemo and my red5-web.xml file is located at C:Program FilesRed5webappsoflaDemoWEB-INF.
I've added the below to the red5-web.xml file...
<bean id="streamFilenameGenerator" class="org.red5.server.webapp.oflaDemo.CustomFilen ameGenerator">
<property name="playbackPath">
<value>C:/streams</value>
</property>
<property name="recordPath">
<value>C:/streams</value>
</property>
</bean>
I think i'm pointing the class above to the wrong location and not seeing my CustomFilenameGenerator.java file.
As soon as I remove the code above from the red5-web.xml file everything works fine but I need to store my streams in a different location.
If anyone has any ideas or suggestions that would be really helpfull.
Thanks
Jemes
Virtual Directories And Linux Problem
Not sure where to start here, but am trying to set up virtual directories on Linux. I have successfully installed and run FMS on CentOS 4.5 x86_64 (which is essentially RedHat 4.5), but I can't connect to any flv files. I'm running FMS as user fms with permissions set to allow read/write access for the virtual directory which is at /var/fms but no connect. The server will connect to the application instance and check bandwidth but that's all. It hangs at that point. Any insights, friends?
Linking Classes To Upper Directories?
Hello,
I see a million examples of linking classes and packages that reside in the same directory or subdirectories w/in the the same directory as the
main flash project but I can't find any examples of linking to classes in upper directories.
For example most linkage properties will look like this:
be.boulevart.as2.as2_cryptdemo
which would be this: ./be/boulevart/as2/as2_cryptdemo
I want to reference the same class but in an encryption directory in the directory above the current project directory where
multiple projects can access the same class.
../encryption/be/boulevart/as2/as2_cryptdemo
Thanks,
Eric
NiceFolder - Manage Your Directories Php Script
Hello
I came across niceFolder.com a simple php file browser script thought I might share
It turns
this http://www.senocular.com/pub/kirupa/
into
http://nicefolder.com/demo/
Much nicer, file search and easy to use. No need for the index.php directory and managing etc..
By the way does senocular work for kirupa because that folder directory is massive! Or is it just a mirror?
Linking Classes To Upper Directories?
Hello,
I see a million examples of linking classes and packages that reside in the same directory or subdirectories w/in the the same directory as the
main flash project but I can't find any examples of linking to classes in upper directories.
For example most linkage properties will look like this:
be.boulevart.as2.as2_cryptdemo
which would be this: ./be/boulevart/as2/as2_cryptdemo
I want to reference the same class but in an encryption directory in the directory above the current project directory where
multiple projects can access the same class.
../encryption/be/boulevart/as2/as2_cryptdemo
Thanks,
Eric
Copying Files (or Directories) Using FlashMX
Is there any way to copy files (or a directory of files) from a CD-ROM to a specified directory on a computer's hard drive using a FlashMX interface?
I am developing a CD-ROM and would like to give the user the ability to load files onto thier hard drive. The easiest way to do this is to have them click a button that initiates the copying of files from the CD-ROM drive to the hard drive where the application is loaded.
I'm really not sure how to proceed with this, if FlashMX needs another application or process such as PHP or JavaScript? I don't know...
Does anyone have experience with this where they could point me in the right direction? Examples would be nice if available.
Displaying A Directories Contents (online)
How do you display a directories contents on-line as a list? For example if you click on a button 'show' or 'browse' than a dialogue box will open with a list of files & folders within the directory specified, all within the swf.
|