Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Folders And SubFolders.........



Can anyone help with the answer to:

How do you name a SWF so you can save it to a Folder within a Folder (and so on)and still be able to call it.

For instance, I would like to have a seperate Folder for each of my site pages and the additional swf's I may create for each of those pages be in a seperate Folder as well (just to keep things organized)

I seem to remember my teacher saying something about the naming conventions but I can't seem to find my notes.

Can some one please help???

Ps: For you Gurus out-there: please, if you respond to this post, and I hope you do, I'm a little slow when it comes to learning from a book so please write your responce as if you were explaining it to some one who is just learning how to use Flash


Thank You




Peace
Jose Antonio



FlashKit > Flash Help > Flash Newbies
Posted on: 03-10-2004, 01:54 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Folders And SubFolders.........
That didn't work, what am I doing wrong?

I tried the following with the http:// before the c:/

c:/documentsandsettings/folder_1/folder_2/gallery.html

then,

http:\c:documentsandsettingsfolder_1folder_2g allery.html

I even tried it with just the c:

C:documentsandsettingsfolder_1folder_2gallery. html

And nothing.


Will this only work when it's uploaded on to the server?

If so how do I test it on my computer before uploading it?



Let me explain it in my own madness,

I've created several .fla files (Index, Gallery, etc.. 5 total) each to serve as a seperate PAGE on my site.

I added all the content, buttons, whatever and then published each as a Flash/html and saved them to a Folder on my Desktop.

Now I want to move all of these Published Files (PAGES) .swf, .html and whatever other content I've created for each individual PAGE into their own respective Folders within the first Folder, All except for the Index.html PAGE.

I then want to be able to link to all the PAGES from all other PAGES


I'm sorry I'm really having a hard time getting this ActionScript thing down


Peace
Jose Antonio

Accessing Files/folders Inside Other Application Folders
How can I have an asc file from one application read text files in another applications directory?

I have multiple applications creating text files stored in a directory called docvid (this is my application directory). I also have another completely different application that needs to access these text file. How do I use the "sandbox" stuff to allow this other application to read these text files?

This code works fine:
custEmail = new File("/streams/"+userName+"/"+"email.txt");

but this doesn't
custEmail = new File("../email.txt");
It says:File operation open failed.

XML Across Subfolders?
I have clip that loads other swf: gallery.swf via gal.xml file, and this gallery load another slideshw.swf with its own slide.xml.problem I have is that this slideshow is in the one of SUB folders on the site,
and after its loaded into main move, trhu gallery.swf, it is looking for it's xml in main, top folder where the main.swf is.

how to tell it to look in specific folder, how to get its' url, an dput it back to loadXml command?

Please help.

XML Across Subfolders?
how to load SWF into timeline with its own XML?

I know how to load SWF into timeline, but how to tell flash to search for XML in its local folder, instead of local folder of main timeline?

main.swf ---> at /main
loads few gallerys
gallery.swf ----> at /main/gallery1
images.xml ----> at /main/gallery1

so on...

gallery.swf ----> at /main/gallery[i]
images.xml ----> at /main/gallery[i]


how to tell flash to search for xml locally, where gallery.swf is?

Please Help

Anything, could help,
write if dont understand the question

Subfolders Won't Work In IE
Hi,

i am using for my complete flash page a folder structure.
I ve an index.htm which opens a main.htm in a javascript window in which my menu.swf (contains the basic movie)
is implemented.

From the menu can you click to the "link" section (links.swf), this is a new swf file loaded in the menu.swf. Its lays in the same folder as the menu.swf.
Now you can click on a subsection, for example "friends".
If you do so, the links.swf will load the friends.swf, which is in a subfolder called "links".

If i test the menu.swf in the flashplayer (doubleclick) it works without problems, but if i use the html documents the /links/friends.swf won't be load in the links.swf. Not on my harddisc, nor on an internetserver.

Do you have any ideas how to fix the problem ??

Thx


DIR:

menu.swf
|
links.swf
|---------> links/
|-----friends.swf

Can't Open Jpg In Subfolders
Hi there!

I am using loadClip to load some jpg into flash. I am using IIS as webserver to test the application. The problem is that the images placed in subsubfolder are not being loaded!
Example:

images in "allpics" are loaded
images in "allpicsimages1" are not loaded

that is, only images in the FIRST subfolder are loaded..why?
I have enabled "Directory Listing" to all folder and I have granted all permissions in IIS.

