Welcome to GraphicForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

alter script to load externally

 
   Graphic Forums (Home) -> General Discussions RSS
Next:  Good animation examples  
Author Message
krustafarian

External


Since: Jan 17, 2006
Posts: 10



(Msg. 1) Posted: Sun Jan 22, 2006 4:58 pm
Post subject: alter script to load externally
Archived from groups: macromedia>flash (more info?)

i have this script which animates the text string in one character at a time
(dynamic textfield instance name = display_txt).


stop();
var mystr = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit";
function doVidiprinterEffect(textfield,strtext)
{
if(strtext == undefined)
{
strtext = textfield.htmlText;
textfield.htmlText = "";
}
var string_index = 0;
var max_index = strtext.length;
this.onEnterFrame = function()
{
textfield.text += strtext.charAt(string_index);
string_index++;
if(string_index == max_index)
{
this.onEnterFrame = undefined;
}
}
}
doVidiprinterEffect(this.display_txt);



can anyone tell me how edit it to take a string of text from an external txt
file instead. i cant figure it out so that it loads and also uses the printer
effect.

thanks

 >> Stay informed about: alter script to load externally 
Back to top
Login to vote
Display posts from previous:   
   Graphic Forums (Home) -> General Discussions All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]