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




How Can I Load Files From A Cd?



ok i have this kiosk on cd, i also have this button which i want to click to open up a PDF file which is also on the cd.
Whats the code I need for this??



FlashKit > Flash Help > Flash MX
Posted on: 01-04-2005, 11:37 AM


View Complete Forum Thread with Replies

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

How To Load .swf Files In Other .swf Files In HTML Tables?
Ok I need help on figuring out how to place several different flash files in table cells in HTML. basically how to make a flash website, i did the tutorial for it but it just loads .swf files from one movie clip into another. how do you load a .swf file into another .swf file in an html table? for instance say I have 3 rows for my table. each row has one TD cell. inside each cell is one .swf file.

so we have one .swf file in each row. if i click a button in the top row(top .swf file), how do i get it to make a .swf file load into a blank .swf file in the middle row? i want a top menu in flash and i want it to load .swf files into a middle display area. how do i do this with external .swf files that are not all in the same movie? know what i mean? i hope i didnt confuse everyone. basically, can you target a .swf file in a table cell from a .swf file in another table cell? please email me if you know how to help me, thank you I appreciate your time.

tyr

How To Load .swf Files In Other .swf Files In HTML Tables?
Ok I need help on figuring out how to place several different flash files in table cells in HTML. basically how to make a flash website, i did the tutorial for it but it just loads .swf files from one movie clip into another. how do you load a .swf file into another .swf file in an html table? for instance say I have 3 rows for my table. each row has one TD cell. inside each cell is one .swf file.

so we have one .swf file in each row. if i click a button in the top row(top .swf file), how do i get it to make a .swf file load into a blank .swf file in the middle row? i want a top menu in flash and i want it to load .swf files into a middle display area. how do i do this with external .swf files that are not all in the same movie? know what i mean? i hope i didnt confuse everyone. basically, can you target a .swf file in a table cell from a .swf file in another table cell? please email me if you know how to help me, thank you I appreciate your time.

tyr

Can I Load Movieclips From A Textfile? Or Load Other Text Files?
i am pulling in variables from a text file like so:

on (release){
textbox.loadVariables ("text1.txt");
}


now... my question is... is it possible to load another movie clip from that textfile???

i have a bunch of news headlines that are from a text file, and i want them to link and load another movie clip on another section of my page... i have figured out how to link URL's but i cannot get it to link a movieclip, or, another textfile...

i want the movieclip to load into a already running swf file... is it possible for flash to do this?

any help would be much appreciated.

Load Movie To Load Jpeq Files
Load Movie in MX allows you to load .jpg files dynamically.
In test mode the output window will show you an error if the
file cannot be found.

Is there any way determine if there is a file error when not in
test mode? Is there something equivalent to the LoadVar if (success)?

thanks,

YJ

Load Different Swf Files
Hi

I want to load 3 different swf files in another swf.
I tried to load a movie in to a target, but when the movie loads, it replaces the whole swf (not only the size of the target)


any help?

Load Swf Files
Hi,

is it possible, to load a swf file, and this swf file itself load additional swf files?

E.g.:

MC1 load a external swf file named: MC2
MC2 load two external swf files named: MC3 and MC4

Is this solution possible???

Greeting
David

Help Load Swf Files
Hi, I have a big problem in loading swf files!

I have three swf files, named “Film1.swf”, “Film2.swf” and “Film3.swf”

OK, “Film2.swf” load “Film1.swf” via loadMovie and it works perfect!

Now, “Film3.swf” load “Film2.swf” via loadMovie. But here I have the problem, that only the “Film1.swf” is loaded, NOT the content of “Film2.swf”

I have the source files on this destination!!! They are very small, only one frame for each ot the three MCs!

http://mitglied.lycos.de/fcneptun/film.zip

Please help!!!

Thanks
David

Pre-load .swf Files
Is it possible to preload .swf files in the same manner as images, using code such as:

<script>
function preloadimages(imagesstring){
var imagesarray;
var count;
imagesarray=imagesstring.split(",")
for(count=0;count<imagesarray.length;count++)
newimage=new Image();
newimage.src=imagesarray[count];
}
</script>

<body onload="preloadimages('file_01.swf,file_02.swf,fil e_03.swf,file_04.swf,');">