Code:
__________________________________________________ ___________
var loadListener:Object = new Object();
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(loadListener);

// this works:
mcLoader.loadClip("allpics\" + file + ".jpg","thumb_container1");


//this DOES NOT work
mcLoader.loadClip('allpics\imagesA\' + file1 + ".jpg","thumb_container1");
__________________________________________________ ____________

(of course, I only use one at a time)

Does anybody have a solution for this? Thanks

Geturl For Html In Subfolders?
Im trying to get a button to load a url from a subfolder, tried this script

on (release) {
getURL("subfoldernameurl.html");
}


my web site has the root folder, the subfolder and the sub2folder, I am trying to get the button (which is on the main page, ie: root,) to "geturl" for the html file that is in the subfolder..
it doesnt seem to work, can folders be used in flash kinda like u use in dreamweaver? or can i import the flash page to dreamweaver and create the links to items in other folders there? ( ive noticed dreamweaver see's swf files as non-editable) i dont really understand the "relative and absolute paths" but i think it may have something to do with that,

This question may have been posted many times, if so then please direct me to the link with it to save time.

any help would be appreciated.....

Loading SWFs From Subfolders
I have one MAIN FOLDER with 6 SUBFOLDERS (A,B,C,D,E,F)

The path is C:\My Documents\Main_Folder\Subfolders\

Here is the structure
MAIN FOLDER (inside I have six subfolders plus the Main_Template flash movie)
Subfolder A
Subfolder B
Subfolder C (contains the swfs)
Subfolder D
Subfolder E
Subfolder F
Master_Template with navigation buttons that also has master_mc; where I want to download swfs.

I have used the following scripts unsuccessfully

I'm using Action Script 2

button 1

on(release){
master.loadMovie("subfolderC/NameofSwf");
}


I also tried the full path

on (release) {

master.loadMovie("C:\My Documents\Master_Template\SubfolderC\NameOfSwf");

}

in both cases I get an error message and no movie is downloaded to Main_Template.

Please help me correct the script.


German

Flash Navigation With Subfolders
I want to use a flash menu on a site. the site has many  subfolders and when I include the same menu within my subfolders, the buttons dont work anymore because everything in the flash file references a relative path. So, if I'm in the products folder, the home button is looking for default.asp in the wrong folder. Can I make this work without having to spell out an absolute path for every button?

what is the syntax for referencing the root of the site?

Playing Movies That Reside In Subfolders
I have a dynamic directory structure that changes each time a new movie is added. For each movie that is uploaded, a new folder is created. I have set my VOD structure to go up to a certain point, and then I wanted to be able to hit any subfolders underneath that main folder. I am also using Jeroen Wijering's Flvplayer to ultimately play the videos and the SWFobject javascript to call them up. The Flashvar sequence that I am using is similar to:

s1.addVariable('file', 'rtmp://www.devserver.com/vod/english/20202');
s1.addVariable('id', 'mp4:20202.mov');

Can someone please tell me 1. Where should I put the application.xl and main.asc files? 2. How should I set up so that subfolders are part of the equation?

Thank you so much in advance for your help,

-Johnathan

Folders
Ok, so I know this is dumb, but... A book I'm reading on Flash asks to create a new empty folder in which I'll save and export all my movies. Next, I'm to create 3 movies and save them in the folder I created in the 1st step. How do I save new files inside of folders? And how do I access this folder after I've closed Fash?
thanks
Russ

Folders
This is a hard yet important question. How do you take files from a local website and save them to a Program Files folder on a computer?

How To Create Folders ?
I'm trying to create folder on the disk with fscommand

command: exec
arguments: "command.com"

but I don't know how to define "md folder" and close command.com window

please help

Folders And Files
I am working on a project on Flash MX where the flash .swf file is the desktop. I am wondering how to open a program (*.exe) with Flash. Also, is there a way to make folders display in the swf file? Ive gotten it to work on html with frames but never really had a "folder" in my flash .swf files. Please help me!

LoadMovie Across Folders
I have several projects I want to put on a standalone CD. I'd like to have a Flash autorun movie where the user could click to see any of the projects. However, the projects are currently in separate folders. It would be a big job to put everything in a single folder, because the filenames are not unique. Any hope?

Swf Files In Different Folders
OK... Here's one...

Does the swf file HAVE TO BE in the same folder as the html file?

CAN IT BE in a different folder?

eg. mydomain.com/folder1/htmlfile.htm using an swf file (to enable a flash movie) saved in mydomain.com/folder2/

If the swf file CAN BE in a different folder how do I point the html file at it?

Loading From Folders
Does anybody have any idea how I can load Images from a folder. I wan't to do a portfolio in flash but don't want users to have to load a hudge site. I want them to be able to only have to load what they click one. So I want to use folders so everything doesn't have to load at once. Anybodody know where I can finda good tutorial on this?

Thanks

Caleb!! I'm The Best Imitation of Myself

Layer Folders
Just got one simple question, out of curiosity, what version did folders for layers come out? Just now started using them...I love em!

Exploring Folders
can i explore certain folder on my hard from my flash movie (.exe) if so how can i ??

thank u

Autodetecting Folders?
Hey!!

I was considering using flash to make a photogallery. After reading a bit in here I found that it would be fairly easy to make some actionscript that would autodetect picturefiles and display them in the flash file. However, for this photogallery I will need to use folders, which might change names and new folder might be added or removed. All the folder and file management will happen via an FTP client, so I dont have to worry about that. So I was just wondering is there a way to autodetect and display folders in the same way as picturefiles in flash? If not I will just have to use PHP, but it would be good if actionscript was up to the task.

Any input is appreciated! Thanks

Targeeting Folders
my menu will not work?

the structure is using folders

eg rootfolder/contactus/contact.html

contact.html has my swf menu loaded into it.

On a button what code is needed to jump to rootfolder/home/home.html

the get url code isnt working for me?

rat

Problem With Folders
Hi guys i need help me!
I have a main folder that contains my main movie
then i created another folder inside the main one and i have a flash movie there with an index of news.
now everytime i click on the title of the news i wanna load a movie clip with the news text

this is what i do:
from a button in the main movie

on (release) {
loadMovieNum("archive_news.swf", 2);
}

now from the buttons on the titles of the news of the archive_news.swf i wanna load the movie that contains the single news i clicked on

seems like i cant do it!

hope you understand my problem thank you...

Folders For Images?
Hello Everybody,


I'm using this code in my movie to load jpegs located in the same directory.

holder2.loadMovie("02s.jpg");

Now I want to put the images in a folder called images in the same directory. What do I have to add to this to make it work?

Thank You,

Liz

[F8] Uploading Folders
hi all...i've used the FileReference class a few times to upload files....i know you can upload multiple files as well (although i haven't actually practiced that). Anyway, is it possible to upload an entire folder (and it's contents)? If not, can this be done with some php? Any direction on this would be fab...

Layer Folders And As
I have all my navigation in a layer folder, but the problem is that now the code does not work.

on the first frame my button code is:

button_one.onPress=function(){

do something...

}

this worked before i place the button in a layer folder,

Q: How do i control stuff that are within a layer folder etc

cheers

Flash MX 2004 on mac

[F8] Flv To Swf Has 2 Linked Folders?
I am building a web site that I want to have a video in it. I am using flash 8 professional. I had an AVI, used flash encoder to make a flv copy. Now, if I understand correctly I can't place the flv file into the web site I need it to be a swf file. If I load the flv into flash and do a "save as" a swf, I get a small swf file linked to the original flv file.
In other words, I need to have the small swf and the flv file in the web page or the video won't play. If I click on the swf file explorer opens up and the movie will start playing but I delete the flv file clicking on the swf will open up IE but it will have a blank screen.
Can any own tell me what I am doin wrong? If this were done correctly shouldn't there be just one swf file when I "save has" an swf file while in flash?

Using .as Files From Other Folders
i've made some Classes, that take care of movement in games. i use them for multiple games. the way i do it now is pretty bad. i just copy the files into the folders of the different games, every time i change them. i dont use package names either. just package{class ..}. i hate to have to copy them all the time.
is there a way to have a folder called games
games
game1
game1Clas.as
game2
game2Clas.as
movementClasses
mClass1.as
mclass2.as
and let both game1 and game 2 use the .as files from the movementClasses folders?
i already googled, but could find a straight answer.
thanks

Using Folders And Loadmovie
I have a folder of images in the same location as my flash web site and I can access the images using...

Image1.loadMovie("Images\JPG01.jpg");

But how do I access images that are 1 folder up from the web site? For example (folder structure)...

ImageFolders
Website
Images

I've tried...

Image1.loadMovie("..\ImageFolders\JPG01.jpg");

Like the old DOS command I'm using .. to move back one folder and then navigate from there. But it doesn't work.

Does anyone have any clues how I should do the syntax in flash?

Is There A Way To Mask Folders?
Hi, I'm using mx2004 and I just wonder if there's a way to mask a folder?
'cause I got like folders in folders and it would be more effective for me.

thanks in advance*

Navigating Folders
I can navigate down to subfolders, how do I navigate back up?

loadMovie("products/village/3942.swf", 20);

from 3942.swf I need to access something in my main folder. Is it "//"? Well, I know it's not, I tried that. I don't even know what to search for.

My head might explode...

thanks.

Linking To Folders
I want to arrange my final flash files so that my support files are in seperate folder to my Main.exe file. I always thought that flash CS3 automatically looks for the files no matter where they arelocated, but the presentation will not play unless the Main.exe file is in the same folder as the swf support files. Can anyone help with this?

Thanks

Darren

Linking To Folders
I want to arrange my final flash files so that my support files are in seperate folder to my Main.exe file. I always thought that flash CS3 automatically looks for the files no matter where they are located, but the presentation will not play unless the Main.exe file is in the same folder as the swf support files. Can anyone help with this?

Thanks

Darren

Copying Folders
Is there a way you can copy folders made in Flash MX. I have created an animation with many items, and put them in one folder on the timeline. But now I want the same animation on a different scene. So is there a way I can copy the folder from Scene 1 and paste it in Scene 2.
Thanx!!

Movies And Folders
Hi all
I keep having problems loading a movie from another one that i placed inside a folder
can you help me out?
this is the action i'm using to load the swf placed inside the folder (folder name is ed_2005):

on (release) {
loadMovieNum("ed_2005/mymovie.swf", 2);
}

and this is what i'm trying to use to go back to my original movie:

on (release) {
loadMovieNum("../mainmovie.swf", 2);
}

even if I used the ../ on the path it doesn't work...
help me out! thanks

sorry my post is also in drawing...didn't realized i was posting there!

Masking Folders
Is it possible to mask folders in Flash?

Ignoring SVN Folders
Here at the office we are starting to use Flex builder, but running into an odd issue. Our source files are (naturally) under source control, so in every directory there is an _svn folder. It is a hidden file in Windows.

But, when we create a flash project these files show up. They are a bit annoying since there are so many and they are useless, but the real problem is at compile time. When we compile a project, Flex pulls the _svn folder into the bin folder. This creates two major errors.
1) Subversion is now broken because files exist where they shouldn't.
2) The Flex compiler gives us definition errors on those files.

How can we get Flex to ignore the files???
I have googled for hours without success. The FB2 preferences only allow you to ignore files, not folders, so this doesn't work. What really shocks me is not finding other people with this same issue. It seems like everyone using Flex would be using svn and having this same issue. maybe we are missing something simple?

Thanks from our whole team here.

Publishing Into Certain Folders.
is it possible to publish the different files into different folders or do they have to be in the root folder

diagram of what i mean

=====publish
=======|
====root folder
=======|
*.fla---*.htm---*.swf
-----------------------------------------
what I want is |
-----------------------------------------

======publish command
===========|
=.swf's---root folder---.htm's<----new folders instead of root for
===| =======| =======| ______certain file type
=*.swf -----*.fla------*.htm
-----------------------------------------
hope my visual aids helped |
-----------------------------------------

Looking At A Folders Content
This may seem weird but I think it's possible. Is there a way that flash can look and see if there is a file present in a folder? It's almost like saying, "loadMovie("http://your.com/1.jpg"). Flash will go and see if 1.jpg is present at your.com. If it is present, flash will load the movie. If it is not, flash will kick up an error. I would like to be able to put this concept into an “if function”.

if(1.jpg is present){
trace ("show that photo")
}else if(1.jpg is not present){
trace ("No photo to be shown")

This is what flash would basically do if you set it up right. It would show the photo if it was there, and would not show it if it is not there. I would like to make more functionality out of this statement. Can this be done?

Jsfl And Sub Folders
Im trying to set some jsfl in which I pass it a folder URI and have it return not only the folders and files but also the sub folders and there files as well. Been at it for 3 hours and nothing. Any ideas??

Copy & Paste Folders ?
Morning! I'm fooling with something, wondering if there were any solutions out there. Does anyone know of a way, through coding or scripting, for Flash to copy and paste a folder on the users computer to a certain location? I'd much appreciate any help.

Thanks!



Ben

Relative Paths To Folders
I have an image gallery with separate image swf's placed in folders, when I test my main swf on my computer it finds the swf's no problem. But when i upload and test it doesnt. The code uses relative paths.
sorry i'm not at my computer right now so dont quote the code i have, but what it does is load mypic.swf from the folder pictures into the mc called picloader. If I take out the slash in front of pictures do you think that will solve it or do I have to have an absolute path to the swf?
on release
loadmovie (/pictures/mypic.swf, picloader)

Viewing WINDOWS Folders?
hi, not sure if this is the right place for this, but it is general help... in my site i was wanting to use pictures of windows folders (im on XP by the way). if i right click on my folders > customise > change icon i can get a whole library or the icons. the path is SystemRootsystem32SHELL32.dll i can find the folder etc but cant find a way to open the pictures... the best i've got is taking a screenshot and editing that but its pretty low res

any ideas?
thx
lev

Opening Files In Folders
I am trying to make a CDROM using Flash MX. In it, I have folders to organize all the files. But I am running into difficulty getting Flash to open up a file in the folders.

It wont be able to open anything that I have coded as
"/folder one/group 2/index.html"

I would have to code it as
"C:/program files/cdrom/folder 1/group 2/index.html"

Which doesnt help if I am to burn it, for it then wont be the C: drive, it would be the D: drive, or maybe the E: drive, depending on the viewers PC setup.

Is there anyway to get Flash to open up files in the folders, with out having to code every aspect of the location of the file?

Need To Move Folders From Scene 1
I first created a bunch of layers on scene 1, and they are currently divided into 3 folders. I have now decided to make a mc out of all of the items on scene 1 and then have the divisions (folders and such) be on the next movie clip layer. How can I move all of the folders containing the layers to the mc layer once it is created? Is this possible, or do I have to recreate all of the layers on the mc layer? Any help would be most appreciated.

aaroneousmonk

Making An Exe Incorporating Sub-folders
Hi, im making an .exe and there are a ton of other little swf's that the thing feeds off (i.e. the presentation gets fed with a bunch of external swf files)...how do I incorporate them all into a single exe?

Using Folders To Organize Files, Help?
Hello. My files are out of control. I need to organize them in folders. Right now I just have everything in one root folder. How do I access files that I have put in a folder, lets say picture_folder, that is located in my root directory. Also, will it work the same on my computer as if it were on my server?

thanks.

__________________________________________ Organizing Folders
Hi all, quick question.

I've got a flash site that has over 100 .swf's in it and all the swf's are in the same folder. There doesn't seem to be any problems with the site operating but I'm wondering if there is a better, more functional solution to storage of swf's on a FTP site. For example I have a gallery that loads swf's on to different levels. ("button1.swf" loads "pic1.swf" onto level 3) Should I be storing "pic1.swf, pic2.swf, ect." into a different folder? Does that speed things up?

Thanks

Loading .swfs From Other Folders
Alrighty, I'm running into an unanswered question and so I find myself here...

In Flash MX 2004 Pro, is there a script to load a .swf into your movie from another source, such as a folder, instead of the same directory as the parent .swf?

My script reads as so: (I inserted comments to make things easier)
//when you press the button
thisweek_btn.onPress=function(){
//unload the current movie
_root.holder_mc.unloadMovie()();
//load the new movie
loadMovie("loaded_movie.swf","_root.holder_mc");
//disable the current button
this.enabled = false;
//re-enable the other buttons
comingEvents_btn.enabled = true;
};

To rephrase my question, my current code is requesting the new .swf file from the same directory as the parent .swf, but how can I make flash look in a seperate folder for the new .swf to load?

Layer Folders Bug (timeline)
Has anyone else noticed a bug with layer folders in the timeline? If I have a folder and try to delete frames, or paste frames in the timeline, 80% of the time Flash will crash. I will get an hourglass, and Flash just sits there. This happens if I have the folder expanded or contracted...

Has anyone else seen it, and has anyone found a solution? I did fill out the bug form at Macromedia.com but haven't heard anything back....


My Specs:
Flash MX 2004 Pro
Windows 2000

Copyright © 2005-08 www.BigResource.com, All rights reserved