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








Loading External Text That's Not A Variable


Hi All. This is my first post. I'm working on a project that involves pulling a number from a text file on a remote server. I am familiar with the intricacies of loadVars and loadVariables, but in this particular case, the text file only contains a number. It is not preceeded by a variable name or anything like that. It is just: 40. Is there a way to pull this into flash without a variable name so I can display it in a dynamic text field?

Thanks,
Haig




KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 12-23-2004, 03:37 PM


View Complete Forum Thread with Replies

Sponsored Links:

Loading External Text To Variable
code: loadText = new LoadVars();
i = int(Math.random()*20+1);
loadText.load(i+".txt");
j = 0;
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.htmlText = this.myText;
j = this.answer;
};

this code above will load random questions (named q1.txt - q20.txt) into the text area. the questions are identified by the variable "myText". also in the text files are the answers. the answers are identified by the variable "answers". a sample of the text file q1.txt is as below:

code: myText=
<font face="Verdana" size="10" color="#FF0000">
<b>Digestion</b></font><font face="Verdana" size="10">
Which of the following are enzymes found in the stomach? <br> 1) Amylase 2) Maltase <br> 3) Pepsin 4) Sucrase</font>
answer=3

i am able to successfully load myText into the text area ("scroller"). however, i am not able to assign the "answer" to the local variable "j". (which i will use later on for quiz answer checking).

is there anyway i am able to load the answer into variable j?

can someone tell me how am i supposed to compare the variable j? what i mean is "j" is either 1/2/3/4. do i type the code as below? code: if (j==="1") {some animation}

thanks a bunch!

View Replies !    View Related
Loading External Text That's Not A Variable
Hi All. This is my first post. I'm working on a project that involves pulling a number from a text file on a remote server. I am familiar with the intricacies of loadVars and loadVariables, but in this particular case, the text file only contains a number. It is not preceeded by a variable name or anything like that. It is just: 40. Is there a way to pull this into flash without a variable name so I can display it in a dynamic text field?

Thanks,
Haig

View Replies !    View Related
Loading External Text Without Variable Name In Text File
i need to be able to load text from a file and put it in a dynamic text box but i cannot modify the text file to put in a variable name

ie the text file cannot contain variablename=1234
but rather must simply contain 1234

Is it possible to load some text without a variable name indicated in the file using flash mx 2004 and, if so, how would one do this?

View Replies !    View Related
Undefined Variable Loading External Text
Still climbing the mountain learning AS; no doubt there is a simple answer to this question (I have tried unsuccessfully to find it in extant threads as well as between my ears).

