Seperate SWF Directory
As far as it looks, this question has been asked all over the internet but noone has yet to answer any of the forums.
Here's my directory setup.
Code: /document_root/ |- directory_1/ | |- file.html | |- directory_2/ |- menu.swf |- sound.swf |- main.swf Question: Once main.swf is loaded into file.html as the main movie, is there a way for it to call to it's same directory (directory_2) without actually naming the directory to load the sound.swf? As of now, once main.swf is loaded it then searches within directory_1. Again, I cannot call to the directory directly, I just need a way to load from the same directory it came from. Thanks Guys.
ActionScript.org Forums > Flash General Questions > Flash 8 General Questions
Posted on: 12-09-2005, 11:00 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Seperate Swf Directory
As far as it looks, this question has been asked all over the internet but noone has yet to answer any of the forums.
Here's my directory setup.
Code:
/document_root/
|- directory_1/
| |- file.html
|
|- directory_2/
|- menu.swf
|- sound.swf
|- main.swf
Question: Once main.swf is loaded into file.html as the main movie, is there a way for it to call to it's same directory (directory_2) without actually naming the directory to load the sound.swf? As of now, once main.swf is loaded it then searches within directory_1. Again, I cannot call to the directory directly, I just need a way to load from the same directory it came from.
Thanks Guys.
Seperate Directory Swf Files ?
I need to have my flash file load a .swf file from a sepearte directory - is that possible?
Example: test.swf needs to load into a target directory02/test2.swf. I tried just labeling it 02/test2.swf, but it doesn't show up. How can I do this?
Thanks.
Remote Shared Object Directory Under Application Directory.
I need to have my FMS 2 server application code (.asc files) and shared object folders on separate drives, is this possible?
My situation is this.
I have a secure drive where all of my application code needs to reside. This drive stores all static data and applications and is restored from a golden image upon startup.
Any dynamic data, such as shared objects, must be stored on a separate data drive.
Can FMS2 be configured to store the shared object directories and files in a location other than under the application directory?
Thanks for any help,
-Randy
Communicating Between 2 Seperate .swf's Each In A Seperate Frame(HTML) ... Help
this seems so elementry, .. yet I cant get it working ...
here is what I have....
A frameset (2 frames).... Frames "Top" and "Bottom"
Frame "top" contains the .swf Named and ID'd as "cont"
Frame "bottom" contains the .swf Named and ID'd as "nav"
The _parent of the frameset contains the following script.. (between the <HEAD> tags)
<script language="Javascript">
function forward1(){
window.top.document.cont.GotoFrame(10);
}
</script>
The movie in the frame "bottom" controls the movie in frame "top" with this.
on (release) {
getURL ("javascript: forward1()", "top");
}
Please look at the source for the _parent ... maybe the mistake will be apparent,heres the link
http://www.alpha8.com/s3/index.html
I'm using dream weaver ..
I'm sure that the javascript is in the _parent of the frameset.
I'm Mac IE5 ... Javascript no go?
Thanx in advance ... I desperately need a solution to this prob.
Directory Help
This is not a flash question but a web site question none the less. I have a server and it is setup like this:
- Main Directory
- .admin
-cgi-bin
-gtchat
-www
- site
Now if i go to http://mysite.com/site/ it will load the index file in folder "site"
If I goto http://mysite.com/ it goes to index file in www
How can I access the cgi bin from the address bar...
ENV{'DOCUMENT_ROOT'}/cgi-bin is supposed to work but does that mean i go: http://mysite.com/ENV{'DOCUMENT_ROOT'}/cgi-bin
please help
PLEASE NOTE THOSE URLS ARE MADE UP TO REPRESENT MY PROBLEM BUT ARE NOT THE REAL URLS.
FP Directory?
Into which directory must I upload my Flash files in FrontPage so that it works? I end up copying the .fla into every one and it causes problems!
Many thanks
Going From Directory To XML?
A lot of Flash slideshow scripts require the use of an XML file that lists all of the images to be loaded. This is fine, but I was wondering if anyone knew of an app that could be run (ideally on OSX) that could take a directory of images and convert that to an XML file automatically. I could write a asp.net page to do this, but if there was a quickie standalone tool for this, that'd be a lot less work.
Can We Set VOD Directory Somewhere Else?
Is there a way for me to set the default VOD directory from:
c:Program FilesAdobeFlash Media Server 3samplesapplicationsvod
To:
c:Inetpubvhostsmydomain.comhttpdocsfiles
This is because all of my user loaded FLV files are located at c:Inetpub path instead of c:Program FilesAdobe.
Any advise is greatly appreciated.
Regards,
Teng
Can We Set VOD Directory Somewhere Else?
Is there a way for me to set the default VOD directory from:
c:Program FilesAdobeFlash Media Server 3samplesapplicationsvod
To:
c:Inetpubvhostsmydomain.comhttpdocsfiles
This is because all of my user loaded FLV files are located at c:Inetpub path instead of c:Program FilesAdobe.
Any advise is greatly appreciated.
Regards,
Teng
Directory
Is there any way, where one is able to allow flash to get all txt files from a specified directory, so that the variables in these files may be used.
Specifying Swf Directory
hi
i have this code on my index page:
Code:
<object type="application/x-shockwave-flash" data="' . output_string($bestsellers_list[$i]['preview']) . '" width="10" height="10"></object>
problem is the swf file needs to be in the root dir for it to work, how would i specific the folder where the flash file is (/images dir)?
How Do I Seperate <>
if (score<7>3) {
gotoAndStop ("alien4-6", 1);
}
thats an example peice of my code..
how do i make it check if "score" is between 4 and 6?
im trying to make it check if score is less then 7 but greater then 3. i dont know how to seperate the 2
How Would I Seperate A MC?
Would it be possible to take a mc that is inside a mc like say _root.mc1.mc2 would i be able to make say a button so that in the swf when i hit that button mc2 is brought to _root and if i hit another button with _root.mc2 it would respond. Sry if im making it sound confusing, but if anyone can understand it plz help me
How To Link To Another Directory ?
I try to link the elements of my menu to html pages wich are in different directory but it doensn't work. I made get url in relative mode but nothing work ?? Please, excuse my english. THANKS !!
Loading A Swf From Same Directory?
If I want to load a .swf that is sitting in the same directory as my main movie that is loading it. What is the proper way to do it.
I am using load movie like this:
_root.test1.loadMovie("yada1.swf");
Where, test1 is a movie instance of a blank movie clip to act a placement holder, and "yada1.swf" is the movie I want to load.
Should I be using "//yada1.swf" instead as the path or something else?
The reason I ask is that when I use mc.loadMovie() like this, it works great on IE and Netscape for the Mac and Windows except for Netscape version 6.x.
I know Netscape 6 is crud but loadmovie() didn't have any problems with it that I could find in any bug database. So I figured maybe I'm slightly illegal on the path name convetion and only Netscape 6 isn't correcting for me.
Can anyone help me on this?
Crawl Directory?
I am loading x amount of jpgs into my movie - no problem - they are called from an xml file - heres the thing though. I want to be able to look at a directory on my computer or on the server and see how many jpgs are in there, and load them all up. Now I am not sure if this is even possible with just flash - anyone have any ideas? Thanks! -
Crawl Directory?
I am loading x amount of jpgs into my movie - no problem - they are called from an xml file - heres the thing though. I want to be able to look at a directory on my computer or on the server and see how many jpgs are in there, and load them all up. Now I am not sure if this is even possible with just flash - anyone have any ideas? Thanks! -
Flash Directory
I have searched the internet and found the FLASH DIRECTORY
U people should really add your URL.
http://flashdir.cjb.net
LoadMovie From Another Directory
OK, I have flash files in a folder called FOLDER_1
I have a flash movie (Flash_Movie.swf) in FOLDER_2 which is inside FOLDER_1...
Within Flash_Movie.swf I have a loadMovie command that needs to load the flash movie (Load.swf)
The problem is that Load.swf is in the FOLDER_1 directory, not in Folder_2 where the movie that is calling it is...
Does that make sense?
How do I load a movie from another location other than the same directory as the parent movie?
Thanks,
joe
rothschildj@saic.com
Get URL Html Directory.....HELP ME
Hello...
Im trying to open a html file (called ALEX) in a flash movie and the main movie is on the same directory of the movie i want to load (ALEX.HTML).
But i want to make directory only to the movies i ll load (called POPS).
Where in this action i have to put the new directory location???
}
on (release) {
getURL("javascriptpenNewWindow('alex.html','thew in', 'height=354,width=466,toolbar=no,scrollbars=no')") ;
}
Thanx
Jorge Bellini
Getting .jpg Files From Directory
is there anyway to check all the .jpg files in a directory, and then load them up to flash without writing the .jpg file names in a text file?
Files In A Directory.
is there any way i can check how many files in a directory, the names of the files in a directory? say i want to make a photo album for example...
any help or knowledge please...
Is Directory Browsing UI Possible?
hello,
i'd like to create a standard Browse button that lets a user browse through directories and select a file. When its selected, the filename is passed to a variable.
can it be done?
Link To Other Directory
Hello,
Say i'm wotking in directory c: est with button X and my homepage is in directory c: ....
Which action code should i put in my button X to open homepage....
Thanks a lot!
koen
Loading Img From Different Directory
i just recognized, that i'm not able to load .jpg with loadMovie(); from other directories than the one, the .swf is in, that calls the code.
like
code:
_root.imgload.loadMovie("http://mydomain.com/pics/image.jpg");
considering the movie is placed in http://mydomain.com/movies/
can anyone help?
Web Directory List With PHP
Hi guys,
if anyone here is a dab hand with PHP and Flash integration, I have a little problem with the ftp_nlist function.
So I know that this command creates an array with the names of the files listed in the current directory, but when I try to trace that array in flash the reurn comes up as simply "Array" and I can't seem to see the contents of the array.
I can trace the length of the array but not the actual list.
Can someone please tell me what I'm doing wrong?
Intravenus.
../ Jump Directory?
I'm familiar with pathnames in Flash... _root....
For testing environments, is there AS syntax to jump up a timeline like "../" ?
I am testing several ext. loaded files so the absolute path _root.blah.blah.whatever is not very convenient at the moment.
Any ideas?
Thanks,
1M.
How Do I Create A Directory
wasn't sure where to post this.
does anyone know how to create directories in my webspace using dreamweaver for two test sites that i'm doing so that clients can see work in progress, think that made sense don't know myself!
cheers
Local Directory App
I am building a little Flash application, that is going to be used on local machines (not the web). I want to be able to dispaly a local directory on the hard-drive and display the files in a text-field. I need to do this without the help of a serverside script, becuase it will all happen locally. Any ideas?
Thanks in advance.
Current Directory / URL
Hey,
Is there any actionscript command that will output the directory or url that the flash file resides in?
Filereference Directory
Hi. When selecting a file for upload (browsing) using FileReference, if I use FileReference.name, it only shows the name of the selected file. Is there a way to get the absolute path of the selected file? Please help.
Getting Contents Of A Directory
Is there anyway to get the contents of a directory like the directory where .swf file is in without the use of outside scripts? So that flash can see what image file names are in there and then load them.
Array With Swf In Other Directory
i'm using an array to load external swf's. they are all in the same directory. array looks like this:
var mc_array = ["1.swf", "2.swf", "3.swf", "4.swf", "5.swf", "6.swf"];
how can i tell flash to load the swfs from "../swf/" so that i don't have to put the folder before each swfs name?
Directory Structure
I'm looking for a way to reference movie clips in a directory that is not a child of the flash root directory.
I have the SWF file in a "SWF" folder which is on the server root. Then also on the server root is an "images" folder. I'm calling the loadMovie() procedure to load images, but want to be able to load images from the "images" folder.
I can't just specify a relative path, as the swf defaults the root directory to the directory the file is located. I attempted the old Unix trick of setting the path to "../Images" but flash doesn't like that. Right now the only options is to set the path as an absolute, using the full "Http://" address, but that means I'd have to go back and change every single instance when I transfer the project over to the main server.
anyone know how to do this?
Reading A Directory
hello
is it possible with AS2 to determine the name of files in a directory ??
to give an example, say i have a folder with three files "example1.xml", "example2.xml", "example3.xml" (in the actual problem the names have no pattern to them), how, with actionscript, do i determine the names of those files?? (from reading the directory itself)
thnx for help
Loading All SWF's In Same Directory
Is there a way to load ALL the swf's you have in ONE directory without knowing their names prior? so essentially, I want to do this:
Code:
loader.load("dir/*.swf");
if that makes sense to you!
Again, I want to load ALL SWF's in the same directory w/o knowing what will be there at runtime
Vod Directory Location
I'm trying to change the location of the VOD directory from which I stream my on demand flash movies. I have been able to change the location of it as long as it is on the same server, but I have not been able to redirect it to a network location. I have tried mapping a drive and a UNC path, but so far no luck. Has anyone been able to do this successfully? It seems like it should be a simple thing.
Get Directory Filenames
Hi, I just had an idea of expanding my current flash project and I were wondering if it is possible for flash to return all the filenames in a specified directory and then populate them in a simple list?
Thanks
Different Directory Path
hi everyone.
I'm building a flash mp3 player for a mp3 ecommerce site.
This player will be used to ear the preview mp3.
there is a problem with it. the document root of the domain is /data/data1/data2/htdocs and the root of the preview mp3 files is /data/data1/data2/previews.
The problem is that flash can't reach the preview mp3 files folder.
Any Ideas
Thanks
Raffaele Colleo
Current Directory
Hi people!!!!
How Can I refer the current directory?
I've got the main movie and other I load inside the first. The first one should load a text using loadVars but produces an error while loading. Flash doesn't find the file.
How can I refer the paths?
The main movie path fromthe main movie
The main movie path from the "child"
The child movie path from the main
And the Child moviepath from the Child
Thany you all
Sorry For my bad writting
Força Barça!!!!!
Barça 2 - Chelsea 0!!!!!!!!!
Load ALL SWF's In The Same Directory
Is there a way to load ALL the swf's you have in ONE directory without knowing their names prior? so essentially, I want to do this:
Code:
loader.load("dir/*.swf");
if that makes sense to you!
Again, I want to load ALL SWF's in the same directory w/o knowing what will be there at runtime
Getting All Files In A Directory
I've got an swf sitting on my website. then on mywebsite/files i've got something like 4 .xml files. Right now I've manually put in the directory names, but I won't be able to do that for long, because new .xml files are coming in dynamically.
So my question is: how do I look in another directory and gather all of the .xml files into an array in my swf?
The help, as always, is very much appreciated!
-Matthew
Current Directory
Hi,
Can AS3 locate the directory where the SWF file is launched?
C#, for example, has a function called GetCurrentDirectory() which returns the name of the folder where the exe is executed.
Thanks
How Do I Get A Parent Directory?
I'm thinking this is what I need. I want users to be able to download my podcast. This seems to be a loosing battle I am fighting to try to figure out how to do what I want. I wanted my links to change automatically when the mp3 files change. I'm thinking if I can get the users to go in the parent mp3 folder directory they can download it with ease. Is there a script or a link to do this? I would of liked to hide the other files in the directory but if I can't that is ok, its just the wimpy files that is in it.
Thanks
FMS 3 - Configuration Fms.ini And Vod Directory
Hello
I have installed Flash media server 3.5 on server with linux centos 5
After installation I have copy vod directory, found on sample dir, to
/home/mydomain/public_html/vod
now
I need that flv files is not on standard VOD directory but is on "/home/mydomain/public_html/vod/media" so I have try to:
- modify fms.ini (/opt/adobe/fms/conf/fms.ini)
- modify file Application.xml (/home/mydomain/public_html/vod/Application.xml)
for any modify I have restarded fms server
Both changes is totally ignored and media files still be bring from standard position.
I have try to rename fms.ini in Ofms.ini, I have restart server .. but nothing change (??)..
At this point I think that could be another fms.ini.. I have search fms.ini on my server and found only this other
/root/fms3/FMS_3_0_1_r123/conf/fms.ini
but are sure is not working because alla variables is empty
Is 1 week that I try to solve this ..
What can be wrong ??
Thanks x any help / suggest
Thanks
How To Get Current Directory
Hi,
I'm working on a project. In this project, there are two flash files, the main file, and the embedded one. The main flash file will call the embedded flash file and display it withint main flash file.
These files are resided in different directory, the main file is at c:flash while the embedded file is at c:flashembedded. While I call the embedded file, it will still refer to the directory for the main flash file. Since I must load an xml file in c:flashembeddedconfig.xml, it will not be able to refer to this directory, it will only refer to c:flash.
How can I get the embedded flash file's directory? help...
Thanks...
Ivy
Querying A Directory
hello all,
not sure if this is a beginner level question, but if so, my bad...i sure as hell feel like a beginner anyways.
i'm trying to query a directory for a drop down list. i have a bunch of audio files, and i want to query the directory with the folder that has the audio files in it, find out how many there are, what they're called, and have that returned to actionscript as an array/index. i checked out the following link: http://www.actionscript.org/forums/s...d.php3?t=63418, but i'm not totally sure i understand it, nor do i think it's actually querying a directory.
for the drop down list, i think i'm going to use a combo box. it seems to flexible with handling data, especially with that dataProvdier property. however, i'm still pretty stumped on how to make the connection between the audio files to the list.
the reason why i'd rather query the directory rather than hard code everything is just that the number of audio files is subject to change ALOT. it would be much easier to just add a new audio file to the directory and have the movie query that directory for the list onLoadFrame instead of adding each new audio file into flash.
please let me know if i'm not being clear on something and i'll try to clarify as best i can. i'm pretty desperate and begging, so any help would be greatly appreciated.
Directory Issue.
Hello action script gurus. I have a question about the location of files when designing a webpage. Here goes. Should you have swf files in the same folder as your index page or should there be a separate folder for swf's all alone? The reason I ask this is because I want to incorporate popup windows using actionscript and javascript. Please help if you have a clue to what I am talking about. Thank you.
~Eric
|