i know it won't work using this exact code but is there something similar for flash files?

thanks!

My SWF Files Do Not Load
Hey,

I uploaded a website www.brickhousestudio.com and two of my swf import files do not work. When I run the html on my computer everything is fine, however it is not the case when I send it to the host. I have three buttons that load swf's and only one works. I don't think I did anything different with the two malfunctioning buttons or swf's.

Please help... anything is appreciated

thanks

Load Other Swf Files In One Swf
I have a website goin on right now, and I have cartoons I want to play on the flash website. Do any of you guys know how to load and play other swf movies into another swf file??

Files Don't Load
I have a movie that works just fine locally on my computer. When you open the movie it opens a menu. The menu is used to open other swf files (using the loadMovie function).

When I gave the movie to another person, it worked fine locally on their machine. When the person copied and pasted the folders onto their server problems occurred. All of the menu links work fine, except the first link. It won't open the other swf file. All of the files are on the server in the appropriate folder.

My first thoughts were that I had some sort of absolute link for the first menu item, but then I realized that it ran fine on the other person's machine before it was up on the server. Why will this work locally, but not from the server?

Load Txt Files
Hey.

I was wondering if you could import *.txt files into flash. I have done it once before, but have forgotten now. I think it is something like

loadMovieNum("*.txt", 1);

But I then cant remember how to put that text onto a dynamic text field. On the text file i have got a prefix of '&data='. Does that do anything? If anyone can help, or tell me what I am doing wrong, please do.

Thank you
M3XEL

Load Rtf Files?
Is it possible to load .rtf (rich text files) in Flash?

Ten XML Files To Load
My problem:
I have multiple XML files to load and each must pass a param to the loadedXML function below. How do I do this correctly. I have the loading part down, but I cannot get the param to pass.

ActionScript Code:
function loadedXML(success:Boolean, prefix:String) {
    clearInterval(intervalID);
    if (success) {
        var xmlRootNode:XMLNode = this;
        // number of works
        totalWorks = xmlRootNode.firstChild.childNodes.length;
        // fill arrays
        for (var i = 0; i < totalWorks; i++) {
            _root[prefix + '_thumb_arr'].push(xmlRootNode.firstChild.childNodes[i].childNodes[0].firstChild.nodeValue);
            _root[prefix + '_main_arr'].push(xmlRootNode.firstChild.childNodes[i].childNodes[1].firstChild.nodeValue);
            _root[prefix + '_caption_arr'].push(xmlRootNode.firstChild.childNodes[i].childNodes[2].firstChild.nodeValue);
        }
        if (++xml_files_loaded == xml_files_total) {
            gotoAndStop(3);
        } else {
            my_txt.text = "loading external content: " + xml_files_loaded + ' / ' + xml_files_total;
            my_txt.setTextFormat(rrie_0_fmt);
        }
    } else {
        trace("couldnt load this XML_file: " + prefix);
    }
}
var tr_sec_1_xml:XML = new XML();
tr_sec_1_xml.ignoreWhite = true;
tr_sec_1_xml.load(imageRoot_arr[2] + productXML_arr[2] + '1' + '.xml');
tr_sec_1_xml.onLoad = loadedXML('tr_sec_1');
I was trying to feed another param to the onLoad function but it wouldnt take anything else except its "success" param. And I know that its clearly wrong (the prefix param that is)

How To Load .mov Files
I create lots of .mov files in Final Cut Pro. I want to learn how to load them into flash mx so the the user can click on a button and play a .mov. I know how to do it to access .swf files.

.jpg Files Don't Load
I'm following the tutorial to produce a slide show (http://www.kirupa.com/developer/mx/photogallery.asp).

For some reason, the .jpg files don't load... there are no errors, and all I get is a screen with a black rectangle on it. (NOTE: attempted this via CTL-ENTER / test mode).

Suggestions? Thanks!

Ex Swf Files Don't Load On The Web
hello all flash pros ^^

I got a small problem.. very enoynig tho

My flash site is workin almost prefectly when Im previewing it on my computer (local) but when Im uploaded it to my domain www.eyelezz.com it don't work so gud.. the ex swf files that should be loaded in the mainmovie don't load