Trying to augment the Kirupa tutorial "ActionScript Text Animation" (http://www.kirupa.com/developer/acti..._animation.htm)
to take an external text file. When I switch out the line:
text = "There is only one..."
with:
myLoadVar = new LoadVars ();
myLoadVar.load("davetextdoc.txt")
myLoadVar.onLoad = function (success){
if (success == true) {
output.variable = "text"
output.text=myLoadVar.text;
}
}
I get the word "undefined" repeatedly loading itself. The text file is properly formatted(text=dave's text here...) I've tried untold permutations to self-solve. Help is appreciated.

View Replies !    View Related
Undefined Variable Loading External Text
Still climbing the mountain learning AS; no doubt there is a simple answer to this question (I have tried unsuccessfully to find it in extant threads as well as between my ears).

Trying to augment the Kirupa tutorial "ActionScript Text Animation" (http://www.kirupa.com/developer/acti..._animation.htm)
to take an external text file. When I switch out the line:
text = "There is only one..."
with:
myLoadVar = new LoadVars ();
myLoadVar.load("davetextdoc.txt")
myLoadVar.onLoad = function (success){
if (success == true) {
output.variable = "text"
output.text=myLoadVar.text;
}
}
I get the word "undefined" repeatedly loading itself. The text file is properly formatted(text=dave's text here...) I've tried untold permutations to self-solve. Help is appreciated.

View Replies !    View Related
[f8] Loading A External Jpg Using A Variable?
Hi,

I'm trying to load external jpg images, however I only want to specify one at a time using a text file, which I have named data.txt.

However, I cannot seem to get the syntax correct is AS2.0 - I keep getting operand errors.

Here's what I have..


PHP Code:



image_mc.loadMovie("fals_back_"+ "/" + (var fals_num) + "/" +".jpg");




What I want is if the value fals_num = 01 then import image 01, etc - I am controlling this variable within a data.txt file. Can anyone tell me where I'm going wrong?

Thanks.

View Replies !    View Related
Loading An External Variable
Hello all,

I am having a little difficulty loading an external variable into my flash movie.

The principle of the movie is to load some XML data and display expected data in loop. This all works fine and as it should.

My problem starts when I remove the internal variable used for testing and try and insert the same variable externally, as this will be changing depending upon the teams displays. I have tried adding in the variable like

<param name="flashVars" value="teamName=teamA" />
and
<param name="movie" value="flash/plasma.swf?teamName=teamA" />

And then tried using a variety of methods in AS3 to display the name. Just getting it to trace "teamA" would be all I need, but it is having none of it.

Any help would be greatly appreciated.

Kind Regards

Tim





























Edited: 07/10/2008 at 07:38:57 AM by timbronze

View Replies !    View Related
Loading Variable Into External Mc
Here's what I'm trying to go for:

I have a base movie where three buttons are stored. when one of them is clicked I need some variables to be sent to the new external mc.

first variable is the title of the section, second is a brief description of the section and the third is the name of the movieclip to load.

on(release) {
empty.loadMovie("section.swf");
empty.test.text = "section I";
empty.desc.text = "blahlkl;aksdjf;laksjdf;lskjdfa;lskdjf";
empty.mc = "base.swf";
}

test is the name of the field. I get nothing when trying this. Any help would be greatly appreciated.

View Replies !    View Related
Loading Variable Into External Mc
Here's what I'm trying to go for:

I have a base movie where three buttons are stored. when one of them is clicked I need some variables to be sent to the new external mc.

first variable is the title of the section, second is a brief description of the section and the third is the name of the movieclip to load.

on(release) {
empty.loadMovie("section.swf");
empty.test.text = "section I";
empty.desc.text = "blahlkl;aksdjf;laksjdf;lskjdfa;lskdjf";
empty.mc = "base.swf";
}

test is the name of the field. I get nothing when trying this. Any help would be greatly appreciated.

View Replies !    View Related
Loading An External Variable Into A ListBox
When I use the following Action Script to pull the variable 'leaguename', which has the value "flashtest", from my ASP page and insert the value into my ListBox called 'playerlist', the text '_level0.leaguename' is written in the ListBox instead of 'flashtest'.

myData = new LoadVars();
myData.onLoad = function() {
leaguename.text = this.leaguename;
};
myData.load("livedraftvar.asp");

playerlist.addItem(leaguename);


The output from my ASP page is: &leaguename=flashtest&

What am I doing wrong? Everything looks right to me.

View Replies !    View Related
Loading A Variable From An External .txt To A Textfield
How do i load a variable from an external .txt to a textfield?


( i know this is somewhere in the forums but i cant find it, i have been looking... truly =))

View Replies !    View Related
External Swf Loading A Variable From The Swf That Calls It?
I'd like to know how to access a variable from within an external swf that has been passed in the URL upon calling the external swf itself.
For example, I could pass a variable to a external.swf as follows:

this.createEmptyMovieClip(“mExternalSWF”,this.getNextHighestDepth());
var mlSWFLoader:MovieClipLoader = new MovieClipLoader();
mlSWFLoader.loadClip(“external.swf?varToExt=20”, mExternalSWF);

How do I load varToExt from within external.swf?
Thanks!

Andrew

View Replies !    View Related
FMX-loading External Variable Into Array
Hi!
here it goes...

how can you load an external variable (let's say in a text file) into an array in flash?

let's assume my text file says something like this:

names=james,john,patrick, jessica, veronica, patty

First of all..what is the syntax for such a list...can it be done in one variable?

The other thing is...how do you assign those values into an array:
nameList=[james,patrick, jessica,...]

(So how would I split that variable into different array indexes?)

the other question related to this is...what if the names come with phones?

I guess that all this would make more sense with an asp and a database file.

I'm just wondering if there is a more simple way to do this.

Any suggestions welcome. thanks!!

View Replies !    View Related
Loading External Variable From A File
Hi, Im having a problem that is driving me crazy, the thing is that I have made a Movie that loads variables from diferent files, the files are inside some subfolders, Im sure that the targeting is correct and that the script works coz when I use it on my pc it works great, the problem appears when I upload it to an internet server and I want to see it.The movies loads perfectly but the external text variables doesnt.

Im using a LoadVars() object and its methods to load the data.
the folders on the server are the same as in my PC.

please, ANY suggestions will be appreciated.

the URL is:
http://polacofede.en.eresmas.com
(you will see that the data is not loading when you select a "final product button" or when you select an item under "technology" )




(I know that its quite awful and choppy but I wanted to exercise some AS)
dont select : voodoo5, voodoo3, voodoo4, About, coz they arent uploaded yet.

View Replies !    View Related
External Loading Variable, Know When Loaded ?
Hi everybody,

Allright, here i go.

I load variables from a txt file. This variable control th number of mc i need to duplicate.

How can flash stay on frame 1, for exemple, if the variables contained in the txt file is not loaded and go on frame 2 is it is loaded ?

Is there a function to when a txt file is loaded ???

View Replies !    View Related
Loading An External Variable Into A ListBox
When I use the following Action Script to pull the variable 'leaguename', which has the value "flashtest", from my ASP page and insert the value into my ListBox called 'playerlist', the text '_level0.leaguename' is written in the ListBox instead of 'flashtest'.

myData = new LoadVars();
myData.onLoad = function() {
leaguename.text = this.leaguename;
};
myData.load("livedraftvar.asp");

playerlist.addItem(leaguename);


The output from my ASP page is: &leaguename=flashtest&

What am I doing wrong? Everything looks right to me.

View Replies !    View Related
Loading A Single Variable From An External File
Hello,

I have a question on loading Variables. I have a database-similar ( large ) File
with many thousands of variables stored in it ( using the typical flash format ).
( company=Macromedia&address=600 .. and so on ). Is it possible to read only
a couple of the variables without loading the whole file( because it is really big,
and certainly would take a long time to load )? I think i need something like the
Java FileInputStream. ( Maybe using XML format ? )
[I also believe that i could solve this problem if i would be able to launch a java
Application from the swf, is this possible? ]

thank you for any help

-i

View Replies !    View Related
Loading Variable From External File Not Working
Hi
I'm having trouble with this script. I have an external text file, from which all of the text on the page is loaded. I also have a series of thumbnails, but I need to have different numbers on each page, so I figured I'd put the number of thumbnails into the text file too and then run a loop to create the thumbnails and buttons dynamically.
The loop works fine, until I try to use the value I have loaded from the text file. I think it is something to do with it being in a separate function, but I have tried making it _global.counter, I have tried putting the whole for() loop inside the myData.onLoad function. Basically, I have tried everything I can think of and still the loop does not run when the counter value is specified externally.
Please help!!!!
Thanks


PHP Code:



myData = new LoadVars();
myData.load("blurb.txt");

//load external text
myData.onLoad = function(){
    sectorName.html = true;
    sectorName.htmlText = this.sector;
    mainText.html = true;
    mainText.htmlText = this.main;
    titleText.html = true;
    titleText.htmlText = this.title;
    link_txt.html = true;
    link_txt.htmlText = this.links;
    counter = this.images;
    trace(counter);
    my_color = new Color(colourfill);
    my_color.setRGB(this.colour);    
    _global.oldimage = 1;
}

for (i=2; i<counter; i++) {
    trace("counter = "+counter);
    //get number of button and assign thumbnumber so that we can put the image presently in the container back into it
    curr_button = _root.createEmptyMovieClip("thumbbutton"+[i],i+1000).attachMovie("whitebutton","button"+[i], i+1100);
    curr_image = _root.createEmptyMovieClip("thumb"+[i],i+500);
    //set position of current button
    curr_button._y = curr_image._y = 90;
    curr_button._x = curr_image._x = 440+((i-2)*110);
    my_mc.loadClip("t"+[i]+".jpg", curr_image);
    trace("i = "+i);
    curr_button.thumbnumber = i;
    curr_button.newimage = i;
    curr_button.useHandCursor = true;
    curr_button.onPress = function(){
        //assign the number from the file we want to appear to be _global.newimage
        _global.newimage = this.newimage;
        // set initial value to be the oldimage so that links update for next time
        this.newimage = _global.oldimage;
        // load image into container
        my_mc.loadClip(_global.newimage+".jpg", "container");
        //load image into thumbnails
        my_mc.loadClip("t"+_global.oldimage+".jpg", "thumb"+this.thumbnumber);
        //set _global.oldimage - image in container so that next click works
        _global.oldimage = _global.newimage;
    };
};

//default image
    my_mc.loadClip("1.jpg", "container"); 

View Replies !    View Related
Loading A Variable Number Of External Jpgs
I'm trying to brainstorm a way to have flash preload a slideshow with a variable number of images in a directory -- there could be 1 image, or 100 images -- shouldn't matter.

Is there a way for flash to 'count' the number of images in a directory, then use that number for a loadMovie() loop?

Or, can it detect when an imaged doesn't exist and stop the loading a the 'image doesn't exist' point?

Any quick code samples would be great.

Thanks!

View Replies !    View Related
Load External Text Into Variable? (not For Display In Text Box)
Hello,

I've having a hard time getting this to work, and I hope someone can help. I'm trying to load a value from an external text file into a variable named Q1A. Here's my text file:

&A1=correct

Basically, I'm placing quiz questions, four possible answers and whether the answers are correct/incorrect all in a text file. I'd like to make a 'submit' button that checks whether the answer is correct/incorrect (based on what's been defined in the text file). This lets me use the TXT to update all questions/answers, and it also lets me vary which statement (1st, 2nd, 3rd, 4th) will be the correct answer.

I can load external text into text fields just fine, but how do I use loadvars to define the value of a variable that I'd like to test? Any help would be greatly appreciated. Thank you.

View Replies !    View Related
Loading External Flash Files Using A Variable As Filename
ok I have made a flash file and what I want it to do is take a variable like path and use that to load the movie. For example the url will be "www.example.com/1.swf?path=2.swf" that will set path to the file I want to load into my movie how do I use loadMovie() to load the file using that variable. also once I load the movie how do I place it in my flash file. and how do I set where it goes ect.



Max

View Replies !    View Related
Loading External Txt File And Calculating The Size Of The Variable
I made a cd-rom which loads external text-files. This works fine.
Now I need to make (starting from the cd-rom fla-file) a popup window for a website. I know these are two differtent media and it's not an ideal way of working, but that's the way it is...
The problem is that the scrollbar linked to the textfield doesn't always appear.
I let the scrollbar appear or disappear in this way;

if (textmain.maxscroll eq textmain.scroll) {
setProperty("_root.scrollbalk", _visible, false);
}
if (textmain.maxscroll ne textmain.scroll) {
setProperty("_root.scrollbalk", _visible, true);
}
stop();

The problem is that the variable textmain isn't (completely) loaded at the time of this script. Is there a way to check howmany bytes are loaded from a variable in an external textfile? (eg. variable textmain in file txt/file.txt)

View Replies !    View Related
Loading External Variables Dynamically, With Flash Detecting Variable Changes?
I'm trying to make a flash file which starts loading and playing a movie when an external variable is changed. So far I have come to this solution, but it doesn't work in IE, only Firefox.

Sorry about some of the norwegian variable names...

Code:
extVariabler = new LoadVars();
extVariabler.onLoad = function() {
tekstBoks.text = this.myVariable;
};

//Ready to start loading first time:
startVarSjekk = true;

//Every 1 second see if the variable file is ready loaded,
//and load it again if it is:
intervallSek = setInterval(sjekkVar, 1000);
function sjekkVar() {

if (startVarSjekk == true) {
startVarSjekk = false;
extVariabler.load("variabler.txt");
antallSjekk++;
trace("Variables are loading...");

} else if (extVariabler.loaded) {
startVarSjekk = true;
trace("Variables loaded!");
}
}
The problem here is that IE puts my variable file in its temporary internet files. So even if the AC is set to load the variables several times, IE just uses its temp file.

What I want is to make changes on the server and se the result happen client side in a flash file without reloading the browser.

View Replies !    View Related
External Text Variable
slight dilemma-

How do I bring in a variable from say, a text file, into a flashtyper movie so that the value of the variable is the text it displays? My actionscript was

loadVariablesNum ("mode.txt", 0);

the text file has

&text=Content

The movie only displays the "C" in Content, and stops!!

View Replies !    View Related
External Text Variable
Hi,

I have two text fields that are displaying dynamic text when a function is called. The thing is that when I click a button it does not always have two variables to display. Some have two some only have one variable.

My function is this

function buttonRollover(me) {
_root.state = eval(me+"_name");
_root.evotes = eval(me+"_evotes");
}

So my issue is that sometimes evotes may not be a variable I need for a specific button rollover but state does have a variable specified.

I understand what is going on, flash does not see a variable present so it fails by displaying undefined. What I would like, though, is to have nothing appear if there is no variable present. Can this be done, can a dynamic text box display nothing if there is no variable defined for it?

Thanks

-brian

View Replies !    View Related
How To Load External Text And Put It In A Variable
how can i load some text from a text document into a variable.

View Replies !    View Related
Changing External Text To Same Variable
I am creating a course which has several lessons. The top frame of the web course is a flash movie that will show the name of the current lesson.

I want to use one flash movie and possibly one text file to swap in the correct lesson name. In other words, I will have a file which looks like this

lesson1 = this is lesson 1&lesson2=this is lesson 2 . . . and so on

What is the most appropriate way to do this?
I know how to use loadVariables to get text into a movie but that's a one-to-one relationship.

View Replies !    View Related
Changing External Text To Same Variable
I am creating a course which has several lessons. The top frame of the web course is a flash movie that will show the name of the current lesson.

I want to use one flash movie and possibly one text file to swap in the correct lesson name. In other words, I will have a file which looks like this

lesson1 = this is lesson 1&lesson2=this is lesson 2 . . . and so on

What is the most appropriate way to do this?
I know how to use loadVariables to get text into a movie but that's a one-to-one relationship.

View Replies !    View Related
Text From External .txt File Via Variable - Help
i want to load text from an external textfile into a dynamic textfield using variables inside the textfield (&example = text).
i already have the code for that

_root.bgtext.textfeld.htmlText = this.example;

which works.

but instead of "example" i want to use a variable from my flash movie

>> inside .txt file:<<
&text01 = text

>> in action script: <<
myvariable = "text01";

_root.bgtext.textfeld.htmlText = this.myvariable;

... which doesn't work. does anyone know how to send variables (string) to external textfiles?

thx!
eve

View Replies !    View Related
Combining External SWF Loading With Dynamically Loading Text Tutorial
I am trying to combine the external SWF loading tutorial with the dynamic text loading (via XML and CSS) tutorial.

Everything loads fine, except the stylesheet is not applied to the text. It must have something to do with the swf being externally loaded, correct?

Any ideas how to fix this?

Here is the code for Frame 1 of the externally loaded swf.


Code:
//init TextArea component
myText.html = true;
myText.wordWrap = true;
myText.multiline = true;
myText.label.condenseWhite=true;

//load css
kungFuStyle = new TextField.StyleSheet();
kungFuStyle.load("example.css");
myText.styleSheet = kungFuStyle;

//load in XML
kungFuContent = new XML();
kungFuContent.ignoreWhite = true;
kungFuContent.load("example.xml");
kungFuContent.onLoad = function(success)
{
if(success)
{
myText.text = kungFuContent;
}
}

midframe=10
All the files are in the same dir.

View Replies !    View Related
Help Problems Loading External Text And Loading The Movie Into The Explorer
Hola a todos!

I have some troubles with my movies. I'll explain.
(Sorry for my poor English - I'm Spanish!)
I'm developing a website for a Real State Agency in Spain. My idea is make it enterely with Flash, but It's the first time I face Flash. I've found in the tutorials of kirupa.com the greatest help! But, still that, I need more help!

My first problem comes when loading the .swf into the explorer. I made a simple .html file that calls the .swf file to be loaded. The explorer says it's loaded, but I have to press the "Reload" button to see the movie. Can you say me why?!!!!

My second problem... well. I'll need a few minuts to explain it!

I have created a main scene. Inside the main scene I load the movies of the different sections of the site. This new movies loaded onto the main movie contain texts from external .txt files. There's no problem with the texts that are just a few words, as in the section "Acerca de". But when I need a bar to show the whole text I find that the bar doesn't work in the first time that the movie is loaded, and you have to click again in the section to access the whole text, I mean, to make the bar work. Have I explain myself?

Well. I think you should visit the site to see my problems.
Is this: http://www.wk-inmobiliaria.com/FLASH

This website is, of course, incomplete. I'm still working on it.

Could someone help me????

---- Help me Obi Wan: You're my only hope!!!!

Thanks a Lot.



Raul.

View Replies !    View Related
Combining External SWF Loading With Dynamically Loading Text Tutorial
I am trying to combine the external SWF loading tutorial with the dynamic text loading (via XML and CSS) tutorial.

Everything loads fine, except the stylesheet is not applied to the text. It must have something to do with the swf being externally loaded, correct?

Any ideas how to fix this?

Here is the code for Frame 1 of the externally loaded swf.


Code:
//init TextArea component
myText.html = true;
myText.wordWrap = true;
myText.multiline = true;
myText.label.condenseWhite=true;

//load css
kungFuStyle = new TextField.StyleSheet();
kungFuStyle.load("example.css");
myText.styleSheet = kungFuStyle;

//load in XML
kungFuContent = new XML();
kungFuContent.ignoreWhite = true;
kungFuContent.load("example.xml");
kungFuContent.onLoad = function(success)
{
if(success)
{
myText.text = kungFuContent;
}
}

midframe=10
All the files are in the same dir.

View Replies !    View Related
Load Variable From External Text File
I would like to load a variable from an external file.
I have been able to successfully populate dynamic text
with external file, but not a not text field variable.

Please see the following code. I would like to populate
the variable vernacular from an external file. That way
it can be changed without a regen.

Thanks for the help in advance.

Shane

// que of fill requests
fillRequests = new Array();

// word sets
// emotional words

vernacular = "Abandoned Abhor Ablaze Abominable Abrasive Absorbed Absurd Abused Abusive Accommodating Acknowledged Acquiescent Acrimonious Admonished Adoration Adored Adventurous Adverse Affected Affectionate Afflicted Affronted Afraid Aggravated Aggressive Agitated Agonized Agony Agreeable Airy Awkward Alienated Alive Alluring Alone Altruistic Ambiguous Ambitious Amenable Amorous Amused Anger Angry Anguished Animated Annoyed Anxiety Anxious Apathy Appealing Appeasing Appetizing Appreciation Apprehensive Ardent Arduous Argumentative Armored Aroused Arrogant Astounded Attentive Avoidance Bemused Betrayed Bewildered Bewitched *****y Bitter Blah Blessed Blissful Blunt Boiling Bored Bothered Brave Breathless Breezy Bright Broken Bruised Buoyant Burdensome Bursting Callous Calm Captivated Captivating Careless Caring Celebrating Chagrined Charmed Charming Chastened Cheerful Cherishing Clandestine Clear Cold Collected Comatose Comfortable Compassion Competitive Complacent Composed Concerned Confused Congenial Content Cool Copasetic Coping Cordial Cornered Creative Crucified Crushed Cursed Cushy Cut down Dainty Defensive Dejected Delectable Delicate Delighted Demure Depressed Desirable Desired Desolate Despair Despondent Devoted Devoured Discomfort Discontented Disgust Dismal Dispassionate Displeased Disregard Disregarding Distracted Distressed Disturbed Doldrums Doomed Droopy Dull Eager Earnest Easy Ecstatic Electric Enchanted Endearing Enduring Engaging Enjoy Enlivened Enraged Enraptured Enthused Enthusiastic Enticing Even tempered Exacerbated Exasperated Excited Exciting Exultation Fanatical Fascinated Fascinating Fear Fearful Fearing Fervent Fervor Fiery Flared up Flattering Flushed Flustered Fluttery Frantic Fretful Frigid Frisky Frustration Full Fuming Fun Funny Furious Galvanized Gay Genial Giggly Glad Glee Gleeful Gloom Gloomy Glowing Gnawing Good Goodness Grateful Gratified Gratitude Grave Grief Grieving Grim Griped Grounded Gushing Gusto Haggard Halfhearted Hardened Harsh Having Fun Hearty Heavy Hectic Hilarious Hopeful Hopeful Horrified Humorous Hurt Hysterical Impetuous Imposing Impressed Impressionable Impulsive Inattentive Indulged Indulgent Inept Infelicitous Inflexible Infuriated Insatiable Insensitive Insouciant Inspired Interested Intimidated Intrigued Inviting Irrepressible Irritated Irritation Jaunty Jealous Jittery Jolly Jovial Joy Joyful Jubilation Languid Languish Laugh Laughingly Lethargic Light hearted Lively Loathe Lonely Lonesome Lost Love Loved Loving Lukewarm Luxurious Mad Manic Martyr Meddlesome Melancholy Melodramatic Merry Mindful Mindless Mirthful Miserable Moderate Mopy Mortified Moved Nervous Nonchalant Not caring Numb Optimistic Overflowing Pain Panic Paralyzed Passionate Passive Patient Perky Perplexed Perturbation Perturbed Petrified Pine Piquant Pitied Placid Plagued Pleasant Pleasing Pleasurable Pleasured Pressured Protected Proud Provocative Provoked Quarrelsome Quenched Quiet Quivering Quivery Radiant Rash Raving Ravished Ravishing Ready to burst Receptive Reckless Reconciled Refreshed Rejected Rejection Rejoice Relish Repressed Repugnant Resentful Resentment Resigned Resistant Restrained Restraint Revived Ridiculous Romantic Rueful Safe Satiated Satisfaction Satisfied Scared Secretive Secure Sedate Seduced Seductive Seething Selfish Sensational Sensual Sentimental Serious Shaken Shielded Shocked Shutter Shy Silly Simmering Sincere Sinking Smug Snug Sober Sobering Soft Solemn Somber Sore Sorrow Sorrowful Sour Sparkling Spastic Spicy Spirited Spry Stoic Stranded Stressed Stricken Stung Stunned Subdued Subjugated Suffering Sunny Supportive Surrender Susceptible Suspended Sweet Sympathy Tame Tantalizing Tantrumy Temperate Tender Threatened Thrilled Tickled Tight Timid Tingly Tolerant Tormented Tortured Touched Tranquil Transported Trepidation Troubled Twitchy Uncomfortable Unconcerned Unconscious Uncontrollable Under pressure Undone Unfeeling Unhappy Unimpressed Unruffled Used Vexed Victim Victimized Vivacious Volcanic Voluptuous Vulnerable Warm Warmhearted Weary Welcomed Whining Winsome Wistful Woe Woeful Worked up Worried Wounded Wretched Yearn Yearning Yielding Zeal Zealous";

// array of words
wordList = new Array();
wordList = vernacular.split(" ");

// fill the page with words!
// fillRegion(0,0,600,337);
fillRegion(30,10,600,215);

this.onEnterFrame = function() {
// pull fill requests from que and execute
if (fillRequests.length>0) {
freq = fillRequests.pop();
fillRegion(freq.x0, freq.y0, freq.x1, freq.y1, freq.d);
}
}

// required because of extra long comment layers
stop();

View Replies !    View Related
GetURL Using Variable From External Text File
Hi,
I am sure this is simple but cant find answer anywhere -
I am using getURL to auto load an asp page after anim plays, I want to be able to edit the url in an external text file without having to edit the FLA file.

I am using :

loadVariables("getURL.txt", 0, "GET");
getURL(getURL, "_self");

where 'getURL.txt' contians the address I want to load

Do I need to assign the URL a value in the txt file? and reference this in the getURL command? I have tried everything but to be honest I am not a programmer and am at the limit of my basic action script experience.

Any help much appreciated.

Thanks,
Dave.

View Replies !    View Related
Loadmovie According To External Variable From A Text File
dear all,

i will tell you what exactly i am trying to do.
i am making a weather report in flash.
i used an external text file for the temperature levels.so when ever i edit the text file,the flash will change automatically.I used loadvariable("textfile.txt," "")
and is working perfectly.

now,

i need to show rain,sunny,cloudy day animation(like BBC weather).so i used a textfile contaning a variable called day.


sunnyday
rainyday
cloudyday


so,if i type day=sunnyday,the small animation of sun will load into the main movie.

and if i change the variable day=rainyday,the rain animation should load.


i hope you get the idea....

i tried this way and its not working...code is here

loadvariable("climate.txt," "")

if(day = "sunnyday"){

loadmovie("sunny.swf",1)

}else if (day = "rainyday"){

loadmovie("rainy.swf",1)
}else if (day = cloudyday){

loadmovie("cloudy.swf",1)
}


i am not getting the result...whyyyyy???????

i sincerely hope you guys can help me,
am trying this for few days...

View Replies !    View Related
Load External Text Files Into Variable
loadText = new LoadVars();
> i = int(Math.random()*20+1);
> loadText.load(i+".txt");
> j = 0;
> //creating the loadVarsText function
> loadText.onLoad = function() {
> scroller.htmlText = this.myText;
> j = this.answer;
> };
>
> this code will load random questions (named q1.txt - q20.txt) into the text
area. the questions are identified by the variable "myText". also in the text
files are the answers. the answers are identified by the variable "answers". a
sample of the text file q1.txt is as below:
> myText=
> <font face="Verdana" size="10" color="#FF0000">
> <b>Digestion</b></font><font face="Verdana" size="10">
> Which of the following are enzymes found in the stomach? <br> 1) Amylase
2) Maltase <br> 3) Pepsin 4) Sucrase</font>
> answer=3
>
> i am able to successfully load myText into the text area. however, i am not
able to assign the variable "answer" to the local variable "j". (which i will
use later on for quiz answer checking).
> is there anyway i am able to load the answer into variable j?
> can you please correct me if i am wrong in this comparison of string:
> if (j==="1") {
> (play animation for correct answer)

View Replies !    View Related
GotoAndPlay(variable) From External Text File
Hi, I am having trouble getting gotoAndPlay(variable) to work from a button within a movie clip, using a value loaded from an external text file at _root level;

loadVariables("aug05.txt","/");

The external text file values are a calendar of events and reference frames.

&e16=<b><font color="#FF6600">Event A
&f16=ea

&e17=<b><font color="#FFFF00">Event B
&f17=eb

I'm using 31 instances of movie clip "event" to display the variable monthly calendar of events, in each instance, defining values accordingly eg. for the 16th of that month, I have the following;

onClipEvent (enterFrame) {
evnt=_root.e16;
frm=_root.f16;
}

The button within this movie clip is supposed to take you to the frame for that event;

on (release) {
_root.gotoAndPlay(frm);
}

but doesn't seem to recognise the "frm" variable at the button action level (though it does pass the variable "evnt" successfully to the dynamic text field within the button).

I've tried everything I could find online to no avail. Is it even possible?

View Replies !    View Related
JSFL: External Variable/Clipboard Text
I'm working on creating an AutoHotKey script and JSFL script to assign an instance name for the selected object on the stage. (I HATE that there isn't a shortcut to create an instance name).

Does anybody know if there is a way to grab text from the clipboard (or even a variable straight from AutoHotKey)? The JSFL I'm using right now is:

ActionScript Code:
for(i in  fl.getDocumentDOM().selection){
    fl.getDocumentDOM().selection[i].name = ;
}

View Replies !    View Related
Please Help Loading Variable Text
I inhereted a piece that is almost complete, but lacks some important functions. After the movie loads you are suppose to roll over a year and see a text description of what happened. (see attached) I am stuck and would appreciate any help in making this happen.

View Replies !    View Related
Loading Variable Text
I've got this variable in a external txt file which I use to load images and text from like:

&015title=Project1

the "015" part is the name of a particular page, so it changes all the time

Obviously there are other like:

&016title=Project2
&017title=Project3
&018title=Project4

Now I'm trying to put them into a dynamic text. The variables are:

projectnummer = "015";
title_text = [projectnummer+"title"];

The title_text dynamic text variable literaly writes "015title"
and not the $015title=bla part from the external txt file.

Question: How is the title_text = [projectnummer+"title"]; code supposed to be written in order to let it load the variable 015title from the external txt file?

View Replies !    View Related
Loading Text WITHOUT A Variable Name?
Just when you thought Flash was so powerful - sometimes ya can't figure out how to do the SIMPLIEST of things!

I'm trying to build a program that will be able to read a SIMPLE text file (as in it literally has only a name in it - ie. MrGameShow - and nothing else).

Can someone tell me if and how the easiest way to import this would be? I can't add anything to the text file FYI - has to read it as plain text.

Thanks in Advance!

View Replies !    View Related
Loading A Variable From Text
Hi All

Been away from flash for a while, And have looked at tutorials but i cannot get this to work.

I have built a gallery, which i would like to be able to update without editing the .fla.

I have built the gallery, and will be using 3 variables to control the loading of pictures, Everything works fine as it is, but it is with set values that are entered into the movie, at the moment there are 30 pictures.

I would like to be able to change the variable that relates to the total number of pictures, which at the moment is 30. I have tried :-


Code:
prevVar=new LoadVars();
prevVar.load("galleryvar.txt");
trace(prevVar.myVar)


text file


Code:
myVar=30


the trace returns "undefined" I know I am doing something wrong, just cant find out what, Help!!

Thanks

(using mx 2004 btw)

View Replies !    View Related
External Text In External Swf Not Loading In Main Swf
Hi. I'm kind of new to Flash, and am trying to make external text load into an external swf which is loaded into my main swf.

What I have is a swf file where I have buttons that load external text. I then loaded this swf into another main.swf and now the external text will not load. The code i have in the external.swf to load external text is this


but4272005.onRelease=function(){
loadVariablesNum ("4272005.txt","0");
}
but4282005.onRelease=function(){
loadVariablesNum ("4282005.txt","0");
}
but532005.onRelease=function(){
loadVariablesNum ("532005.txt","0");
}


This swf works by itself, but when i load it into the main.swf it doesn't.
I'm sure it has something to do with the "0", but I'm not sure what to put there to make it load correctly in the main swf.

The dynamic textbox i'm trying to load into is named "index_txt". The name of the loader in the main.swf is named "content". Any help would be appreciated.

View Replies !    View Related
External Text In External Swf Not Loading In Main Swf
Hi. I'm kind of new to Flash, and am trying to make external text load into an external swf which is loaded into my main swf.

What I have is a swf file where I have buttons that load external text. I then loaded this swf into another main.swf and now the external text will not load. The code i have in the external.swf to load external text is this


but4272005.onRelease=function(){
loadVariablesNum ("4272005.txt","0");
}
but4282005.onRelease=function(){
loadVariablesNum ("4282005.txt","0");
}
but532005.onRelease=function(){
loadVariablesNum ("532005.txt","0");
}


This swf works by itself, but when i load it into the main.swf it doesn't.
I'm sure it has something to do with the "0", but I'm not sure what to put there to make it load correctly in the main swf.

The dynamic textbox i'm trying to load into is named "index_txt". The name of the loader in the main.swf is named "content". Any help would be appreciated.

View Replies !    View Related
External Text Field As A Variable, A Real No Brainer, But Help
Can i import an external txt file as a varible, I know it can be used to populate a dynamic text field but im trying to get it in the movies as a string variable. Im using the loadvariable command but it seems to be doing nothing..

any help to this no brainer would be gratefully accepted.

View Replies !    View Related
Controlling Movie From External Text/variable File
Hi people

Does anyone know if it is possible to do this:

I need to load an external text file to a field in the movie.
I then need to be able to click on a word in this loaded text field that then loads a further external text file into a different field.

ie. so that a text list menu and it's corresponding text menu items can be controlled from external files.

Or some other way to acheive the same result?

thanks!

View Replies !    View Related
Loading HTML Variable In Text Box
I am working on a project where I am loading variables into a text box from a .txt file..like this:

In the time line I am using and action
loadVariables ("news.txt", "");

In the news.txt file I have
textfield=the body of the text goes here

I have the Dynamic Text box named textfield.

The problem is the client wants to bold some of the text and hyperlink from one word..etc. I know I can do this by selecting the HTML radio box in Flash. But I am not sure how to load the text. Should I load an HTML file?

In the text file what do I put...textfield=news.html? YOUR HELP WOULD BE APPRECIATED.

View Replies !    View Related
Loading From A .txt File In A Text Variable....
hi,
I searched the forum for a while and I also read the help (F1) of cause......
My problem: I load a variable with loadVariables("filename.txt",""); The content of filename.txt is myText= a long multiline text with many types like or or
In my .fla I put an dynamic text field and put in the var. field myText
Ok, the text appears but non of or or characters do appear (instead appears something strange...) and the text ends as soon as there is a & (well, of cause I can put an and instead of &, but I would like to use &). How should I do?
thank you for helping.....

View Replies !    View Related
Loading A Text File Off A Variable...
Just as the title says... I'd like to load specific content (other variables) from external text files.

loadVariablesNum("setup.txt",0);

I use this method to load in the text files hardcoded. I was wondering if it was possilbe to change the "setup.txt" to be the value of a variable... obviously I have tried simply substituting it for "myVarialbe" but that doesn't seem to work... is there a way?

Any help would be greatly appreciated.

Thankyou.

View Replies !    View Related
Help With Loading A Variable From A Text File
I've only been coding in flash for a couple of days, so I'm sure this is an easy fix. I've been working on a solution for a flash ad system on my university's current student site. Essentially the file loads a number of movie files into one file so that the people on the backend making the flash ads don't have to make a new swf everytime the ads change. Alright so lets get to my troubles.

This actionscript is located on the first and only frame of the movie:


ActionScript Code:
loadVariables("tads.txt","0");
ads = Number(ads);
i = 1;
holder.loadMovie("movie_1.swf");

As you can see I am attempting to load a variable from the text file tads.txt This text file contains the following text ("ads=5") Alright so that variable is imported as a string and needs to be converted to a number. Line two does this. Then the last two lines have to do with what the current ad is and loading the actual swf's.

Alright this next script is from the forward button (which advances the swf to the next ad):

ActionScript Code:
on (release) {
    if (i == ads) {
        i = ads;
    } else {
        i = i+1;
    }
}
on (release) {
    currentMovie = ["movie_"+i+".swf"];
    holder.loadMovie(currentMovie);
}

on (release) {
    with (pBar) {
        _xscale += (i/ads) * 200;
}
}
So basically the first portion of the script checks the current movie number (the variable i) against the variable that I am loading. If they equal eachother then they simply equal eachother. If not 1 is added to i and the next ad is displayed.

My problem is that once I get to the 5th movie the ads variable should keep the next ad from displaying. Unfortunately it doesn't work. I assume that it must by how I am loading the variable, but it could be something else too.

View Replies !    View Related
Loading Text Variable Into A Movieclip
im using
loadVariablesNum("var.txt", 0);

View Replies !    View Related
Copyright 2005-08 www.BigResource.com, All rights reserved