Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
trints #1
Help please with 'if text file changes'...
I need to have a .swf that loads an image and text from a text file that looks
like this:
'john' [url]http://mysite/1.jpg[/url]
I need the .swf to moniter for changes in that same text file every 2 seconds.
If the text file changes to:
'sue' [url]http://mysite/2.jpg[/url]
I need that text and that image loaded...
Any help is apprecitated
Thanks,
Trint
trints Guest
-
text field including text from a text file *.txt
Hi, I would like to insert a text field which includes text from a text file. I know it must be possible but unfortunately I cannot find any help... -
Animating text from a external text file
Hi, can someone please guide me on how to animate text in flash which is loaded from a external text file. The way we load text in dynamic text box... -
Load Text from Text file with html links?
Try http://opensource.brajeshwar.com/downloads/dynamictextscroll/ and just change it to your liking, it have html links as far as I can remember. ... -
displaying text from an external text file
Hi Guys I have created a basic Flash 'thing' that fades in and out about 10 words from various angles. What I would like to be able to do is... -
Field Text vx Regular Text File Size
Why is regular text so much larger in file size than regular text? Is there some "magic" way to reduce the file size of regular text blocks? -
pazzoboy #2
Re: Help please with 'if text file changes'...
You have an input textField with instance name myInput, and it's located on the
main timeline. Now put this actionscripton the main timeline:
nameArray = new Array("John", "Sue", "George"); //holds possible names
imgArray = new Array("images/1.jpg", "images/2.jpg","images/3.jpg"); //holds
their corresponding images
this.onEnterFrame = function(){ //every time flash plays the frame
currentSelection = myInput.text; //assign the input text into a
variable
if(currentSelection=="enter a name"){ //if there is an image already
showing...
break; //do
nothing
}
else{ for(x=0,x<nameArray.length,x++){ //loop through the array
of names
if(currentSelection==nameArray[x]){ //check the input
for a match
getURL(imgArray[x],"imageHolder_mc"); //display the image!
myInput.text="enter a name"; //reset
the textfield and variable so it doesn't keep "getting the URL"
}
}
};
pazzoboy Guest
-
trints #3
Re: Help please with 'if text file changes'...
Thank you pazzoboy...do you know of an existing flash file I can add this to? I'm a real newbee, but this site is helping me get this right...
Trint
trints Guest
-
pazzoboy #4
Re: Help please with 'if text file changes'...
No, I don't actually....if you give me your email, I'll do a template and shoot it to you tomorrow morning.
pazzoboy Guest
-
trints #5
Re: Help please with 'if text file changes'...
Thanks -
[email]trintsmith@hotmail.com[/email]
Trint
trints Guest



Reply With Quote