Idonno whats wrong really.. kind of stuck.. its prob. a very simple thing

Cause, I use to miss them

thx for tha help dudes

Load Flv Files
hi,

can someone tell me how to load flv files
in flash mx 2004 on button click

Xml.load() With .php Files
I have a project on my local dev box that runs fine when I load XML files from a .php extension (php creates the xml dynamically).

Yet when I upload this to the production server, it will not recognize the .php file and load it at all.

Has anyone had this problem? If so, how did you fix it?

Ex Swf Files Don't Load On The Web
hello all flash pros ^^

I got a small problem.. very enoynig tho

My flash site is workin almost prefectly when Im previewing it on my computer (local) but when Im uploaded it to my domain www.eyelezz.com it don't work so gud.. the ex swf files that should be loaded in the mainmovie don't load

Idonno whats wrong really.. kind of stuck.. its prob. a very simple thing

Cause, I use to miss them

thx for tha help dudes

Load/Unload SWF Files
I have several .swf files that I want to load before
the presentation. I can load the first swf file, but
it wont unload after that. I have tried creating new scenes
with just one frame for load move, then the next scene I
would have unload movie. It just sits on the first movie.

thank you for any help

Will GetURL Load Files From CD?
Wanting to know if I can use the get URL action to load files from a CD. I can get it to work on my system its just that once I specify a url location it will change depending on the drive name of the person viewing the CD...Any help?

All the files including the movie that is activating the getURL action will also be on the CD. Basically a website on CD.. Desperately need help...

Thanks
Cougar.

How To Load PDF Or EXE Files Using A Button?
Hi!

Been trying to load / link a PDF document or EXE file, from a button, but havent been successful. I have been using getURL command. I think its the wrong function to use, what else can I use to load a PDF file once the button is clicked?

Thanks,
kumsworld.

Up Load Files In Flash Kit
Is there a way for me to upload files for people to download in FK? Like an FLA for someone to use, etc...

Load External Swf Files
hell guys i nedd your help to realize my portfolio i try to load external swf files in my movie i would like to do the same as
http://www.rullkoetter.de please look at the portfolio of this page please help my how or where can i find a tutorial for this problem or have you alredy wrote anything

Load Order For Several Swf Files
I'm trying to put my portfolio site that I've designed into Flash. The only problem is that I have a rather large width planned for the site... As the Flash stage can only reach a maximum width of 2880 pixels I'm wondering how I can have several Flash swfs load in the order i want them to, say from left to right.
The problem lies in the fact that my site at the minute stretches to a whopping 20,000 pixels and will take 7 Flash 5 stages to cover this. I have initially thought of the 7 swfs taking a section of the site each, but the problem remains in the loading of these seperate files... and i was wanting to know if there is any way that i can stipulate the order in which these are to load, instead of all of them loading at the same time,i.e. swf1 loads then swf2 begins to load, then 3 then 4 and so on... so that the narrative sequence is still there.
Thanks alot in advance.
Ray

How Do I Load Swf Files As Others Are Playing?
I have multiple swf files for my site. And as my intro scene is playing, I'd like all of the swf files to be loading, so that when a user is navigating the home page, the other swf files are loading without being seen (my goal is to reduce the loading time for each page (swf) in my site.

CAN YOU HELP ME...need To Load External Txt Files
hi....i like to make a window inside my flashfile.....(flashmovie)
with scrollbar....inside this window i want some text to appear....the text should
be loaded from a normal txt file....(external)

so if the external txt-file is updated the txt inside the window is updated too :-)

do anyone have a link to a file (.fla) so i can see how it is done?????

THANKS
Jimmy -Mirrorman

Load Multiple Xml Files?
In my movie is a slideshow with pictures. On opening it loads xml txt. What I want is when you click to the next picture, another txt file opens. How can I do that? Here's the example: http://www.tantesteef.nl/trein.html

