Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 02-24-2005, 05:34 AM   #1
Fantasma
Registered User
 
Join Date: Feb 2005
Posts: 4
Default scrapbook and typewriter effect problems

OK, im a novice, so dont laugh at this: http://www.woohoo.org/carterolive.html

ive got two questions i hope someone can answer.

1. if you go to the scrapbook link, move around the photos, then go to a different link, those photos are still there, and in the way. how do i make the photos disappear when a new link is clicked on?

2. if you click on "Who is Carter" and the "Who is Olive?", you'll see a typewriter effect. But if you click on them again, the text starts turning into undecipherable gobbledygook. the text is being loaded from a .txt file. what's going on with this?

Thanks!
Fantasma is offline   Reply With Quote
Old 02-24-2005, 06:39 AM   #2
jessup
Registered User
 
jessup's Avatar
 
Join Date: Oct 2004
Location: detroit
Posts: 63
Send a message via MSN to jessup
Default

1. i am assuming that the photos are actually movieclips at which case u can have them watch a variable of sorts and them tell them to goto invisible, set alpha properties, reset thier original x and y locations pretty much whatever u like. the easiest way to control a movielcip for me is the use of variables and havehe movieclips respond to them vars.

2. would have to see the code... i did notcie when i clicked on carter over and over again it worked fine. it wasent till i clicked on olive that it went to crap. like i said would have to see the code...

good luck
jessup is offline   Reply With Quote
Old 02-24-2005, 08:12 AM   #3
Fantasma
Registered User
 
Join Date: Feb 2005
Posts: 4
Default

thanks for the reply.

ive got the scripts in three frames, plus a text file.

frame 1:
ActionScript Code:
loadVariables("cartertext.txt","");
frame 2:
ActionScript Code:
if (loaded != "yes") { gotoAndPlay(96); }
frame 3:
ActionScript Code:
stop(); var i = 0; cartertext = ""; cartertext2 = ""; var my_array = txt.split(""); function textwritter() { cartertext2 = cartertext; cartertext = my_array[i]; cartertext = cartertext2+cartertext; if (i+1<my_array.length) { i++; } else { clearInterval(intervalID); } } var intervalID = setInterval(textwritter, speed);
And then in my text file (cartertext.txt), it says:
Code:
&loaded=yes&
//Please do not edit this line.
&speed=80&
//The variable “speed” is actually the interval time in ms.
//Therefore the greater “speed” is, the slower the typing speed will be.
&txt=Born:  September 4, 2001
Occupation:  Pre-schooler
Hobbies:  Biking, Playdough, Reading,
watering flowers in the garden
Fave Foods:  Mushroom rice, ice
cream, skittles, dim sum
Dislikes:  Eating Chinese hair
&
Help! Thanks.

Last edited by CyanBlue; 02-24-2005 at 10:15 AM. Reason: AS tag is applied...
Fantasma is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:51 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.