Can You Make A Variable Out Of A Folder Name?
There is probably a better way to do this but what I want but here's what I'm looking at.
I'm doing an image viewer for an Art gallery and they will feature as many as thirty artists. I created a general image viewer that works to draw all the images and info from a certain folder. What I want to do is just create thirty folders with different names when some one clicks on the artist name it assigns a folder name to certain variable that the image viewer uses to load up the images and the info. Can I do it? Is it a stupid way to do it? What's the better way then?
zago, a.k.a. RobotLOVE <coming soon>
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 01-27-2006, 11:22 PM
View Complete Forum Thread with Replies
Sponsored Links:
Make Folder Download
Please help!
How can I get a folder with a .pdf in it - from a server to a web user's desktop, via flash 5?
using getURL("folder/mydoc.pdf");
just tries to open the pdf, I want it to download to the computer.
My situation is that I've been asked to use a .pdf to show a portfolio online.
problem is - sometimes it takes a while on a dial up connection to actually view the .pdf in the browser - so I would rather find out how to get a folder to dowload from a server to the desktop where a user can open and view the .pdf fassster.
if the Download Manager pops up or something, the viewer will know something is happening.
if someone can help shed some light it would be awesome.
jaso
View Replies !
View Related
Using A Variable To Set Path To Folder?
Hi
I have set two variables
Var 1 is 'imageNumber' (swf name)
Var 2 is 'SectionNumber' (folder name)
I want to use these variable to load in an swf.
The folder it looks into infulenced by 'SectionNumber' var and the movie loaded influenced by the 'imageNumber' var... but I cannot seem to get it to work!
i.e
loadMovie folder["sectionNumber"]/image["imageNumber"]+.swf
Is this possible?
View Replies !
View Related
Parent Folder As Variable?
Is it possible to get the name of the folder a swf resides in as a variable. I have different swfs in many folders with different names and I'd like to use the folder name as a variable for the path of the swf. For example. I have this as:
keyArtLoader_mc.loadMovie("/movies/PTH_SkyCaptain/key_art.jpg");
I would like to make it so I don't have to modify this path with every swf, for example:
keyArtLoader_mc.loadMovie("/movies/"+foldername+"/key_art.jpg");
Is this possible?
View Replies !
View Related
Drop In Pix In Folder To Make Gallery?
Can i make a flash site that that takes pictures ive uploaded that are named 001, 002, 003, etc. and puts them into different movieclips to make a gallery??? I want it so i can just drop the pictures into a folder in my site to load in a gallery. Any help would be GREAT.
oh and btw im trying to create something like this: http://www.collages.net/ConsumerSite...l=aus@bags.com
thanks!
austin
View Replies !
View Related
Can I Use File Names From Some Folder To Specisfly A Value Of A Variable
so here is the thing I want to do:
I've got like 3 variables in my swf file which value tells to the code how many picture there are to load.
So I have like
var totalPics:Number = 5
in my folder images I have 5 pics, but I want to put 3 more so I want to make suck code that will check the total files in the folder and return a value of 8 or check the name of the last file found in the foulder like pic8.swf (I've made it into swf to load in a loader) and to take that letter 8 from it as a value to put in the variable totalPics so it is = 8.
Can u tell me is this possible to make in flash.... where I should read helps or guides .. or just give me a simple example please.
Thank u a lot. If u have any more questions, just ask me..
View Replies !
View Related
.FLV Files : 1-where Are They On Int Temp Folder ? 2-how To Make Flvs Movies ?
Quote:
1-
My question concerns about the video streaming flash files , extension .flv , which cannot be retrieved directly from the IE7 temporary Internet files ;
I´ve turned that folder head over heel but couldn´t find any .flv file as I am used to scavenge the browser cache and do with other extensions ;
What can be found are very long urls like :
(http://youtube.com/player2.swf?hl=en...utube.com/&vid eo_id=IOd_5ZRPmFs&l=179&t=OEgsToPDskJKFyDOavZ1s58f 8VnMwNU7&soff=1&sk=ZklGzv2kMbUjj_Qrv588rwU ) ;
I noticed that a recently visualized flv by means YOUTUBE , 4 days after visualization , when I got back to that URL was played at once , without the need of downloading it again;
That means the file was already somewhere on my disk.
In order to retrieve the files I have to paste URL at retrieve sites like http://kej.tw/flvretriever/ , or use Orbit Downloader ;
I got really curious where are the files and how work such sites .
Quote:
2- where can I find tutorials on how to make flv movies ??
Thank you very much
View Replies !
View Related
Export Variable List & Create Folder Via Flash?
Hey,
Im looking for a way to be able to export a .txt file to the server where the flash file is stored. I am curious if flash 5 is able to do this? I have heard of the fs command "save", will this work?
Also, is it possible to export to a users computer (doubt it for security reasons, but is it?) and if it is also possible to create a folder either on the local or users machine? for example if a user with the name JackB logs in.. i'd like to make a folder called jackb and have variables such as age, name, blah, blah1, blah2 and such after he/she fills them out be saved on my server for future use.
Anywhoo let me know if there is anyting like this to make my job easier otherwise i will have to go throuh a server to do it for me.
Thanks a many!
View Replies !
View Related
How Do I Make A Variable Store A Variable? - Dynamic Input Stuff ...
Hey, I got a little problem which I've usually been able to work around but in this particular case there really isn't another way. I want to give in a variable, say "x+x" and then use it as "x+x" and not as their assigned values ...
my result should be that I can alter the course of a loop like this ... for example:
input in text field = x+x
for(x=0,x<=50,x++){
...
y[x]=x+x
...
}
and if I give in 2*x it would make y[x]=2*x
I have no idea if there's a way in flash to accomplish this but if there is I'd sure like to know, thanks for any help I receive, I'll check back here soon.
View Replies !
View Related
Linking To Files That Are In The Folder That Hold The Folder Where Ur File Is
i'm trying to get my website to run as it would on the internet but not actually on the internet for a college exhibition. most of my website is in one flash doc but a few pages are seperate that hold some media. all the pages are in one folder (except one) and link to each other with this code:
on (release) {
getURL("whateverfile.htm");
}
the other page is my music page, which is in a folder within the folder that all the other pages are in. to get to the music page from the rest of my website, i did this:
on (release) {
getURL("musicfolder/mymusic.htm");
}
if you even know what im talking about how to i get back out of that folder to the main folder with a link to the main website page?
this is what i tried:
on (release) {
getURL("websitefolder/mywebsite.htm");
}
it didnt work.
i'm quite new to action scrpiting, as in i started learning 3 days ago. im more of an animator to be honest. thanks
View Replies !
View Related
Make A Variable = A Variable From A Text Document
I'll try my best to explain this, but it might be easier to see the file itself, I zipped it up and can be found at:
DOWNLOAD ZIP FILE
(the flash file is not pretty, I am building the functionality first)
-----------------------------
The variable it is creating does not call up the variable in the text
document.
I have a textfield called: randomquote
the value for randomquote is being "created" by:
Set Variable: "randomquote" = "q"&VARX2
VARX2 is a random number being generated by:
Set Variable: "VARX2" = Random ( VARX )
VARX is a number being pulled from the text document:
Set Variable: "VARX" = (/:myNumber)
SO, If I hard code randomquote with the value q4 , then the variable q4 from the textdocument is pulled up correctly.
BUT, if randomquote equals q4 (generated from a random number) the variable q4 from the textdocument is not shown, but rather just a simple q4.
View Replies !
View Related
Xml Loads When Path Is To The Same Folder,but Not From The Folder I Need To Load Fro
hey there! here is my problem if anyone is so kind to point me in the right direction:
i have a Part2_Resources.swf that loads assets/resources.swf into a container on it's root timeline. no problem. assets/resources.swf then loads in config.xml for its content. i think the problem comes in relation to my file structure even though I have already made sure that my path is relative to my root swf.
this presentation will be on cdom so i want to keep my main projector file out in the open and then store all the other files into an 'assets' folder. so here is my file structure:
cd / Part2_Resources.swf (will end up being a projector file)
assets folder / resources.swf and config.xml
when i play my resources.swf by itself with the config.xml loaded directly it works perfectly (ie path: configxml.load("config.xml")
but when i play the Part2_Resources.swf, which then loads assets/resources.swf, wich in turn loads config.xml from the assets folder (ie: path to xml file in resources.swf changed to configxml.load("assets/config.xml") the data doesnt load, or isn't visible for some reason. I am not getting any errors, just no content from the xml file.
i can't figure out where im going wrong except that i might need to use absolute paths which i don't know how to do from a cdRom!
maybe it is another problem altogether?? i attached my files if anyone wants to give it a go!
Help please!!!
Much appreciated!!!
View Replies !
View Related
Shared Folder, Resource Folder ...
This is a bit of an open question, but in terms of application development, project development, systems architecture, etc, in what situation would you have a 'Resource Folder' and a 'Shared Folder'. I believe these are common, so where are they used. Anyone heard of these terms before ?
View Replies !
View Related
How Can I 'make' A Variable Name?
I want to be able to something like this:
String(eval("_root." + this._name + "Y")) = this._y;
i.e. I want to make the variable name.
When I compile... it throws an error saying "Left side of assignment operator must be variable or property".
Any help would be appreciated.
Thanks.
Jam
View Replies !
View Related
Can't Make Variable Appear
I have a variable "username" which was set in an input box on a frame on the main timeline.
In one movie clip, I can successfully call it like this:
dynText.text = _root.username
But on a movie clip which sits in a movie clip, in a movie clip, in a movie clip, the exact same method and code returns "undefined", but I thought '_root' takes a value from the top?
Please help me guys.
View Replies !
View Related
Make Mc Name Of A Variable
GO TO PAGE 2
basically i want the new mc to be named the # of num. This code is obviosly not working for me, how do I correct it?
Quote:
onEnterFrame = function () {
if (this._width>loaderMC._width) {
num += 1;
num2 = num-1;
loaderMC.duplicateMovieClip(num, this.getNextHighestDepth());
if (dupX == true) {
num._x = num2._width;
}
if (dupY == true) {
num._y = num2._height;
}
}
};
View Replies !
View Related
Can You Make A Variable Name Variable?
Hello,
I just have a little question. Can you create variables with a variable name.
I've tried this:
chapter add chapterNo = "loaded";
But that doesn't work.
So I need to create a variable "chapterX", and the X should be the number of the specific loaded chapter.
I need this, because I use the same script over and over again.
Thx.
View Replies !
View Related
How To Make A Variable Within A Variable
Please help me with this script. I have for question. Instead of having to make every question with if statements I made loop. I know the logic is correct. But can someone help me with the syntax. I can't get it to work cause it reads it as whether variable question is equal to "a". THANKS
for (i=0;i<4;i++){
question = "q" + i
if ( question == "a") {
counta = counta + 1
}
if ( question =="b") {
countb = countb + 1
}
if ( question =="c") {
countc = countc + 1
}
if ( question =="d") {
countd = countd + 1
}
}
View Replies !
View Related
How To Make A Variable Variable
Thank you for trying to help. It is quite hard to search flashkit for "varaible variables".
I have a text box that has closed captioning in it. I want to call the text box variable "cc" and I want it to change for each scene. I have my text for the closed captioning in an external txt file. Example - cc1=Text for first scene
I then have a function at the beginning of each scene that takes the scene number (x) and adds it to "cc", something like this:
function newsec (x) {
here = x;
cc = "cc"+x;
}
The text box then displays "cc1". I want to assign the variable cc1 to the variable cc.
What am I doing wrong?
Oh yeah, flash 5
View Replies !
View Related
How To Make A Variable Value A Variable?
I was wondering if you could make a value inside of a variable a variable?
Is the following possible? If so am I doing it correctly?
Code:
var myArray:Array = new Array(1);
myArray[0] = "newVar";
// In theory this would be:
// var newVar:String = "New Value";
var myArray[0]:String = "New Value";
// Should output "New Value"
trace(newVar);
View Replies !
View Related
Make Color Variable
hi
i need to make a variable for color in each of the same formats below, any ideas??? thanks!
xpos = Number(locationArray.shift());
ypos = Number(locationArray.shift());
rotation = Number(locationArray.shift());
height = Number(locationArray.shift());
width = Number(locationArray.shift());
_root.attachMovie(mc, mc+j, j);
_root[mc+j]._x = xpos;
_root[mc+j]._y = ypos;
_root[mc+j]._rotation = rotation;
_root[mc+j]._height = height;
_root[mc+j]._width = width;
justin
View Replies !
View Related
How Do I Make A Variable Global?
I have a variable that works just fine when I reference it from the MC it is in. But when I reference it from a diferent MC it doesn't load.
So I think it has something to do with variable scope.
What are the steps to making a variable global?
thanks
View Replies !
View Related
How To Make Variable Scenesize
ive got a movie (movie1)which i want to load in to the movie (movie2) in a movieclip (MC)
i use this command in movie2
loadmoviel ("movie1.swf", "_root.MC");
but movie1 is far to huge (dimensions)... how can i tell movie1 to be lets say 75% of windowsize in x-axis and 80% of windowsize in y-axis?
View Replies !
View Related
Help Make A Event By The Variable
I know how to attach 20 movieclips into the screen. The problem is if I'd like to make a event by the variable,how can I do? Please take a look at my source code,
function made_btn(){
for(i=0; i<=20; i++){
point_mc.attachMovie("mark","btn"+i,i);
}
}
function callEvent(num){
eval("point_mc.btn"+num).gotoAndStop("play");
}
point_mc.btn1.onReslease=function(){
callEvent("1");
}
point_mc.btn2.onReslease=function(){
callEvent("2");
}
point_mc.btn3.onReslease=function(){
callEvent("3");
}
.................................
That works but I don't want to write a long source code. Therefore,please help me and point me in the right direction. Thanks!code
View Replies !
View Related
How Do I Make This Variable Work?
I want to have a button that sets a variable. Then, I want to send another movie clip to a certain frame.
How do I say gotoandStop (myVariable) ?????
I want to set the variable so that it is set to a number, like, 3,4, 5, etc, and then just have the code say gotoandStop to my variable?
How would I do this? What would the code look like?
Thanks.
View Replies !
View Related
Can I Make A Dynamic Variable Name?
(for people who have noticed i've posted 3 topics recently, im sorry i need the help atm, and i do normally spend some time on here after asking questions, answering them so im not just milking the help)
I want to duplicate a movieclip which creates a variable based on its co-ordinates.
eg.
Code:
onClipEvent (load) {
_root.this._x+"-"+this._y = 1;
}
Any ideas??? thanks
View Replies !
View Related
Make A Php Variable Work In AS
Hi,
I'm trying to make a variable from a value from php, and declare it in actionsctipt.
Then this variable will be used in a condition
here is my code:
Code:
var objRecebe:LoadVars = new LoadVars();
objRecebe.onLoad = function():Void {
name_txt.text = objRecebe.investi;
//variable
home = objRecebe.investi1;
}
if (home == "qw") {
gotoAndPlay(26);
}
objRecebe.load("http://localhost/home/home.php");
thanks
View Replies !
View Related
I Don't Get How To Make This Variable Work?
I want to have a button that sets a variable. Then, I want to send another movie clip to a certain frame.
How do I say gotoandStop (myVariable) ?????
I want to set the variable so that it is set to a number, like, 3,4, 5, etc, and then just have the code say gotoandStop to my variable?
How would I do this? What would the code look like?
Thanks.
View Replies !
View Related
Make A Variable A Constant?
I have a bunch of MCs that I want to each have the a function assigned:
for (i=0; i<7; i++) {
this["genericMC_" + i].onPress = function() {
doThatThingYouDo(i);
}
}
Only thing is that I want the value of "i" at the time it runs to be assigned. So for "genericMC_1" I want the onPress function to be doThatThingYouDo(1), for "genericMC_3" I want the onPress function to be doThatThingYouDo(3), etc. Instead, they all get doThatThingYouDo(7).
Yuck.
Any suggestions?
View Replies !
View Related
Need To Make A Variable A Number
Hello.
I am bringing in a variable from a text file - the number 28 - and when I use the variable in my code, the flash doesn't work. When I replace it with the number 28 in the flash, it works. Is there a way I can turn a variable into a digit that the flash will see as a number and not just a string? I am not sure if I explained it well.
Here's what it looks like:
This works...
if (_level0.section eq "fashion") {
num_picts = 28;
}
This does not work...
if (_level0.section eq "fashion") {
num_picts = _level0.mynumber;
}
Is there a way to make my root variable work as a number correctly?
Any help is greatly appreciated.
Anthony
View Replies !
View Related
Dynamic Variable - How Do I Make It Fixed?
I am sure I am missing something completely obvious here but here is the problem I have.
I have a red dot (movie clip) that moves randomly around the screen. when the user hits a key, I want it to store the x and y variable of the dot into a location.
So far this is fine, but here is where it goes wrong.
I use the following lines to store the variables and jump to the next frame.
_root.yfinal=_root.rotatedobject._y;
_root.xfinal=_root.rotatedobject._x;
_root.gotoAndStop(2);
And then on the Second Frame I just display using dynamic text fields where the x and y pos of the dot was when they hit the keyboard.
BUT in this second frame, I dont have the red dot movie clip anymore and I think this is where it is going wrong.
I believe that _root.yfinal is storing whatever _root.rotatedobject._y is SO when I go to the next frame and it isnt there, it doesnt display anything since it cant find rotatedobject.
How do I get a 'snapshot' of the x and y position and store it in a variable that can be used anywhere and doesnt keep changing.
If you need me to elaborate or anything let me know and I'll explain further.
Cheers.
View Replies !
View Related
Make Visible Based On Variable
In short, I have a variable called dim_01 that is set at 0 until a person "visits" a certain frame. Once they hit that frame, dim_01 is set = to 1.
On the main page, I want to make a graphic visible or hidden based on the value of dim_01 (0 = hidden and 1 = visible).
I am using Flash MX and have limited exposure to action script so feel free to spell things out...talk real slow.... and maybe even a little bit louder... so I'll be sure to understand....
Thanks!
View Replies !
View Related
Make Flash See Text As A Variable?
I have several movie clips loading external jpgs.
I am feeding the image names into the flash with a query ?img1=whatever.jpg&img2=whater2.jpg etc
I have this on my _root:
current = 1
pic = "img"+current
and this inside the clips:
load.loadMovie(_root.pic);
_root.current++
My problem is that is trying to load "img1" rather than the value of img1. How do I let it know that that is a variable name?
View Replies !
View Related
Trying To Make Transissions Between Pages. Need Variable?
hello. I want to make smooth transissions between pages, so when a link is clicked, the page currently loaded goes out in a cool way, then the new goes in a cool way.
Please tell me if my theory on how to do this is correct:
For scene 1, I have frames 1-2 for preloads etc and frame 3 for loading the homepage
Now i set frame 4 for lets say "contacts page" and frame 5 for "links page"
In frames 4 and 5 is a movieclip, and inside that movieclip is the releveant page (links and contacts).
Inside these page movieclips, I have the first bunch of frames making an animation, then the page stays, then now i make it so that when a button in the MAIN page page of scene 1 is clicked, it will play the rest of the movieclip loaded of the page (which will then animate out) and then on the last frame of that little movieclip after it has animated i should send it to the beginning of frame 5 (the link page).
How do i tell the clip where to go after it has run? Because it is different depending what button has pressed...
DO i use a variable value? So if i click Links it sets a variable to 5, so i then put gotoAndPlay value of the variable
so if my theory is correct, and a healthy way of dealing between pages. these are my questions:
How do i define the variable
How do i then change the value of that variable
How do i READ from that variable (i.e. gotoandplay valueofthevariable)
Sorry for the long post
thanks a lot for help given
regards
UKguy
View Replies !
View Related
Adding A Number To Make A Variable
Hello,
I've got a small problem and its annoying me because i dont know what to do!
ActionScript Code:
var xmlName1 = "number1"
var xmlName2 = "number2"
var xmlName3 = "number3"
var NameNumber = 2
something_txt.text = xmlName+NameNumber
instead of reading out, "number2" i get NaN, i know why, just i dont know what else to do to make it work.
Can somebody help!!!!!!!!!!
Thankyou
View Replies !
View Related
|