Here's the code:
var xmlText = new XML();
xmlText.tf = textBox;
xmlText.onData = function(data) {
this.tf.html = true;
this.tf.htmlText = data;
};
xmlText.load("trein.txt");
next.onPress = function() {
if (myPic<7 && !fadein && !fadeout) {
fadeOut = true;
myPic++;
input = myPic;
}
};
back.onPress = function() {
if (myPic>1 && !fadein && !fadeout) {
fadeOut = true;
myPic--;
input = myPic;
}
};
container._alpha = 0;
myPic = 1;
// initiate change to new image when buttons are clicked
this.onEnterFrame = function() {
// when a new Photo is selected, fade out, load new image, and fade in
if (container._alpha>10 && fadeout) {
container._alpha -= 100;
}
if (container._alpha<10) {
loadMovie("images/trein/trein"+myPic+".jpg", "container");
fadeOut = false;
fadeIn = true;
}
if (container._alpha<100 && fadein && !fadeout) {
container._alpha += 10;
} else {
fadeIn = false;
}
};

regards

Load Swf Files From Actionscript
I am trying to play swf files using actionscript from a blank window. I want to be able to play one, and then as soon as it stops, call another.

Can anyone help me???
Thanks,
Kathy

Load Program/Files
Hey, what's the script or is there one for loading a program or file in a flash movie?

How To Load Text Files?
what is the simplest way to load an external file into a text field within flash mx 2004?

Trying To Load External Swf Files From A CD
Any help here would be greatly appreciated. I'm attempting to load external swf files into a Projector that's being loaded to a user's hard drive. The hitch is that the swf files will reside on a CD-ROM that will need to be loaded into the user's machine.

