Load Image Names From Txt File Then Show
I tried to do that; a txt file which created by PHP , includes : ------ image.txt -------- image1=exim.jpg &&image2=anteor.jpg &&image3=antotherone.jpg ------------------------- I load the values image1,image2,image3 but I can't show the images please help me ? how it can be possible, LoadMovie(image1) does not work, how it can be possible ?
FlashKit > Flash Help > Flash ActionScript
Posted on: 06-26-2003, 05:32 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Load Names From Text File
How do i load these from a text file?
(General, Links, Problems, FeedBack)
Code:
CategoryName1 = "General";
CategoryName2 = "Links";
CategoryName3 = "Problems";
CategoryName4 = "FeedBack";
i want the user to type in what 'catagories' they want and then they will later be displayed in the movie.
any help woul be great!
thanx!
austin
Load Dynamic Images With Different File Names
I'm working on a project where people can upload their own images that are then inserted into a MC. With Generator it was easy as I just used a {insert jpeg} variable. What is the equivalent in Flash MX?
Load 100% And Then Show Image
Hi
I got script from the forum to preload jpgs from a targeted folder.
works great.
so it works like - when i click the button for next image it then remove the loaded image and start preloading the the next image so while its preloading there is nothing on the screen just the preloader.
and when the preloading is done then it shows the next image.
looks o.k. on high speed internet but not for dial up.
here what i want to do
i am trying to tweak the script that when i click the button it start preloading the next image without removing the loaded image and when preloading is 100% then it switch the image.
but not succesful
here is the script
ActionScript Code:
stop();
var totalPics = 5;
var index = 1;
var imagePath = "frImg/image_";
_root.createEmptyMovieClip ("holder", getNextHighestDepth());
function loadImage() {
var loaded
var total
var total_progress
status_txt.text = "loading image " + index + " of " + totalPics;
var tempLoader = createEmptyMovieClip("l", getNextHighestDepth());
tempLoader.onEnterFrame = function() {
loaded = _root.holder.getBytesLoaded();
total = _root.holder.getBytesTotal();
total_progress = Math.round(loaded / total * 100);
total_progress_txt.text = total_progress + "%";
_root.holder._x = (500)-(_root.holder._width/2);
_root.holder._y = (310)-(_root.holder._height/2);
if (total_progress == 100) {
total_progress_txt.text = "";
status_txt.text = "displaying image " + index + " of " + totalPics;
this.removeMovieClip();}};
_root.holder.loadMovie(imagePath + index.toString() + ".jpg");
}
_root.but2.onRelease = function() {
if (++index > totalPics) {
index = 1;}
loadImage();
};
_root.but1.onRelease = function() {
if (--index < 1) {
index = totalPics;}
loadImage();
};
loadImage();
please give some suggestion
thanks
Create Marquee Names In Flash But Edit Names In Text File HELP
Hi all im trying something new with a website. I have looked around and havent been able to find a file or help sections on this. Maybe someone can help me on this...
The marquee is going to scroll left to right and repeat over and over. This is going to be in flash. What i need is the names that are going to be in the marquee needs to be in a text file so they can easily be edited by anyone that doesnt have flash knowlege.
Can this be done?
Edit A Swf File To Show An Image In A Text Area
Hello actionscripters,
I am a coldfusion developer. I am very very new to flash and my grasp over it is pretty minimal. I downloaded this flash map application from http://fawx.com/software/pflog As you can see the map reads data from an XML file and then uses that data to represent appropriate points on the map.
Currently, when the mouse is hovered over one of these points on the map, a div drops out with the information relevant to that point on the map. Now, I would like to add a small image to the div box which drops down and I want to put the image url in the xml file. So, I want the flash application to read the xml file and display the respective image in the hover box for each point. This is kinda similar to the flickrmap at http://www.allthegoodness.com/projects/map/
It would be great if somebody could throw in some ideas as how to edit the action script files or the movie so as to achieve this. The source code is also available on the site.
Thanks,
Prashant
I Need To Load A Image(jpg) Into Flash With A Text File With The Url For The Image
As the name says it all.
I need to add some AS in my flash site, so that the image (banner) is dynamic, meaning when I want to make a change to it, or make it look different, i dont want to go into flash to do it. So I want it so that when I change the jpg itself it changes inside of flash.
I would like flash to look up a txt file I give it, and inside the txt file it will have a URL to which jpg to load up in the movieclip.
If not this way, another similar way would be great
Thanks!
How Can I Load Image Through XML File In Flash File
Hello,
I am a really a beginner in flash and i want to get image through XML file mean in XML file the path of image will save and in flash file this image will display ,so sir i want to know what will be the actionscript for this type of work and i want to say i am not more familier with action script also so i'm in trouble to handle this problem.
Please give me the solution as soon as possible.
Why Does Slide Show Image Dispears After 3 Minutes (When Show Is Stopped)
I made a slide show with navigation buttons, but when the slide show is stopped for more then 3 minutes; the image just disappears. Here is the code I am using:
First Actionscript
Code:
loadMovie(""+photo1+"","mc1");
_root.mc1._xscale = 80;
_root.mc1._yscale = 70;
_root.mc1._alpha = 0;
Second Actionscript
Code:
var speed = 5
onEnterFrame = function() {
_root.mc1._alpha += speed
}
Then I tried this; the image did not disappear this way, but the transitional effect did not work.
First Actionscript
Code:
_root.loadMovie(""+photo1+"","mc1");
_root.mc1._xscale = 80;
_root.mc1._yscale = 70;
_root.mc1._alpha = 0;
Second Actionscript
Code:
var speed = 5
onEnterFrame = function() {
_root.mc1._alpha += speed
}
What do I need to do, too make sure image continues to display?
PS: I am sending query string from HTML to Flash to display variables (ie. movie.swf?photo1=mypic.JPG)
How To Load URL From .txt File And Use URL To Load Image?
txtfile (imageurl.txt):
Code:
img=http://www.image.com/images/home_wedding_pic.jpg
swf:
ActionScript Code:
loadVARS = new LoadVars();loadVARS.onLoad = function(success) { if (success) { img_container.loadMovie(this.img); } else { trace("FAILED"); }};loadVARS.load("imageurl.txt");
This works when I hit ctrl+enter to test within the flash GUI, but not when I open the swf from my computer. wtf!
However, having a flash file with ONLY the following:
ActionScript Code:
img_container.loadMovie("http://www.image.com/images/home_wedding_pic.jpg");
This works in flash and even from the swf itself! Somethings fishy with the loadvars method.
Using CS3, AS2.0. Thanks!
Load Image File...
How load an image file to a scene or a movie clip with actionscript ?? is it possible ???
Load An Image From File Into MC
I would like to know how to automatically load an image from a directory into a movie clip the way you load variables from a text file. I just dont want to have to pachage each image as an swf before importing.
I just want to put the jpg into the directory and access it from there.
Can one do that on the fly
Cheers
DogGone I.T
Load Image From File.
hi
can someone help me: i don't know how to load an image from harddisk. i would like to load it and then draw it in a MC.(unscaled to the (_x|_y) coordinates). Maybe also with a filechooser dialog if this is possible.
thx in forward
-i
Load Image From Xml File
I have a problem and I don't know what I'm doing wrong. I have an image gallery thing. From xml the images are loaded in a scroller on the bottom, when clicked on an image It shows a bigger version above the slider. What I want is, when the slider is filled with thumbnails, I want to have a bigimage displayed above the scoller without having to click one of the thumbnails first. The bigimage that is displayed will have a value retrieved from the XML.
See my code below and the comment:
myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function(ok) {
if (ok) {
//process data
up._visible = false;
down._visible = false;
allGalleryData = this.firstChild.childNodes;
for (i=0; i<allGalleryData.length; i++) {
newPiece = sliderHolder_mc.slider_mc.attachMovie('template', 'piece'+i, i);
newPiece._x = i*newPiece._width;
newPiece.load_btn.imageName = allGalleryData[i].firstChild.nextSibling.nextSibling.firstChild;
newPiece.load_btn.highimageName = allGalleryData[i].firstChild.nextSibling.nextSibling.nextSibling.firstChild;
newPiece.load_btn.heading = allGalleryData[i].firstChild.firstChild;
newPiece.load_btn.description = allGalleryData[i].firstChild.nextSibling.firstChild;
newPiece.holder_mc.loadMovie(newPiece.load_btn.imageName);
//here I retrieve the value wich I want to display in
// bigimage_mc
selectedimage = allGalleryData[i].firstChild.nextSibling.nextSibling.nextSibling.nextSibling.firstChild;
// but then what ???
newPiece.load_btn.onRelease = function() {
var mcLoader = new MovieClipLoader();
mcLoader.addListener(this);
mcLoader.loadClip(''+this.highimageName, bigimage_mc);
this.onLoadInit = function() {
if (bigimage_mc._width>160) {
bigimage_mc._x = 118;
bigimage_mc._y = 32;
}
else {
bigimage_mc._x = 192;
bigimage_mc._y = 16;
}
}
if (this.description == null){
up._visible = false;
down._visible = false;
tfdescription.text = '';
}
else {
tfdescription.text = this.description;
if (tfdescription.maxscroll>1) {
up._visible = true;
down._visible = true;
//
up.onRelease = function() {
tfdescription.scroll -= 1;
}
down.onRelease = function() {
tfdescription.scroll += 1;
}
} else {
//Verberg dan ook de scrollbar
up._visible = false;
down._visible = false;
}
}
};
};
leftbutton.onRelease = function() {
targX = targX-(504);
};
rightbutton.onRelease = function() {
targX = targX+(504);
};
sliderHolder_mc.slider_mc.onEnterFrame = function() {
if (targX >= 0) {
targX = 0;
} else {
//sub if
if (targX <= -newPiece._x+420) {
targX = -newPiece._x+420;
} else {
targX = targX;
}
//end sub if
targX = targX;
}
this._x -= (this._x-targX)/5;
};
} else {
trace('what file?');
}
};
myXML.load('gallery.xml');
Show And Hide A Movie Clip.... Also Clarification On Instance Names
Hello.
First of all I would like to show and hide a movie clip when a button is pressed.
I have tried
Code:
on(release){
Info.hide();
}
and
Code:
on(release){
Info.visible = false;
}
What about if I place the button inside a movie clip and the movie clip i want to show and hide isn't within that movie clip? Do I just stick _root. infront of Info? Is _root used to address the stage and _parent to address something 1 level up from the place the AS is?
Secondly, I would like some clarification on this
When you convert something to a symbol you name it and you can place it on the stage. You can also give it an instance name if you wish. If you were to use code to address the mc on the stage you use the instance name. Is this always the case? or can you sometimes use the name?
Also the identifier? under the linkage bit, what is this used for?
Thanks.
P.S. Sorry if the message is written poorly, I kept thinking of more questions I need clarifying.
P.S.S. Thanks again
Load Image From Text File
What am I doing wrong
(text file)
&name=My Company&address=123 Fake St&myImage=image1.jpg
then I have this command
imageHolder.loadMovie (myImage);
What is wrong with this text file or my as
it won't load the image but loads the text
How Do I Load An Image From Xml File Into Flash
Hi!!
I am trying to make a businesscard . Apart from the text details i also need to have an image placed in the extreme top left corner of it. What i know is that :
mymoviecliip.loadMovie("ab.jpg");
mymovieclip.onData=function()
{
mymovieclip._x=30;
mymovieclip._y=40;
}
helps in loading an image.
But i am not getting the desired results. Help!!
How To Load An Image From Actions In Txt File?
Hi I need to load images dynamically (banners with links) from a txt file which can be easily edited by any newbie. I have placed a blank mc in the swf to load the image. So far I am only able to load them in flash directly but it wont help in the long run. Please recommend a tutorial url or if you have time explain me the code.
Load Image From Text File
I am a new member and fairly new to AS but I am hoping that someone might be able to help me out. I am loading a image into a MC from a text file and I have got it working okay but now I would like to make it into a function. I have code that I though would work, but the image is no longer loading.
This is the working code
PHP Code:
loadText = new LoadVars();loadText.load("data.txt");loadText.onLoad = function() { name.text = this.name; loadMovie(this.image, empty_MC);};
Contents of the data.txt file
PHP Code:
&name=Dan&image=1.jpg
Non-working function
PHP Code:
function test() { loadText = new LoadVars(); loadText.load("data.txt"); loadText.onLoad = function() { name.text = this.name; loadMovie(this.image, empty_MC); }};
I am pretty sure that it has something to do with the loadText.onLoad = function() { line.
Any ideas?
Thanks,
Dan
How To Load An Image From Actions In Txt File?
Hi I need to load images dynamically (banners with links) from a txt file which can be easily edited by any newbie. I have placed a blank mc in the swf to load the image. So far I am only able to load them in flash directly but it wont help in the long run. Please recommend a tutorial url or if you have time explain me the code.
How To Load An Image From Actions In Txt File?
Hi I need to load images dynamically (banners with links) from a txt file which can be easily edited by any newbie. I have placed a blank mc in the swf to load the image. So far I am only able to load them in flash directly but it wont help in the long run. Please recommend a tutorial url or if you have time explain me the code.
Load Image Dynamically.. But Only Do So If File Exists?
Hey, I have a program that sort of works like a slide show... i have a next and previous button that sends the movieclip to the next or previous frame and on each frame in an image...
I need this structure to stay like it is.. where each frame has its own picture, but I need to have it done dynamically now..
Say I has 20 frames, so the possibility of 20 images... however, I need the next and previous button to be able to check if the next frame has an actual image to load.. if so.. continue on to that frame, but if not.. stay on the current frame.
if my jpgs are numbered 1.jpg, 2.jpg, 3.jpg
I need the program to somehow check for each..
hopefully i've explained myself enough ... but yeah I really don't know where to start
Can I Load Gif-file In Flash And Center Image?
Fotogallery. I tried to load *.gif -files (web-optimized) for my image gallery and it was a problem. The next problem is the place of image... many images are different and i can set loadposition only for left corner... is it possible load pictures in the middle?
Load Image Though XML File By Click On Buttons
I have this small problem and I needed your help. This is what I'm trying to do. I"m doing an alphabetical list, I want the users to click on A, then the picture_holder will show an image of an apple, and click on B will show an image of a boy and so on. I have built my XML list but don't know how to call that from each individual letter by clicking on it. I know how to load the XML file but can't load it through each button that I click. Can anyone help me with it? I'm really appreciate it. thank you.
Load Variables From Text Then Loading Image File With The Filename Given In Text File
The problem is, that i need flash to load variable from text file, eg: info.txt, with image=gt.jpg in it.
Then I want flash movie to load a gt.jpg into a blank movie.
The point is that after i change filename in txt file, i want movie to load that img.
I wrote AS:
loadVariablesNum("info.txt", 0);
loadMovieNum(image, 0);
but it's not working
After i traced variable image, debugger showed that this variable undefined, but if i put textbox with image as variable, it shows "gt.jpg".
Please help
Flash Uses XML File To Show Pics - Can I Randomize The Show Order?
I'm playing around with a flash template at the moment which uses an external XML file to display pictures in a flash frame. The file:
Code:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
- <images>
- <pic>
<image>home/jpg/image6.jpg</image>
<myURL>http://www.yahoo.com</myURL>
</pic>
- <pic>
<image>home/jpg/image5.jpg</image>
<myURL>http://www.google.com</myURL>
</pic>
- <pic>
<image>home/jpg/image1.jpg</image>
<myURL>http://www.lycos.com</myURL>
</pic>
</images>
So in this case the site displays image6, then image5, then image1 - Can I do something to the XML to make them display in a random order instead of the list order?
Thanks
Paste File Location To Load Image Prob?
I have a movie where I have an input text field called imagePath.
Im pasting a path on the local machine
C:Documents and SettingskmalleaDesktopkanisha.jpg
to load the image into a mc called myImage.
I have this in the mc
loadMovieNum(_root.imagepath, this);
trace(_root.imagePath);
play();
and a myImage.gotoAndPlay(2); on a button field that gets clicked after you paste the path. I've tried forward and back slashes in the path and the image wont load. I see the path in the trace statement and I get no errors on the image being loaded.
Any ideas?
Pass URL String From External File To AS Variable (dynamic File Names)
I have a movie player that works fine when i hard-code the url value in the video function, but when i try to pass that url/file path from an external file, the video doesn't load. I suspect that there is something i'm doing wrong with the quotes. What am i doing wrong?
Code:
var vfile:String = string("path");
supervideo = function () {
var netConn:NetConnection = new NetConnection();
netConn.connect(null);
var netStream:NetStream = new NetStream (netConn);
video.attachVideo(netStream);
netStream.setBufferTime(10);
netStream.play(vfile);
};
loadText.load(_global.text_url1);
loadText.onLoad = function(success) {
if(success){
showtitle.text = this.title1;
vfile = this.flv_name;
supervideo();
}
}
The value in the php file looks like this:
PHP Code:
&flv_name="elements/flv/superape.flv"&
So ultimately i want to end up with netStream.play("elements/flv/superape.flv");. I know the value of vfile is being passed from the php file and getting into the supervideo(); function because i have a textbox echoing vfile. I have tried defining the variable with and without the ":String". Please let me know if you can see any errors. Thanks!
Loading An Array Of File Names From A Text File.
Basically I want to do the following.
Create an array of
Image[x] = "x.jpg"
from a text file where the images are listed as
x.jpg
y.jpg
z.jpg
I can't figure out how to load these in an array and I haven't been able to produce this from the closest examples I have found.
Any suggestions?
Blurry Image With Mask Of Clear Image That Is Supposed To Show When Mouse Rolls Over
Very first thing, after preloader, is a blurry image that is supposed to get clear when mouse goes over the image. Problem is, the image that is clear will not, when previewing the movie, move from the top left corner. It is supposed to be right on top of the other image, which is in the middle of the screen. when i go into the layer that the clear image is it is right over the blurry image. I don't understand why, and have tried many different ways to try and fix this. Please let me know if you can help. Thanks.
Show Captured Image In MovieClip Without Saving Image First
Hello all,
How can I show an image that I have just captured with the webcam?
I am able to save that image using PHP but before I save it, I want to show a preview. How can I do this? Here is a snippet of the code that I think can be used to do this:
ActionScript Code:
foo = new BitmapData(640,480);
foo.draw(myvideoobject, scaleMatrix);
var myEncoder:JPEGEncoder = new JPEGEncoder(100);
myCapStream = myEncoder.encode(foo);/
How do I take the BitmapData or the JPEGEncoder and put it into a MovieClip or something so that I can just display it?
Thanks all for any help!
Slide Show Image Dispears 3 Minutes After Slide Show Is Stopped - Why?
I have created a slide show with a stop button. The buttons stops; but after about 3 minutes of being stopped, the image just disappears and all I see is the movie's background. Does anyone know why this is occuring? If so, is there a quick fix for this issue?
PS: I used one of the goToAndPlay Key Frame events built right into my software; I assume it was this (to make movie stop):
Code:
on(release) {
stop();
}
Can Actionscript Change Image Names?
can action script change names of a graphic in the library? meaning i have a puzzle game that the main pic is in the library called puzzle and i what to change it so it the pic is random everytime - so can i use actionscript to change the name puzzle to puzzleold and newpic to puzzle (and then randominze it)
if not this then what???
thanks!!!
Yechiel
Dynamically Load Jpg Names
Really wierd bug:
I can't dynamically load an image if it's filename is alpha rather then numbers.
loads fine:
http://images.lisaandbrian.com/cgi-b...1191530572.jpg
doesn't load:
http://images.lisaandbrian.com/cgi-b.../fl_family.jpg
very wierd. thoughts??
Very Simple Question Re: Gallery Image Names
Hi, I'm creating a gallery using the following code, but it's been so long since I last used it I can't remember what the thumbnails and larger pics are supposed to be titled - I assume the first person who looks at this will be able to tell me. Also, where do you think the images should be placed? I'd have automatically placed them in the library, but in the gallery I created before, they're not placed in the library.
Anyway... (and thanks in advance)
Code:
image_arr = new Array();
maxImages = 8;
for (var i = 0 ; i < maxImages ; i++)
{
image_arr.push("image" + i);
}
currentHolder = 0;
theDepth = 1000;
topY = 65;
_global.imageLoaded = false;
_global.selectedImage = 0;
this.createEmptyMovieClip("thumb_mc", theDepth++ + 10000);
this.createEmptyMovieClip("img0_mc", theDepth++ + 10000);
this.createEmptyMovieClip("img1_mc", theDepth++ + 10000);
this.attachMovie("FScrollPaneSymbol", "thumb_sp", 1000, {_x:25, _y:375});
this.thumb_sp.setSize(1000);
this.thumb_sp.boundingBox_mc._alpha = 0;
this.thumb_sp.setStyleProperty("arrow", 0x88BBFF);
this.thumb_sp.setStyleProperty("scrollTrack", 0x88BBFF);
this.thumb_sp.setStyleProperty("face", 0xFFFFFF);
for (var i = 0; i < image_arr.length; i++)
{
this.thumb_mc.createEmptyMovieClip("thumb" + i + "_mc", theDepth++);
this.thumb_mc.createEmptyMovieClip("thumb" + i + "_tmp_mc", theDepth++);
this.thumb_mc["thumb" + i + "_mc"]._x = 25 + 175 * i;
this.thumb_mc["thumb" + i + "_mc"]._y = 375;
this.thumb_mc["thumb" + i + "_mc"].loadMovie(image_arr[i] + "_tn.jpg");
this.thumb_mc["thumb" + i + "_tmp_mc"].no = i;
this.thumb_mc["thumb" + i + "_tmp_mc"].onEnterFrame = function()
{
var _mc = this._parent["thumb" + this.no + "_mc"];
var l = _mc.getBytesLoaded();
var t = _mc.getBytesTotal();
if ((l >= t) && (t > 1) && (_mc._width > 1))
{
_mc.num = this.no;
_mc.onPress = function()
{
if ((_global.selectedImage != this.num) && (_global.imageLoaded))
{
loadImage(this.num);
}
};
this._parent._parent.thumb_sp.setScrollContent(this._parent);
this._parent._parent.thumb_sp.refreshPane();
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
function loadImage(num)
{
_global.imageLoaded = false;
this["img" + currentHolder + "_mc"]._x = 25;
this["img" + currentHolder + "_mc"]._y = 1000;
this.createEmptyMovieClip("img0_tmp_mc", theDepth++);
this.createEmptyMovieClip("img1_tmp_mc", theDepth++);
this["img" + currentHolder + "_mc"].loadMovie(image_arr[num] + ".jpg");
this["img" + currentHolder + "_tmp_mc"].onEnterFrame = function()
{
var l = this._parent["img" + currentHolder + "_mc"].getBytesLoaded();
var t = this._parent["img" + currentHolder + "_mc"].getBytesTotal();
if ((l >= t) && (t > 1) && (this._parent["img" + currentHolder + "_mc"]._width > 1))
{
this._parent["img" + currentHolder + "_mc"]._alpha = 1;
this._parent["img" + currentHolder + "_mc"]._y = 25;
_global.imageLoaded = true;
_global.selectedImage = num;
delete this.onEnterFrame;
this.removeMovieClip();
}
};
this["img" + ((currentHolder + 1) % 2) + "_tmp_mc"].onEnterFrame = function()
{
if (_global.imageLoaded)
{
if (this._parent["img" + currentHolder + "_mc"]._alpha < 100)
{
this._parent["img" + currentHolder + "_mc"]._alpha += 5;
this._parent["img" + ((currentHolder + 1) % 2) + "_mc"]._alpha -= 20;
}
else
{
this._parent["img" + currentHolder + "_mc"]._alpha = 100;
this._parent["img" + ((currentHolder + 1) % 2) + "_mc"]._alpha = 0;
currentHolder = (currentHolder + 1) % 2;
delete this.onEnterFrame;
this.removeMovieClip();
}
}
};
}
loadImage(_global.selectedImage);
Using Variable Names To Load Movies
Okay in an mc on my main timeline on a speceified keyframe I have the following code:
Code:
loadMovie("scrollout.swf", "_root.left_intro.scrollOutCont");
current_Mov="people";
title="peopleTitle";
nav="people";
Then scrollout loads and plays and on different keyframes in "scrollout" I have the following calls to load movies based on the variables above.
Code:
loadMovie(title + ".swf", "titleCont");
loadMovie("Mov_" + current_Mov + ".swf", "_root.pictCont");
LoadMovie(nav +"_nav.swf", "navCont")
But I get an error message because my variables aren't being passed.
here's the error message
Code:
Error opening URL "file:///documents/%2A%2A6MX/working/.swf"
Error opening URL "file:///documents/%2A%2A6MX/working/Mov_.swf"
Error opening URL "file:///documents/%2A%2A6MX/working/_nav.swf"
So how can I pass variables from my main timeline to my "scollout" movie to ensure that the proper movie gets loaded?
thanks
[F8] Get File Names
i'm new to flash and i need to get the names of files that are in a folder on my hardrive. i have found some code that shoud do this for me but i cant get it working, could anybody tell me what i am missing.
fl.outputPanel.clear()
var folderURI="file:///C|/tools/";
fileList =new Array()
paths="";
function listFile(paths){
var files=[]
var folds=[]
var files=FLfile.listFolder(paths,"files");
for(i=0;i<files.length;i++){
fileList.push(paths+files[i]);
}
var folds=FLfile.listFolder(paths,"directories");
for(var j=0;j<folds.length;j++){
listFile(paths+folds[j]+"/");
//make sure that this stops at a reasonable point.
if (fileList.length > 1000)
return;
}
}
listFile(folderURI);
fl.trace(String(fileList).split(",").join("
"));
File Names
I do a lot of sound file imports. If they contain a number it tells me it couldn't be imported but then imports it just fine.
However, sometimes I don't get the error message; the last time it imported without the message was with a 22 in the name. I haven't had the time to characterize the problem any further.
Is this a bug? A feature? Just me?
Macintosh/Flash 5
John
Load Random Images... Without Knowing The Names.
Hi all,
Im making a game that needs to load external images, but the usual way;
loadMovie("images/"+rnd+".jpg", _root.imageholder);
will not work, as i dont know the names of the images, they could be anything. "bob" "mouse" "tom" "anything"
Is there anyway to do this?
Many thanks.
Archiving All Of The File Names On A CD?
hi all,
i have about 70 CDs of archived material and i'd like to create some kind of searchable "database". all i really want is some program that can log all the file names (and maybe "date saved" information) into some kind of spreadsheet.
CD: FILE NAME: DATE SAVED:
65 my_file.qxd 9/12/01
even if i could just get a program that spit out all the names (and dates) i could drop it myself into an excell spread sheet.
any ideas?
thanks a lot,
josh
Importing File Names
I've been playing around with dyanmic text over the past few weeks.
And now I want to do something a little different and I'm not sure where to start.. Lets say I have a directory full of files.
Is there a way to scan for those filenames and create a list inside flash?
Any ideas?
Searching Through File Names.
Hi I need my flash movie to be able to identify the name of a file and at the push of a button open the next file in line. In otherwords, if a file called text14.txt is currently being read out of and displayed in a scroll bar text box, and the user clicks previous, the movie should unload that file and read out of a file called text13.txt. If the user clicked next it would go back to the 'text14' and if the user clicked previous it would go to 'text12.txt'. I also need a way to remove the Next or Previous button if the next or previous file doens't exist.
Thanks~
Searching Through File Names.
Hi I need my flash movie to be able to identify the name of a file and at the push of a button open the next file in line. In otherwords, if a file called text14.txt is currently being read out of and displayed in a scroll bar text box, and the user clicks previous, the movie should unload that file and read out of a file called text13.txt. If the user clicked next it would go back to the 'text14' and if the user clicked previous it would go to 'text12.txt'. I also need a way to remove the Next or Previous button if the next or previous file doens't exist.
Thanks~
External Mp3 File Names
i need to make an mp3 player that can read file names and display them as the song's info.. without using php.. is this do able?
Encrypting File Names
<script src="filename.js" type="text/javascript"></script>
is there anyway to hide the name of "filename.js"? A way to encrypt it perhaps? I'm having trouble.. as it resides withith the script tag itself.
Anyone?
(sorry this sin't a flash question but it does have to do with a flash site i'm creating..)
|