My question is whether or not anyone can tell me how to determine the letter designation of the user's CD drive in order to set the correct pathnames for loading those swf files. I'd prefer to use relative paths but am stumped on that one too. By the way, the target users will be using a PC and not a Mac (though I'm developing on a Mac).

I feel like an idiot for asking but need help in order to give the client what they're asking for.

Please let me know if I'm not giving enough info.

Thanks!
Robert
robert@elrodesign.com

Automatically Load Swf Files.
Hi there.

I'm a Newbie, so bear with me!

I've just started using Flash in my website:

www.angelfire.com/jazz/sitesound

I'm able to get a sample to load when a button is pressed. However, I'd like it to load automatically when the page loads. I'm using the soundnails program player which seems to work well.

I've heard of a "Preloader", but I'm not sure what it does. Can it be used to preload files when the page opens?

There must be some code to enable this, can anyone help me please...
Any help would be really great as I'm struggling!

Regards

Mark

Load 2 Xml Files In One Script
I am having a problem accomplishing this. Does anybody know of a simple way to load two seperate xml files in one scipt. I need to call the users xml file and then pull info from a master file that coinsides (sp?) with that users xml file. Any help would be great. Thanks

Dynamically Load *.png Files?
Is there a way to, with actionscript, load external images (*.png) into my flash movie?

the code works wíth *.jpg's...

_root.loadMovie("myPic.jpg","myPic",0);

Load Projector(exe) Files In Swf.
Hi,
Can someone pleeez help me> I want to load/play a few projector files in an fla application that I am currently developing. I have used the loadMovie command but that doesn't work. Anyother work around for this???

Thanks Bunches,
Shailaja

Load Projector(exe) Files In Swf.
Hi,
Can someone pleeez help me> I want to load/play a few projector files in an fla application that I am currently developing. I have used the loadMovie command but that doesn't work. Anyother work around for this???

Thanks Bunches,
Shailaja

Which Files Can I Load Dynamically?
Are swf & jpeg files the only graphical filetypes you can load dynamically in flash?

Is It Possible To Load Xml Nodes In Txt Files
my php files with the flash cannot run with xml files.
so i am thinking whether the flash load string in txt file with the value of xml nodes.
Is it possible?
i think it's really not a good method, but i am curious to know whether it's possible.
and how to extract the xmlnodes' structures from a long variable.

Load Multiple XML Files
Hello,

I need to load a large amount of datas into an XML object.
My files are like this:
XML CODE of file1.xml

Code:
<collection1>
<item_1>data_1</item_1>
<item_2>data_2</item_2>
...
<item_x>data_3</item_x>
</collection1>

XML CODE of file2.xml

Code:
<collection2>
<item_1>data_1</item_1>
<item_2>data_2</item_2>
...
<item_x>data_3</item_x>
</collection1>etc...

I first tried to merge all my files (file1.xml, file2.xml, etc.) into 1 big XML file but when I use this method:

Code:
myXML = new XML();
myXML.load("myBigFile.xml");

I get an error because of the SWF taking more than 15 seconds to load the fileThen, I tried to load 1 file after the other:

Code:
myXML.load("file1.xml");
myXML.load("file2.xml");
etc...

but of course, only the last one is loaded

Thanks to help me doing this using the separated files (file1.xml, file2.xml, etc.) and load the datas into ONE XML OBJECT (myXML)

Thanks

Marc

How Do I Down Load .zip Files From Flash MX?
Hi All,



I’ve be researching how to download .zip files on a server from a link in flash. When the swf is on my computer the getURL call works fine. When the swf is on the server it no longer opens the zip file. I get this error message:

Action canceled

Internet Explorer was unable to link to the Web page you requested. The page might be temporarily unavailable.


--------------------------------------------------------------------------------



I have come across some documentation that has a solution in Flash version 8. I need to implement this in Flash 6. Do you have some insight into this or can you point me in the right direction?

How Do I Down Load .zip Files From Flash MX?
Hi All,



I’ve be researching how to download .zip files on a server from a link in flash. When the swf is on my computer the getURL call works fine. When the swf is on the server it no longer opens the zip file. I get this error message:

Action canceled

Internet Explorer was unable to link to the Web page you requested. The page might be temporarily unavailable.


--------------------------------------------------------------------------------



I have come across some documentation that has a solution in Flash version 8. I need to implement this in Flash 6. Do you have some insight into this or can you point me in the right direction?

[F8] Load/Link .swf Files
Here's my problem. I want to link a series of .swf files together and they seem to terminate after I load more than one. Basically I have a list of files:
and these are the .swf and .fla files I want to link. What I do, is on the link I use this command:

Quote:




on (release) {
gotoAndPlay("home");
}




Then at the frame "home" I run this command:

Quote:




stop();
_root.home.loadMovie("cosmeticsmenu.swf");




Then, I make a movieclip on the stage named "home" and it works when I load just one movie, but if I click another link that is setup the same way, the screen doesn't load, it just stays white.

Here is a link to a blog I made, which is a visual link of it: LINK

Load Image Files
I am creating a game where the user can upload a photo of him/herself. I want the convenience of a File Open Dialog using some type of browse, but Flash 8 holds the path to the file a deep dark secret from me (FileReference API), thus I can't use loadClip() to get that image... the choice I am looking at is making the player type in the file path of the image, which isn't easy for the non-computer-savy types. Anyway of browsing for a image then showing it? (btw: I don't want to have to upload it to a server or have anything to do with a server)

Thanks in advance for any help!

-Simple Andy

[F8] Load External SWF Files
Hey guys,
My main goal here is to load external SWF files such as waepons and armor to a charecter. Right now i am having trouble with loading an external SWF and placing it into postion. here is the code i am using.


Code:
on (release) {
_root.createEmptyMovieClip("container", 1);

// Container's positions on stage
container._x = 100;
container._y = 100;

// Load external SWF
container.loadMovie("Sword 2.swf");
}


When i use this the SWF does not appear on the correct X and Y axis.

I also want to know if i can have a MC already created and load the external SWF to the MC I already have and keep it postion.

-Thanks to anyone who helps

Load External Files
Hello!
I'm working on a presentation, that has link to other swf files and some pdf files. In the CD I'll be given with the presentation I want to have the presentation.swf and the in folder theswf and in another folder the pdf, since there are several swf and pdf, I don't want them to be all in the same folder, but I don`t know how to load them from my presentation. I try using
on (release) {loadMovie (<a href:"file://name_of_folder/"name_of_file.swf")
but it's not working I dont't know how to do it?
I hope you can help me! Thanks!
Have a great day!

Load External .JPG Files
I'm having a hard time loading external .JPG files and getting them to load into a container and have them positioned at a certain location. I know its possible and if anyone can help I'd appreciate it.

Possible To Load Different XML Files Into A Single Swf
Hi,

I was wondering if it is possible to unload and then load different XML files into a single swf? I am making a gallery which loads images from an XML file, but I want to add more galleries, what is the best way to achieve this?

Many thanks

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